CN106972962A - Collocation method, the apparatus and system of high-availability cluster - Google Patents

Collocation method, the apparatus and system of high-availability cluster Download PDF

Info

Publication number
CN106972962A
CN106972962A CN201710174138.7A CN201710174138A CN106972962A CN 106972962 A CN106972962 A CN 106972962A CN 201710174138 A CN201710174138 A CN 201710174138A CN 106972962 A CN106972962 A CN 106972962A
Authority
CN
China
Prior art keywords
configuration
availability cluster
renewal
direct
availability
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
CN201710174138.7A
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.)
Beijing Kuang En Network Technology Co Ltd
Original Assignee
Beijing Kuang En Network Technology Co Ltd
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 Beijing Kuang En Network Technology Co Ltd filed Critical Beijing Kuang En Network Technology Co Ltd
Priority to CN201710174138.7A priority Critical patent/CN106972962A/en
Publication of CN106972962A publication Critical patent/CN106972962A/en
Pending legal-status Critical Current

Links

Classifications

    • 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/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • H04L41/0886Fully automatic configuration
    • 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/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0806Configuration setting for initial configuration or provisioning, e.g. plug-and-play

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Automation & Control Theory (AREA)
  • Hardware Redundancy (AREA)

Abstract

This disclosure relates to HA deployment techniques, it is on a kind of collocation method of high-availability cluster, apparatus and system, solve under the resource constrained environments such as industrial control equipment, high-availability cluster automatically configures problem, the high-availability cluster is provided with special interface, the special interface is configuration tool and the interactive interface of the high-availability cluster, and methods described includes:When receiving the configuring request of high-availability cluster, the current configuration information of the high-availability cluster is sent to by the configuration tool by the special interface;Configuration-direct from the configuration tool is received by the special interface;Renewal configuration data in the configuration-direct carries out initial configuration to the high-availability cluster.The disclosure is suitable for the configuration process of high-availability cluster.

Description

