CN106713458A - Zookeeper cluster deployment method, Zookeeper cluster deployment device, Zookeeper instance deployment method, Zookeeper instance deployment device, and Zookeeper cluster management platform - Google Patents

Zookeeper cluster deployment method, Zookeeper cluster deployment device, Zookeeper instance deployment method, Zookeeper instance deployment device, and Zookeeper cluster management platform Download PDF

Info

Publication number
CN106713458A
CN106713458A CN201611204400.XA CN201611204400A CN106713458A CN 106713458 A CN106713458 A CN 106713458A CN 201611204400 A CN201611204400 A CN 201611204400A CN 106713458 A CN106713458 A CN 106713458A
Authority
CN
China
Prior art keywords
zookeeper
examples
clusters
deployment
proxy server
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
CN201611204400.XA
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.)
Wise Four Seas (beijing) Technology Co Ltd
Original Assignee
Wise Four Seas (beijing) 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 Wise Four Seas (beijing) Technology Co Ltd filed Critical Wise Four Seas (beijing) Technology Co Ltd
Priority to CN201611204400.XA priority Critical patent/CN106713458A/en
Publication of CN106713458A publication Critical patent/CN106713458A/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
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1044Group management mechanisms 
    • H04L67/1046Joining mechanisms
    • 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/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • 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/133Protocols for remote procedure calls [RPC]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Mathematical Physics (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a Zookeeper cluster deployment method, a Zookeeper cluster deployment device, a Zookeeper instance deployment method, a Zookeeper instance deployment device, and a Zookeeper cluster management platform. The Zookeeper cluster deployment method comprises steps that a Zookeeper cluster configuration request of a user is received; according to the configuration request, a Zookeeper instance of a to-be-deployed Zookeeper cluster is generated; according to the Zookeeper instance, an instance creation instruction is generated, and is transmitted to the proxy server of the to-be-deployed Zookeeper cluster, and the proxy server is instructed to deploy the corresponding Zookeeper instance for starting. The proxy server is used to complete the deployment of the corresponding Zookeeper instance according to the instance creation instruction, and then the deployment of the Zookeeper cluster is completed, and therefore manpower for deploying the Zookeeper cluster is reduced, and at the same time, deployment efficiency is improved.

Description

The dispositions method of Zookeeper clusters and Zookeeper examples, device and management Platform
Technical field
The present embodiments relate to Zookeeper Clusterings, more particularly to a kind of dispositions method of Zookeeper clusters With the management platform of device, the dispositions method of Zookeeper examples and device and Zookeeper clusters.
Background technology
With the high speed development of internet, the business item for having more and more internets be deployed in distributed system it On, this causes that system business has more dependences to distributed consensus and coordination service.
Apache Zookeeper are developed by the sub-project of Apache.Apache is the world using ranking the first Web server software, it may operate on nearly all widely used computer platform, because its is cross-platform and security It is widely used, is one of most popular Web server end software.Zookeeper clusters are provided efficiently for Distributed Application And reliable distributed consensus coordination service, there is provided injection Uniform Name service, configuration management and distributed lock equal distribution The infrastructure service of formula.
Although Zookeeper clusters are more actual to solve data consistency and distribution in large scale distributed system The problem that formula is coordinated, but, in the prior art, the deployment of Zookeeper clusters can only generally lean on operation maintenance personnel to pass through basis Operation and maintenance tools carry out manually dispose, while also need to manually carry out corresponding configuration, accordingly, it would be desirable to more manpower and deployment effect Rate is relatively low.
The content of the invention
In view of this, the embodiment of the present invention provide a kind of Zookeeper clusters and Zookeeper examples dispositions method, Device and management platform, to reduce manpower and improve deployment efficiency.
In a first aspect, the embodiment of the invention provides a kind of dispositions method of Zookeeper clusters, methods described includes:
Receive configuring request of the user to Zookeeper clusters;
According to the configuring request, the Zookeeper examples of Zookeeper clusters to be disposed are generated;
According to the Zookeeper examples, generation example creates instruction, and is sent to Zookeeper clusters to be disposed Proxy server, to indicate the proxy server to dispose corresponding Zookeeper examples and start.
Second aspect, the embodiment of the present invention additionally provides a kind of deployment device of Zookeeper clusters, described device bag Include:
Configuring request receiver module, for receiving configuring request of the user to Zookeeper clusters;
Example generation module, for according to the configuring request, generating Zookeeper clusters to be disposed Zookeeper examples;
Instruction sending module is created, for according to the Zookeeper examples, generation example to create instruction, and is sent to The proxy server of Zookeeper clusters to be disposed, to indicate the proxy server to dispose corresponding Zookeeper examples simultaneously Start.
The third aspect, the embodiment of the invention provides a kind of dispositions method of Zookeeper examples, and methods described includes:
Receive the example establishment instruction that control server sends;
Created according to the example and instructed, create Zookeeper examples;
Start the Zookeeper examples.
Fourth aspect, the embodiment of the present invention additionally provides a kind of deployment device of Zookeeper examples, described device bag Include:
Command reception module is created, instruction is created for receiving the example that control server sends;
Example creation module, instructs for being created according to the example, creates Zookeeper examples;
Example starting module, for starting the Zookeeper examples.
5th aspect, the embodiment of the present invention additionally provides a kind of management platform of Zookeeper clusters, the management platform Including control server and at least three proxy servers;
The control server includes the deployment device of the Zookeeper clusters described in any embodiment of the present invention;
The proxy server includes the deployment device of the Zookeeper examples described in any embodiment of the present invention.
The technical scheme of the embodiment of the present invention, it is raw by after configuring request of the user to Zookeeper clusters is received Into the Zookeeper examples of Zookeeper clusters to be disposed, generation example creates instruction and is sent to Zookeeper to be disposed The proxy server of cluster, the deployment of corresponding Zookeeper examples is completed by proxy server, and then complete Zookeeper The deployment of cluster, so as to reduce the manpower of deployment Zookeeper clusters, while improve deployment efficiency.
Brief description of the drawings
Fig. 1 is a kind of flow chart of the dispositions method of Zookeeper clusters that the embodiment of the present invention one is provided;
Fig. 2 is a kind of flow chart of the dispositions method of Zookeeper clusters that the embodiment of the present invention two is provided;
Fig. 3 is a kind of flow chart of the dispositions method of Zookeeper clusters that the embodiment of the present invention three is provided;
Fig. 4 is a kind of structural representation of the deployment device of Zookeeper clusters that the embodiment of the present invention four is provided;
Fig. 5 is a kind of flow chart of the dispositions method of Zookeeper examples that the embodiment of the present invention five is provided;
Fig. 6 is a kind of structural representation of the deployment device of Zookeeper examples that the embodiment of the present invention six is provided;
Fig. 7 is a kind of configuration diagram of the management platform of Zookeeper clusters that the embodiment of the present invention seven is provided.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention, rather than limitation of the invention.It also should be noted that, in order to just Part rather than full content related to the present invention is illustrate only in description, accompanying drawing.
Embodiment one
Fig. 1 is a kind of flow chart of the dispositions method of Zookeeper clusters that the embodiment of the present invention one is provided, the present embodiment It is applicable to dispose the situation of Zookeeper clusters, the method can be performed by the deployment device of Zookeeper clusters, should Device can be realized that the device can be only fitted to control the deployment of Zookeeper clusters by the mode of software and/or hardware In server, the server can be described as control server.The method specifically includes following steps:
Step 110, receives configuring request of the user to Zookeeper clusters.
When user needs deployment Zookeeper clusters, can be by API (the Application Programming of browser Interface, application programming interface) configuration information of Zookeeper clusters is input into, browser is given birth to according to the configuration information Into configuring request, and control server is sent to, control server receives the configuring request.Wherein, wrapped in the configuring request Include the title and deployment information (such as Zookeeper examples quantity of deployment) of Zookeeper clusters to be disposed.
Step 120, according to the configuring request, generates the Zookeeper examples of Zookeeper clusters to be disposed.
The general service entities by more than three of Zookeeper clusters are constituted, and each service entities is required for configuration, because This, at least needs to generate three Zookeeper examples during deployment Zookeeper clusters.In specific deployment, Zookeeper realities The quantity of example can be obtained in configuring request.Control server generates Zookeeper clusters to be disposed according to configuring request The basic configuration of Zookeeper examples, so as to generate Zookeeper examples.
Step 130, according to the Zookeeper examples, generation example creates instruction, and is sent to and waits to dispose The proxy server of Zookeeper clusters, to indicate the proxy server to dispose corresponding Zookeeper examples and start.
Each Zookeeper example in one Zookeeper cluster needs to be deployed on different proxy servers, because This is sent to the proxy server of each Zookeeper example to be disposed, it is necessary to example is created into instruction, by each agency service Device completes the deployment of the Zookeeper examples on this proxy server and starts the Zookeeper examples of deployment, so as to be formed Zookeeper clusters.
Wherein, after the Zookeeper examples of a set of Zookeeper clusters are deployed on a proxy server, can be with The Zookeeper examples of others Zookeeper clusters are disposed, i.e., one proxy server can dispose many set Zookeeper The Zookeeper examples of cluster, simply in a set of Zookeeper clusters, a proxy server can only dispose the set A Zookeeper example in Zookeeper clusters.
The technical scheme of the present embodiment, by the way that after configuring request of the user to Zookeeper clusters is received, generation is treated The Zookeeper examples of the Zookeeper clusters of deployment, generation example creates instruction and is sent to Zookeeper clusters to be disposed Proxy server, complete the deployment of corresponding Zookeeper examples by proxy server, and then complete Zookeeper clusters Deployment, so as to reduce deployment Zookeeper clusters manpower, while improve deployment efficiency.
On the basis of above-mentioned technical proposal, it is also optional including:
Monitor the operation conditions of the proxy server.
Can be by the Watcher mechanism of Zookeeper come the operation conditions of monitor agent server.Wherein, Watcher It is for realizing the Main Means of the applications such as distributed lock, decentralized configuration and distributed queue in Zookeeper clusters.Pass through The operation conditions of the proxy server for monitoring, when Zookeeper clusters are disposed, can select the agency service of normal operation Device carries out the deployment of Zookeeper examples.
Embodiment two
Fig. 2 is a kind of flow chart of the dispositions method of Zookeeper clusters that the embodiment of the present invention two is provided, the present embodiment It is optimized on the basis of above-described embodiment, is further increased the Zookeeper examples of the Zookeeper clusters Information be stored in Zookeeper storage clusters.The method specifically includes following steps:
Step 210, receives configuring request of the user to Zookeeper clusters.
Step 220, according to the configuring request, generates the Zookeeper examples of Zookeeper clusters to be disposed.
Step 230, according to the Zookeeper examples, generation example creates instruction, and is sent to and waits to dispose The proxy server of Zookeeper clusters, to indicate the proxy server to dispose corresponding Zookeeper examples and start.
Step 240, Zookeeper storage collection is stored in by the information of the Zookeeper examples of the Zookeeper clusters In group.
Wherein, Zookeeper storage clusters are be specifically used to store the information of the Zookeeper clusters disposed one Cluster.
Zookeeper storage clusters are used for storing the information of the Zookeeper clusters disposed, the Zookeeper clusters Information include Zookeeper clusters in Zookeeper examples information.In specific preservation, Zookeeper storage collection Each Zookeeper in group can preserve the Zookeeper collection disposed in storing example (i.e. Zookeeper memory nodes) The information of group, it is to avoid the server for preserving Zookeeper cluster informations is delayed machine or other are abnormal and can not obtain The situation of Zookeeper cluster informations, it is ensured that high availability.
The technical scheme of the present embodiment, on the basis of above-described embodiment, by by Zookeeper clusters The information of Zookeeper examples is stored in Zookeeper storage clusters, it is ensured that the height of the information of Zookeeper clusters Availability.
Embodiment three
Fig. 3 is a kind of flow chart of the dispositions method of Zookeeper clusters that the embodiment of the present invention three is provided, the present embodiment It is optimized on the basis of above-described embodiment, further increases the Zookeeper clusters and therein to disposing The monitoring of Zookeeper examples.The method specifically includes following steps:
Step 310, receives configuring request of the user to Zookeeper clusters.
Step 320, according to the configuring request, generates the Zookeeper examples of Zookeeper clusters to be disposed.
Step 330, according to the Zookeeper examples, generation example creates instruction, and is sent to and waits to dispose The proxy server of Zookeeper clusters, to indicate the proxy server to dispose corresponding Zookeeper examples and start.
Step 340, obtains the information of the Zookeeper examples, and send state connection to the Zookeeper examples Request, is connected with asking to be set up with the Zookeeper examples.
From the save location of the information of the Zookeeper examples, a Zookeeper cluster is obtained corresponding Zookeeper examples, then the information of Zookeeper examples in the Zookeeper clusters is obtained, according to Zookeeper clusters In Zookeeper examples information in the Zookeeper clusters each Zookeeper example send state connection please Ask, Zookeeper examples can agree to connection after receiving state connection request, so that the connection between setting up, can be right Zookeeper examples in Zookeeper clusters are monitored.
Step 350, after being connected with Zookeeper examples foundation, obtains the status number of the Zookeeper examples According to being monitored with to the Zookeeper examples.
After being connected with Zookeeper examples foundation, the Zookeeper examples can be obtained by the connection Status data, such as operation conditions, to be monitored to Zookeeper examples.By in Zookeeper clusters The monitoring of Zookeeper examples, so as to monitor whole Zookeeper clusters, as can be according in a Zookeeper cluster The status data of each Zookeeper example obtains the nodes of the Zookeeper clusters, Watcher numbers.To can also monitor To the status data of Zookeeper clusters report the platform of monitoring Zookeeper clusters, such as monitoring data platform.
It should be noted that step 340 is identical with the executive agent of step 350, with step 310, step 320 and step 330 executive agent can be the same or different, preferably different, i.e. the monitoring to Zookeeper clusters and Zookeeper The deployment of cluster is completed by different servers, and such as the executive agent of step 340 and step 350 can be different from middle control clothes It is engaged in the monitoring server of device, that is caused such that it is able to avoid influencing each other interferes.
The technical scheme of the present embodiment, by obtaining the information of Zookeeper examples, and sets up with Zookeeper examples Connection, is monitored such that it is able to the state to Zookeeper examples, and then monitors the state of whole Zookeeper clusters.
On the basis of above-described embodiment, after state connection request is sent to the Zookeeper examples, further preferably Including:
When can not be set up with the Zookeeper examples be connected when, again to the Zookeeper examples send state connect Request;
If can not still be set up with the Zookeeper examples be connected, to the agency service where the Zookeeper examples Device sends example Restart Request, to ask the proxy server to restart the Zookeeper examples.
When can not be set up with some Zookeeper example be connected when, again to the Zookeeper examples send state connect Request is connect, if can not still set up connection, illustrates that the Zookeeper examples occur in that the machine of delaying etc. is abnormal, at this moment, to this Proxy server where Zookeeper examples sends example Restart Request, after proxy server receives example Restart Request, weight Newly start the Zookeeper examples, so as to realize the pull-up of abnormal Zookeeper examples.It should be noted that the preferred scheme Executive agent it is identical with the executive agent of above-mentioned steps 340 and step 350.
Example IV
Fig. 4 is a kind of structural representation of the deployment device of Zookeeper clusters that the embodiment of the present invention four is provided, this reality In the server of the deployment that the deployment device for applying the Zookeeper clusters described in example can be only fitted to control Zookeeper clusters, The server can be described as control server.As shown in figure 4, the deployment device of the Zookeeper clusters described in the present embodiment includes: Configuring request receiver module 410, example generation module 420 and establishment instruction sending module 430.
Wherein, configuring request receiver module 410, for receiving configuring request of the user to Zookeeper clusters;
Example generation module 420, for according to the configuring request, generating Zookeeper clusters to be disposed Zookeeper examples;
Instruction sending module 430 is created, for according to the Zookeeper examples, generation example to create instruction, and sends To the proxy server of Zookeeper clusters to be disposed, to indicate the proxy server to dispose corresponding Zookeeper examples And start.
Optionally, also include:
Example information memory module, for the information of the Zookeeper examples of the Zookeeper clusters to be stored in In Zookeeper storage clusters.
Optionally, also include:
Connection request sending module, the information for obtaining the Zookeeper examples, and to the Zookeeper realities Example sends state connection request, is connected with asking to be set up with the Zookeeper examples;
Monitoring module, for after being connected with Zookeeper examples foundation, obtaining the Zookeeper realities The status data of example, is monitored with to the Zookeeper examples.
Optionally, also include:
Connection request retransmit module, for the Zookeeper examples send state connection request after, when with institute When stating Zookeeper examples and can not set up connection, state connection request is sent to the Zookeeper examples again;
Restart Request sending module, if be connected for can not still be set up with the Zookeeper examples, to this Proxy server where Zookeeper examples sends example Restart Request, to ask the proxy server to restart this Zookeeper examples.
Optionally, also include:
Operation conditions monitoring modular, the operation conditions for monitoring the proxy server.
It should be noted that above-mentioned connection request sending module, monitoring module, connection request retransmit module and weight Open during request sending module can be only fitted to control server, it is also possible to which configuration is in other servers different from control server In, during preferably configuration is other different servers of control server, such as monitoring server, can avoid interfering.
The deployment device of above-mentioned Zookeeper clusters can perform the Zookeeper collection that any embodiment of the present invention is provided The dispositions method of group, possesses the corresponding functional module of execution method and beneficial effect.The not skill of detailed description in the present embodiment Art details, reference can be made to the dispositions method of the Zookeeper clusters that any embodiment of the present invention is provided.
Embodiment five
Fig. 5 is a kind of flow chart of the dispositions method of Zookeeper clusters that the embodiment of the present invention five is provided, the present embodiment It is applicable to dispose the situation of Zookeeper examples, the method can be performed by the deployment device of Zookeeper examples, should Device can be realized that the device can be only fitted to the service of Zookeeper examples to be disposed by the mode of software and/or hardware In device, the server can be described as proxy server.The method specifically includes following steps:
Step 510, receives the example establishment instruction that control server sends.
Wherein, the example creates configuration information of the instruction including Zookeeper examples to be disposed.
The example that the proxy server reception control server of each Zookeeper example to be disposed sends is created and referred to Order.
Step 520, creates according to the example and instructs, and creates Zookeeper examples.
Created according to the example and instructed, the process of corresponding Zookeeper examples is created on this proxy server, from And create Zookeeper examples.
Step 530, starts the Zookeeper examples.
After the completion of the establishment of Zookeeper examples, start the Zookeeper examples.
Each proxy server of Zookeeper examples in Zookeeper clusters to be disposed each disposes completion simultaneously After starting Zookeeper examples, these Zookeeper examples just constitute the Zookeeper clusters of deployment.
The technical scheme of the present embodiment, the proxy server of each Zookeeper cluster to be disposed in reception by controlling clothes The example that business device sends creates instruction, creates and start Zookeeper examples, realizes the automatic wound of Zookeeper examples Build, just constituted after needing to be disposed the startup of the Zookeeper examples on the proxy server of Zookeeper clusters Zookeeper clusters, realize the automatic deployment of Zookeeper clusters, so as to reduce the people of deployment Zookeeper clusters Power, while improve deployment efficiency.
On the basis of above-described embodiment, after the Zookeeper examples are started, it is also optional including:
Record the daily record of the Zookeeper examples, and monitoring hardware status information.
Proxy server can be with the running log of the Zookeeper examples on minute book proxy server, so as to meet During to failure, can review.Proxy server also monitors the hardware status information of itself, and is sent to control server, so as to In control server according to the hardware status information of each proxy server, suitable proxy server deployment is selected Zookeeper examples in Zookeeper clusters.Wherein, hardware status information includes:The use feelings of CPU, internal memory and disk etc. Condition.
On the basis of above-described embodiment, after the Zookeeper examples are started, it is also optional including:
The example Restart Request that the control server sends is received, the Zookeeper examples are restarted.
Wherein, the example Restart Request is sent by the server for monitoring the running status of Zookeeper clusters, central control During the running status of server monitoring Zookeeper clusters, sent by control server;When monitoring server monitoring During the running status of Zookeeper clusters, sent by monitoring server.
Proxy server restarts the Zookeeper realities on the proxy server after example Restart Request is received Example, realizes the pull-up of abnormal Zookeeper examples.
Embodiment six
Fig. 6 is a kind of structural representation of the deployment device of Zookeeper examples that the embodiment of the present invention six is provided, this reality The deployment device for applying the Zookeeper examples described in example can be only fitted to the server of Zookeeper examples to be disposed, the clothes Business device can be described as proxy server.As shown in fig. 6, the deployment device of the Zookeeper examples described in the present embodiment includes:Create Command reception module 610, example creation module 620 and example starting module 630.
Wherein, command reception module 610 is created, instruction is created for receiving the example that control server sends;
Example creation module 620, instructs for being created according to the example, creates Zookeeper examples;
Example starting module 630, for starting the Zookeeper examples.
Optionally, also include:
Example monitoring module, for after the Zookeeper examples are started, recording the Zookeeper examples Daily record, and monitoring hardware status information.
Optionally, also include:
Example restarts module, is sent for after the Zookeeper examples are started, receiving the control server Example Restart Request, restart the Zookeeper examples.
The deployment device of above-mentioned Zookeeper examples can perform the Zookeeper realities that any embodiment of the present invention is provided The dispositions method of example, possesses the corresponding functional module of execution method and beneficial effect.The not skill of detailed description in the present embodiment Art details, reference can be made to the dispositions method of the Zookeeper examples that any embodiment of the present invention is provided.
Embodiment seven
Fig. 7 is a kind of configuration diagram of the management platform of Zookeeper clusters that the embodiment of the present invention seven is provided.As schemed Shown in 7, the management platform of the Zookeeper clusters shown in the present embodiment includes that control server 710 and at least three acts on behalf of clothes Business device 720.
Wherein, control server 710 includes the deployment device of the Zookeeper clusters described in any embodiment of the present invention;
Proxy server 720 includes the deployment device of the Zookeeper examples described in any embodiment of the present invention.
Wherein, the deployment device of Zookeeper clusters and the deployment device of Zookeeper examples can be compiled using Go language Write.The deployment device of Zookeeper examples provides two kinds of access interface modes:HTTP Restful API and Go RPC.Its In, RPC is the abbreviation of far call, briefly seeks to the function of the invoking server as calling local function.Go languages The java standard library of speech has been provided for RPC frameworks and different RPC is realized.
The access interface of the deployment device offer that the deployment device of Zookeeper clusters passes through Zookeeper examples is come right Zookeeper clusters are operated.The deployment device of Zookeeper clusters and the deployment device of Zookeeper examples can lead to The Watcher mechanism of Zookeeper is crossed mutually to notify respective presence.
Optionally, the management platform of the Zookeeper clusters can also be included for storing Zookeeper clusters The Zookeeper storage clusters of Zookeeper example informations, the Zookeeper storage clusters can also include Zookeeper collection The management of the management platform of group from staff to the management platform typing Zookeeper of the Zookeeper clusters, it is necessary to be stored The information of cluster.
It should be noted that the management platform of the Zookeeper clusters can also include monitoring server, the monitoring service The operation conditions that device is used for the Zookeeper clusters completed to deployment is monitored, and the monitoring server includes Zookeeper collection Connection request sending module, monitoring module in the deployment device of group, can also include that the deployment of Zookeeper clusters is filled Connection request in putting retransmits module and Restart Request sending module, when the configuration of these modules is in monitoring server, Just it is not reconfigured in control server, it is ensured that the works fine of control server and monitoring server.
The technical scheme of the embodiment of the present invention, deployment device and the portion of Zookeeper examples by Zookeeper clusters Administration's device has carried out the automatic deployment to Zookeeper clusters, so as to reduce the manpower of deployment Zookeeper clusters, while Deployment efficiency is improve, while being write using Go language, deployment O&M is relatively simple, without extra dependence.
Note, above are only presently preferred embodiments of the present invention and institute's application technology principle.It will be appreciated by those skilled in the art that The invention is not restricted to specific embodiment described here, can carry out for a person skilled in the art various obvious changes, Readjust and substitute without departing from protection scope of the present invention.Therefore, although the present invention is carried out by above example It is described in further detail, but the present invention is not limited only to above example, without departing from the inventive concept, also More other Equivalent embodiments can be included, and the scope of the present invention is determined by scope of the appended claims.

Claims (17)

1. a kind of dispositions method of Zookeeper clusters, it is characterised in that methods described includes:
Receive configuring request of the user to Zookeeper clusters;
According to the configuring request, the Zookeeper examples of Zookeeper clusters to be disposed are generated;
According to the Zookeeper examples, generation example creates instruction, and is sent to the agency of Zookeeper clusters to be disposed Server, to indicate the proxy server to dispose corresponding Zookeeper examples and start.
2. method according to claim 1, it is characterised in that also include:
The information of the Zookeeper examples of the Zookeeper clusters is stored in Zookeeper storage clusters.
3. method according to claim 1 and 2, it is characterised in that also include:
The information of the Zookeeper examples is obtained, and state connection request is sent to the Zookeeper examples, to ask Set up with the Zookeeper examples and be connected;
After being connected with Zookeeper examples foundation, the status data of the Zookeeper examples is obtained, with to described Zookeeper examples are monitored.
4. method according to claim 3, it is characterised in that please state connection is sent to the Zookeeper examples After asking, also include:
When can not be set up with the Zookeeper examples be connected when, again to the Zookeeper examples send state connection please Ask;
If can not still be set up with the Zookeeper examples be connected, sent out to the proxy server where the Zookeeper examples Example Restart Request is sent, to ask the proxy server to restart the Zookeeper examples.
5. method according to claim 1 and 2, it is characterised in that also include:
Monitor the operation conditions of the proxy server.
6. a kind of deployment device of Zookeeper clusters, it is characterised in that described device includes:
Configuring request receiver module, for receiving configuring request of the user to Zookeeper clusters;
Example generation module, for according to the configuring request, generating the Zookeeper realities of Zookeeper clusters to be disposed Example;
Instruction sending module is created, for according to the Zookeeper examples, generation example to create instruction, and is sent to the portion for the treatment of The proxy server of Zookeeper clusters is affixed one's name to, to indicate the proxy server to dispose corresponding Zookeeper examples and open It is dynamic.
7. device according to claim 6, it is characterised in that also include:
Example information memory module, for the information of the Zookeeper examples of the Zookeeper clusters to be stored in In Zookeeper storage clusters.
8. the device according to claim 6 or 7, it is characterised in that also include:
Connection request sending module, the information for obtaining the Zookeeper examples, and sent out to the Zookeeper examples State connection request is sent, is connected with asking to be set up with the Zookeeper examples;
Monitoring module, for after being connected with Zookeeper examples foundation, obtaining the Zookeeper examples Status data, is monitored with to the Zookeeper examples.
9. device according to claim 8, it is characterised in that also include:
Connection request retransmit module, for the Zookeeper examples send state connection request after, when with it is described When Zookeeper examples can not set up connection, state connection request is sent to the Zookeeper examples again;
Restart Request sending module, if be connected for can not still be set up with the Zookeeper examples, to the Zookeeper Proxy server where example sends example Restart Request, to ask the proxy server to restart the Zookeeper examples.
10. the device according to claim 6 or 7, it is characterised in that also include:
Operation conditions monitoring modular, the operation conditions for monitoring the proxy server.
A kind of 11. dispositions methods of Zookeeper examples, it is characterised in that including:
Receive the example establishment instruction that control server sends;
Created according to the example and instructed, create Zookeeper examples;
Start the Zookeeper examples.
12. methods according to claim 11, it is characterised in that after the Zookeeper examples are started, also wrap Include:
Record the daily record of the Zookeeper examples, and monitoring hardware status information.
13. methods according to claim 11, it is characterised in that after the Zookeeper examples are started, also wrap Include:
The example Restart Request that the control server sends is received, the Zookeeper examples are restarted.
A kind of 14. deployment devices of Zookeeper examples, it is characterised in that including:
Command reception module is created, instruction is created for receiving the example that control server sends;
Example creation module, instructs for being created according to the example, creates Zookeeper examples;
Example starting module, for starting the Zookeeper examples.
15. devices according to claim 14, it is characterised in that also include:
Example monitoring module, for after the Zookeeper examples are started, recording the daily record of the Zookeeper examples, And monitoring hardware status information.
16. devices according to claim 14, it is characterised in that also include:
Example restarts module, for after the Zookeeper examples are started, receiving the reality that the control server sends Example Restart Request, restarts the Zookeeper examples.
17. a kind of management platforms of Zookeeper clusters, it is characterised in that the management platform is including control server and extremely Few three proxy servers;
The control server includes the deployment device of any described Zookeeper clusters of claim 6-10;
The proxy server includes the deployment device of any described Zookeeper examples of claim 14-16.
CN201611204400.XA 2016-12-23 2016-12-23 Zookeeper cluster deployment method, Zookeeper cluster deployment device, Zookeeper instance deployment method, Zookeeper instance deployment device, and Zookeeper cluster management platform Pending CN106713458A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611204400.XA CN106713458A (en) 2016-12-23 2016-12-23 Zookeeper cluster deployment method, Zookeeper cluster deployment device, Zookeeper instance deployment method, Zookeeper instance deployment device, and Zookeeper cluster management platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611204400.XA CN106713458A (en) 2016-12-23 2016-12-23 Zookeeper cluster deployment method, Zookeeper cluster deployment device, Zookeeper instance deployment method, Zookeeper instance deployment device, and Zookeeper cluster management platform

Publications (1)

Publication Number Publication Date
CN106713458A true CN106713458A (en) 2017-05-24

Family

ID=58895765

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611204400.XA Pending CN106713458A (en) 2016-12-23 2016-12-23 Zookeeper cluster deployment method, Zookeeper cluster deployment device, Zookeeper instance deployment method, Zookeeper instance deployment device, and Zookeeper cluster management platform

Country Status (1)

Country Link
CN (1) CN106713458A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107707671A (en) * 2017-10-30 2018-02-16 郑州云海信息技术有限公司 A kind of method of the unified configuration of MyCat clusters
WO2019237585A1 (en) * 2018-06-13 2019-12-19 平安科技(深圳)有限公司 Zookeeper monitoring method, device, computer equipment and storage medium
WO2020024405A1 (en) * 2018-08-03 2020-02-06 平安科技(深圳)有限公司 Test method, device, server and storage medium based on distributed coordination
CN111008023A (en) * 2019-12-06 2020-04-14 无锡华云数据技术服务有限公司 Instance deployment method and system
CN111107120A (en) * 2018-10-29 2020-05-05 亿阳信通股份有限公司 Redis cluster construction method and system
CN113282335B (en) * 2021-07-19 2021-10-15 北京江融信科技有限公司 Multi-version configuration method and system for application cluster service parameters

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103412768A (en) * 2013-07-19 2013-11-27 蓝盾信息安全技术股份有限公司 Zookeeper cluster automatic-deployment method based on script program
US20160261727A1 (en) * 2015-03-06 2016-09-08 Connie W. Yang Systems and methods of streaming data
CN106021370A (en) * 2016-05-11 2016-10-12 智者四海(北京)技术有限公司 Memory database instance management method and device
CN106059843A (en) * 2016-08-16 2016-10-26 深圳市华成峰数据技术有限公司 Node configuration system and method based on Zookeepers

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103412768A (en) * 2013-07-19 2013-11-27 蓝盾信息安全技术股份有限公司 Zookeeper cluster automatic-deployment method based on script program
US20160261727A1 (en) * 2015-03-06 2016-09-08 Connie W. Yang Systems and methods of streaming data
CN106021370A (en) * 2016-05-11 2016-10-12 智者四海(北京)技术有限公司 Memory database instance management method and device
CN106059843A (en) * 2016-08-16 2016-10-26 深圳市华成峰数据技术有限公司 Node configuration system and method based on Zookeepers

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
ZQC0512: "HADOOP集群自动化安装手册", 《百度文库》 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107707671A (en) * 2017-10-30 2018-02-16 郑州云海信息技术有限公司 A kind of method of the unified configuration of MyCat clusters
WO2019237585A1 (en) * 2018-06-13 2019-12-19 平安科技(深圳)有限公司 Zookeeper monitoring method, device, computer equipment and storage medium
WO2020024405A1 (en) * 2018-08-03 2020-02-06 平安科技(深圳)有限公司 Test method, device, server and storage medium based on distributed coordination
CN111107120A (en) * 2018-10-29 2020-05-05 亿阳信通股份有限公司 Redis cluster construction method and system
CN111107120B (en) * 2018-10-29 2022-09-02 亿阳信通股份有限公司 Redis cluster construction method and system
CN111008023A (en) * 2019-12-06 2020-04-14 无锡华云数据技术服务有限公司 Instance deployment method and system
CN111008023B (en) * 2019-12-06 2024-01-09 无锡华云数据技术服务有限公司 Instance deployment method and system
CN113282335B (en) * 2021-07-19 2021-10-15 北京江融信科技有限公司 Multi-version configuration method and system for application cluster service parameters

Similar Documents

Publication Publication Date Title
CN106713458A (en) Zookeeper cluster deployment method, Zookeeper cluster deployment device, Zookeeper instance deployment method, Zookeeper instance deployment device, and Zookeeper cluster management platform
US11481244B2 (en) Methods and systems that verify endpoints and external tasks in release-pipeline prior to execution
Butzin et al. Microservices approach for the internet of things
US11182152B2 (en) Methods and systems that share resources among multiple, interdependent release pipelines
CN110752947B (en) K8s cluster deployment method and device, and deployment platform
Tsaregorodtsev et al. DIRAC: a community grid solution
US20180173743A1 (en) Dynamic code loading
US10157044B2 (en) Automated application-release-management subsystem
Broto et al. Autonomic management policy specification in tune
CN107220100A (en) One kind exploitation O&M method, device and cloud computing PaaS platform
Yang et al. A profile-based approach to just-in-time scalability for cloud applications
US20170161044A1 (en) Automated-application-release-management subsystem that incorporates script tasks within application-release-management pipelines
CN110262902B (en) Information processing method and system, medium, and computing device
US20170161043A1 (en) Integrated automated application deployment
CN102880503A (en) Data analysis system and data analysis method
US20180307472A1 (en) Simultaneous deployment on cloud devices and on on-premise devices
US10452426B2 (en) Methods and systems for configuration-file inheritance
CN107479888A (en) Operating system mirror image deployment services device method, system, equipment and storage medium
Bouchenak et al. From autonomic to self-self behaviors: The jade experience
CN104750553B (en) Using operation method and device
CN104717249B (en) Method, proxy server and the system of remote operation application issue
WO2014099710A1 (en) Graphical user interface for hadoop system administration
CN117194064A (en) Remote calling method and device
US20190253313A1 (en) Architectural design to enable bidirectional service registration and interaction among clusters
CN113347066B (en) Request processing method, Ambari architecture, equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170524

RJ01 Rejection of invention patent application after publication