CN107222320A - The method and apparatus that Cloud Server cluster sets up High Availabitity connection - Google Patents

The method and apparatus that Cloud Server cluster sets up High Availabitity connection Download PDF

Info

Publication number
CN107222320A
CN107222320A CN201610163739.3A CN201610163739A CN107222320A CN 107222320 A CN107222320 A CN 107222320A CN 201610163739 A CN201610163739 A CN 201610163739A CN 107222320 A CN107222320 A CN 107222320A
Authority
CN
China
Prior art keywords
virtual machine
cloud server
server cluster
high availabitity
standby
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610163739.3A
Other languages
Chinese (zh)
Inventor
周莉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN201610163739.3A priority Critical patent/CN107222320A/en
Priority to PCT/CN2017/077738 priority patent/WO2017162173A1/en
Publication of CN107222320A publication Critical patent/CN107222320A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1034Reaction to server failures by a load balancer
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/40Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass for recovering from a failure of a protocol instance or entity, e.g. service redundancy protocols, protocol state redundancy or protocol service redirection

Abstract

The present invention proposes the method and apparatus that a kind of Cloud Server cluster sets up High Availabitity connection, the method that the Cloud Server cluster sets up High Availabitity connection includes parsing the primary virtual machine of Cloud Server cluster and standby virtual machine hosted name, and configures two-shipper mutual confidence-building mechanism;Default High Availabitity application is installed on primary virtual machine and standby virtual machine, and the High Availabitity application after installation is configured;The default monitoring script of addition, default monitoring script is used for the service for describing default High Availabitity application;Start the service of default High Availabitity application, to perform default monitoring script, and Floating IP address is set, connected with the High Availabitity for setting up Cloud Server cluster.The high availability of Cloud Server cluster can effectively be ensured by the present invention.

Description

