CN113672384A - Client cluster maintenance method, system, terminal and storage medium based on Monitor - Google Patents

Client cluster maintenance method, system, terminal and storage medium based on Monitor Download PDF

Info

Publication number
CN113672384A
CN113672384A CN202110902900.5A CN202110902900A CN113672384A CN 113672384 A CN113672384 A CN 113672384A CN 202110902900 A CN202110902900 A CN 202110902900A CN 113672384 A CN113672384 A CN 113672384A
Authority
CN
China
Prior art keywords
client
state
service
cluster
summary table
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.)
Withdrawn
Application number
CN202110902900.5A
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.)
Jinan Inspur Data Technology Co Ltd
Original Assignee
Jinan Inspur Data 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 Jinan Inspur Data Technology Co Ltd filed Critical Jinan Inspur Data Technology Co Ltd
Priority to CN202110902900.5A priority Critical patent/CN113672384A/en
Publication of CN113672384A publication Critical patent/CN113672384A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5083Techniques for rebalancing the load in a distributed system
    • 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/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs

Landscapes

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

Abstract

The invention provides a client cluster maintenance method, a system, a terminal and a storage medium based on Monitor, comprising: each client of the client cluster is additionally provided with a monitor module, and the monitor module is used for periodically collecting the service state information of all online clients of the client cluster; updating the latest collected service state information to a client state summary table; and issuing the updated client state summary table to each client, wherein the client state summary table is used for the client cluster to execute service load balancing. According to the invention, the client monitor module is added, the client related information is uniformly stored in the client state summary table, and is pushed to the client when the client acquires the state, so that a certain client can sense the current state of all the clients, the client can conveniently realize services such as load balancing, quick switching and the like, and the availability and stability of the cluster are improved.

Description

