CN112241269B - Zookeeper cluster control system, device and storage medium - Google Patents

Zookeeper cluster control system, device and storage medium Download PDF

Info

Publication number
CN112241269B
CN112241269B CN201910640185.5A CN201910640185A CN112241269B CN 112241269 B CN112241269 B CN 112241269B CN 201910640185 A CN201910640185 A CN 201910640185A CN 112241269 B CN112241269 B CN 112241269B
Authority
CN
China
Prior art keywords
zookeeper
cluster
server
control system
client
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.)
Active
Application number
CN201910640185.5A
Other languages
Chinese (zh)
Other versions
CN112241269A (en
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.)
Shenzhen Sinosun Technology Co ltd
Original Assignee
Shenzhen Sinosun 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 Shenzhen Sinosun Technology Co ltd filed Critical Shenzhen Sinosun Technology Co ltd
Priority to CN201910640185.5A priority Critical patent/CN112241269B/en
Publication of CN112241269A publication Critical patent/CN112241269A/en
Application granted granted Critical
Publication of CN112241269B publication Critical patent/CN112241269B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3006Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is distributed, e.g. networked systems, clusters, multiprocessor systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3055Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3065Monitoring arrangements determined by the means or processing involved in reporting the monitored data

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Quality & Reliability (AREA)
  • Software Systems (AREA)
  • Mathematical Physics (AREA)
  • Computer And Data Communications (AREA)

Abstract

The application provides a Zookeeper cluster control system, a device and a storage medium, which relate to the technical field of computers, wherein the Zookeeper cluster control system comprises: the Zookeeper deployment module is used for deploying Zookeeper clusters to the server; the Zookeeper parameter configuration module is used for configuring parameters related to the Zookeeper cluster to the server; the Zookeeper security configuration module is used for configuring security information to the server; the Zookeeper safety monitoring module is used for receiving the alarm information sent by the server and sending the alarm information to the target terminal; and the Zookeeper data processing module is used for performing read-write operation on data in the Zookeeper directory node in the server. The problem that the existing Zookeeper cluster control system is single in function and difficult to meet the production level requirement is solved.

Description