The method and apparatus that Cloud Server cluster sets up High Availabitity connection
Technical field
High Availabitity company is set up the present invention relates to Cloud Server technical field, more particularly to a kind of Cloud Server cluster The method and apparatus connect.
Background technology
The Cloud Server machine of delaying may be to bringing on a disaster property of enterprise loss, once the main frame of bearer service system Break down, it is necessary to being switched to standby host in the most short time.The technology for realizing this application demand is " high Availability cluster technology ", it is a kind of server cluster technology for the purpose of reducing out of service time, protection The business application system of user externally provides service incessantly, the failure caused by software/hardware/artificially Influence to business is reduced to minimum degree.
In correlation technique, virtual management software only supervises virtual machine in itself, when virtual machine goes wrong The just migration of progress virtual machine, and service the suitable of startup for the service composition cluster on virtual machine, definition Function all imperfections, Cloud Server cluster such as service, definition service fault number of times on sequence, clone's virtual machine High availability it is poor.
The content of the invention
It is contemplated that at least solving one of technical problem in correlation technique to a certain extent.
Therefore, it is an object of the present invention to propose that a kind of Cloud Server cluster sets up the side of High Availabitity connection Method, can effectively ensure the high availability of Cloud Server cluster.
It is another object of the present invention to propose a kind of Cloud Server cluster set up High Availabitity connection device.
To reach above-mentioned purpose, the Cloud Server cluster that first aspect present invention embodiment is proposed sets up High Availabitity The method of connection, including:Primary virtual machine and the name parsing of standby virtual machine hosted to Cloud Server cluster, And configure two-shipper mutual confidence-building mechanism;Default High Availabitity is installed on the primary virtual machine and the standby virtual machine Using, and the High Availabitity application after installation is configured;The default monitoring script of addition, the default monitoring Script is used for the service for describing the default High Availabitity application;Start the service of the default High Availabitity application, To perform the default monitoring script, and Floating IP address is set, to set up the High Availabitity of the Cloud Server cluster Connection.
The method that the Cloud Server cluster that first aspect present invention embodiment is proposed sets up High Availabitity connection, passes through The primary virtual machine of Cloud Server cluster and the two-shipper mutual confidence-building mechanism of standby virtual machine are configured, installing default height can With application, and the High Availabitity application after installation is configured, and the default monitoring script of addition, preset prison Control script is used for the service for describing default High Availabitity application, starts the service of default High Availabitity application, to perform Default monitoring script, and Floating IP address is set, the High Availabitity connection of Cloud Server cluster is set up, can be effectively true Protect the high availability of Cloud Server cluster.
To reach above-mentioned purpose, the Cloud Server cluster that second aspect of the present invention embodiment is proposed sets up High Availabitity The device of connection, including:Parsing module, for the primary virtual machine to Cloud Server cluster and standby virtual The name parsing of machine hosted, and configure two-shipper mutual confidence-building mechanism;Configuration module, in the primary virtual machine and Default High Availabitity application is installed on the standby virtual machine, and the High Availabitity application after installation is configured; Add module, for adding default monitoring script, the default monitoring script can for describing the default height With the service of application;Starting module, the service for starting the default High Availabitity application is described to perform Default monitoring script, and Floating IP address is set, connected with the High Availabitity for setting up the Cloud Server cluster.
The Cloud Server cluster that second aspect of the present invention embodiment is proposed sets up the device of High Availabitity connection, passes through The primary virtual machine of Cloud Server cluster and the two-shipper mutual confidence-building mechanism of standby virtual machine are configured, installing default height can With application, and the High Availabitity application after installation is configured, and the default monitoring script of addition, preset prison Control script is used for the service for describing default High Availabitity application, starts the service of default High Availabitity application, to perform Default monitoring script, and Floating IP address is set, connected with the High Availabitity for setting up Cloud Server cluster, can be effective Ensure the high availability of Cloud Server cluster.
The additional aspect of the present invention and advantage will be set forth in part in the description, and will partly be retouched from following Become obvious in stating, or recognized by the practice of the present invention.
Brief description of the drawings
Of the invention above-mentioned and/or additional aspect and advantage are from the following description of the accompanying drawings of embodiments It will be apparent and be readily appreciated that, wherein:
Fig. 1 is the flow for the method that the Cloud Server cluster that one embodiment of the invention is proposed sets up High Availabitity connection Schematic diagram;
Fig. 2 is the stream for the method that the Cloud Server cluster that another embodiment of the present invention is proposed sets up High Availabitity connection Journey schematic diagram;
Fig. 3 is the knot for the device that the Cloud Server cluster that another embodiment of the present invention is proposed sets up High Availabitity connection Structure schematic diagram;
Fig. 4 is the knot for the device that the Cloud Server cluster that another embodiment of the present invention is proposed sets up High Availabitity connection Structure schematic diagram.
Embodiment
Embodiments of the invention are described below in detail, the example of the embodiment is shown in the drawings, wherein certainly Beginning to same or similar label eventually represents same or similar element or the member with same or like function Part.The embodiments described below with reference to the accompanying drawings are exemplary, is only used for explaining the present invention, and can not It is interpreted as limitation of the present invention.On the contrary, embodiments of the invention include falling into attached claims All changes, modification and equivalent in the range of spirit and intension.
Fig. 1 is the flow for the method that the Cloud Server cluster that one embodiment of the invention is proposed sets up High Availabitity connection Schematic diagram.
The method that the present embodiment sets up High Availabitity connection with the Cloud Server cluster is configured as Cloud Server cluster Set up in the device of High Availabitity connection to illustrate.Wherein, the Cloud Server cluster sets up High Availabitity connection Device can be arranged in Cloud Server cluster.
The method of the present embodiment can be applied after the virtualization of Cloud Server cluster starts.
Referring to Fig. 1, this method includes:
S11:Primary virtual machine and the name parsing of standby virtual machine hosted to Cloud Server cluster, and configure double Machine mutual confidence-building mechanism.
In one embodiment, primary virtual machine and the name parsing of standby virtual machine hosted to Cloud Server cluster Can be as follows with example:
For example, can be on the node of primary virtual machine, edit path is in Vi commard editors interface / etc/hosts files, herein below is added in hosts files:
192.168.56.101 Master.Cluster.com Master;
192.168.56.102 Slave.Cluster.com Slave;
Wherein, added in hosts files the form of content for primary virtual machine network ip address (for example, 192.168.56.101);The host name or domain name (for example, Master.Cluster.com) of primary virtual machine; The host name alias (for example, Master) of primary virtual machine.The difference of host name and domain name is, generally exists Host name is used in LAN, then by hosts files, host name is just resolved to correspondence IP address.
Meanwhile, it can be changed in Vi commard editors interface on primary virtual machine / etc/sysconfig/network files, the HOSTNAME in network files is revised as HOSTNAME=Master, in this way, is restarting the main frame of Cloud Server again, logs in primary virtual During machine, the host name of primary virtual machine can be revised as Master.
In another embodiment, Master side can be revised as according to the above-mentioned host name by primary virtual machine Method, is revised as Slave by the main frame of standby virtual machine is entitled, will not be repeated here.
, can after being parsed to the host name of primary virtual machine and standby virtual machine in another embodiment To configure two-shipper mutual confidence-building mechanism, that is, a key (key) is created, to allow all use for holding this key Family is logged in.
It is alternatively possible to set up the first SSH from primary virtual machine to standby virtual machine without password login pattern; And twoth SSH of the foundation from standby virtual machine to primary virtual machine is without password login pattern.
In another embodiment, configuration two-shipper mutual confidence-building mechanism can be as follows with example:
For example, can be on primary virtual machine using ssh-keygen orders one SSH key of establishment, and swash SSH keys living, wherein, the key that ssh-keygen orders can log in for generation ssh can be remote Without input the key of long-range primary virtual machine again during the primary virtual machines of Cheng Denglu, further input public key and close Catalogue and filename where key, can be stored under catalogue/root/.ssh, alternatively, not input mesh When record and filename, primary virtual machine can generate public key and key under current directory, subsequently input ssh and step on Password is recorded, input can not also input ssh login passwords using password during key, it is possible to achieve set up The first SSH from primary virtual machine to standby virtual machine is without password login pattern, convenient use.
And primary virtual machine /root/.ssh under generate ssh to the public key and key of primary virtual machine.Enter One step, can also copy the public key file Master_rsa.pub generated on primary virtual machine to standby virtual Machine /root/.ssh under, and the public key file Master_rsa.pub generated on primary virtual machine copied Shellfish to standby virtual machine /root/.ssh/authorized_keys in, and by authorized_keys's Authority is revised as 600, by the step in the example, can set up from primary virtual machine to standby virtual machine The first SSH without password login pattern.
Alternatively it is also possible to according to above-mentioned example, set up the 2nd SSH from standby virtual machine to primary virtual machine Without password login pattern, it will not be repeated here.
S12:Default High Availabitity application is installed on primary virtual machine and standby virtual machine, and to the height after installation Useful application is configured.
In one embodiment, default High Availabitity application can be applied including Pacemaker, Corosync is applied, Crmsh is applied, and DRBD applications.
In one embodiment, default High Availabitity application is installed on primary virtual machine and standby virtual machine, and it is right High Availabitity application after installation is configured, can be as follows with example:
For example, performing order on primary virtual machine:yum install–y pacemaker corosync crmsh drbd;Pacemaker applications, Corosync applications, Crmsh applications, and DRBD are being installed After finishing, configuration Corosync applications can be first begin to, i.e., in path cd/etc/corosync Under, order scp corosync.conf.example corosync.conf are performed, that is, replicate Corosync The configuration file of application, for example can be as follows by the content of Vi command editors modification:
threads:1;
Wherein, threads is the thread started, and threads value represents to start predetermined number thread to enter Row heartbeat message is transmitted, relatively many and during when main frame multinuclear in Cloud Server clustered node, can be started multiple Thread is monitored, and 0 is default value, threads values can be revised as 1 by the present embodiment, that is, starts a line Journey carries out heartbeat message transmission.
bindnetaddr:192.168.56.0;
Wherein, bindnetaddr is the IP address section of Cloud Server cluster monitoring, by the IP address of network interface card Can be with gateway phase and, it can be deduced that the IP address in the network segment of primary virtual machine communication, the present embodiment 192.168.56.101, mask is 255.255.255.0, then with rear for 192.168.56.0.
to_logfile:yes;
Wherein, local daily record storage can be opened by to_logfile being set into yes.
logfile:/var/log/cluster/corosync.log;
Wherein it is possible to by setting logfile, the file directory for preserving local logfile be set, in reality In the application scenarios of border ,/var/log/cluster catalogues have been present, and can create/var/log/cluster Corosync.log files under catalogue.
to_syslog:yes;
Wherein, by to_syslog can set whether writing system daily record, if to_syslog set Yes is set to, then/var/log/messages can be write with system journal.
Wherein, quorum represents to enable voting mechanism, it is assumed that initial voting mechanism needs at least 3 tickets, at this In embodiment, main frame and standby host example are included with Cloud Server cluster, only 2 nodes then can be by the phase Votes are hoped to be revised as 2.two_node:1, wherein, represent that Cloud Server cluster includes main frame and standby host 2 During individual node, it is only necessary to throw 1 ticket, primarily can be used for main frame.
Alternatively, authentication function can be used when Corosync is applied enabling, you can with to Corosync Using generation key.For example, can be given on primary virtual machine using corosync-keygen orders Corosync application generation key, can be stored in/etc/corosync/authkey by the key file of generation In path, then corosync key file authkey and corosync configuration file transmitted to standby With virtual machine /etc/corosync catalogues under, can then perform service corosync start and open Dynamic corosync application services, after startup is finished, can detect whether corosync normally starts.
Wherein, DRBD applications are realized with software, without sharing, and mirror image block device content deposits between server Storage replicates solution.For example, primary virtual machine and standby virtual machine can respectively separate a part of space to DRBD is managed, and master can be worked as by DRBD applications automatic synchronization to standby host standby host by being changed when the data on main frame During machine failure, operation can be written and read to identical data on standby host.
In one embodiment, the service of DRBD applications can be pre-defined and create, can be as follows with example:
Input to order in Vi command editors:
Wherein, protocol C represent to use agreement C, agreement C to represent that the write-in for receiving distance host confirms Afterwards, then it is assumed that write-in is completed.address 192.168.56.101:7898 represent to set what DRBD was applied Listening port, for being communicated with another virtual machine.address 192.168.56.102:7898 tables Show another listening port for setting DRBD to apply, for being communicated with another virtual machine.
Alternatively it is also possible to create subregion required during DRBD application synchrodatas, main frame and standby host are deposited Store up space consistent, can input to order in Vi command editors:
fdisk/dev/sdc;
drbdadm create-md mysql;
service drbd start。
And, it is the host node that DRBD is applied that can set primary virtual machine, only on primary virtual machine Input to issue orders in Vi command editors:
drbdadm--overwrite-data-of-peer primary mysql。
, can be to be inputted in Vi command editors to issue orders alternatively it is also possible to establishment file system:
mkfs-t ext4/dev/drbd0。
S13:The default monitoring script of addition, default monitoring script is used for the service for describing default High Availabitity application.
Wherein, preset and start functions, stop functions are included in monitoring script, and monitor functions.
In one embodiment, the default monitoring script of addition can example as follows:
The service of Pacemaker applications mainly has two classes, i.e. LSB services and OCF services, wherein, LSB Service as Linux standards services, be typically/etc/init.d catalogues under script.Pacemaker applications can To be serviced with LSB come start and stop service.And OCF services are the extensions serviced LSB, High Availabitity collection is added The services such as the function such as failure monitoring of group's management.In the embodiment of the present invention, by realizing that OCF services can be right Cloud management system service carries out High Availabitity guarantee.
It is alternatively possible to add default monitoring script, the default monitoring script is OCF service scripts, OCF Service script is executable file, wherein, preset and start functions, stop functions included in monitoring script, And monitor functions.
Alternatively, in start functions, Cloud Server cluster is started, and sets the time-out time to be 20s;In stop functions, Cloud Server cluster can be stopped, and set time-out time to be 20s; In monitor functions, Cloud Server cluster can be monitored, and set time-out time to be 10s, Interval time is 5s.
Alternatively, in OCF service scripts, metadata functions can be write, metadata is being performed After function, when inputting meta-data orders at Vi commard editors interface, the data of xml forms can be exported, The data of the xml forms are the metamessage that OCF is serviced.The explanation of each OCF services, parameter definition, life Order definition is all illustrated that the time-out time that can then configure metadata is 5s by the data of xml forms.
Alternatively, in OCF service scripts, validate-all can also be defined, that is, detects the conjunction of parameter Method, the validate-all of configuration time-out time is 5s.
S14:Start the service of default High Availabitity application, to perform default monitoring script, and Floating IP address be set, Connected with the High Availabitity for setting up Cloud Server cluster.
In one embodiment, start the service of default High Availabitity application, to perform default monitoring script, and set Floating IP address is put, can be as follows with example with the High Availabitity connection for setting up Cloud Server cluster:
For example, the IP address of primary virtual machine is 192.168.56.101, the IP address of standby virtual machine is 192.168.56.102, floating IP address is that virtual ip address is 192.168.56.254.
By the Vi commard editors pattern switching of primary virtual machine and standby virtual machine to crm order line edit patterns Under, use following order:
configure primitive vip ocf:heartbeat:IPaddr2\;
Params ip=192.168.56.254;
Nic=eth0;
Cidr_netmask=24;
Op start timeout=20s interval=0s on-fail=stop;
Op monitor timeout=20s interval=10s on-fail=restart;
Op stop timeout=20s interval=0s on-fail=block;
verify;
commit;
It is alternatively possible to create Cloud Server cluster service, and set the startup of Cloud Server cluster, stopping, The time-out time of monitoring.In the embodiment of the present invention, if the Cloud Server cluster on primary virtual machine is abnormal, It can be monitored by the monitor in OCF service scripts, the operation specified when then being created according to user, certainly Surely be host-initiated several times after, then be switched to standby host, be also directly switched to standby host.
In the present embodiment, by configure Cloud Server cluster primary virtual machine and standby virtual machine two-shipper it is mutual Letter mechanism, installs default High Availabitity application, and the High Availabitity application after installation is configured, and addition Default monitoring script, default monitoring script is used for the service for describing default High Availabitity application, and starting default height can With the service of application, to perform default monitoring script, and Floating IP address is set, to set up Cloud Server cluster High Availabitity is connected, and can effectively ensure the high availability of Cloud Server cluster.
Fig. 2 is the stream for the method that the Cloud Server cluster that another embodiment of the present invention is proposed sets up High Availabitity connection Journey schematic diagram.
The method that the present embodiment sets up High Availabitity connection with the Cloud Server cluster is configured as Cloud Server cluster Set up in the device of High Availabitity connection to illustrate.Wherein, the Cloud Server cluster sets up High Availabitity connection Device can be arranged in Cloud Server cluster.
The method of the present embodiment can be applied after the virtualization of Cloud Server cluster starts.
Referring to Fig. 2, this method includes:
S21:Open the virtualization of Cloud Server cluster.
For example, the virtualization of the veneer in Cloud Server cluster or main frame can be opened, opening square Formula is for example into BIOS, and virtualization is set into enable.
S22:First virtual machine is installed on the main frame of Cloud Server cluster, primary virtual machine, Yi Ji is used as Second virtual machine is installed on the standby host of Cloud Server cluster, standby virtual machine is used as.
So that the first virtual machine and the second virtual machine are Virtualbox as an example, this step can be as follows with example:
The host operating system that Cloud Server cluster can be downloaded on Virtualbox websites is corresponding Virtualbox binary system installation files, Virtualbox binary system installation files of reruning are pacified opening Guide is filled, when installing Virtualbox virtual machines, it is allowed to which user customizes VirtualBox characteristics, selection Any shortcut and designated mounting catalogue, while can install USB device driving and VirtualBox host-only network adapter.
In an embodiment of the present invention, the binary system installation file when installing Virtualbox virtual machines can be with It is VDI files, VDI files are VirtualBox hard disk mirror-image file.
Further, alternatively, the primary virtual machine of Cloud Server cluster is being created, can defined primary virtual The OS Type that the title of machine, virtual machine are enabled, for example, can select (SuSE) Linux OS, version It can be Linux 2.6/3.X (64bit), the memory size of primary virtual machine can also be set, for example, set 2048M is set to, the fixed disk file VDI for the virtual machine specified then is loaded, then created.
It can be realized in this step and be loaded directly into preprepared VDI files, without on every virtual machine Operating system is reinstalled, as long as First machine installs the operating system needed to use, then other need It is loaded directly into using the empty machine of this operating system, effectively reduces the time of installation and deployment.
Further, alternatively, before the standby virtual machine of Cloud Server cluster is created, it can be led creating With the VDI files of virtual machine, replicate again and rename the VDI files after duplication, can also set VDI files after duplication are changed to be readable, then according still further to primary virtual machine is created the step of, create again Build a standby virtual machine.
In this step, realized and virtualized by main frame and standby host, it is possible to achieve the physics money of Cloud Server cluster Source flexible dispatching, it is cross-domain shared, improve the utilization rate of resource.
S23:Set up virtual Host-only networks, and by virtual Host-only networks carry to primary virtual On machine and standby virtual machine.
Wherein, setting up virtual Host-only networks can be as follows with example:Select primary virtual machine VirtualBox In File-->Preferences-->network-->Host-only Networks courses of action, In Host-only Networks Details interface, first in the Adapter TAB pages, configuration In Adapter IP address and netmask, the present embodiment can using configuration of IP v4 addresses as 192.168.56.1, mask is 255.255.255.0, and IPv6 address wouldn't be configured, and not enabled also may be used To be configured when needing to enable to IPv6 address.Then in Host-only Networks Details DHCP Server interface in choose the check box before Enable Server, expression enables DCHCP Server, can be entered when setting up virtual machine by Dynamic Host Configuration Protocol server is come the IP address of dynamically distributes virtual machine One step, can be with the Server Address of configuration DHCP, and arranges value is 192.168.56.100, Server Mask:255.255.255.0, Lower Address Bound:192.168.56.101 (represent DHCP The initial address of server-assignment), Upper Address Bound:192.168.56.254 (represent DHCP The termination address of server-assignment), now, virtual Host-only networks vboxnet0 sets up and finished.
Further, alternatively, after virtual Host-only networks vboxnet0 sets up and finished, it can set Primary virtual machine.
For example, can be in the Setting-- in primary virtual machine>Network-->Adapter1 courses of action In, by the network interface card Attatched to of primary virtual machine:Host-only Adapter, selection Name are Vboxnet0, is then set to Allow All patterns by Promiscuous Mode, clicks on and determines, be i.e. handle The Microsoft Loopback Adapter of primary virtual machine is mounted on Host-only network plane.Alternatively it is also possible to set Standby virtual machine, repeats above-mentioned steps, and the network interface card of standby virtual machine is mounted into virtual Host-only Network.Primary virtual machine and standby virtual machine are mounted to Host-only virtual machine network interface cards, then start master When using virtual machine, the DHCP Server services on Host-only network interface cards will distribute IP address to virtual machine, From the Lower Address Bound of the virtual Host-only networks of foundation, (address is the IP address of distribution 192.168.56.100) start, pass through this step, when primary virtual machine is with the first sequence starting, DHCP Server can to primary virtual machine distribute IP address 192.168.56.101, the standby virtual machine of subsequent start-up, DHCP Server on Host-only network interface cards are serviced distributes IP address, DHCP Server to standby virtual machine Primary virtual machine distribution IP address 192.168.56.102 can be given.
In a kind of abnormality, if start standby virtual machine, DHCP Server fail to obtain eth0 Network interface card, then can delete/etc/udev/rules.d/70-persistent-net.rules after restart it is standby Virtual machine.
S24:Primary virtual machine and the name parsing of standby virtual machine hosted to Cloud Server cluster, and configure double Machine mutual confidence-building mechanism.
In one embodiment, primary virtual machine and the name parsing of standby virtual machine hosted to Cloud Server cluster Can be as follows with example:
For example, can be on the node of primary virtual machine, edit path is in Vi commard editors interface / etc/hosts files, herein below is added in hosts files:
192.168.56.101 Master.Cluster.com Master;
192.168.56.102 Slave.Cluster.com Slave;
Wherein, added in hosts files the form of content for primary virtual machine network ip address (for example, 192.168.56.101);The host name or domain name (for example, Master.Cluster.com) of primary virtual machine; The host name alias (for example, Master) of primary virtual machine.The difference of host name and domain name is, generally exists Host name is used in LAN, then by hosts files, host name is just resolved to correspondence IP address.
Meanwhile, it can be changed in Vi commard editors interface on primary virtual machine / etc/sysconfig/network files, the HOSTNAME in network files is revised as HOSTNAME=Master, in this way, is restarting the main frame of Cloud Server again, logs in primary virtual During machine, the host name of primary virtual machine can be revised as Master.
In another embodiment, Master side can be revised as according to the above-mentioned host name by primary virtual machine Method, is revised as Slave by the main frame of standby virtual machine is entitled, will not be repeated here.
, can after being parsed to the host name of primary virtual machine and standby virtual machine in another embodiment To configure two-shipper mutual confidence-building mechanism, that is, a key (key) is created, to allow all use for holding this key Family is logged in.
It is alternatively possible to set up the first SSH from primary virtual machine to standby virtual machine without password login pattern; And twoth SSH of the foundation from standby virtual machine to primary virtual machine is without password login pattern.
In another embodiment, configuration two-shipper mutual confidence-building mechanism can be as follows with example:
For example, can be on primary virtual machine using ssh-keygen orders one SSH key of establishment, and swash SSH keys living, wherein, the key that ssh-keygen orders can log in for generation ssh can be remote Without input the key of long-range primary virtual machine again during the primary virtual machines of Cheng Denglu, further input public key and close Catalogue and filename where key, can be stored under catalogue/root/.ssh, alternatively, not input mesh When record and filename, primary virtual machine can generate public key and key under current directory, subsequently input ssh and step on Password is recorded, input can not also input ssh login passwords using password during key, it is possible to achieve set up The first SSH from primary virtual machine to standby virtual machine is without password login pattern, convenient use.
And primary virtual machine /root/.ssh under generate ssh to the public key and key of primary virtual machine.Enter One step, can also copy the public key file Master_rsa.pub generated on primary virtual machine to standby virtual Machine /root/.ssh under, and the public key file Master_rsa.pub generated on primary virtual machine copied Shellfish to standby virtual machine /root/.ssh/authorized_keys in, and by authorized_keys's Authority is revised as 600, by the step in the example, can set up from primary virtual machine to standby virtual machine The first SSH without password login pattern.
Alternatively it is also possible to according to above-mentioned example, set up the 2nd SSH from standby virtual machine to primary virtual machine Without password login pattern, it will not be repeated here.
S25:The NTP time servers of Host-only networks, and configuration NTP Time-Clients end are set.
Wherein, the number at NTP Time-Clients end is identical with the number of standby virtual machine.
This step can be as follows with example:
Yum install-y ntp can be performed in Vi command editors, NTP time servers are installed, When configuring the NTP time servers of Intranet, text can be configured by Vi orders modification/etc/ntp.conf Part, increases restrict 192.168.56.1 mask newly in/etc/ntp.conf configuration files 255.255.255.0nomodify notrap, represents to set the IP address section for accessing NTP time servers, Mask etc..Further, in order line input echo " server 192.168.56.101 ">> / etc/ntp.conf, expression regard primary virtual machine as NTP time servers.
Alternatively, the NTP standard time servers on internet can also be set, and chosen distance user is nearest NTP standard time servers.Present example is assumed to implement Cloud Server cluster, Ke Yi in Shanghai The 3 NTP time servers nearest from Shanghai are configured in ntp.conf configuration files:
server 1.cn.pool.ntp.org;
server 3.asia.pool.ntp.org;
server 0.asia.pool.ntp.org。
Then, then ntp.conf configuration files are changed, be arranged on external time server it is unavailable when, enable Local time server can increase herein below as time server in ntp.conf configuration files:
server 127.127.1.0 #local clock;
fudge 127.127.1.0 #startnum 10。
To ntp.conf configuration files after setting completed, it is possible to perform ntpdate-u 1.cn.pool.ntp.org, represents that force time server and standard NTP time servers are synchronous, then, Service ntpd start orders are performed, that is, restart ntpd services.
Further, it is alternatively possible to be configured to NTP Time-Clients end.Example is as follows:
First, yum install-y ntp are performed on standby virtual machine NTP services is installed, then will NTP service configuration is self-starting, by Vi orders modification/etc/ntp.conf configuration files, can be increased newly Following content:
restrict 192.168.56.101 mask nomodify notrap;
server 192.168.56.101。
Wherein, order server 192.168.56.101 can set the IP of primary NTP time servers Address, the IP address of the Cloud Server cluster NTP time servers is 192.168.56.101, is set up Bi Hou, preserves ntp.conf configuration files.Finally, after modification is finished, ntpdate-u can be performed 192.168.56.101, that is, pass through ntpdate command forces NTP Time-Clients end and NTP time servers Synchronous, restarting NTP Time-Clients end, to start NTP Time-Clients end synchronous with NTP time servers.
S26:Default High Availabitity application is installed on primary virtual machine and standby virtual machine, and to the height after installation Useful application is configured.
In one embodiment, default High Availabitity application can be applied including Pacemaker, Corosync is applied, Crmsh is applied, and DRBD applications.
In one embodiment, default High Availabitity application is installed on primary virtual machine and standby virtual machine, and it is right High Availabitity application after installation is configured, can be as follows with example:
For example, performing order on primary virtual machine:yum install–y pacemaker corosync crmsh drbd;Pacemaker applications, Corosync applications, Crmsh applications, and DRBD are being installed After finishing, configuration Corosync applications can be first begin to, i.e., in path cd/etc/corosync Under, order scp corosync.conf.example corosync.conf are performed, that is, replicate Corosync The configuration file of application, for example can be as follows by the content of Vi command editors modification:
threads:1;
Wherein, threads is the thread started, and threads value represents to start predetermined number thread to enter Row heartbeat message is transmitted, relatively many and during when main frame multinuclear in Cloud Server clustered node, can be started multiple Thread is monitored, and 0 is default value, threads values can be revised as 1 by the present embodiment, that is, starts a line Journey carries out heartbeat message transmission.
bindnetaddr:192.168.56.0;
Wherein, bindnetaddr is the IP address section of Cloud Server cluster monitoring, by the IP address of network interface card Can be with gateway phase and, it can be deduced that the IP address in the network segment of primary virtual machine communication, the present embodiment 192.168.56.101, mask is 255.255.255.0, then with rear for 192.168.56.0.
to_logfile:yes;
Wherein, local daily record storage can be opened by to_logfile being set into yes.
logfile:/var/log/cluster/corosync.log;
Wherein it is possible to by setting logfile, the file directory for preserving local logfile be set, in reality In the application scenarios of border ,/var/log/cluster catalogues have been present, and can create/var/log/cluster Corosync.log files under catalogue.
to_syslog:yes;
Wherein, by to_syslog can set whether writing system daily record, if to_syslog set Yes is set to, then/var/log/messages can be write with system journal.
Wherein, quorum represents to enable voting mechanism, it is assumed that initial voting mechanism needs at least 3 tickets, at this In embodiment, main frame and standby host example are included with Cloud Server cluster, only 2 nodes then can be by the phase Votes are hoped to be revised as 2.two_node:1, wherein, represent that Cloud Server cluster includes main frame and standby host 2 During individual node, it is only necessary to throw 1 ticket, primarily can be used for main frame.
Alternatively, authentication function can be used when Corosync is applied enabling, you can with to Corosync Using generation key.For example, can be given on primary virtual machine using corosync-keygen orders Corosync application generation key, can be stored in/etc/corosync/authkey by the key file of generation In path, then corosync key file authkey and corosync configuration file transmitted to standby With virtual machine /etc/corosync catalogues under, can then perform service corosync start and open Dynamic corosync application services, after startup is finished, can detect whether corosync normally starts.
Wherein, DRBD applications are realized with software, without sharing, and mirror image block device content deposits between server Storage replicates solution.For example, primary virtual machine and standby virtual machine can respectively separate a part of space to DRBD is managed, and master can be worked as by DRBD applications automatic synchronization to standby host standby host by being changed when the data on main frame During machine failure, operation can be written and read to identical data on standby host.
In one embodiment, the service of DRBD applications can be pre-defined and create, can be as follows with example:
Input to order in Vi command editors:
Wherein, protocol C represent to use agreement C, agreement C to represent that the write-in for receiving distance host confirms Afterwards, then it is assumed that write-in is completed.address 192.168.56.101:7898 represent to set what DRBD was applied Listening port, for being communicated with another virtual machine.address 192.168.56.102:7898 tables Show another listening port for setting DRBD to apply, for being communicated with another virtual machine.
Alternatively it is also possible to create subregion required during DRBD application synchrodatas, main frame and standby host are deposited Store up space consistent, can input to order in Vi command editors:
fdisk/dev/sdc;
drbdadm create-md mysql;
service drbd start。
And, it is the host node that DRBD is applied that can set primary virtual machine, only on primary virtual machine Input to issue orders in Vi command editors:
drbdadm--overwrite-data-of-peer primary mysql。
, can be to be inputted in Vi command editors to issue orders alternatively it is also possible to establishment file system:
mkfs-t ext4/dev/drbd0。
S27:The default monitoring script of addition, default monitoring script is used for the service for describing default High Availabitity application.
Wherein, preset and start functions, stop functions are included in monitoring script, and monitor functions.
In one embodiment, the default monitoring script of addition can example as follows:
The service of Pacemaker applications mainly has two classes, i.e. LSB services and OCF services, wherein, LSB Service as Linux standards services, be typically/etc/init.d catalogues under script.Pacemaker applications can To be serviced with LSB come start and stop service.And OCF services are the extensions serviced LSB, High Availabitity collection is added The services such as the function such as failure monitoring of group's management.In the embodiment of the present invention, by realizing that OCF services can be right Cloud management system service carries out High Availabitity guarantee.
It is alternatively possible to add default monitoring script, the default monitoring script is OCF service scripts, OCF Service script is executable file, wherein, preset and start functions, stop functions included in monitoring script, And monitor functions.
Alternatively, in start functions, Cloud Server cluster is started, and sets the time-out time to be 20s;In stop functions, Cloud Server cluster can be stopped, and set time-out time to be 20s; In monitor functions, Cloud Server cluster can be monitored, and set time-out time to be 10s, Interval time is 5s.
Alternatively, in OCF service scripts, metadata functions can be write, metadata is being performed After function, when inputting meta-data orders at Vi commard editors interface, the data of xml forms can be exported, The data of the xml forms are the metamessage that OCF is serviced.The explanation of each OCF services, parameter definition, life Order definition is all illustrated that the time-out time that can then configure metadata is 5s by the data of xml forms.
Alternatively, in OCF service scripts, validate-all can also be defined, that is, detects the conjunction of parameter Method, the validate-all of configuration time-out time is 5s.
S28:Start the service of default High Availabitity application, to perform default monitoring script, and Floating IP address be set, Connected with the High Availabitity for setting up Cloud Server cluster.
In one embodiment, start the service of default High Availabitity application, to perform default monitoring script, and set Floating IP address is put, can be as follows with example with the High Availabitity connection for setting up Cloud Server cluster:
For example, the IP address of primary virtual machine is 192.168.56.101, the IP address of standby virtual machine is 192.168.56.102, floating IP address is that virtual ip address is 192.168.56.254.
By the Vi commard editors pattern switching of primary virtual machine and standby virtual machine to crm order line edit patterns Under, use following order:
configure primitive vip ocf:heartbeat:IPaddr2\;
Params ip=192.168.56.254;
Nic=eth0;
Cidr_netmask=24;
Op start timeout=20s interval=0s on-fail=stop;
Op monitor timeout=20s interval=10s on-fail=restart;
Op stop timeout=20s interval=0s on-fail=block;
verify;
commit;
It is alternatively possible to create Cloud Server cluster service, and set the startup of Cloud Server cluster, stopping, The time-out time of monitoring.In the embodiment of the present invention, if the Cloud Server cluster on primary virtual machine is abnormal, It can be monitored by the monitor in OCF service scripts, the operation specified when then being created according to user, certainly Surely be host-initiated several times after, then be switched to standby host, be also directly switched to standby host.
In the present embodiment, it can realize and be loaded directly into preprepared VDI files, without virtual at every Operating system is reinstalled on machine, as long as First machine installs the operating system that needs to use, then other Need to use the empty machine of this operating system to be loaded directly into, effectively reduce the time of installation and deployment.Pass through Main frame and standby host realize virtualization, it is possible to achieve the physical resource flexible dispatching of Cloud Server cluster, cross-domain common Enjoy, improve the utilization rate of resource.By setting up virtual Host-only networks, independent IP can be set, Network service can be carried out with main frame, other virtual machines, realize primary virtual machine and standby virtual machine is only accounted for With an external IP address, internal network all distributes IP address of internal network using DHCP, in Cloud Server collection Group's Expansion, can greatly save IP resources, meanwhile, externally only using an IP address, when cloud clothes During device cluster generation failure of being engaged in, user is lifted and used without changing the IP address accessed when main frame and standby host switching The usage experience at family.In addition, the default monitoring script of addition, default monitoring script is Cloud Server cluster management Member's self-defined driver write, Cloud Server cluster is started by the default monitoring script of self-defined driver write, Monitoring, stopping, can carrying out intelligence, control efficiently, safe to the monitoring of Cloud Server cluster.Pass through The primary virtual machine of Cloud Server cluster and the two-shipper mutual confidence-building mechanism of standby virtual machine are configured, installing default height can With application, and the High Availabitity application after installation is configured, and the default monitoring script of addition, preset prison Control script is used for the service for describing default High Availabitity application, starts the service of default High Availabitity application, to perform Default monitoring script, and Floating IP address is set, connected with the High Availabitity for setting up Cloud Server cluster, can be effective Ensure the high availability of Cloud Server cluster.
Fig. 3 is the knot for the device that the Cloud Server cluster that another embodiment of the present invention is proposed sets up High Availabitity connection Structure schematic diagram.Wherein, the Cloud Server cluster set up High Availabitity connection device can be arranged on Cloud Server In cluster.
Referring to Fig. 3, the device 30 includes:Parsing module 301, configuration module 302, add module 303, And starting module 304.
Parsing module 301, for the primary virtual machine to Cloud Server cluster and standby virtual machine hosted name Parsing, and configure two-shipper mutual confidence-building mechanism.
Alternatively, parsing module 301 is additionally operable to:Set up the first SSH from primary virtual machine to standby virtual machine Without password login pattern;And twoth SSH of the foundation from standby virtual machine to primary virtual machine is without password login Pattern.
Configuration module 302, for installing default High Availabitity application on primary virtual machine and standby virtual machine, And the High Availabitity application after installation is configured.
Add module 303, for adding default monitoring script, default monitoring script can for describing default height With the service of application.
Wherein, preset and start functions, stop functions are included in monitoring script, and monitor functions.
Starting module 304, the service for starting default High Availabitity application, to perform default monitoring script, And Floating IP address is set, connected with the High Availabitity for setting up Cloud Server cluster.
Alternatively, referring to Fig. 4, the device 30 also includes:
Module 305 is installed, for installing the first virtual machine on the main frame of Cloud Server cluster, as primary Virtual machine, and the second virtual machine is installed on the standby host of Cloud Server cluster, it is used as standby virtual machine.
Module 306 is set up, for setting up virtual Host-only networks, and by virtual Host-only networks On carry to primary virtual machine and standby virtual machine.
Setup module 307, the NTP time servers for setting Host-only networks, and configuration NTP Time-Client end.
Wherein, the number at NTP Time-Clients end is identical with the number of standby virtual machine.
Opening module 308, the virtualization for opening Cloud Server cluster.
It should be noted that the explanation of the foregoing embodiment of the method that High Availabitity connection is set up to Cloud Server cluster Illustrate that the Cloud Server cluster for being also applied for the embodiment sets up the device 30 of High Availabitity connection, its realization principle Similar, here is omitted.
In the present embodiment, by configure Cloud Server cluster primary virtual machine and standby virtual machine two-shipper it is mutual Letter mechanism, installs default High Availabitity application, and the High Availabitity application after installation is configured, and addition Default monitoring script, default monitoring script is used for the service for describing default High Availabitity application, and starting default height can With the service of application, to perform default monitoring script, and Floating IP address is set, to set up Cloud Server cluster High Availabitity is connected, and can effectively ensure the high availability of Cloud Server cluster.
It should be noted that in the description of the invention, term " first ", " second " etc. are only used for retouching Purpose is stated, and it is not intended that indicating or implying relative importance.In addition, in the description of the invention, removing Non- to be otherwise noted, " multiple " are meant that two or more.
Any process described otherwise above or method description are construed as in flow chart or herein, table Show including it is one or more be used for realize specific logical function or process the step of executable instruction code Module, fragment or part, and the preferred embodiment of the present invention scope include other realization, its In can not by order that is shown or discussing, including according to involved function by it is basic and meanwhile in the way of or In the opposite order, perform function is carried out, this should be by embodiments of the invention person of ordinary skill in the field Understood.
It should be appreciated that each several part of the present invention can be realized with hardware, software, firmware or combinations thereof. In the above-described embodiment, multiple steps or method can in memory and by suitable instruction be held with storage The software or firmware that row system is performed are realized.If for example, realized with hardware, and in another embodiment party It is the same in formula, it can be realized with any one of following technology well known in the art or their combination:Have For the discrete logic for the logic gates that logic function is realized to data-signal, with suitable combination The application specific integrated circuit of logic gates, programmable gate array (PGA), field programmable gate array (FPGA) Deng.
Those skilled in the art are appreciated that to realize the whole or portion that above-described embodiment method is carried It can be by program step by step to instruct the hardware of correlation to complete, described program can be stored in a kind of meter In calculation machine readable storage medium storing program for executing, the program upon execution, including one or a combination set of the step of embodiment of the method.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing module, Can also be that unit is individually physically present, can also two or more units be integrated in a module In.Above-mentioned integrated module can both be realized in the form of hardware, it would however also be possible to employ software function module Form is realized.If the integrated module is realized using in the form of software function module and is used as independent product Sale in use, can also be stored in a computer read/write memory medium.
Storage medium mentioned above can be read-only storage, disk or CD etc..
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", The description of " specific example " or " some examples " etc. means to combine the specific spy that the embodiment or example are described Levy, structure, material or feature are contained at least one embodiment of the present invention or example.In this explanation In book, identical embodiment or example are not necessarily referring to the schematic representation of above-mentioned term.Moreover, retouching Specific features, structure, material or the feature stated can be in any one or more embodiments or example Combine in an appropriate manner.
Although embodiments of the invention have been shown and described above, it is to be understood that above-described embodiment It is exemplary, it is impossible to be interpreted as limitation of the present invention, one of ordinary skill in the art is the present invention's In the range of above-described embodiment can be changed, change, replace and modification.