Collocation method, the apparatus and system of high-availability cluster
Technical field
This disclosure relates to HA (High Availability, high availability) deployment techniques, more particularly to high-availability cluster Collocation method, apparatus and system.
Background technology
In correlation technique, MW-HA (the security control platform of HA configurations, wherein, HA is High Availability, Gao Ke With cluster) the High Availabitity function of being provided for security control platform is provided, it can build cluster on two security control platforms, carry For virtual IP address, using the interface as external user or equipment access, so that the state and correlation of HA software supervisions node internally The state of resource, realizes the failure migration (failover) of resource.
At present, in terms of HA automatically disposes, automatically dispose instrument is typically all used.Common automatically dispose instrument There are puppet, chef, saltstack and ansible etc..Using automatically dispose instrument configure group system when, it is necessary to phase The configuration information of pass is write in associated profile, and automatic deployment server can read these configuration informations, be then applied to by Control on server.Puppet, chef and saltstack can on Managed Servers installation agent (agent), agent receive come Configured to the configuration-direct of automatically dispose server, and then to Managed Servers;And ansible uses ssh (Secure Shell, safety shell protocol) directly execution relevant configuration instruction on Managed Servers is logged on, realize to Managed Servers Configuration.
However, automatically dispose instrument is more complicated in itself, and suitable for large-scale application scenarios such as cloud computing environments, and The configuration of the software do not supported for it, such as NTP is, it is necessary to which user oneself writes the application plug-in of correlation to realize the automatic portions of HA Administration, therefore, existing automatically dispose instrument is not suitable for resource-constrained industrial control equipment.
The content of the invention
To overcome problem present in correlation technique, the disclosure provide a kind of collocation method of high-availability cluster, device and System.
According to the first aspect of the embodiment of the present disclosure, there is provided a kind of collocation method of high-availability cluster, the High Availabitity collection Group is provided with special interface, and the special interface is configuration tool and the interactive interface of the high-availability cluster, methods described bag Include:
When receiving the configuring request of high-availability cluster, by the special interface by the current of the high-availability cluster Configuration information is sent to the configuration tool;
Configuration-direct from the configuration tool is received by the special interface, the configuration-direct is the configuration The instruction that instrument is generated according to the current configuration information, and include renewal configuration data;And
Renewal configuration data in the configuration-direct carries out initial configuration to the high-availability cluster.
Further, methods described also includes:
Before the renewal configuration data in the configuration-direct carries out initial configuration to the high-availability cluster, school The legitimacy for the IP address tested in the current configuration information of high-availability cluster;And
The renewal configuration data in the configuration-direct carries out initial configuration bag to the high-availability cluster Include:
When it is determined that the IP address in the current configuration information is legal, the renewal configuration number in the configuration-direct Initial configuration is carried out according to the high-availability cluster.
Further, methods described also includes:
When it is determined that the IP address in the current configuration information is legal, store the high-availability cluster is currently configured letter Breath.
Further, methods described also includes:
Before the renewal configuration data in the configuration-direct carries out initial configuration to the high-availability cluster, inspection The environmental resource of the high-availability cluster is surveyed, with the availability for the environmental resource for determining the high-availability cluster;
The renewal configuration data in the configuration-direct carries out initial configuration bag to the high-availability cluster Include:
When it is determined that the environmental resource of the high-availability cluster is available, the renewal configuration data in the configuration-direct Initial configuration is carried out to the high-availability cluster;
Wherein, the environmental resource of the detection high-availability cluster it is following at least one:
Whether the physics block devices that whether secondary node that detects the high-availability cluster is online, detection DRBD needs are in Normal operating conditions, the availability of the heartbeat port of the detection high-availability cluster and the availability for detecting virtual IP address.
Further, the configuration-direct includes the dependence environmental information of the renewal of the high-availability cluster, the basis Renewal configuration data in the configuration-direct carries out initial configuration to the high-availability cluster to be included:
According to the dependence environmental information of the renewal, initialize the high-availability cluster is currently relied upon environmental information,
Wherein, the dependence environmental information of the renewal includes basic software, the basic software of the high-availability cluster Operation directory information, user right information, at least one in history log information.
Further, the high-availability cluster includes primary node and secondary node, and the configuration-direct includes what is updated Time synchronization agreement,
The renewal configuration data in the configuration-direct carries out initial configuration bag to the high-availability cluster Include:It is the time synchronization service of the primary node and secondary node configuration according to the time synchronization agreement of the renewal, So that the time synchronized of the primary node and secondary node.
Further, the high-availability cluster includes primary node and secondary node, and the configuration-direct includes what is updated DBRD block devices,
The renewal configuration data in the configuration-direct carries out initial configuration bag to the high-availability cluster Include:
According to the DBRD block devices of the renewal, the current DRBD blocks for initializing the primary node and secondary node are set It is standby.
Further, methods described also includes:
Initial configuration is carried out to the high-availability cluster in the renewal configuration data in the configuration-direct Afterwards, the renewal configuration data that configuration is completed is detected;
When detecting the renewal configuration data appearance exception that configuration is completed, the renewal of the high-availability cluster is matched somebody with somebody Data modification is put for the current configuration information.
According to the second aspect of the embodiment of the present disclosure, there is provided a kind of configuration device of high-availability cluster, the High Availabitity collection Group is provided with special interface, and the special interface is configuration tool and the interactive interface of the high-availability cluster, described device bag Include:
Transmitting element, for when receiving the configuring request of high-availability cluster, by the special interface by the height The current configuration information of availability cluster is sent to the configuration tool;
Receiving unit, for receiving the configuration-direct from the configuration tool, the configuration by the special interface The instruction generated for the configuration tool according to the current configuration information is instructed, and includes renewal configuration data;And
Dispensing unit, is carried out initial for the renewal configuration data in the configuration-direct to the high-availability cluster Change configuration.
According to the third aspect of the embodiment of the present disclosure there is provided a kind of configuration system of high-availability cluster, including it is described above High-availability cluster configuration device, special interface and configuration tool, wherein, special interface is the configuration tool and the height The interactive interface of availability cluster, the configuration tool is used to be referred to according to the generation configuration of the current configuration information of the high-availability cluster Order, and sent the configuration-direct to high-availability cluster by the special interface, to match somebody with somebody to the high-availability cluster Put.
The technical scheme provided by this disclosed embodiment can include the following benefits:It is resource-constrained in industrial control equipment etc. In the environment of, automatically configuring for high-availability cluster is realized, whole configuration process is without system manager's manual intervention.
It should be appreciated that the general description of the above and detailed description hereinafter are only exemplary and explanatory, not The disclosure can be limited.
Brief description of the drawings
Accompanying drawing herein is merged in specification and constitutes the part of this specification, shows the implementation for meeting the present invention Example, and for explaining principle of the invention together with specification.
Fig. 1 is a kind of flow chart of the collocation method of high-availability cluster according to an exemplary embodiment;
Fig. 2 is a kind of overall logic framework of the collocation method of high-availability cluster according to an exemplary embodiment Figure;
Fig. 3 is a kind of general technical framework of the collocation method of high-availability cluster according to an exemplary embodiment Figure;
Fig. 4 is a kind of configuration device structured flowchart of high-availability cluster according to an exemplary embodiment;
Fig. 5 is a kind of configuration system block diagram of high-availability cluster according to an exemplary embodiment.
Embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in embodiment do not represent and the consistent all embodiments of the present invention.On the contrary, they be only with it is such as appended The example of the consistent apparatus and method of some aspects be described in detail in claims, the present invention.
It will be appreciated by persons skilled in the art that high-availability cluster (hereafter with its English abbreviation HA) configuration is related to System kernel, system software, application software etc. it is more, for example, network where linux kernel, linux system can be related to, The system services such as route, load balancing, also relate to HA heartbeats software, HA resource management softwares etc..By two nodes Various functions are configured to a mutually coordinated HA system, it is necessary to which many system services, application software etc. are matched somebody with somebody in detail Put, therefore, HA configurations are a more complicated system processing engineerings.
There is provided special interface for the collocation method of progress automatic deployment in a kind of initialization procedure for HA of disclosure offer (for example, REST API), configuration tool (coming from third party system) can be interacted by special interface with HA systems, to obtain The current configuration information of HA systems is taken, and new configuration information is generated according to current configuration information, so as to match somebody with somebody confidence according to new Breath initialization or the configuration information of modification HA systems.
In order that those skilled in the art can clearly and accurately understand the technical scheme of the disclosure, real to the disclosure Apply before example is described in detail, the structural framing in HA systems is described in detail with reference to accompanying drawing first below.
There is provided the overall logic Organization Chart of the HA systems according to an exemplary embodiment as shown in Figure 2.HA systems Four parts can be included, respectively data backup layer, node administration layer, SML, HA status monitorings and automatically Recovery module.
1) data backup layer:It is responsible for the data syn-chronization of host node backuping to secondary node, while safeguarding secondary node Whether the state of data backup, such as data are still not synchronous in updating, or fissure.And broken down in host node When, host node is automatically switched to original secondary node, then proceedes to provide data sharing service.
2) node administration layer:It is communicated by heartbeat data, and heartbeat data will ensure the reliability of height, so that it is guaranteed that often The correctness of individual node state, in host node failure, can properly migrate service at normal node (such as standby section Point) on.On the basis of correct heartbeat data, HA softwares can record the state of each node, normal or go offline, and constantly and Each node state of Shi Gengxin.
3) SML:For managing each HA resource (for example, system service of HA softwares management), selection is correct Node deployment resource, in node failure, by HA resource migrations to normal node.In the disclosure, HA resources can include:It is empty Intend IP, mysql services, other systems service, kafka etc..
In addition, SML can also possess the function of detection external network, for example, when the external network of individual node It is abnormal, and another node external network it is normal when, can be by HA resource migrations to the normal node of external network.
4) HA status monitorings and automatic recovery module:The shape of each system service can be monitored with periodic detection or in real time State, when system service occurs abnormal, can control abnormal system service to recover normal operating conditions.HA systems are often transported The multiple system services of row, and the stability dependency of HA systems in these system services, therefore in HA systems, supervise by configuration HA states Survey and automatic recovery module, it can be ensured that the normal operation of system service.
Based on the structural framing of above-mentioned HA systems, the disclosure provides a kind of be used for being related in the structural framing of above-mentioned HA systems And the method that is configured such as system service, application software, management software, the collocation method provided by the disclosure, HA systems System can realize each function of its four parts, so as to ensure that HA systems are normally run.Below in conjunction with accompanying drawing pair The technical scheme of the disclosure is described in detail.
Fig. 1 is a kind of flow chart of the collocation method of high-availability cluster according to an exemplary embodiment.Such as Fig. 1 institutes Show, the collocation method of the high-availability cluster comprises the following steps:
In step s 11, can by the height by the special interface when receiving the configuring request of high-availability cluster The configuration tool is sent to the current configuration information of cluster.
High-availability cluster is provided with special interface, and the special interface is configuration tool to be interacted with the high-availability cluster Interface, wherein, special interface is the outside REST interfaces (Rest API) of high-availability cluster.REST interfaces can connect for interactive mode Mouth or directly on-demand interface, interactive interface send data using GET modes, and direct on-demand interface is used POST modes send data, in the disclosed embodiments, according to the form of interface corresponding mode can be selected to send HA systems The current configuration information of system.
In certain embodiments, before the current configuration information of HA systems is sent to configuration tool, HA systems can be obtained The current configuration information of system.By taking the HA configurations based on linux system as an example, by pre-defining an acquisition of information function, example Such as it is getHaConfig, by calling getHaConfig to obtain the current configuration information of HA systems.
It (is the universal data access interface of HA systems, such as in main section that current configuration information, which can include virtual ip address, During point failure, host node is switched into secondary node under the control of SML, external system or third party system can With by the virtual ip address have access to switching after host node), virtual ip address bind the network port.In host node and standby In the HA systems configured with node, system service can move to another node from a node, and the IP of each node Location is simultaneously differed, for the unified IP address for externally providing service, in HA systems, can be in service port (i.e. virtual IP address The network port of location binding) binding one IP address, i.e. virtual ip address.In system service secondary node is moved to from host node When, virtual ip address also will migrate on secondary node, in this way, for external callers, passing through virtual ip address Persistently use system service.
Current configuration information can also include the IP address, the redundancy IP address of host node, the IP of secondary node of host node Address, the redundancy IP address of secondary node and the gateway address for detecting external network.
In further embodiments, after the current configuration information of HA systems is obtained, current configuration information can be verified In IP address legitimacy, to determine whether HA systems can carry out normal data interaction, think that follow-up configuration process is carried For ensureing.For example, can be by calling pre-defined verification function (being, for example, HaConfigService) to realize to currently matching somebody with somebody The verification of IP address in confidence breath.Wherein, verification function (being, for example, HaConfigService) is the backstage for configuring HA Service entrance, is integrated with the related all configuration services of HA systems, so that configuration tool can be by calling HaConfigService interface is to call configuration service therein.It can be inserted in HaConfigService including Validate Part and Save plug-in units, Validate plug-in units can be used for the legitimacy for verifying the IP address of HA systems, and Save plug-in units are used for Validate plug-in units determine the IP address of HA systems it is legal when, store HA systems current configuration information.
In step s 12, the configuration-direct from the configuration tool is received by the special interface, the configuration refers to The instruction generated for the configuration tool according to the current configuration information is made, and includes renewal configuration data.
Update configuration data for example can include HA systems rely on environmental data, HA systems basic software (e.g., DRBD, corosync, pacemaker, LVS, route synchronization software and IPtables synchronizing softwares), NTP service, DRBD blocks Equipment, management resource of HA systems (e.g., virtual IP address, DRBD resources, mysql services) etc..
Wherein, data storage can be divided into two major classes, and a kind of to be stored for the file based on file system, another is to be based on Binary piece of storage, in the disclosed embodiments, DRBD block devices are that there is provided in two for a module in linux kernel Data syn-chronization between block physical disk, but be not that file system synchronization (mention, and the embodiment of the present disclosure is real using ssh by rear extended meeting Existing file synchronization), binary data can be managed based on binary system, most common form is in disk and cloud computing volume。
Configuration tool can generate the renewal configuration data corresponding to current configuration information, example according to current configuration information IP address that such as can be in current configuration information, determines current primary node and secondary node, so that IP address pair will be generated The related configuration data of node is answered, enters to be about to configuration data to be packaged into configuration-direct.Except updating configuration data in configuration-direct Outside, can also including virtual ip address etc. information, so as to access corresponding HA systems, and host node and standby section in HA systems Point.
In step s 13, the renewal configuration data in the configuration-direct carries out initial to the high-availability cluster Change configuration.
In this step, high-availability cluster can progressively be initialized according to configuration data is updated.Exemplarily, first, The environmental data that can be relied on according to the HA systems updated in configuration data carries out environment configurations, for example, creating running software mesh Record, modification set user right, initialization correlation log file etc., and then, the basic software of HA systems can be configured, And configure the management resource of HA systems, system service etc..
In certain embodiments, the dependence environmental information of the renewal of configuration-direct including high-availability cluster, this step can be with Perform and be:According to the dependence environmental information of the renewal, initialize the high-availability cluster is currently relied upon environmental information, its In, the dependence environmental information of the renewal includes the basic software of the high-availability cluster, the operation catalogue of the basic software At least one in information, user right information, history log information.Exemplarily, HaConfigService is called DependancyConfigurator initialization HA is relied on, and prepareRuntimeDiractories can create HA dependency basis The operation catalogue that plinth software needs, config_dependies can configure related HA basic softwares, including DRBD, Corosync, pacemaker, LVS, route synchronization, iptables synchronizations etc..
In certain embodiments, the high-availability cluster includes primary node and secondary node, and the configuration-direct includes The time synchronization agreement (NTP) of renewal, this step, which can be performed, is:It is institute according to the time synchronization agreement of the renewal The time synchronization service of primary node and secondary node configuration is stated, so that the time of the primary node and secondary node is same Step.Exemplarily, the NTP that HaConfigService calls NtpServiceConfigurator to configure main-standby nodes is serviced, main The NTP services of node are a typical NTP server, and the NTP services of secondary node are configured regular to the NTP of host node Synchronous, synchronizing cycle is, for example, one hour.
In further embodiments, high-availability cluster includes primary node and secondary node, and configuration-direct includes what is updated DBRD block devices, this step, which can be performed, is:According to the DBRD block devices of the renewal, the primary node is initialized and standby The current DRBD block devices of node.Exemplarily, HaConfigService call DRBDDeviceConfigurator configuration, DRBD block devices are initialized, init_drbd can configure DRBD according to HaConfig configuration information, and ensure_mknode can be true Device file/the dev/drbd0 for protecting DRBD block devices can be created correctly, so as to allow other application or system service can be with It is normal to access DRBD block devices.
In order to make it easy to understand, letter will be carried out to configuration informations such as the basic software of the foregoing HA systems being related to, management resources Describe:
Corosyn for HA systems heartbeat data basis there is provided the resource state detection function to each node.It is given tacit consent to It is set to heartbeat data and passes through multicast transmission;
Pacemaker is the resource management layer of HA systems, for monitoring, managing DRBD, mysql, lvs load balancing and void Intend IP migration;
DRBD be a module of linux kernel there is provided the data syn-chronization between two on network piece physical disk, It should be noted that DRBD is block device synchronization rather than file system synchronization.It can be understood as DRBD and be namely based on network RAID.Current DRBD configurations are active-standby modes, and host node can write, and standby DRBD is from host node synchrodata.DRBD master Standby identity is managed by pacemaker, and pacemaker can adjust active and standby identity according to the state of each node;
Mysql is database service, is only started on DRBD host nodes, after DRBD host node is migrated, mysql Service can be migrated simultaneously.
Information exchange between high-availability cluster and configuration tool is carried out by special interface, without pacifying on industrial control equipment Fill the third party system or third party's client for HA system configurations, it is to avoid take the limited resource ring of industrial control equipment Border, so as under for resource constrained environments such as industrial control equipments, realize automatically configuring for high-availability cluster, and entirely configured Cheng Wuxu system manager's manual interventions, the human cost and allocative efficiency reduced in configuration process is high.
The embodiment of the present disclosure is exactly to realize automatically configuring for high-availability cluster, and set automatically correlation system service and Various basic softwares, and the relevant configuration information of high-availability cluster can be initialized in the process of running, while improving special Stationary interface REST API, facilitate the interface interchange of third party system.
Fig. 3 is a kind of flow chart of the collocation method of high-availability cluster according to an exemplary embodiment.Such as Fig. 3 institutes Show, the collocation method of the high-availability cluster comprises the following steps:
As shown in figure 3, the correlation timing figure with reference to shown in Fig. 3, methods described includes the following steps shown in Fig. 3:
, can by the height by the special interface when receiving the configuring request of high-availability cluster in step S61 The configuration tool is sent to the current configuration information of cluster.
In step S62, the configuration-direct from the configuration tool is received by the special interface, the configuration refers to The instruction generated for the configuration tool according to the current configuration information is made, and includes renewal configuration data.
In step S63, the environmental resource of the high-availability cluster is detected, is provided with the environment for determining the high-availability cluster The availability in source.
HaEnvironmentValidator can be called to examine the availability of HA environment.
Wherein, the environmental resource of the detection high-availability cluster it is following at least one:Detect the high-availability cluster The physics block devices that whether check_backup secondary nodes online, check_disk_config detections DRBD needs whether The availability and check_ of the heartbeat port of the high-availability cluster are detected in normal operating conditions, check_ha_intf Vip detects the availability of virtual IP address.
In step S64, when it is determined that the environmental resource of the high-availability cluster is available, according in the configuration-direct Update configuration data and initial configuration is carried out to the high-availability cluster.
In step S65, the high-availability cluster is entered in the renewal configuration data in the configuration-direct After row initial configuration, the renewal configuration data that configuration is completed is detected.
In step S66, when detecting the renewal configuration data appearance exception that configuration is completed, by the High Availabitity The renewal configuration data of cluster is revised as the current configuration information.
Exemplarily, HaConfigService can call HaResourceConfigurator to configure HA management Resource, including virtual IP address, DRBD resources, mysql service etc., after the completion of configuration, detection check_available can be called to examine Whether the service for surveying related HA management can use.
, can be by final step HaResourceConfigurator check_a vailable if generation is abnormal Judge.If exception occurs for whole HA initial configurations, HA configuration data can roll back to original HA Configuration Values, and remove Sell relevant configuration operation.
A kind of collocation method of high-availability cluster is also provided according to the embodiment of the disclosure one, in synchronous high-availability cluster Host node and secondary node between file, specifically, can be by the file between synchronous two nodes of ssh.At some In embodiment, HaConfigService can call the text of FileMonitor (pre-defined monitoring function) monitoring HA systems Part changes, and according to file change state, performs associative operation, for example, perform file backup operation etc..Exemplarily, can be with The function of monitoring function is realized by the inotify modules of linux kernel.
The HA that the embodiment of the present disclosure provides a lightweight automatically configures scheme, and user can be easily real by REST API The automatically configuring of existing HA, the modification of configuration parameter and HA are disabled, and whole configuration process is without system manager's manual intervention.
In addition, deployment code considers various abnormal conditions, can be by HA when whole HA initial configurations occur abnormal The configuration data of system can roll back to original HA Configuration Values, and cancel relevant configuration operation.Tool is disposed relative to general HA There is stronger fault-tolerant ability, system relies on few, and resource occupation is small.
And can realize that file is monitored by the inotify modules of linux kernel, it make use of linux system in itself Advantage, the extra functional module without setting up reduces resources occupation rate.And according to file status, then pass through ssh synchronizations HA systems File between the host node and secondary node of system, safeguard file synchronous security and real-time, and then ensure HA systems just Often operation.
Fig. 4 is a kind of configuration device structured flowchart of high-availability cluster according to an exemplary embodiment.
It should be noted that the height that the embodiment of the present disclosure is provided can be provided with special interface with cluster, the special interface is Configuration tool and the interactive interface of high-availability cluster, configuration data or configuration information can be passed by the special interface It is defeated.
A kind of reference picture 4, the configuration device 70 of high-availability cluster can include receiving unit 72, transmitting element 73 and configuration Unit 74.
Transmitting element 73 is used for when the receiving unit receives the configuring request of high-availability cluster, by described specific The current configuration information of the high-availability cluster is sent to the configuration tool by interface.
Receiving unit 72 is used to receive the configuration-direct from the configuration tool, the configuration by the special interface The instruction generated for the configuration tool according to the current configuration information is instructed, and includes renewal configuration data.
The renewal configuration data that dispensing unit 74 is used in the configuration-direct is carried out just to the high-availability cluster Beginningization is configured, and the current configuration information of the high-availability cluster is revised as into the renewal configuration data.
Information exchange between high-availability cluster device and configuration tool is carried out by special interface, for industrial control equipment etc. Under resource constrained environment, automatically configuring for high-availability cluster is realized, whole configuration process is manually done without system manager In advance.
On the device in above-described embodiment, wherein modules perform the concrete mode of operation in relevant this method Embodiment in be described in detail, explanation will be not set forth in detail herein.
Fig. 5 is a kind of configuration system block diagram of high-availability cluster according to an exemplary embodiment.
Reference picture 5, the system includes the configuration device 70 of the high-availability cluster shown in Fig. 4, special interface and (not shown in figure Go out) and configuration tool 82, wherein, the special interface is the interactive interface of the configuration tool 82 and the high-availability cluster, The configuration tool 82 is used to generate configuration-direct according to the current configuration information of the high-availability cluster, and by described specific Interface sends the configuration-direct to high-availability cluster, to be configured to the high-availability cluster.
On the system in above-described embodiment, wherein each device performs the concrete mode of operation in relevant this method Embodiment in be described in detail, explanation will be not set forth in detail herein.
Those skilled in the art will readily occur to its of the present invention after considering specification and putting into practice invention disclosed herein Its embodiment.The application be intended to the present invention any modification, purposes or adaptations, these modifications, purposes or Person's adaptations follow the general principle of the present invention and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.Description and embodiments are considered only as exemplary, and true scope and spirit of the invention are by following Claim is pointed out.
It should be appreciated that the invention is not limited in the precision architecture for being described above and being shown in the drawings, and And various modifications and changes can be being carried out without departing from the scope.The scope of the present invention is only limited by appended claim.

