Cloud server construction-the birth of open source software 5

Infrastructure [Hardware]-Chapter 5

Log the birth of "open source software"

Chilong ERP open source address:

Light up the star, thank you for your support, and communicate with the developer kzca2000

Code Cloud: https://gitee.com/redragon/redragon-erp

GitHub:https://github.com/redragon1985/redragon-erp

Redragon ERP official website: https://www.redragon-erp.com

 

Does open source need server support

Before talking about infrastructure, let's talk about a simple topic: Does open source software need its own server? In fact, it depends on your settings for this open source software. If your purpose is to share a self-developed project without considering other developments, you can use GitHub or Code Cloud.

But if you want to increase the popularity of the software, make it more popular, and want this open source software to have its own technical community, and at the same time continue to develop and derive, you must provide other services, such as the official software website and technical community. , Product experience, etc., so servers, domain names, etc. become essential. Let's talk about how to build infrastructure and precautions below.

Cloud Server

In order to provide various services, you first need a server. There are many ways to obtain the server. You can buy a server and build your own network. You can also host the server directly to a third party. Of course, let’s just talk about it now. The easiest and most economical way is to rent a cloud server.

The simple understanding of cloud server is that many physical servers are virtualized. Cloud servers need to be purchased according to your configuration requirements, and the long-term configuration cannot be too low. Take the author as an example. I bought a quad-core 8G server in Alibaba Cloud, plus 5G bandwidth and 100G hard drives. My experience is that the server meets the planned demand. The 1.5W annual rent server I bought before has a high configuration, but it is a bit wasteful and the utilization rate is low.

The following summarizes the key points of purchasing a server :

(1) The most important performance of a cloud server is CPU and memory. The size must match the needs of the application, and determine how many cores of CPU and a few gigabytes of memory. I don't think you need to worry about the various server types in it. You can buy the cheapest one under the premise of the same configuration. The difference between them when the utilization rate is not reaching the peak is minimal. Of course this is for the needs of open source software.

(2) Generally, cloud servers will bring a hard disk for the operating system. In addition, consider buying another hard drive for application or storage. There are also different types of cloud disks, because open source requirements do not require such high I/O, so the cheapest is recommended.

(3) Due to the services involved in open source software, there are no services with high concurrency and high data transmission, and the requirements for network bandwidth are not high. The simple algorithm bandwidth is divided by 8, and then converted into the amount of data involved in a single request and the number of concurrency you want to support, you can make a rough estimate.

(4) For the operating system, whether it is Linux or Windows, you must choose a version that you are familiar with, instead of having to install the latest version, so as to reduce the probability of risk.

(5) Except for cloud servers, it is not recommended to purchase any other third-party services, such as databases, middleware, etc. These services can basically be installed and deployed by themselves, and there is no need to increase additional costs.

domain name

In addition to the server, at least one domain name is also essential. The domain name is your trademark and also a brand. I also registered the domain name in Alibaba Cloud. I personally recommend choosing a .com domain name. While ensuring that it has the same meaning as your open source product name, try to keep the domain name short and readable.

After purchasing the domain name, immediately complete the corresponding filing work. General domain name service providers will provide filing services, and filing is mandatory and free of charge. The country now has extremely strict management of domain name registration, and domain names that have not been registered cannot be used. The period of domain name registration is generally about two weeks. Complete the corresponding steps and wait for the review and approval.

certificate

SSL certificate is not necessary, but my personal recommendation: it is worth having. There are now free SSL certificates in many places. The use of certificates can improve the security of your website itself, and also allow users to visit your website more confidently (many browsers will identify that the security of the website depends on the SSL certificate).

postscript

At this point, the infrastructure part is ready, and you already have the basic hardware environment. Next time, I will enter the installation and configuration of software and middleware, and also make up for the missing part of the previous article "Technical Framework".

 

希望您读完本文可以帮助笔者进入【码云】或【GitHub】点击星标。等待着您的支持!


Guess you like

Origin blog.51cto.com/14933131/2536195