Claims (16)

1. a kind of method that Cloud Server cluster sets up High Availabitity connection, it is characterised in that comprise the following steps:
Primary virtual machine and the name parsing of standby virtual machine hosted to Cloud Server cluster, and it is mutual to configure two-shipper Letter mechanism;
Default High Availabitity application is installed on the primary virtual machine and the standby virtual machine, and to installation after High Availabitity application configured;
The default monitoring script of addition, the default monitoring script is used for the clothes for describing the default High Availabitity application Business;
Start the service of the default High Availabitity application, to perform the default monitoring script, and floating is set IP, is connected with the High Availabitity for setting up the Cloud Server cluster.
2. the method that Cloud Server cluster as claimed in claim 1 sets up High Availabitity connection, it is characterised in that In the primary virtual machine to Cloud Server cluster and the name parsing of standby virtual machine hosted, and configure two-shipper Before mutual confidence-building mechanism, in addition to:
The first virtual machine is installed on the main frame of the Cloud Server cluster, as the primary virtual machine, with And the second virtual machine is installed on the standby host of the Cloud Server cluster, it is used as the standby virtual machine.
3. the method that Cloud Server cluster as claimed in claim 1 sets up High Availabitity connection, it is characterised in that Also include:
Set up virtual Host-only networks, and by the virtual Host-only networks carry to described primary On virtual machine and the standby virtual machine.
4. the method that Cloud Server cluster as claimed in claim 3 sets up High Availabitity connection, it is characterised in that Also include:
The NTP time servers of the Host-only networks, and configuration NTP Time-Clients end are set.
5. the method that Cloud Server cluster as claimed in claim 4 sets up High Availabitity connection, it is characterised in that The number at the NTP Time-Clients end is identical with the number of the standby virtual machine.
6. the method that Cloud Server cluster as claimed in claim 1 sets up High Availabitity connection, it is characterised in that The configuration two-shipper mutual confidence-building mechanism, including:
Set up from the primary virtual machine to the first SSH of the standby virtual machine without password login pattern;With And
Set up from the standby virtual machine to the 2nd SSH of the primary virtual machine without password login pattern.
7. the method that the Cloud Server cluster as described in claim 2 or 5 or 6 sets up High Availabitity connection, its It is characterised by, start functions, stop functions, and monitor letters is included in the default monitoring script Number.
8. the method that the Cloud Server cluster as described in claim any one of 1-7 sets up High Availabitity connection, its It is characterised by, in the primary virtual machine to Cloud Server cluster and the name parsing of standby virtual machine hosted, And before configuring two-shipper mutual confidence-building mechanism, in addition to:
Open the virtualization of the Cloud Server cluster.
9. a kind of Cloud Server cluster sets up the device of High Availabitity connection, it is characterised in that including:
Parsing module, for the primary virtual machine to Cloud Server cluster and the name parsing of standby virtual machine hosted, And configure two-shipper mutual confidence-building mechanism;
Configuration module, should for installing default High Availabitity on the primary virtual machine and the standby virtual machine With, and the High Availabitity application after installation is configured;
Add module, for adding default monitoring script, the default monitoring script is used to describe described default The service of High Availabitity application;
Starting module, the service for starting the default High Availabitity application, to perform the default monitoring pin This, and Floating IP address is set, connected with the High Availabitity for setting up the Cloud Server cluster.
10. Cloud Server cluster as claimed in claim 9 sets up the device of High Availabitity connection, its feature exists In, in addition to:
Module is installed, for installing the first virtual machine on the main frame of the Cloud Server cluster, as described Primary virtual machine, and the second virtual machine is installed on the standby host of the Cloud Server cluster, as described standby Use virtual machine.
11. Cloud Server cluster as claimed in claim 9 sets up the device of High Availabitity connection, its feature exists In, in addition to:
Module is set up, for setting up virtual Host-only networks, and by the virtual Host-only networks On carry to the primary virtual machine and the standby virtual machine.
12. Cloud Server cluster as claimed in claim 11 sets up the device of High Availabitity connection, its feature exists In, in addition to:
Setup module, the NTP time servers for setting the Host-only networks, and configuration NTP Time-Client end.
13. Cloud Server cluster as claimed in claim 12 sets up the device of High Availabitity connection, its feature exists In the number at the NTP Time-Clients end is identical with the number of the standby virtual machine.
14. Cloud Server cluster as claimed in claim 9 sets up the device of High Availabitity connection, its feature exists In the parsing module is additionally operable to:
Set up from the primary virtual machine to the first SSH of the standby virtual machine without password login pattern;With And
Set up from the standby virtual machine to the 2nd SSH of the primary virtual machine without password login pattern.
15. the Cloud Server cluster as described in claim 10 or 13 or 14 sets up the device of High Availabitity connection, Characterized in that, start functions, stop functions are included in the default monitoring script, and monitor Function.
16. the Cloud Server cluster as described in claim any one of 9-15 sets up the device of High Availabitity connection, Characterized in that, also including:
Opening module, the virtualization for opening the Cloud Server cluster.
CN201610163739.3A 2016-03-22 2016-03-22 The method and apparatus that Cloud Server cluster sets up High Availabitity connection Pending CN107222320A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610163739.3A CN107222320A (en) 2016-03-22 2016-03-22 The method and apparatus that Cloud Server cluster sets up High Availabitity connection
PCT/CN2017/077738 WO2017162173A1 (en) 2016-03-22 2017-03-22 Method and device for establishing connection of cloud server cluster

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610163739.3A CN107222320A (en) 2016-03-22 2016-03-22 The method and apparatus that Cloud Server cluster sets up High Availabitity connection