Claims (10)

1. a kind of collocation method of high-availability cluster, it is characterised in that the high-availability cluster is provided with special interface, the spy Stationary interface is configuration tool and the interactive interface of the high-availability cluster, and methods described includes:
When receiving the configuring request of high-availability cluster, pass through the special interface being currently configured the high-availability cluster Information is sent to the configuration tool;
Configuration-direct from the configuration tool is received by the special interface, the configuration-direct is the configuration tool The instruction generated according to the current configuration information, and include renewal configuration data;And
Renewal configuration data in the configuration-direct carries out initial configuration to the high-availability cluster.
2. collocation method according to claim 1, it is characterised in that methods described also includes:
Before the renewal configuration data in the configuration-direct carries out initial configuration to the high-availability cluster, verification is high The legitimacy of IP address in the current configuration information of availability cluster;And
The renewal configuration data in the configuration-direct carries out initial configuration to the high-availability cluster to be included:
When it is determined that the IP address in the current configuration information is legal, the renewal configuration data pair in the configuration-direct The high-availability cluster carries out initial configuration.
3. collocation method according to claim 2, it is characterised in that methods described also includes:
When it is determined that the IP address in the current configuration information is legal, the current configuration information of the high-availability cluster is stored.
4. collocation method according to claim 1, it is characterised in that methods described also includes:
Before the renewal configuration data in the configuration-direct carries out initial configuration to the high-availability cluster, institute is detected The environmental resource of high-availability cluster is stated, with the availability for the environmental resource for determining the high-availability cluster;
The renewal configuration data in the configuration-direct carries out initial configuration to the high-availability cluster to be included:
When it is determined that the environmental resource of the high-availability cluster is available, the renewal configuration data in the configuration-direct is to institute State high-availability cluster and carry out initial configuration;
Wherein, the environmental resource of the detection high-availability cluster it is following at least one:
Whether the physics block devices that whether secondary node that detects the high-availability cluster is online, detection DRBD needs are in normal Working condition, the availability of the heartbeat port of the detection high-availability cluster and the availability for detecting virtual IP address.
5. collocation method according to claim 1, it is characterised in that the configuration-direct includes the high-availability cluster The dependence environmental information of renewal, the renewal configuration data in the configuration-direct is carried out just to the high-availability cluster Beginningization configuration includes:
According to the dependence environmental information of the renewal, initialize the high-availability cluster is currently relied upon environmental information,
Wherein, the dependence environmental information of the renewal includes the basic software of the high-availability cluster, the fortune of the basic software At least one in column catalogue information, user right information, history log information.
6. the collocation method according to claim 1 or 5, it is characterised in that the high-availability cluster includes primary node And secondary node, the configuration-direct include update time synchronization agreement,
The renewal configuration data in the configuration-direct carries out initial configuration to the high-availability cluster to be included:
It is the primary node and the time synchronization clothes of secondary node configuration according to the time synchronization agreement of the renewal Business, so that the time synchronized of the primary node and secondary node.
7. collocation method according to claim 6, it is characterised in that the high-availability cluster includes primary node and standby Node, the configuration-direct includes the DBRD block devices updated,
The renewal configuration data in the configuration-direct carries out initial configuration to the high-availability cluster to be included:
According to the DBRD block devices of the renewal, the current DRBD block devices of the primary node and secondary node are initialized.
8. collocation method according to claim 1, it is characterised in that methods described also includes:
After the renewal configuration data in the configuration-direct carries out initial configuration to the high-availability cluster, The renewal configuration data that configuration is completed is detected;
When detecting the renewal configuration data appearance exception that configuration is completed, the renewal of the high-availability cluster is configured into number According to being revised as the current configuration information.
9. a kind of configuration device of high-availability cluster, it is characterised in that the high-availability cluster is provided with special interface, the spy Stationary interface is configuration tool and the interactive interface of the high-availability cluster, and described device includes:
Transmitting element, for when receiving the configuring request of high-availability cluster, by the special interface by the High Availabitity The current configuration information of cluster is sent to the configuration tool;
Receiving unit, for receiving the configuration-direct from the configuration tool, the configuration-direct by the special interface The instruction generated for the configuration tool according to the current configuration information, and include renewal configuration data;And
Dispensing unit, carries out initialization to the high-availability cluster for the renewal configuration data in the configuration-direct and matches somebody with somebody Put.
10. a kind of configuration system of high-availability cluster, it is characterised in that including:High-availability cluster as claimed in claim 9 Configuration device, special interface and configuration tool,
Wherein, the special interface is the configuration tool and the interactive interface of the high-availability cluster, and the configuration tool is used The configuration is referred according to the current configuration information of high-availability cluster generation configuration-direct, and by the special interface Order is sent to high-availability cluster, to be configured to the high-availability cluster.
CN201710174138.7A 2017-03-22 2017-03-22 Collocation method, the apparatus and system of high-availability cluster Pending CN106972962A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710174138.7A CN106972962A (en) 2017-03-22 2017-03-22 Collocation method, the apparatus and system of high-availability cluster

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710174138.7A CN106972962A (en) 2017-03-22 2017-03-22 Collocation method, the apparatus and system of high-availability cluster