Client cluster maintenance method, system, terminal and storage medium based on Monitor
Technical Field
The invention relates to the technical field of client cluster management of distributed storage, in particular to a client cluster maintenance method, a client cluster maintenance system, a client cluster maintenance terminal and a storage medium based on Monitor.
Background
In order to simplify the use of the user terminal, a distributed cache system is provided to provide an access interface to the distributed storage system and local data buffering to reduce the network pressure. A distributed storage system is used for storing data on a plurality of independent devices in a distributed mode. The traditional network storage system adopts a centralized storage server to store all data, the storage server becomes the bottleneck of the system performance, is also the focus of reliability and safety, and cannot meet the requirement of large-scale storage application. The distributed network storage system adopts an expandable system structure, utilizes a plurality of storage servers to share the storage load, and utilizes the position server to position the storage information, thereby not only improving the reliability, the availability and the access efficiency of the system, but also being easy to expand.
In a general distributed storage system, the main functions of the Monitor module are to manage the cluster and Monitor various statuses of the cluster, which are mainly responsible for maintaining various maps of the cluster, such as OSDMap (responsible for maintaining updates by OSDMonitor), PGMap (responsible for maintaining updates by PGMonitor), MDSMap (responsible for maintaining updates by MDSMonitor), and the like. The Monitor module is a core module of the distributed storage system. In the distributed system, besides the storage cluster, there are some client clusters, which are also important parts of the whole distributed storage system as direct data read-write entries of the storage cluster. With the continuous development of the technology, the types and scales of clients that can be supported by a storage cluster are also increasing, for example, in a distributed block storage scenario, the storage cluster includes an RBD client, a TGT client, and the like, and distributed file storage can support an RGW client, a Ganesha client, and the like.
With the increasing scale of the clients, it is very necessary to balance the load among the clients, and when external read-write services (direct operations of users, etc.) are connected to a certain client, it needs to know the service carrying conditions of all the current clients, and allocate the corresponding read-write services to the clients with small current traffic, so as to ensure maximum utilization of the cluster performance. In the current client cluster, external read-write services are generally randomly connected to the clients, and because the client nodes are independent, the connection states, service pressure and other states of other client nodes cannot be sensed, and relatively accurate load balancing cannot be achieved.
Disclosure of Invention
In view of the above deficiencies of the prior art, the present invention provides a client cluster maintenance method, system, terminal and storage medium based on Monitor, so as to solve the above technical problems.
In a first aspect, the present invention provides a client cluster maintenance method based on Monitor, including:
each client of the client cluster is additionally provided with a monitor module, and the monitor module is used for periodically collecting the service state information of all online clients of the client cluster;
updating the latest collected service state information to a client state summary table;
and issuing the updated client state summary table to each client, wherein the client state summary table is used for the client cluster to execute service load balancing.
Further, each client of the client cluster is additionally provided with a monitor module, which comprises:
establishing connection with all clients of the client cluster;
and sending the monitor module installation files to each client, and setting the self-execution of the monitor module installation files.
Further, the collecting, by the monitor module, the service status information of all online clients of the client cluster periodically includes:
receiving client service state information sent by the monitor module in a client specific state, wherein the service state information comprises a service connection state and service pressure; the specific state includes any one of: the client starts the state for the first time, the client service connection fluctuation state and the timed sending period is achieved.
Further, updating the latest collected service state information to the client state summary table includes:
judging whether historical client service state information corresponding to the received client service state information exists in a client state summary table or not:
if yes, updating the historical client service state information into the received client service state information;
if not, adding a client information item in the client state summary table, and storing the client service state information to the added client information item.
Further, issuing an updated client state summary table to each client, where the client state summary table is used by the client cluster to perform service load balancing, and the method includes:
and after the updated client state summary table is issued to each client, the client extracts the service state information of the client with the load balance selectable from the client state summary table, selects a target client with the minimum service pressure according to the service state information of the selectable client, and forwards the locally newly-added read-write service to the target client.
Further, the method further comprises:
and receiving normal shutdown information sent by a client, and removing the service state information of the client from the client state summary table.
Further, the method further comprises:
and periodically receiving heartbeat signals sent by a client through a monitor module, if the heartbeat signals are not received after the time limit is exceeded, marking the client as offline in the client state summary table, wherein the client in the offline state does not have the permission of receiving the read-write service.
In a second aspect, the present invention provides a client cluster maintenance system based on Monitor, including:
the cluster monitoring unit is used for additionally arranging a monitor module at each client of the client cluster and periodically collecting the service state information of all online clients of the client cluster through the monitor module;
the state summarizing unit is used for updating the latest collected business state information to the client state summarizing table;
and the load balancing unit is used for issuing the updated client state summary table to each client, and the client state summary table is used for the client cluster to execute service load balancing.
Further, the cluster monitoring unit is configured to:
establishing connection with all clients of the client cluster;
and sending the monitor module installation files to each client, and setting the self-execution of the monitor module installation files.
Further, the cluster monitoring unit is configured to:
receiving client service state information sent by the monitor module in a client specific state, wherein the service state information comprises a service connection state and service pressure; the specific state includes any one of: the client starts the state for the first time, the client service connection fluctuation state and the timed sending period is achieved.
Further, the status summarization unit is configured to:
judging whether historical client service state information corresponding to the received client service state information exists in a client state summary table or not:
if yes, updating the historical client service state information into the received client service state information;
if not, adding a client information item in the client state summary table, and storing the client service state information to the added client information item.
Further, the load balancing unit is configured to:
and after the updated client state summary table is issued to each client, the client extracts the service state information of the client with the load balance selectable from the client state summary table, selects a target client with the minimum service pressure according to the service state information of the selectable client, and forwards the locally newly-added read-write service to the target client.
Further, the system further comprises:
and the shutdown removal unit is used for receiving normal shutdown information sent by a client and removing the service state information of the client from the client state summary table.
Further, the system further comprises:
and the offline updating unit is used for periodically receiving the heartbeat signal sent by the client through the monitor module, and if the heartbeat signal is not received after the time limit is exceeded, the client is marked as offline in the client state summary table, and the client in the offline state does not have the permission of receiving the read-write service.
In a third aspect, a terminal is provided, including:
a processor, a memory, wherein,
the memory is used for storing a computer program which,
the processor is used for calling and running the computer program from the memory so as to make the terminal execute the method of the terminal.
In a fourth aspect, a computer storage medium is provided having stored therein instructions that, when executed on a computer, cause the computer to perform the method of the above aspects.
The beneficial effect of the invention is that,
according to the client cluster maintenance method based on Monitor, the Monitor module is additionally arranged at each client of the client cluster, the Monitor module is used for periodically collecting the service state information of all online clients of the client cluster, the newly collected service state information is updated to the client state summary table, the updated client state summary table is issued to each client, and the client state summary table provides data support for the client cluster to execute service load balance. According to the invention, the client monitor module is added, the client related information is uniformly stored in the client state summary table, and is pushed to the client when the client acquires the state, so that a certain client can sense the current state of all the clients, the client can conveniently realize services such as load balancing, quick switching and the like, and the availability and stability of the cluster are improved.
According to the client cluster maintenance system based on Monitor, the Monitor module is additionally arranged on each client of the client cluster through the cluster monitoring unit, the Monitor module is used for periodically collecting the service state information of all online clients of the client cluster, the latest collected service state information is updated to the client state summary table through the state summary unit, the updated client state summary table is issued to each client by the load balancing unit, and the client state summary table provides data support for the client cluster to execute service load balancing. According to the invention, the client monitor module is added, the client related information is uniformly stored in the client state summary table, and is pushed to the client when the client acquires the state, so that a certain client can sense the current state of all the clients, the client can conveniently realize services such as load balancing, quick switching and the like, and the availability and stability of the cluster are improved.
The terminal provided by the invention comprises a processor for operating a client cluster maintenance method based on Monitor, and the invention uniformly stores the client related information in a client state summary table through adding a client Monitor module, and pushes the client related information to the client when the client acquires the state, so that a certain client can sense the current state of all the clients, the client can conveniently realize services such as load balancing, quick switching and the like, and the availability and stability of the cluster are improved.
The storage medium stores a program for executing the client cluster maintenance method based on Monitor, uniformly stores the client related information in a client state summary table through adding a client Monitor module, and pushes the client related information to the client when the client acquires the state, so that a certain client can sense the current state of all the clients, the client can conveniently realize services such as load balancing, quick switching and the like, and the availability and the stability of a cluster are improved.
In addition, the invention has reliable design principle, simple structure and very wide application prospect.
Drawings
In order to more clearly illustrate the embodiments or technical solutions in the prior art of the present invention, the drawings used in the description of the embodiments or prior art will be briefly described below, and it is obvious for those skilled in the art that other drawings can be obtained based on these drawings without creative efforts.
FIG. 1 is a schematic flow diagram of a method of one embodiment of the invention.
FIG. 2 is a schematic block diagram of a system of one embodiment of the present invention.
Fig. 3 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiment of the present invention will be clearly and completely described below with reference to the drawings in the embodiment of the present invention, and it is obvious that the described embodiment is only a part of the embodiment of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
FIG. 1 is a schematic flow diagram of a method of one embodiment of the invention. The execution subject in fig. 1 may be a client cluster maintenance system based on Monitor.
As shown in fig. 1, the method includes:
step 110, adding a monitor module at each client of the client cluster, and periodically collecting the service state information of all online clients of the client cluster through the monitor module;
step 120, updating the latest collected service state information to a client state summary table;
step 130, issuing the updated client state summary table to each client, where the client state summary table is used for the client cluster to perform service load balancing.
In order to facilitate understanding of the present invention, the principle of the client cluster maintenance method based on Monitor of the present invention is combined with the process of maintaining the client cluster based on Monitor in the embodiment to further describe the client cluster maintenance method based on Monitor of the present invention.
The key point of this embodiment is to completely maintain a ClientMap between the primary and secondary mons through different types of message communication between the client and the Monitor, and push it to each client node in real time, so that a certain client can sense the states of other client nodes, and further characteristics such as read-write service balance, service fast switching, and the like can be realized at the client side, so as to improve the availability and reliability of the cluster.
Specifically, the client cluster maintenance method based on Monitor includes:
and S1, adding a monitor module at each client of the client cluster, and periodically collecting the service state information of all online clients of the client cluster through the monitor module.
Establishing connection with all clients of the client cluster; and sending the monitor module installation files to each client, and setting the self-execution of the monitor module installation files.
After the client is started, automatically establishing connection with a management node, identifying the client by the management node, judging whether the client has monitoring records locally (monitor module deployment is needed without the monitoring records) or calling a slave monitor module of the client to establish connection with the slave monitor module, and if the connection is successful, starting to monitor the client; if the connection is unsuccessful, the monitor module needs to be installed on the client, and the specific installation method is to establish connection with all the clients of the client cluster, send the monitor module installation file to the client and set the self-execution of the monitor module installation file.
Receiving client service state information sent by the monitor module in a client specific state, wherein the service state information comprises a service connection state and service pressure; the specific state includes any one of: the client starts the state for the first time, the client service connection fluctuation state and the timed sending period is achieved.
The specific monitoring information collection method comprises the following steps: the monitor module sends a message to a Mon (main monitor module) when a client is started for the first time (Boot message type), the service connection state of the client changes (newly increased or decreased, Connect message type) and the client is sent regularly (Connect message type), and the message carries relevant information of the monitor module (connection state, service pressure and the like).
And S2, updating the latest collected service state information to a client state summary table.
Judging whether historical client service state information corresponding to the received client service state information exists in a client state summary table or not: if yes, updating the historical client service state information into the received client service state information; if not, adding a client information item in the client state summary table, and storing the client service state information to the added client information item.
Specifically, after receiving the service state information of the client, the main Mon of the management node first checks whether the client is included in the ClientMap (client state summary table) maintained by the main Mon, if not, the main Mon is newly added into the ClientMap, and otherwise, the main Mon updates the corresponding client information in the ClientMap. And then, initiating a protocol to achieve data unification of ClientMap between the master and the slave Mons.
In addition, the updating method executed on the client state summary table includes:
(1) and receiving normal shutdown information sent by a client, and removing the service state information of the client from the client state summary table.
When the client node is normally shut down, the ShutDown message is actively sent to the Mon, the main Mon deletes the corresponding node from the ClientMap after receiving the message, and then the ClientMap which issues a new version is delivered to each node.
(2) And periodically receiving heartbeat signals sent by a client through a monitor module, if the heartbeat signals are not received after the time limit is exceeded, marking the client as offline in the client state summary table, wherein the client in the offline state does not have the permission of receiving the read-write service.
And setting a heartbeat interval (such as 60s) for each client at the Mon side, marking the client as offline by the main Mon when the information of the corresponding client is not received after the interval time is exceeded, and not distributing read-write service for the corresponding node when the client receives the ClientMap.
And S3, issuing the updated client state summary table to each client, wherein the client state summary table is used for the client cluster to execute service load balancing.
And after the updated client state summary table is issued to each client, the client extracts the service state information of the client with the load balance selectable from the client state summary table, selects a target client with the minimum service pressure according to the service state information of the selectable client, and forwards the locally newly-added read-write service to the target client.
Specifically, when the protocol is completed, the main Mon issues a new version (version number incremented by one bit) of ClientMap to each client node (pushed to each node by a corresponding message). When the client receives a new version of the ClientMap, the ClientMap is analyzed, the information of each client node stored by the client is updated, and at the moment, when a new read-write service is connected, the new read-write service can be distributed to the client node with smaller service volume.
In the client cluster maintenance method based on Monitor provided by this embodiment, a Monitor module is added to each client of a client cluster, the Monitor module periodically collects service state information of all online clients of the client cluster, updates the newly collected service state information to a client state summary table, and issues the updated client state summary table to each client, where the client state summary table provides data support for the client cluster to perform service load balancing. In this embodiment, by adding a client monitor module, the client related information is uniformly stored in a client state summary table, and is pushed to the client when the client acquires the state, so that a certain client senses the current state of all the clients, the client is convenient to implement services such as load balancing and fast switching, and the availability and stability of the cluster are improved.
As shown in fig. 2, the system 200 includes:
a cluster monitoring unit 210, configured to add a monitor module to each client of the client cluster, and periodically collect service state information of all online clients of the client cluster through the monitor module;
a status summarization unit 220, configured to update the latest collected service status information to a client status summarization table;
and a load balancing unit 230, configured to issue an updated client state summary table to each client, where the client state summary table is used for the client cluster to perform service load balancing.
Optionally, as an embodiment of the present invention, the cluster monitoring unit is configured to:
establishing connection with all clients of the client cluster;
and sending the monitor module installation files to each client, and setting the self-execution of the monitor module installation files.
Optionally, as an embodiment of the present invention, the cluster monitoring unit is configured to:
receiving client service state information sent by the monitor module in a client specific state, wherein the service state information comprises a service connection state and service pressure; the specific state includes any one of: the client starts the state for the first time, the client service connection fluctuation state and the timed sending period is achieved.
Optionally, as an embodiment of the present invention, the status summarizing unit is configured to:
judging whether historical client service state information corresponding to the received client service state information exists in a client state summary table or not:
if yes, updating the historical client service state information into the received client service state information;
if not, adding a client information item in the client state summary table, and storing the client service state information to the added client information item.
Optionally, as an embodiment of the present invention, the load balancing unit is configured to:
and after the updated client state summary table is issued to each client, the client extracts the service state information of the client with the load balance selectable from the client state summary table, selects a target client with the minimum service pressure according to the service state information of the selectable client, and forwards the locally newly-added read-write service to the target client.
Optionally, as an embodiment of the present invention, the system further includes:
and the shutdown removal unit is used for receiving normal shutdown information sent by a client and removing the service state information of the client from the client state summary table.
Optionally, as an embodiment of the present invention, the system further includes:
and the offline updating unit is used for periodically receiving the heartbeat signal sent by the client through the monitor module, and if the heartbeat signal is not received after the time limit is exceeded, the client is marked as offline in the client state summary table, and the client in the offline state does not have the permission of receiving the read-write service.
Fig. 3 is a schematic structural diagram of a terminal 300 according to an embodiment of the present invention, where the terminal 300 may be used to execute a client cluster maintenance method based on Monitor according to the embodiment of the present invention.
Among them, the terminal 300 may include: a processor 310, a memory 320, and a communication unit 330. The components communicate via one or more buses, and those skilled in the art will appreciate that the architecture of the servers shown in the figures is not intended to be limiting, and may be a bus architecture, a star architecture, a combination of more or less components than those shown, or a different arrangement of components.
The memory 320 may be used for storing instructions executed by the processor 310, and the memory 320 may be implemented by any type of volatile or non-volatile storage terminal or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The executable instructions in memory 320, when executed by processor 310, enable terminal 300 to perform some or all of the steps in the method embodiments described below.
The processor 310 is a control center of the storage terminal, connects various parts of the entire electronic terminal using various interfaces and lines, and performs various functions of the electronic terminal and/or processes data by operating or executing software programs and/or modules stored in the memory 320 and calling data stored in the memory. The processor may be composed of an Integrated Circuit (IC), for example, a single packaged IC, or a plurality of packaged ICs connected with the same or different functions. For example, the processor 310 may include only a Central Processing Unit (CPU). In the embodiment of the present invention, the CPU may be a single operation core, or may include multiple operation cores.
A communication unit 330, configured to establish a communication channel so that the storage terminal can communicate with other terminals. And receiving user data sent by other terminals or sending the user data to other terminals.
The present invention also provides a computer storage medium, wherein the computer storage medium may store a program, and the program may include some or all of the steps in the embodiments provided by the present invention when executed. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a Random Access Memory (RAM).
Therefore, the invention adds the monitor module at each client of the client cluster, periodically collects the service state information of all online clients of the client cluster through the monitor module, updates the latest collected service state information to the client state summary table, and issues the updated client state summary table to each client, and the client state summary table provides data support for the client cluster to execute service load balance. According to the invention, the client monitor module is added, the client related information is uniformly stored in the client state summary table, and is pushed to the client when the client acquires the state, so that a certain client can sense the current state of all the clients, the client can conveniently realize services such as load balancing, fast switching and the like, and the availability and stability of the cluster are improved.
Those skilled in the art will readily appreciate that the techniques of the embodiments of the present invention may be implemented as software plus a required general purpose hardware platform. Based on such understanding, the technical solutions in the embodiments of the present invention may be embodied in the form of a software product, where the computer software product is stored in a storage medium, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and the like, and the storage medium can store program codes, and includes instructions for enabling a computer terminal (which may be a personal computer, a server, or a second terminal, a network terminal, and the like) to perform all or part of the steps of the method in the embodiments of the present invention.
The same and similar parts in the various embodiments in this specification may be referred to each other. Especially, for the terminal embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant points can be referred to the description in the method embodiment.
In the embodiments provided in the present invention, it should be understood that the disclosed system and method can be implemented in other ways. For example, the above-described system embodiments are merely illustrative, and for example, the division of the units is only one logical functional division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, systems or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
Although the present invention has been described in detail by referring to the drawings in connection with the preferred embodiments, the present invention is not limited thereto. Various equivalent modifications or substitutions can be made on the embodiments of the present invention by those skilled in the art without departing from the spirit and scope of the present invention, and these modifications or substitutions are within the scope of the present invention/any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A client cluster maintenance method based on Monitor is characterized by comprising the following steps:
each client of the client cluster is additionally provided with a monitor module, and the monitor module is used for periodically collecting the service state information of all online clients of the client cluster;
updating the latest collected service state information to a client state summary table;
and issuing the updated client state summary table to each client, wherein the client state summary table is used for the client cluster to execute service load balancing.
2. The method of claim 1, wherein adding a monitor module to each client of the client cluster comprises:
establishing connection with all clients of the client cluster;
and sending the monitor module installation files to each client, and setting the self-execution of the monitor module installation files.
3. The method of claim 1, wherein collecting the traffic status information of all online clients of the client cluster periodically through a monitor module comprises:
receiving client service state information sent by the monitor module in a client specific state, wherein the service state information comprises a service connection state and service pressure; the specific state includes any one of: the client starts the state for the first time, the client service connection fluctuation state and the timed sending period is achieved.
4. The method of claim 1, wherein updating the most recently collected traffic state information to a client state summary table comprises:
judging whether historical client service state information corresponding to the received client service state information exists in a client state summary table or not:
if yes, updating the historical client service state information into the received client service state information;
if not, adding a client information item in the client state summary table, and storing the client service state information to the added client information item.
5. The method of claim 1, wherein the step of issuing an updated client state summary table to each client, the client state summary table being used by the client cluster to perform traffic load balancing comprises:
and after the updated client state summary table is issued to each client, the client extracts the service state information of the client with the load balance selectable from the client state summary table, selects a target client with the minimum service pressure according to the service state information of the selectable client, and forwards the locally newly-added read-write service to the target client.
6. The method of claim 1, further comprising:
and receiving normal shutdown information sent by a client, and removing the service state information of the client from the client state summary table.
7. The method of claim 1, further comprising:
and periodically receiving heartbeat signals sent by a client through a monitor module, if the heartbeat signals are not received after the time limit is exceeded, marking the client as offline in the client state summary table, wherein the client in the offline state does not have the permission of receiving the read-write service.
8. A client cluster maintenance system based on Monitor, comprising:
the cluster monitoring unit is used for additionally arranging a monitor module at each client of the client cluster and periodically collecting the service state information of all online clients of the client cluster through the monitor module;
the state summarizing unit is used for updating the latest collected business state information to the client state summarizing table;
and the load balancing unit is used for issuing the updated client state summary table to each client, and the client state summary table is used for the client cluster to execute service load balancing.
9. A terminal, comprising:
a processor;
a memory for storing instructions for execution by the processor;
wherein the processor is configured to perform the method of any one of claims 1-7.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-7.
CN202110902900.5A 2021-08-06 2021-08-06 Client cluster maintenance method, system, terminal and storage medium based on Monitor Withdrawn CN113672384A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110902900.5A CN113672384A (en) 2021-08-06 2021-08-06 Client cluster maintenance method, system, terminal and storage medium based on Monitor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110902900.5A CN113672384A (en) 2021-08-06 2021-08-06 Client cluster maintenance method, system, terminal and storage medium based on Monitor