Zookeeper cluster control system, device and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a Zookeeper cluster control system, a Zookeeper cluster control device, and a storage medium.
Background
Currently, more and more internet services are deployed in a distributed system, where a Zookeeper cluster is a relatively common distributed system, and the Zookeeper cluster can provide various services such as configuration maintenance, domain name service, distributed synchronization, group service, and the like. Typically, a Zookeeper cluster may comprise a plurality of directory nodes, and the Zookeeper cluster typically needs to perform frequent read-write operations on data in the directory nodes.
The related art provides a Zookeeper cluster control system, which can provide a function of performing read-write operation on data in a directory node in a Zookeeper cluster. However, the Zookeeper cluster control system has single function, and is difficult to meet the production-level requirement.
Disclosure of Invention
Based on this, it is necessary to provide a Zookeeper cluster control system, a Zookeeper cluster control device and a storage medium, which solve the problem that the Zookeeper cluster control system has a single function and is difficult to meet the requirement of the production level.
In a first aspect, an embodiment of the present application provides a Zookeeper cluster control system, including:
The Zookeeper deployment module is used for deploying Zookeeper clusters to the server;
The Zookeeper parameter configuration module is used for configuring parameters related to the Zookeeper cluster to the server;
the Zookeeper security configuration module is used for configuring security information to the server;
The Zookeeper safety monitoring module is used for receiving the alarm information sent by the server and sending the alarm information to the target terminal;
and the Zookeeper data processing module is used for performing read-write operation on the data in the Zookeeper directory node in the server.
In a second aspect, an embodiment of the present application provides a computer device, including a memory storing a computer program and a processor implementing the functions of the control system of the first aspect when the processor executes the computer program.
In a third aspect, an embodiment of the present application provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the functions of the control system of the first aspect described above.
The technical scheme provided by the embodiment of the application has the beneficial effects that at least:
the Zookeeper deployment module can realize the function of installing a Zookeeper cluster on a server; the Zookeeper parameter configuration module can realize the function of configuring parameters related to the Zookeeper cluster to the server; the Zookeeper security configuration module can realize the function of configuring security information to a server; the Zookeeper security monitoring module can realize the functions of receiving the alarm information sent by the server and sending the alarm information to the target terminal; the Zookeeper data processing module can realize the function of performing read-write operation on data in a Zookeeper directory node in a server, so that the Zookeeper cluster control system provided by the embodiment of the application can realize the functions of Zookeeper cluster deployment, parameter configuration, safety monitoring, data processing and the like, and solves the technical problems that the Zookeeper cluster control system in the prior art is single in function and is difficult to meet the requirement of production level.
Drawings
Fig. 1 is a schematic diagram of an implementation environment related to a Zookeeper cluster control system provided by an embodiment of the present application;
Fig. 2 is a block diagram of a terminal according to an embodiment of the present application;
Fig. 3 is a schematic diagram of a Zookeeper cluster control system provided in an embodiment of the present application;
fig. 4 is a schematic diagram of another Zookeeper cluster control system according to an embodiment of the present application;
fig. 5 is a schematic diagram of another Zookeeper cluster control system according to an embodiment of the present application;
fig. 6 is a schematic diagram of another Zookeeper cluster control system according to an embodiment of the present application;
Fig. 7 is a schematic diagram of another Zookeeper cluster control system according to an embodiment of the present application;
Fig. 8 is a schematic diagram of another Zookeeper cluster control system according to an embodiment of the present application;
Fig. 9 is a schematic diagram of another Zookeeper cluster control system according to an embodiment of the present application;
fig. 10 is a schematic diagram of another Zookeeper cluster control system according to an embodiment of the present application;
Fig. 11 is a schematic diagram of another Zookeeper cluster control system according to an embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
Currently, more and more internet services are deployed in a distributed system provided by a Zookeeper cluster, where the Zookeeper cluster maintains a data structure similar to a file system, and the data structure includes a plurality of directory nodes, each directory node may further include a plurality of sub-directory nodes, and each directory node or each sub-directory node may store data. Typically, a Zookeeper cluster needs to frequently perform read-write operations on each directory node and data stored in each directory node. With the increase of the functionality of the Zookeeper cluster, the Zookeeper cluster can also provide various services such as configuration maintenance, domain name service, distributed synchronization, group service and the like. New requirements are therefore placed on the control and management of the Zookeeper cluster.
In the related art, a Zookeeper cluster control system is provided, and the Zookeeper cluster control system can provide a function of performing read-write operation on data in a directory node of a Zookeeper cluster, so that the Zookeeper cluster control system has single function and is difficult to meet the requirement of a production level.
The Zookeeper cluster control system provided by the embodiment of the application comprises a Zookeeper deployment module, a Zookeeper parameter configuration module, a Zookeeper safety monitoring module and a Zookeeper data processing module, wherein the Zookeeper deployment module can realize the function of installing a Zookeeper cluster on a server; the Zookeeper parameter configuration module can realize the function of configuring parameters related to the Zookeeper cluster to the server; the Zookeeper security configuration module can realize the function of configuring security information to a server; the Zookeeper security monitoring module can realize the functions of receiving the alarm information sent by the server and sending the alarm information to the target terminal; the Zookeeper data processing module can realize the function of performing read-write operation on data in a Zookeeper directory node in a server, so that the Zookeeper cluster control system provided by the embodiment of the application can realize the functions of Zookeeper cluster deployment, parameter configuration, safety monitoring, data processing and the like, and solves the technical problems that the Zookeeper cluster control system in the prior art is single in function and is difficult to meet the requirement of production level.
The implementation environment related to the Zookeeper cluster control system provided by the embodiment of the application will be briefly described.
Referring to fig. 1, fig. 1 is a schematic diagram of an implementation environment related to a Zookeeper cluster control system according to an embodiment of the present application. As shown in fig. 1, the implementation environment includes at least one terminal 101 (only one computer device is shown in fig. 1), where the terminal 101 and the server cluster 102 may communicate via a wireless network.
In the embodiment of the present application, the terminal 101 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and micro computers. The internal architecture diagram may be as shown in fig. 2, the terminal 101 includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the terminal is adapted to provide computing and control capabilities. The memory of the terminal includes a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The network interface of the terminal is used for communicating with an external terminal through a network connection. The computer program, when executed by the processor, performs the functions of the Zookeeper cluster control system. The terminal can comprise a liquid crystal display screen or an electronic ink display screen, and an input device of the terminal can be a touch layer covered on the display screen, can also be a key, a track ball or a touch pad arranged on a terminal shell, and can also be an external keyboard, a touch pad or a mouse and the like.
Referring to fig. 1, a schematic structural diagram of a server cluster 102 provided by an embodiment of the present application is shown, where the server cluster includes a plurality of servers 1021, and the servers 1021 are connected to at least one client 103 through a web proxy, and are configured to provide cluster services for the client 103. The client 103 directly provides an interface system for accessing the server 1021 for the user, and typically, the client 103 is multiple for providing services to multiple users.
In one possible implementation, the terminal 101 may correspond to a plurality of server clusters 102.
Referring to fig. 3, a schematic diagram of a Zookeeper cluster control system provided by the embodiment of the present application is shown, where functions of the Zookeeper cluster control system may be implemented by the terminal in fig. 1. The terminal shown in fig. 1 includes a visual interface, where the visual interface may be used to display a functional module of a Zookeeper cluster control system, and the Zookeeper cluster control system provided by the embodiment of the present application includes: the system comprises a Zookeeper deployment module, a Zookeeper parameter configuration module, a Zookeeper security monitoring module and a Zookeeper data processing module. Optionally, as shown in fig. 3, the Zookeeper cluster control system may display a Zookeeper deployment port, a Zookeeper parameter configuration port, a Zookeeper security monitoring port and a Zookeeper data processing port in the visual interface.
The Zookeeper deployment module is used for deploying the Zookeeper cluster to the server, optionally, a user can start a Zookeeper deployment port displayed in the visual interface through a mouse or other input devices, and after the Zookeeper deployment port is started, optionally, as shown in fig. 4, a plurality of IP address input ports can appear in the visual interface, and the user can input the IP address of the server in the IP address input ports to indicate that the Zookeeper is to be deployed for the servers corresponding to the IP addresses of the servers.
Alternatively, the user may only input one server IP address in the IP address input port, and then click the "complete" button in the visual interface, indicating that the user performs stand-alone deployment of the Zookeeper.
Optionally, the user may input IP addresses of multiple servers at the IP address input port, and then click a "complete" button in the visual interface, indicating that the user is to deploy a Zookeeper on the multiple servers, to form a Zookeeper cluster.
Alternatively, in one embodiment of the present application, clicking on the "done" button in the visual interface may generate an install instruction and a launch instruction.
Optionally, in another embodiment of the present application, clicking the "complete" button in the visual interface may further send the Zookeeper installation file, the installation instruction and the start instruction to servers corresponding to one or more server IP addresses input by the user, where each server installs the Zookeeper installation file on the server according to the installation instruction, and after the Zookeeper is installed, the server starts the started Zookeeper cluster already installed on the server according to the start instruction.
In one possible implementation manner, after the Zookeeper deployment port is started, as shown in fig. 5, a service cluster IP port may also appear in the visual interface, where a server corresponding to an IP address input by the service cluster IP port is a server of the service cluster, and the server corresponding to the service cluster may be used to respond to a read request of the client. The client may initiate a read request operation to a server of the service cluster. The servers outside the service cluster may be servers of the core cluster, and the servers of the core cluster may not respond to the read request of the client.
Optionally, after the user inputs the IP address of the corresponding server to the service cluster IP port, the user may click on a "finish" button in the visual interface, which indicates that the server corresponding to the IP address input by the service cluster IP port is the server of the service cluster, and the client may initiate a read request to the server of the service cluster.
Alternatively, in one embodiment of the present application, clicking the "done" button in the visual interface may generate a service cluster profile, which is generated from the IP address of the service cluster.
Optionally, in an embodiment of the present application, clicking the "complete" button in the visual interface may also send the service cluster configuration file to the client. Optionally, in the embodiment of the present application, the terminal may send the service cluster configuration file to the server, and the Zookeeper that has been installed in the server may send the service cluster configuration file to the client, so that the client can identify the server of the service cluster, and thus the client may initiate a read request to the server of the service cluster.
In one possible implementation manner, after the Zookeeper deployment port is started, as shown in fig. 6, a service cluster IP port and a core cluster IP port may appear in the visual interface, where a server corresponding to an IP address input by the core cluster IP port is a core cluster server, a user may input an IP address of the server at the core cluster IP port, and servers corresponding to the IP addresses may be marked as servers of the core cluster; the user may input the IP addresses of the servers at the service cluster IP port, and the servers corresponding to these IP addresses may be labeled as servers of the service cluster. After the user inputs the IP address of the corresponding server to the service cluster IP port, the user may click on the "complete" button in the visual interface. Alternatively, clicking the "done" button in the visual interface may generate a service cluster profile and a core cluster profile. Optionally, clicking the "complete" button in the visual interface may also send the service cluster configuration file and the core cluster configuration file to the client, so that the client may identify the server of the service cluster and the server of the core cluster, and may initiate a read request to the server of the service cluster.
In one possible implementation, the Zookeeper parameter configuration module is configured to configure parameters related to the Zookeeper cluster to the server, where the parameters related to the Zookeeper cluster include at least one of a startup parameter of the Zookeeper cluster, a storage location parameter of a log of the Zookeeper cluster, and a parameter of a Zookeeper cluster running environment.
Optionally, before or after the Zookeeper cluster is deployed, configuration parameters in the Zookeeper cluster may be configured by a server.
Optionally, the user may perform a startup operation on the Zookeeper deployment port shown in the visual interface through a mouse or other input device, and after the Zookeeper deployment port is started, as shown in fig. 7, the startup parameter port, the log parameter port and the running environment parameter port may be shown in the visual interface. Optionally, the visual interface may also display only the startup parameter port, or only the log parameter port, or only the running environment parameter port, or any combination of the startup parameter port, the log parameter port, and the running environment parameter port.
Optionally, the user may perform a startup operation on at least one of the startup parameter port, the log parameter port, and the running environment parameter port displayed in the visual interface through a mouse or other input device, so as to input corresponding parameter data, for example, the user may click on the startup parameter port, input data of startup parameters of the Zookeeper cluster, and then click on the "finish" button. Alternatively, clicking the "complete" button may generate a start instruction, and send the start instruction and data of the start parameter to the server, where the server loads the data of the start parameter into the Zookeeper cluster when starting the Zookeeper cluster.
In one possible implementation, the Zookeeper security configuration module is configured to configure security information to the server. The security information may include at least one of a client IP address blacklist profile, a client IP address whitelist profile, and an access control list ACL rights profile.
Optionally, before or after the Zookeeper cluster is deployed, the Zookeeper cluster may be configured safely by the server.
Optionally, the user may perform a startup operation on the Zookeeper security configuration port shown in the visual interface through a mouse or other input device. After the Zookeeper security configuration port is started, optionally, as shown in fig. 8, a client IP address blacklist port, a client IP address whitelist port and a client ACL (english: access Control List; chinese: access control list) authority port may be displayed in the visual interface. Optionally, the visualization interface may also display only the client IP address blacklist port, or only the client IP address whitelist port, or only the client ACL authority port, or any combination of the client IP address blacklist port, the client IP address whitelist port, and the client ACL authority port.
Optionally, the user may perform a start operation on at least one of the client IP address blacklist port, the client IP address whitelist port and the client ACL authority port displayed in the visual interface through a mouse or other input device, so as to input corresponding parameter data. For example, the user may click on the client IP address blacklist port, enter the client IP address to form a client IP address blacklist, and then click on the "done" key. Alternatively, clicking the "complete" button may generate a client IP address blacklist profile that includes a client IP address blacklist. Optional clicking of the "done" button may also send the client IP address blacklist profile to the service area. When the server receives the operation request of the client, whether the IP address of the client initiating the request is in the client IP address blacklist can be judged according to the client IP address blacklist configuration file, and if the IP address of the client initiating the request is in the client IP address blacklist, the server does not respond to the operation request of the client.
In one possible implementation, the Zookeeper security monitoring module is configured to receive the alarm information sent by the server and send the alarm information to the target terminal. The alarm information comprises at least one of application alarm information, operating environment alarm information and hardware alarm information. The application program alarm information is used for indicating that the application program of the Zookeeper cluster fails, the running environment alarm information is used for indicating that the running environment of the Zookeeper cluster fails, and the hardware alarm information is used for indicating that the hardware of the server fails.
Optionally, the failure of the application of the Zookeeper cluster includes that the Zookeeper cluster responds to the write request of the client side and is abnormal, which indicates that the write operation cannot be executed in the directory node of the Zookeeper cluster.
Optionally, the failure of the operating environment of the Zookeeper cluster includes that available memory of the Zookeeper cluster is below a memory threshold, indicating that memory of the Zookeeper cluster is insufficient.
Optionally, the hardware failure of the server includes a network traffic anomaly between the Zookeeper cluster and the client, which indicates that the network traffic anomaly between the client and the Zookeeper cluster may be maliciously accessed.
Optionally, the mode of sending the alarm information to the target terminal may be at least one of a short message, a micro message, a mail, and the like. The embodiment of the application does not limit the mode of sending the alarm information to the target terminal.
Alternatively, the target terminal may be a mobile phone, a computer, a microcomputer, a wearable device, or the like.
Optionally, before or after the Zookeeper cluster is deployed, the Zookeeper cluster may be configured for security monitoring through a server.
Optionally, the user may perform a startup operation on the Zookeeper security monitor port displayed in the visual interface through a mouse or other input device. After the Zookeeper security monitor port is started, optionally, as shown in fig. 9, an application program alarm port, an operating environment alarm port and a hardware information alarm port can be displayed in the visual interface. Optionally, only the program alarm port, only the operating environment alarm port, only the hardware information alarm port, or any combination of the program alarm port, the operating environment alarm port and the hardware information alarm port may be displayed in the visual interface.
Optionally, the user may perform a start operation on at least one of the application alert port, the operating environment alert port, and the hardware information alert port displayed in the visual interface through a mouse or other input device, so as to obtain corresponding alert information. For example, the user may click on an application alert port, the application alert port may receive application alert information of the Zookeeper cluster sent by the server, and then click on a "send" key, and optionally, an operation of clicking on the "send" key may send the application alert information to the target terminal according to a preset sending manner. The preset sending mode can be at least one of a plurality of modes such as short messages, weChat, mails and the like.
In one possible implementation, the Zookeeper data processing module is configured to perform a read-write operation on data in a Zookeeper directory node in the server. Optionally, the user may perform a start operation on the Zookeeper data processing port displayed in the visual interface through a mouse or other input device, and after the Zookeeper data processing port is started, optionally, as shown in fig. 10, a read operation port and a write operation port may be displayed in the visual interface, where the read operation includes an operation of querying data. The write operation includes operations to add, delete, or modify the directory node and data within the directory node.
Optionally, the user starts a read operation port, and may input a directory node in the read operation port, which indicates that corresponding data of the directory node in the Zookeeper cluster is read, and then may click a "finish" button.
Optionally, the user starts the write operation port, and may input the added, deleted or modified content in the write operation port, which means that operations such as adding, deleting or modifying are performed on the directory node or the data of the directory node in the Zookeeper cluster, and then may click the "complete" button.
Alternatively, clicking the "done" button may generate a write operation instruction or a read operation instruction. The write operation instruction comprises contents of addition, deletion or modification, and the read operation instruction comprises a directory node for reading data.
Optionally, the operation of clicking the "complete" button may also send a write operation instruction or a read operation instruction to the server, where the server executes a corresponding operation according to the write operation instruction or the read operation instruction.
In one possible implementation, after the Zookeeper data processing port is started, as shown in fig. 11, a batch write port and a batch export port may also be shown in the visualization interface, where the batch write port represents writing the same data to multiple target directory nodes in the Zookeeper cluster. The bulk export port represents exporting data from a plurality of target directory nodes in the Zookeeper cluster.
Alternatively, the user may perform an activation operation on any one of the batch write port and the batch export port to input the corresponding content. The "ok" key is then clicked.
Alternatively, the operation of clicking the "ok" button may send the target directory node in the Zookeeper cluster input in the batch write port to the server, and the server batch imports data to the target directory node in the Zookeeper cluster.
The operation of clicking the 'ok' button can send the target directory nodes in the Zookeeper cluster input in the batch export port to the server, and the server exports data to the target directory nodes in the Zookeeper cluster in batch.
The Zookeeper cluster control system provided by the embodiment of the application can solve the problem of single function of the traditional Zookeeper cluster control system. In the Zookeeper cluster control system provided by the embodiment of the application, the Zookeeper deployment module can realize the function of installing the Zookeeper cluster on the server; the Zookeeper parameter configuration module can realize the function of configuring parameters related to the Zookeeper cluster to the server; the Zookeeper security configuration module can realize the function of configuring security information to a server; the Zookeeper security monitoring module can realize the functions of receiving the alarm information sent by the server and sending the alarm information to the target terminal; the Zookeeper data processing module can realize the function of performing read-write operation on data in a Zookeeper directory node in a server, so that the Zookeeper cluster control system provided by the embodiment of the application can realize the functions of Zookeeper cluster deployment, parameter configuration, safety monitoring, data processing and the like, and solves the technical problems that the Zookeeper cluster control system in the prior art is single in function and is difficult to meet the requirement of production level.
In one embodiment of the application, a computer device is provided comprising a memory storing a computer program and a processor that when executing the computer program performs the following functions:
The Zookeeper deployment module is used for deploying Zookeeper clusters to the server;
The Zookeeper parameter configuration module is used for configuring parameters related to the Zookeeper cluster to the server;
The Zookeeper security configuration module is used for configuring security information to the server;
The Zookeeper safety monitoring module is used for receiving the alarm information sent by the server and sending the alarm information to the target terminal;
And the Zookeeper data processing module is used for performing read-write operation on data in the Zookeeper directory node in the server.
In one embodiment, the processor, when executing the computer program, performs the following functions:
acquiring at least one Internet Protocol (IP) address input by a user;
Generating an installation instruction and a starting instruction;
The method comprises the steps that a Zookeeper installation file, an installation instruction and a starting instruction are sent to servers corresponding to at least one IP address respectively, the installation instruction is used for indicating the servers to install the Zookeeper installation file, and the starting instruction is used for indicating the servers to start the Zookeeper cluster after the Zookeeper installation file is installed.
In one embodiment, the processor, when executing the computer program, performs the following functions:
acquiring an IP address of a service cluster, wherein the service cluster comprises at least one server, the at least one server is provided with a Zookeeper cluster, and the service cluster comprises a server for responding to a read request of a client;
And generating a service cluster configuration file according to the IP address of the service cluster, and sending the service cluster configuration file to the client.
In one embodiment, the processor, when executing the computer program, performs the following functions:
Parameters related to the Zookeeper cluster include: at least one of a startup parameter of the Zookeeper cluster, a storage location parameter of a log of the Zookeeper cluster, and a parameter of a Zookeeper cluster operating environment.
In one embodiment, the processor, when executing the computer program, performs the following functions:
The security information includes: at least one of a client IP address blacklist profile, a client IP address whitelist profile, and an access control list ACL rights profile.
In one embodiment, the processor, when executing the computer program, performs the following functions:
The alarm information comprises at least one of application alarm information, operating environment alarm information and hardware alarm information;
the application program alarm information is used for indicating that an application program of the Zookeeper cluster fails, the running environment alarm information is used for indicating that the running environment of the Zookeeper cluster fails, and the hardware alarm information is used for indicating that hardware of a server fails.
In one embodiment, the processor, when executing the computer program, performs the following functions:
The fault of the application program of the Zookeeper cluster comprises the abnormality of the Zookeeper cluster in response to the write request of the client; the failure of the operating environment of the Zookeeper cluster comprises that the available memory of the Zookeeper cluster is lower than a memory threshold; the hardware failure of the server includes network traffic anomalies between the Zookeeper cluster and the client.
In one embodiment, the processor, when executing the computer program, performs the following functions:
carrying out batch export on data in a Zookeeper directory node in a server; or alternatively
Data is imported in batches to the Zookeeper directory nodes in the server.
The computer device provided in the foregoing embodiments has similar implementation principles and technical effects to those of the foregoing method embodiments, and will not be described herein in detail.
In one embodiment of the application, a computer readable storage medium has stored thereon a computer program which when executed by a processor performs the following functions:
The Zookeeper deployment module is used for deploying Zookeeper clusters to the server;
The Zookeeper parameter configuration module is used for configuring parameters related to the Zookeeper cluster to the server;
The Zookeeper security configuration module is used for configuring security information to the server;
The Zookeeper safety monitoring module is used for receiving the alarm information sent by the server and sending the alarm information to the target terminal;
And the Zookeeper data processing module is used for performing read-write operation on data in the Zookeeper directory node in the server.
In one embodiment, the computer program when executed by a processor performs the following functions:
acquiring at least one Internet Protocol (IP) address input by a user;
Generating an installation instruction and a starting instruction;
The method comprises the steps that a Zookeeper installation file, an installation instruction and a starting instruction are sent to servers corresponding to at least one IP address respectively, the installation instruction is used for indicating the servers to install the Zookeeper installation file, and the starting instruction is used for indicating the servers to start the Zookeeper cluster after the Zookeeper installation file is installed.
In one embodiment, the computer program when executed by a processor performs the following functions:
acquiring an IP address of a service cluster, wherein the service cluster comprises at least one server, the at least one server is provided with a Zookeeper cluster, and the service cluster comprises a server for responding to a read request of a client;
And generating a service cluster configuration file according to the IP address of the service cluster, and sending the service cluster configuration file to the client.
In one embodiment, the computer program when executed by a processor performs the following functions:
Parameters related to the Zookeeper cluster include: at least one of a startup parameter of the Zookeeper cluster, a storage location parameter of a log of the Zookeeper cluster, and a parameter of a Zookeeper cluster operating environment.
In one embodiment, the computer program when executed by a processor performs the following functions:
The security information includes: at least one of a client IP address blacklist profile, a client IP address whitelist profile, and an access control list ACL rights profile.
In one embodiment, the computer program when executed by a processor performs the following functions:
The alarm information comprises at least one of application alarm information, operating environment alarm information and hardware alarm information;
the application program alarm information is used for indicating that an application program of the Zookeeper cluster fails, the running environment alarm information is used for indicating that the running environment of the Zookeeper cluster fails, and the hardware alarm information is used for indicating that hardware of a server fails.
In one embodiment, the computer program when executed by a processor performs the following functions:
The fault of the application program of the Zookeeper cluster comprises the abnormality of the Zookeeper cluster in response to the write request of the client; the failure of the operating environment of the Zookeeper cluster comprises that the available memory of the Zookeeper cluster is lower than a memory threshold; the hardware failure of the server includes network traffic anomalies between the Zookeeper cluster and the client.
In one embodiment, the computer program when executed by a processor performs the following functions:
carrying out batch export on data in a Zookeeper directory node in a server; or alternatively
Data is imported in batches to the Zookeeper directory nodes in the server.
The computer readable storage medium provided in the above embodiment has similar principle and technical effects to those of the above method embodiment, and will not be described herein.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (SYNCHLINK) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the application and are described in detail herein without thereby limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of protection of the present application is to be determined by the appended claims.