Publications (1)

Publication Number Publication Date
CN106972962A true CN106972962A (en) 2017-07-21

Family

ID=59328809

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710174138.7A Pending CN106972962A (en) 2017-03-22 2017-03-22 Collocation method, the apparatus and system of high-availability cluster

Country Status (1)

Country Link
CN (1) CN106972962A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107846318A (en) * 2017-11-15 2018-03-27 郑州云海信息技术有限公司 A kind of distributed type assemblies and distributed type assemblies management method
CN108694053A (en) * 2018-05-14 2018-10-23 平安科技(深圳)有限公司 Build the method and terminal device of Kubernetes host nodes automatically based on Ansible tools
CN108769199A (en) * 2018-05-29 2018-11-06 郑州云海信息技术有限公司 A kind of distributed file storage system host node management method and device
CN109240608A (en) * 2018-08-22 2019-01-18 郑州云海信息技术有限公司 A kind of configuration information synchronous method and device
CN109814946A (en) * 2018-12-29 2019-05-28 创新科存储技术(深圳)有限公司 A kind of method and apparatus for realizing distributed storage in XenServer

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6243825B1 (en) * 1998-04-17 2001-06-05 Microsoft Corporation Method and system for transparently failing over a computer name in a server cluster
KR20030051930A (en) * 2001-12-20 2003-06-26 한국전자통신연구원 Apparatus and method for embodying high availability in cluster system
US20100162383A1 (en) * 2008-12-19 2010-06-24 Watchguard Technologies, Inc. Cluster Architecture for Network Security Processing
CN102629906A (en) * 2012-03-30 2012-08-08 浪潮电子信息产业股份有限公司 Design method for improving cluster business availability by using cluster management node as two computers

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6243825B1 (en) * 1998-04-17 2001-06-05 Microsoft Corporation Method and system for transparently failing over a computer name in a server cluster
KR20030051930A (en) * 2001-12-20 2003-06-26 한국전자통신연구원 Apparatus and method for embodying high availability in cluster system
US20100162383A1 (en) * 2008-12-19 2010-06-24 Watchguard Technologies, Inc. Cluster Architecture for Network Security Processing
CN102629906A (en) * 2012-03-30 2012-08-08 浪潮电子信息产业股份有限公司 Design method for improving cluster business availability by using cluster management node as two computers

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107846318A (en) * 2017-11-15 2018-03-27 郑州云海信息技术有限公司 A kind of distributed type assemblies and distributed type assemblies management method
CN108694053A (en) * 2018-05-14 2018-10-23 平安科技(深圳)有限公司 Build the method and terminal device of Kubernetes host nodes automatically based on Ansible tools
CN108769199A (en) * 2018-05-29 2018-11-06 郑州云海信息技术有限公司 A kind of distributed file storage system host node management method and device
CN109240608A (en) * 2018-08-22 2019-01-18 郑州云海信息技术有限公司 A kind of configuration information synchronous method and device
CN109240608B (en) * 2018-08-22 2021-08-31 郑州云海信息技术有限公司 Configuration information synchronization method and device
CN109814946A (en) * 2018-12-29 2019-05-28 创新科存储技术(深圳)有限公司 A kind of method and apparatus for realizing distributed storage in XenServer
CN109814946B (en) * 2018-12-29 2022-03-25 深圳创新科技术有限公司 Method and device for realizing distributed storage in XenServer

