Method and system for realizing high availability of tenant cloud server, and central controller
Through the management network address pool and virtual IP technology, combined with keepalive software, the problem of insufficient high availability of tenant cloud servers in stand-alone mode is solved, the automatic establishment and management of high availability clusters is realized, and the stability and reliability of tenant business is improved. , providing users with a simpler and more reliable cloud data center usage experience.
Patent Information
- Application Number
- CN202411274975.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-12
- Publication Date
- 2025-01-03
- Estimated Expiration
- 2044-09-12
AI Technical Summary
The lack of high availability in stand-alone mode of tenant cloud servers leads to inability to provide services once they fail, reducing availability.
By setting up a management network address pool, allocating public IP addresses to tenant cloud servers, forming a cluster, and using virtual IP and keepalive software to achieve high availability. The configurator issues configuration information and commands through the JAVA architecture to realize automated cluster establishment and management.
It improves the high availability and stress resistance of tenant cloud servers, simplifies user operations, realizes the control of tenant cloud servers and high availability cluster configuration in the cloud data center, supports elastic expansion and shrinkage, and enhances security and resource utilization.
Smart Images

Figure CN119254625A_ABST
Abstract
Description
Technical Field
[0001] One or more embodiments of the present invention relate to cloud computing, and more particularly to a method and system for implementing high availability of a tenant cloud server, and a cloud data center controller. Background Art
[0002] With the rise of cloud computing technology, data center networks have entered the second generation of development: cloud service-driven. Cloud services not only require data centers to support massive data storage and transmission, but also emphasize dynamic allocation, flexible expansion, and efficient use of resources. In the context of cloud computing, coupled with the support of big data and AI intelligence, high-availability, easy-to-operate service models have become the goal pursued by users.
[0003] Tenants' cloud servers currently usually work in stand-alone mode, so they do not have high availability. Once a tenant's cloud server fails, it will no longer be able to provide services to tenants, thereby reducing the availability of the tenant's cloud server. Summary of the invention
[0004] One or more embodiments of the present invention describe a method and system for implementing high availability of a tenant cloud server, and a cloud data center controller, which can improve the availability of the tenant cloud server.
[0005] According to a first aspect, a method for implementing high availability of a tenant cloud server is provided, the method comprising:
[0006] A management network address pool is set; wherein the management network address pool includes no less than M management network addresses, and the management network addresses are public network IP addresses; M is a positive integer greater than 1;
[0007] Allocate the M management network addresses in the management network address pool to the M tenant cloud servers one by one;
[0008] Group the M tenant cloud servers into a cluster, and set cluster configuration information of the cluster, wherein the cluster configuration information includes a virtual IP address;
[0009] Sending the cluster configuration information to each tenant cloud server in the cluster via the management network address assigned to each tenant cloud server in the cluster;
[0010] Each tenant cloud server downloads the cluster configuration tool from the external network through the assigned management network address;
[0011] Each tenant cloud server joins the cluster using the cluster configuration tool and cluster configuration information.
[0012] The cluster configuration information of the cluster is set, including at least one of the following:
[0013] The working mode of the cluster is configured as the master-slave mode; a corresponding business role is set for each tenant cloud server in the cluster; a corresponding priority is set for each tenant cloud server in the cluster; and an intranet IP address of the tenant cloud server in the cluster is set for each tenant cloud server in the cluster.
[0014] The cluster configuration tool is: keepalive software;
[0015] Each tenant cloud server joins the cluster using the cluster configuration tool and cluster configuration information, including:
[0016] Install the keepalive software on each tenant cloud server. After the installation is complete, configure the keepalived.conf file, set the virtual IP address, intranet IP address, business role, priority, and working mode, start the keepalive software, and start clustering to select the primary tenant cloud server.
[0017] After each tenant cloud server joins the cluster using the cluster configuration tool and cluster configuration information, the method further includes: reclaiming the management network address allocated to each tenant cloud server in the cluster.
[0018] After the cluster configuration information of the cluster is set, the method further includes:
[0019] For each tenant cloud server in the cluster, an available address pair of the virtual IP address is added to the network card interface of the tenant cloud server; the available address pair includes a correspondence between the virtual IP address and the MAC address of the tenant cloud server, so that the network card of the tenant cloud server can receive a message with the destination address being the virtual IP address.
[0020] According to a second aspect, a cloud data center controller is provided, comprising:
[0021] A management network address pool maintenance module is configured to set a management network address pool; wherein the management network address pool includes no less than M management network addresses, and the management network addresses are public network IP addresses; M is a positive integer greater than 1;
[0022] A management network address issuing module, configured to allocate the M management network addresses in the management network address pool to the M tenant cloud servers one by one;
[0023] The cloud server cluster formation module is configured to group the M tenant cloud servers into a cluster, set the cluster configuration information of the cluster, and the cluster configuration information includes a virtual IP address; and send the cluster configuration information to each tenant cloud server in the cluster through the management network address assigned to each tenant cloud server in the cluster.
[0024] According to a third aspect, a high availability implementation system for a tenant cloud server is provided, the system comprising: a cloud data center controller, a configurator, and M tenant cloud servers, wherein:
[0025] A cloud data center controller, configured to set a management network address pool; wherein the management network address pool includes no less than M management network addresses, which are public network IP addresses; M is a positive integer greater than 1; the M management network addresses in the management network address pool are allocated one by one to M tenant cloud servers; the M tenant cloud servers are grouped into a cluster, and cluster configuration information of the cluster is set;
[0026] a configurator, configured to send the cluster configuration information to each tenant cloud server in the cluster via a management network address allocated to each tenant cloud server in the cluster;
[0027] Each tenant cloud server is used to download the cluster configuration tool from the external network through the allocated management network address; and join the cluster using the cluster configuration tool and cluster configuration information.
[0028] The configurator is a JAVA-based configurator, which is connected to each tenant cloud server through port 22 of SSH; the configurator sends the keepalive installation command, the conf file configuration command and the cluster configuration information to the tenant cloud server through the management network address according to the type of the tenant cloud server.
[0029] The configurator is a device independent of the cloud data center controller, or the configurator is integrated in the cloud data center controller.
[0030] According to a fourth aspect, a computing device is provided, including a memory and a processor, wherein the memory stores executable code, and when the processor executes the executable code, the method described in any embodiment of the present invention is implemented.
[0031] The high availability implementation method and system of the tenant cloud server and the cloud data center controller provided by various embodiments of the present invention have at least the following beneficial effects:
[0032] 1. Automatically establish a high-availability cluster for tenant services based on the cloud data center controller.
[0033] 2. By introducing the management network address pool, the cloud data center controller can control the tenant cloud server.
[0034] 3. The configurator of the cloud data center controller can issue Linux commands to the cloud server through the JAVA architecture.
[0035] 4. Establish a high-availability cluster through virtual IP technology and keepalive.
[0036] 5. Through the virtual IP function of the cloud data center controller and the use of the management network address pool, the cloud data center controller can control the tenant cloud server, automatically realize the high-availability cluster configuration and deployment of the tenant cloud server, improve the stability and pressure resistance of the tenant business, and improve the reliability and high availability of the tenant business, providing users with a simpler and more reliable cloud data center experience.
[0037] 6. The management network address pool solves the problem that the cloud data center controller cannot operate the tenant cloud server. At the same time, the management network address will be automatically recycled after the tenant cloud server is configured with a high-availability cluster, which can achieve the reuse of the addresses in the management network address pool and avoid the security risks caused by mounting the management network address on the tenant cloud server.
[0038] 7. After the cluster is established, the cluster server can be elastically expanded or reduced according to the tenant's business traffic. When operating the tenant's cloud server, you can apply for the address in the management network address pool as needed, and it will be automatically released after use. Among them, the establishment of a highly available cluster of tenant cloud servers is achieved through virtual IP+keepalive, and the use of the management network address pool opens up the control of the cloud data center controller over the tenant cloud server. The recycling of the management network address realizes the reuse of the address pool address, and also enhances the security of the cloud server. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0040] Figure 1 It is a schematic diagram of a system architecture applied in one embodiment of the present invention.
[0041] Figure 2 It is a flow chart of a method for implementing high availability of a tenant cloud server in one embodiment of the present invention.
[0042] Figure 3 It is a network diagram of a high-availability cluster of tenant cloud servers in one embodiment of the present invention.
[0043] Figure 4 It is a flowchart of a method for implementing high availability of a tenant cloud server in another embodiment of the present invention.
[0044] Figure 5 It is a schematic diagram of the structure of a cloud data center controller in one embodiment of the present invention. DETAILED DESCRIPTION
[0045] The solution provided by the present invention is described below in conjunction with the accompanying drawings.
[0046] First of all, it should be noted that the terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. The singular forms "a", "the" and "the" used in the embodiments of the present invention and the appended claims are also intended to include plural forms, unless the context clearly indicates otherwise.
[0047] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0048] In order to facilitate understanding of the method provided by the present invention, the system architecture involved and applicable to the present invention is first described. Figure 1 As shown in , the system includes at least one tenant cloud server, a configurator, and a cloud data center controller.
[0049] It should be understood that Figure 1 The number of tenant cloud servers, configurators, and cloud data center controllers in the example is only illustrative. Any number may be selected and deployed as required.
[0050] Figure 2 FIG. 1 is a flow chart of a method for implementing high availability of a tenant cloud server in one embodiment of the present invention. Figure 1 and Figure 2 , the method comprising:
[0051] Step 201: Set a management network address pool; wherein the management network address pool includes no less than M management network addresses, which are public network IP addresses; and M is a positive integer greater than 1.
[0052] Step 203: Allocate the M management network addresses in the management network address pool to the M tenant cloud servers one by one.
[0053] Step 205: Group the M tenant cloud servers into a cluster, and set cluster configuration information of the cluster; the cluster configuration information includes a virtual IP address.
[0054] Step 207: Send the cluster configuration information to each tenant cloud server in the cluster through the management network address allocated to each tenant cloud server in the cluster.
[0055] Step 209: Each tenant cloud server downloads the cluster configuration tool from the external network through the allocated management network address.
[0056] Step 211: Each tenant cloud server joins the cluster using the cluster configuration tool and cluster configuration information.
[0057] according to Figure 2 The method of the embodiment of the present invention shown can make the tenant cloud servers form a cluster, and the cluster works in a dual-machine or multi-machine mode, so as to support high availability and disaster recovery backup, and avoid business unavailability caused by the downtime of some tenant cloud servers. The cluster has the following advantages in use: high availability and fault tolerance. When a server fails, other servers can take over the work to ensure the continuity of the service; strong scalability. The cluster server can flexibly expand and shrink the capacity according to business needs to improve resource utilization; high-performance computing can provide high-performance computing power and storage capacity through parallel computing and distributed storage technology; data backup and recovery, to achieve real-time backup and synchronization of data, to ensure the security and reliability of data, and reduce the risk of data loss; simplified management and maintenance, the administrator can monitor and manage the entire cluster through a console, reducing the complexity and workload of management.
[0058] Tenant cloud servers are private resources of users, and cloud data center controllers cannot directly control these tenant cloud servers. Figure 2 In the method of the embodiment of the present invention shown, a management network address in the management network address pool is allocated to the tenant cloud server. The management network address is a physical address, that is, a public network IP address. Therefore, through the management network address, the cloud data center controller can transmit information with the tenant cloud server, thereby realizing the cloud data center controller's control over the tenant cloud server, such as issuing configuration commands and providing the tenant cloud server with external network access functions. Figure 2In the method of the embodiment of the present invention shown, the cloud data center controller configures the virtual IP address of the cluster and cluster configuration tools such as keepalive software to the tenant cloud server through the management network address, thereby ensuring that the tenant cloud server can join the cluster and achieve high availability and disaster recovery backup.
[0059] Combine the following Figure 2 , Figure 3 as well as Figure 4 , a method for implementing high availability of a tenant cloud server in an embodiment of the present invention is described.
[0060] First, execute step 201: set a management network address pool; wherein the management network address pool includes no less than M management network addresses, and the management network addresses are public network IP addresses; and M is a positive integer greater than 1.
[0061] In an embodiment of the present invention, the management network address pool provides a collection of management network addresses, the addresses in which are management network addresses, which are physical layer addresses and public IP addresses, configured by the underlying network. The management network address is to enable the tenant cloud server to communicate with the cloud data center controller and the external network.
[0062] The addresses in the management network address pool are shared by all users. When the tenant cloud server establishes a cluster mode, the cloud data center controller allocates them and binds them to the tenant cloud server. Each tenant cloud server is assigned a management network address. After the tenant cloud server completes the cluster formation, the management network address of the tenant cloud server will be reclaimed by the cloud data center controller and continue to be used by other tenant cloud servers.
[0063] Step 203: Allocate the M management network addresses in the management network address pool to the M tenant cloud servers one by one.
[0064] In this step 203, the cloud data center controller may allocate and bind the management network address to the tenant cloud server.
[0065] For example, see Figure 3, the address range of the management network address pool is 100.121.0.3 to 100.121.0.30, which is configured as a physical network, and a VLAN number is assigned. The core switch allows network communication with the cloud data center controller and network communication with the external network. M is 3, and the three tenant cloud servers will form a cluster. Among the three tenant cloud servers, the management network address assigned to cloud server 1 is 100.121.0.3, the management network address assigned to cloud server 2 is 100.121.0.4, and the management network address assigned to cloud server 1 is 100.121.0.5. The cloud data center controller mounts the three management network cards to the three tenant cloud servers respectively, and the cloud data center controller controls the tenant cloud servers.
[0066] Next, step 205 is executed: the M tenant cloud servers are grouped into a cluster, and cluster configuration information of the cluster is set, where the cluster configuration information includes a virtual IP address.
[0067] For example, see Figure 3 , the assigned virtual IP address is: 192.168.0.10.
[0068] In this step 205, cluster configuration information of the cluster is to be set, and the cluster configuration information includes the virtual IP address of the cluster. The virtual IP address is the unified external service address of the tenant cloud server, and the virtual IP address is the intranet address in the virtual private network, which can enable multiple tenant cloud servers in the cluster to share the same IP address.
[0069] When setting the cluster configuration information, step 205 may further include at least one of the following:
[0070] 1. Configure the working mode of the cluster to active / standby mode.
[0071] 2. Set corresponding business roles for each tenant cloud server in the cluster.
[0072] 3. Set a corresponding priority for each tenant cloud server in the cluster;
[0073] 4. Set the private network IP address of each tenant cloud server in the cluster. Figure 3 The intranet IP addresses of the three tenant cloud servers are: 192.168.0.3, 192.168.0.4, and 192.168.0.5.
[0074] See also Figure 3, select 3 tenant cloud servers, and set the business role and priority for each tenant cloud server. There are two business roles: master and slave. A cluster can only have 1 master, and the others are slaves. The priority is an integer from 1 to 100. The larger the value, the higher the priority. The priority is the same as the business role. Generally, the master role has the highest priority, and the slave role is set according to the performance of the tenant cloud server.
[0075] After the configuration settings are completed, the cloud data center controller sends this information to the configurator.
[0076] Between step 205 and step 207, the following may be further performed: Step 206: For each tenant cloud server in the cluster, add an available address pair of the virtual IP address on the network card interface of the tenant cloud server; the available address pair includes a correspondence between the virtual IP address and the MAC address of the tenant cloud server, so that the network card of the tenant cloud server can receive a message with the destination address being the virtual IP address.
[0077] In order to ensure that traffic can reach the real destination address when accessing the virtual IP address, the available address pair of the virtual IP address needs to be configured on the network card interface of the tenant cloud server, so that the network card of the tenant cloud server can receive the message destined for the virtual IP address, and help realize the high-availability cluster mode of the tenant cloud server. For example, the mapping between the MAC address of tenant cloud server 1 and the virtual IP is configured on tenant cloud server 1, and the mapping between the MAC address of tenant cloud server 2 and the virtual IP is configured on tenant cloud server 2.
[0078] Next, step 207 is performed: the cluster configuration information is sent to each tenant cloud server in the cluster through the management network address allocated to each tenant cloud server in the cluster.
[0079] In this step 207, a configurator may be set up to execute the issuing work. The configurator may be integrated into the cloud data center controller or may be set up independently of the cloud data center controller.
[0080] The cloud data center controller provides a JAVA-based configurator, which connects to the tenant cloud server through port 22 of SSH, receives the request to establish the cluster mode sent by the cloud data center controller, and parses the cluster mode type such as the master-slave mode, virtual IP address, priority, business role status (master / slave), etc. According to the type of the tenant cloud server, it also adds commands to install keepalive and configure the conf file, and sends them to the tenant cloud server through the management network address. After receiving these commands, the tenant cloud server first installs keepalive, configures the conf file after the installation is complete, and starts keepalive, so that the cluster mode is automatically established through keepalive. Among them, the configurator can convert the cluster configuration information into Linux commands and send them to the tenant cloud server with the command to install keepalive.
[0081] Among them, SSH on server port 22 is a protocol used for remote login and remote management of the server. SSH is the abbreviation of Secure Shell, which is an encrypted network protocol that provides a secure way to remotely access the server.
[0082] Next, step 209 is executed: each tenant cloud server downloads the cluster configuration tool from the external network through the allocated management network address.
[0083] The management network address is a public IP address, so the tenant cloud server can download the cluster configuration tool from the external network through the allocated management network address. In the embodiment of the present invention, the cluster configuration tool can be: keepalive software.
[0084] Next, step 211 is executed: each tenant cloud server joins the cluster using the cluster configuration tool and cluster configuration information.
[0085] In step 211, the process of each tenant cloud server joining the cluster using the cluster configuration tool and cluster configuration information includes:
[0086] Install the keepalive software on each tenant cloud server. After the installation is complete, configure the keepalived.conf file, set the virtual IP address, intranet IP address, business role, priority, and working mode, start the keepalive software, and start clustering to select the primary tenant cloud server.
[0087] At this point, the tenant cloud server has joined the cluster, and subsequent business operations through the cluster can improve availability.
[0088] After executing step 211, step 213 may be further executed: reclaiming the management network address allocated to each tenant cloud server in the cluster.
[0089] It can be seen that the embodiment of the present invention utilizes virtual IP, keepalive, and management network address pool to establish a high-availability cluster of tenant cloud servers, achieves high availability and disaster recovery backup of tenant services, improves the processing performance of tenant services, and avoids tenant service interruptions; simplifies the user's complex operations through controller configuration, improves the user experience, and at the same time improves the competitiveness of the cloud data center; the high-availability cluster also supports elastic expansion and contraction of cloud servers, and can flexibly adjust the configuration according to business needs to improve resource utilization.
[0090] An embodiment of the present invention provides a cloud data center controller, see Figure 5 ,include:
[0091] The management network address pool maintenance module 501 is configured to set a management network address pool; wherein the management network address pool includes no less than M management network addresses, and the management network addresses are public network IP addresses; M is a positive integer greater than 1;
[0092] A management network address issuing module 502 is configured to allocate the M management network addresses in the management network address pool to the M tenant cloud servers one by one;
[0093] The cloud server cluster formation module 503 is configured to group the M tenant cloud servers into a cluster, set the cluster configuration information of the cluster, and the cluster configuration information includes a virtual IP address; and send the cluster configuration information to each tenant cloud server in the cluster through the management network address assigned to each tenant cloud server in the cluster.
[0094] In one embodiment of the present invention, the cloud server cluster building module 503 is further configured to perform at least one of the following when setting the cluster configuration information of the cluster:
[0095] Configuring the working mode of the cluster to be an active / standby mode;
[0096] Setting a corresponding business role for each tenant cloud server in the cluster;
[0097] A corresponding priority is set for each tenant cloud server in the cluster.
[0098] For each tenant cloud server in the cluster, an intranet IP address of the tenant cloud server in the cluster is set respectively.
[0099] In one embodiment of the present invention, the management network address pool maintenance module 501 is further configured to execute: after each tenant cloud server joins the cluster using the cluster configuration tool and cluster configuration information, the management network address allocated to each tenant cloud server in the cluster is recycled.
[0100] In one embodiment of the present invention, after setting the cluster configuration information of the cluster, the cloud server cluster building module 503 is further configured to execute:
[0101] For each tenant cloud server in the cluster, an available address pair of the virtual IP address is added to the network card interface of the tenant cloud server; the available address pair includes a correspondence between the virtual IP address and the MAC address of the tenant cloud server, so that the network card of the tenant cloud server can receive a message with the destination address being the virtual IP address.
[0102] In one embodiment of the present invention, the management network address sending module 502 includes a JAVA architecture configurator, which is connected to each tenant cloud server through port 22 of SSH; the configurator sends the keepalive installation command, the conf file configuration command and the cluster configuration information to the tenant cloud server through the management network address according to the type of the tenant cloud server.
[0103] See also Figure 1 An embodiment of the present invention provides a high availability implementation system for a tenant cloud server, the system comprising: a cloud data center controller, a configurator, and M tenant cloud servers, wherein:
[0104] A cloud data center controller, configured to set a management network address pool; wherein the management network address pool includes no less than M management network addresses, which are public network IP addresses; M is a positive integer greater than 1; the M management network addresses in the management network address pool are allocated one by one to M tenant cloud servers; the M tenant cloud servers are grouped into a cluster, and cluster configuration information of the cluster is set;
[0105] a configurator, configured to send the cluster configuration information to each tenant cloud server in the cluster via a management network address allocated to each tenant cloud server in the cluster;
[0106] Each tenant cloud server is used to download the cluster configuration tool from the external network through the allocated management network address; and join the cluster using the cluster configuration tool and cluster configuration information.
[0107] In one embodiment of the system of the present invention, the configurator is a JAVA-based configurator, which is connected to each tenant cloud server through port 22 of SSH; the configurator sends the keepalive installation command, the conf file configuration command and the virtual IP address to the tenant cloud server through the management network address according to the type of the tenant cloud server.
[0108] In one embodiment of the system of the present invention, the configurator is a device independent of the cloud data center controller, or the configurator is integrated in the cloud data center controller.
[0109] It should be noted that the above-mentioned devices are usually implemented on the server side, and can be set on independent servers respectively, or some or all of the devices can be combined and set on the same server. The server can be a single server or a server cluster composed of multiple servers. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system. The above-mentioned devices can also be implemented on a computer terminal with strong computing power.
[0110] An embodiment of the present invention provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed in a computer, the computer is caused to execute a method in any one of the embodiments in the specification.
[0111] An embodiment of the present invention provides a computing device, including a memory and a processor, wherein the memory stores executable code, and when the processor executes the executable code, the method in any embodiment of the specification is implemented.
[0112] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the device of the embodiment of the present invention. In other embodiments of the specification, the above-mentioned device may include more or fewer components than those shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0113] The various embodiments of the present invention are described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0114] Those skilled in the art should be aware that in one or more of the above examples, the functions described in the present invention can be implemented by hardware, software, widgets, or any combination thereof. When implemented by software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium.
[0115] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made on the basis of the technical solution of the present invention should be included in the scope of protection of the present invention.
Claims
1. A method for implementing high availability of a tenant cloud server, characterized in that: The method includes: A management network address pool is set; wherein the management network address pool includes no less than M management network addresses, and the management network addresses are public network IP addresses; M is a positive integer greater than 1; Allocate the M management network addresses in the management network address pool to the M tenant cloud servers one by one; Group the M tenant cloud servers into a cluster, and set cluster configuration information of the cluster, wherein the cluster configuration information includes a virtual IP address; Sending the cluster configuration information to each tenant cloud server in the cluster via the management network address assigned to each tenant cloud server in the cluster; Each tenant cloud server downloads the cluster configuration tool from the external network through the assigned management network address; Each tenant cloud server joins the cluster using the cluster configuration tool and cluster configuration information.
2. The method according to claim 1, characterized in that The cluster configuration information of the cluster is set, including at least one of the following: Configuring the working mode of the cluster to be an active / standby mode; Setting a corresponding business role for each tenant cloud server in the cluster; Setting a corresponding priority for each tenant cloud server in the cluster; For each tenant cloud server in the cluster, an intranet IP address of the tenant cloud server in the cluster is set respectively.
3. The method according to claim 1, characterized in that: The cluster configuration tool is: keepalive software; Each tenant cloud server joins the cluster using the cluster configuration tool and cluster configuration information, including: Install the keepalive software on each tenant cloud server. After the installation is complete, configure the keepalived.conf file, set the virtual IP address, intranet IP address, business role, priority, and working mode, start the keepalive software, and start clustering to select the primary tenant cloud server.
4. The method according to claim 1, characterized in that: After each tenant cloud server joins the cluster using the cluster configuration tool and cluster configuration information, the method further includes: reclaiming the management network address allocated to each tenant cloud server in the cluster.
5. The method according to claim 1, characterized in that After the cluster configuration information of the cluster is set, the method further includes: For each tenant cloud server in the cluster, an available address pair of the virtual IP address is added to the network card interface of the tenant cloud server; the available address pair includes a correspondence between the virtual IP address and the MAC address of the tenant cloud server, so that the network card of the tenant cloud server can receive a message with the destination address being the virtual IP address.
6. A cloud data center controller, characterized in that: include: A management network address pool maintenance module is configured to set a management network address pool; wherein the management network address pool includes no less than M management network addresses, and the management network addresses are public network IP addresses; M is a positive integer greater than 1; A management network address issuing module, configured to allocate the M management network addresses in the management network address pool to the M tenant cloud servers one by one; The cloud server cluster formation module is configured to group the M tenant cloud servers into a cluster, set the cluster configuration information of the cluster, and the cluster configuration information includes a virtual IP address; and send the cluster configuration information to each tenant cloud server in the cluster through the management network address assigned to each tenant cloud server in the cluster.
7. A high availability implementation system for tenant cloud servers, characterized in that: The system includes: a cloud data center controller, a configurator, and M tenant cloud servers, wherein: A cloud data center controller, configured to set a management network address pool; wherein the management network address pool includes no less than M management network addresses, which are public network IP addresses; M is a positive integer greater than 1; the M management network addresses in the management network address pool are allocated one by one to M tenant cloud servers; the M tenant cloud servers are grouped into a cluster, and cluster configuration information of the cluster is set; a configurator, configured to send the cluster configuration information to each tenant cloud server in the cluster via a management network address allocated to each tenant cloud server in the cluster; Each tenant cloud server is used to download the cluster configuration tool from the external network through the allocated management network address; and join the cluster using the cluster configuration tool and cluster configuration information.
8. The system according to claim 7, characterized in that The configurator is a JAVA-based configurator, which is connected to each tenant cloud server through port 22 of SSH; the configurator sends the keepalive installation command, the conf file configuration command and the cluster configuration information to the tenant cloud server through the management network address according to the type of the tenant cloud server.
9. The method according to claim 7, characterized in that: The configurator is a device independent of the cloud data center controller, or the configurator is integrated in the cloud data center controller.
10. A computing device comprising a memory and a processor, wherein the memory stores executable codes, and when the processor executes the executable codes, the method according to any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
IPv4 terminal based on virtual IPv4 address pool, and IPv6 service interworking service load balancing system
CN106453664A
High-availability connection establishing method and device for cloud server cluster
CN107222320A
Cloud server cipher machine system based on virtualization technology
CN116418522A
Database access control gateway service system based on software as a service and method thereof
KR102584579B1
Method and device for establishing connection of cloud server cluster
WO2017162173A1