Publications (1)

Publication Number Publication Date
CN107222320A true CN107222320A (en) 2017-09-29

Family

ID=59899330

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610163739.3A Pending CN107222320A (en) 2016-03-22 2016-03-22 The method and apparatus that Cloud Server cluster sets up High Availabitity connection

Country Status (2)

Country Link
CN (1) CN107222320A (en)
WO (1) WO2017162173A1 (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107729183A (en) * 2017-10-12 2018-02-23 郑州云海信息技术有限公司 A kind of method and system backed up by FC agreements with recovering linux operating systems
CN108347472A (en) * 2018-01-12 2018-07-31 网宿科技股份有限公司 Configuration method, Cloud Server, cloud platform and the readable storage medium storing program for executing of IP address
CN108650142A (en) * 2018-07-17 2018-10-12 青岛海信智慧家居系统股份有限公司 The control method and device of multiple gateway equipment in intelligent domestic system
CN108804038A (en) * 2018-05-29 2018-11-13 新华三技术有限公司 Method, apparatus, server and the computer-readable medium of daily record data migration
CN109495560A (en) * 2018-11-07 2019-03-19 郑州云海信息技术有限公司 A kind of link establishing method, device, equipment and storage medium
CN109814935A (en) * 2017-11-16 2019-05-28 中标软件有限公司 The extended method and architecture system of High Availabitity host
CN110502326A (en) * 2019-08-27 2019-11-26 珠海格力电器股份有限公司 The method and terminal device of cloud service scheduling and recovery based on fault detection
CN111163176A (en) * 2020-01-02 2020-05-15 山东超越数控电子股份有限公司 VirtualBox-based cluster management system
CN111538545A (en) * 2020-04-23 2020-08-14 京东方科技集团股份有限公司 Java application running method, device, medium and electronic equipment
CN112787795A (en) * 2019-11-07 2021-05-11 高新兴科技集团股份有限公司 Cloud server clock synchronization method, computer storage medium and electronic device
WO2021098259A1 (en) * 2019-11-24 2021-05-27 浪潮电子信息产业股份有限公司 Method, apparatus and device for determining cluster network card, and readable storage medium

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107707688A (en) * 2017-10-19 2018-02-16 杭州数梦工场科技有限公司 A kind of method and device of kubernetes clusters parsing host host name
CN108810191A (en) * 2018-07-18 2018-11-13 郑州云海信息技术有限公司 Floating IP address detection method based on OpenStack and system
CN109660381A (en) * 2018-10-25 2019-04-19 中国平安人寿保险股份有限公司 Distribution management method, device, server and storage medium
CN110932914B (en) * 2019-12-16 2023-04-07 深信服科技股份有限公司 Deployment method, deployment device, hybrid cloud system architecture and computer storage medium
CN111371880B (en) * 2020-02-28 2023-09-22 中海国盛(厦门)科技股份有限公司 Dial cloud server deployment method capable of dynamically switching IP
CN111885201B (en) * 2020-07-31 2022-11-08 中国工商银行股份有限公司 Data transmission method, device, equipment and medium
CN111966379A (en) * 2020-08-19 2020-11-20 中国人民解放军战略支援部队信息工程大学 Simulation web cloud service system software cluster updating method and system
CN112769922B (en) * 2020-12-31 2022-07-12 南京视察者智能科技有限公司 Device and method for self-starting micro service cluster
CN113741908A (en) * 2021-08-25 2021-12-03 杭州安恒信息技术股份有限公司 High-availability deployment method, device, electronic device and storage medium
CN113904802B (en) * 2021-09-06 2023-08-11 河南信大网御科技有限公司 Mimicry cloud application management method, communication proxy module and cloud application management module
CN113938382B (en) * 2021-10-15 2024-01-23 湖南麒麟信安科技股份有限公司 Parcemaker-based cluster management method, system and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103425645B (en) * 2012-05-14 2017-03-01 阿里巴巴集团控股有限公司 The monitoring system and method for single point of failure of database cluster
US8983961B2 (en) * 2012-11-29 2015-03-17 International Business Machines Corporation High availability for cloud servers
CN103024060B (en) * 2012-12-20 2015-05-13 中国科学院深圳先进技术研究院 Open type cloud computing monitoring system for large scale cluster and method thereof
CN103812699A (en) * 2014-02-17 2014-05-21 无锡华云数据技术服务有限公司 Monitoring management system based on cloud computing

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107729183A (en) * 2017-10-12 2018-02-23 郑州云海信息技术有限公司 A kind of method and system backed up by FC agreements with recovering linux operating systems
CN109814935A (en) * 2017-11-16 2019-05-28 中标软件有限公司 The extended method and architecture system of High Availabitity host
CN108347472A (en) * 2018-01-12 2018-07-31 网宿科技股份有限公司 Configuration method, Cloud Server, cloud platform and the readable storage medium storing program for executing of IP address
CN108347472B (en) * 2018-01-12 2021-04-09 网宿科技股份有限公司 Configuration method of IP address, cloud server, cloud platform and readable storage medium
CN108804038A (en) * 2018-05-29 2018-11-13 新华三技术有限公司 Method, apparatus, server and the computer-readable medium of daily record data migration
CN108650142A (en) * 2018-07-17 2018-10-12 青岛海信智慧家居系统股份有限公司 The control method and device of multiple gateway equipment in intelligent domestic system
CN109495560A (en) * 2018-11-07 2019-03-19 郑州云海信息技术有限公司 A kind of link establishing method, device, equipment and storage medium
CN109495560B (en) * 2018-11-07 2021-06-29 郑州云海信息技术有限公司 Link establishment method, device, equipment and storage medium
CN110502326A (en) * 2019-08-27 2019-11-26 珠海格力电器股份有限公司 The method and terminal device of cloud service scheduling and recovery based on fault detection
CN112787795A (en) * 2019-11-07 2021-05-11 高新兴科技集团股份有限公司 Cloud server clock synchronization method, computer storage medium and electronic device
WO2021098259A1 (en) * 2019-11-24 2021-05-27 浪潮电子信息产业股份有限公司 Method, apparatus and device for determining cluster network card, and readable storage medium
US11979368B2 (en) 2019-11-24 2024-05-07 Inspur Electronic Information Industry Co., Ltd. Method, apparatus and device for determining cluster network card, and readable storage medium
CN111163176A (en) * 2020-01-02 2020-05-15 山东超越数控电子股份有限公司 VirtualBox-based cluster management system
CN111538545A (en) * 2020-04-23 2020-08-14 京东方科技集团股份有限公司 Java application running method, device, medium and electronic equipment

Also Published As

Publication number Publication date
WO2017162173A1 (en) 2017-09-28

Similar Documents

Publication Publication Date Title
CN107222320A (en) The method and apparatus that Cloud Server cluster sets up High Availabitity connection
US11212286B2 (en) Automatically deployed information technology (IT) system and method
US11855904B2 (en) Automated migration of compute instances to isolated virtual networks
US10523513B2 (en) Automated configuration of switch zones in a switch fabric
JP6630792B2 (en) Manage computing sessions
CN104956332B (en) Method, storage medium and computing system for managing computing resources
EP2932387B1 (en) Deploying a hardware inventory as a cloud-computing stamp
US20070258388A1 (en) Virtual server cloning
US20220174096A1 (en) Automatically Deployed Information Technology (IT) System and Method with Enhanced Security
US11941406B2 (en) Infrastructure (HCI) cluster using centralized workflows
US9495486B1 (en) Methods and apparatus for SAN environment simulation
CN112099913A (en) Method for realizing safety isolation of virtual machine based on OpenStack
US8819200B2 (en) Automated cluster node configuration
US9774600B1 (en) Methods, systems, and computer readable mediums for managing infrastructure elements in a network system
JP2023546907A (en) System and method for automatic clustering of clusterable services
KR101978596B1 (en) cloud node for network services of virtual customer premises equipment
Khalel et al. Enhanced load balancing in kubernetes cluster by minikube
US20140047083A1 (en) Administration information generation method, administration information generation program, and administration information generation device
Dell Proven Solutions Guide: EMC Infrastructure for VMware View 5.1 EMC VNX Series (NFS), VMware vSphere 5.0, VMware View 5.1, VMware View Storage Accelerator, VMware View Persona Management, VMware View Composer 3.0
Vetter et al. IBM Power Systems HMC Implementation and Usage Guide
JP7440747B2 (en) Information processing equipment, information processing system, and network communication confirmation method
CN113938382B (en) Parcemaker-based cluster management method, system and storage medium
US20230336407A1 (en) Automated server restoration construct for cellular networks
US20110060815A1 (en) Automatic attachment of server hosts to storage hostgroups in distributed environment
CN115484164A (en) Method and system for deploying a production system in a virtualized environment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20170929

WD01 Invention patent application deemed withdrawn after publication