Claims (10)

1. A Zookeeper cluster control system comprising:
The Zookeeper deployment module is used for deploying Zookeeper clusters to the server;
The Zookeeper parameter configuration module is used for configuring parameters related to the Zookeeper cluster to the server;
the Zookeeper security configuration module is used for configuring security information to the server; the security information comprises at least one of a client IP address blacklist configuration file, a client IP address whitelist configuration file and an access control list ACL authority configuration file;
the Zookeeper safety monitoring module is used for receiving the alarm information sent by the server and sending the alarm information to the target terminal; the alarm information comprises at least one of application program alarm information, running environment alarm information and hardware alarm information of the Zookeeper cluster;
and the Zookeeper data processing module is used for performing read-write operation on the data in the Zookeeper directory node in the server.
2. The control system according to claim 1, wherein the Zookeeper deployment module is specifically configured to:
acquiring at least one Internet Protocol (IP) address input by a user;
Generating an installation instruction and a starting instruction;
The Zookeeper installation file, the installation instruction and the starting instruction are sent to servers corresponding to the at least one IP address respectively, the installation instruction is used for instructing the servers to install the Zookeeper installation file, and the starting instruction is used for instructing the servers to start the Zookeeper cluster after the Zookeeper installation file is installed.
3. The control system of claim 1, wherein the Zookeeper deployment module is further configured to:
acquiring an IP address of a service cluster, wherein the service cluster comprises at least one server, the at least one server is provided with a Zookeeper cluster, and the service cluster comprises a server for responding to a read request of a client;
And generating a service cluster configuration file according to the IP address of the service cluster, and sending the service cluster configuration file to a client.
4. The control system of claim 1, wherein the parameters associated with the Zookeeper cluster comprise: at least one of a startup parameter of the Zookeeper cluster, a storage location parameter of a log of the Zookeeper cluster, and a parameter of a Zookeeper cluster operating environment.
5. The control system of claim 1, wherein the application alert information is used to indicate that an application of a Zookeeper cluster is malfunctioning, the operating environment alert information is used to indicate that an operating environment of a Zookeeper cluster is malfunctioning, and the hardware alert information is used to indicate that hardware of the server is malfunctioning.
6. The control system of claim 5, wherein the failure of the application of the Zookeeper cluster comprises an exception of the Zookeeper cluster in response to a write request from a client; the fault of the running environment of the Zookeeper cluster comprises that the available memory of the Zookeeper cluster is lower than a memory threshold; the hardware failure of the server includes network traffic anomalies between the Zookeeper cluster and the client.
7. The control system of claim 1, wherein the Zookeeper data processing module is further configured to:
carrying out batch export on data in a Zookeeper directory node in the server; or alternatively
And importing data to the Zookeeper directory node in the server in batches.
8. The control system of any one of claims 1-7, wherein the control system implements the Zookeeper cluster deployment, parameter configuration, security monitoring, and data read-write functions based on a visual interface.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the functions of the control system of any one of claims 1 to 8 when executing the computer program.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, realizes the functions of the control system of any one of claims 1 to 8.
CN201910640185.5A 2019-07-16 2019-07-16 Zookeeper cluster control system, device and storage medium Active CN112241269B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910640185.5A CN112241269B (en) 2019-07-16 2019-07-16 Zookeeper cluster control system, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910640185.5A CN112241269B (en) 2019-07-16 2019-07-16 Zookeeper cluster control system, device and storage medium

Publications (2)

Publication Number Publication Date
CN112241269A CN112241269A (en) 2021-01-19
CN112241269B true CN112241269B (en) 2024-05-10

Family

ID=74166822

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910640185.5A Active CN112241269B (en) 2019-07-16 2019-07-16 Zookeeper cluster control system, device and storage medium

Country Status (1)

Country Link
CN (1) CN112241269B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104202212A (en) * 2014-08-28 2014-12-10 浪潮(北京)电子信息产业有限公司 System and method for obtaining distributed cluster system alarm
CN107454140A (en) * 2017-06-27 2017-12-08 北京溢思得瑞智能科技研究院有限公司 A kind of Ceph cluster automatically dispose method and system based on big data platform
CN107682209A (en) * 2017-11-10 2018-02-09 青岛萨纳斯智能科技股份有限公司 A kind of SDP big datas automatically dispose monitor supervision platform

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104765621B (en) * 2014-01-02 2018-05-01 国际商业机器公司 A kind of method and system of the deployment program in clustered node

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104202212A (en) * 2014-08-28 2014-12-10 浪潮(北京)电子信息产业有限公司 System and method for obtaining distributed cluster system alarm
CN107454140A (en) * 2017-06-27 2017-12-08 北京溢思得瑞智能科技研究院有限公司 A kind of Ceph cluster automatically dispose method and system based on big data platform
CN107682209A (en) * 2017-11-10 2018-02-09 青岛萨纳斯智能科技股份有限公司 A kind of SDP big datas automatically dispose monitor supervision platform

Also Published As

Publication number Publication date
CN112241269A (en) 2021-01-19

Similar Documents

Publication Publication Date Title
CN110008118B (en) Page data testing method and device, computer equipment and storage medium
US10187425B2 (en) Issuing security commands to a client device
US8621574B2 (en) Opaque quarantine and device discovery
WO2015096695A1 (en) Installation control method, system and device for application program
CN108289098B (en) Authority management method and device of distributed file system, server and medium
CN115203653A (en) Associating user accounts with enterprise workspaces
CN111222153B (en) Application program authority management method and device and storage medium
CN108763951A (en) A kind of guard method of data and device
CN113626286A (en) Multi-cluster instance processing method and device, electronic equipment and storage medium
CN113849266A (en) Service deployment method and device for multiple Kubernetes clusters
US9462459B2 (en) Mobile device configuration system and method
US20160179624A1 (en) Expedited Device Backup, Wipe, and Enrollment
US20200342105A1 (en) File storage service initiation of antivirus software locally installed on a user device
CN109831521B (en) Cache instance management method and device, computer equipment and storage medium
CN104516744A (en) Software updating method and system
EP3355190A1 (en) Device and system for maintaining a ditributed ledger
US11507667B2 (en) Firmware password management
US20150296051A1 (en) Methods, remote access systems, client computing devices, and server devices for use in remote access systems
CN112241269B (en) Zookeeper cluster control system, device and storage medium
US20150304237A1 (en) Methods and systems for managing access to a location indicated by a link in a remote access system
CN115774700A (en) File sharing method and device, computer equipment and storage medium
US11757976B2 (en) Unified application management for heterogeneous application delivery
CN114296881A (en) Container protection connection method, device, equipment and medium based on middleware deployment
CN115022168B (en) Unified monitoring method based on zabbix and related equipment
CN114745445B (en) Control method, control device, electronic equipment and storage medium

Legal Events

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