Publications (1)

Publication Number Publication Date
CN113672384A true CN113672384A (en) 2021-11-19

Family

ID=78541745

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110902900.5A Withdrawn CN113672384A (en) 2021-08-06 2021-08-06 Client cluster maintenance method, system, terminal and storage medium based on Monitor

Country Status (1)

Country Link
CN (1) CN113672384A (en)

Similar Documents

Publication Publication Date Title
JP4760491B2 (en) Event processing system, event processing method, event processing apparatus, and event processing program
CN111091429B (en) Electronic bill identification distribution method and device and electronic bill generation system
CN101650741B (en) Method and system for updating index of distributed full-text search in real time
CN109218100A (en) Distributed objects storage cluster and its request responding method, system and storage medium
CN104486445A (en) Distributed extendable resource monitoring system and method based on cloud platform
CN110795503A (en) Multi-cluster data synchronization method and related device of distributed storage system
CN111124277A (en) Deep learning data set caching method, system, terminal and storage medium
CN103067297A (en) Dynamic load balancing method and device based on resource consumption prediction
CN112583931A (en) Message processing method, message middleware, electronic device and storage medium
CN111966449B (en) Virtual machine backup management method, system, terminal and storage medium
CN111552701B (en) Method for determining data consistency in distributed cluster and distributed data system
CN111597197B (en) Data reconciliation method and device between databases, storage medium and electronic equipment
CN103533081A (en) Cloud-computing-based billing system and implementation method thereof
CN109639773A (en) A kind of the distributed data cluster control system and its method of dynamic construction
CN112230847B (en) Method, system, terminal and storage medium for monitoring K8s storage volume
CN110519354A (en) A kind of distributed objects storage system and its method for processing business and storage medium
CN108877188A (en) A kind of environment protection digital concurrently acquires and Multi net voting dissemination method and device
CN111541762A (en) Data processing method, management server, device and storage medium
CN113014608A (en) Flow distribution control method and device, electronic equipment and storage medium
CN112087506B (en) Cluster node management method and device and computer storage medium
CN111064643B (en) Node server and data interaction method and related device thereof
CN112698929A (en) Information acquisition method and device
CN111736993A (en) Cluster high-availability service configuration method, system, terminal and storage medium
CN113672384A (en) Client cluster maintenance method, system, terminal and storage medium based on Monitor
CN111628903A (en) Monitoring method and monitoring system for transaction system running state

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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20211119