Similar Documents

Publication Publication Date Title
Jhawar et al. Fault tolerance and resilience in cloud computing environments
US11973643B2 (en) Distributed data storage techniques for edge devices
CN106972962A (en) Collocation method, the apparatus and system of high-availability cluster
Jhawar et al. A comprehensive conceptual system-level approach to fault tolerance in cloud computing
JP5945031B2 (en) Provision and manage replicated data instances
CN108270726B (en) Application instance deployment method and device
US9992058B2 (en) Redundant storage solution
CN108259175B (en) Distributed password service method and system
US20200026786A1 (en) Management and synchronization of batch workloads with active/active sites using proxy replication engines
US9563478B1 (en) Scalable concurrent execution of distributed workflows sharing common operations
CN106612312A (en) Virtualized data center scheduling system and method
US10057370B2 (en) Team processing using dynamic licenses
EP3442201B1 (en) Cloud platform construction method and cloud platform
CN111949444A (en) Data backup and recovery system and method based on distributed service cluster
US11799839B2 (en) Cross-regional replication of keys
CN108063783A (en) The dispositions method and device of a kind of load equalizer
CN109799998A (en) OpenStack cluster configuration and batch dispositions method and system
US20240241766A1 (en) Techniques for managing edge device provisioning
CN112035062B (en) Migration method of local storage of cloud computing, computer equipment and storage medium
CN108600156A (en) A kind of server and safety certifying method
US9485308B2 (en) Zero copy volume reconstruction
Anderson et al. Local recovery for high availability in strongly consistent cloud services
CN116192885A (en) High-availability cluster architecture artificial intelligent experiment cloud platform data processing method and system
US11290318B2 (en) Disaster recovery of cloud resources
US10193767B1 (en) Multiple available witnesses

Legal Events

Date Code Title Description
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination