CN112468329A - Method, device, equipment and readable medium for batch grouping management of servers - Google Patents
Method, device, equipment and readable medium for batch grouping management of servers Download PDFInfo
- Publication number
- CN112468329A CN112468329A CN202011267703.2A CN202011267703A CN112468329A CN 112468329 A CN112468329 A CN 112468329A CN 202011267703 A CN202011267703 A CN 202011267703A CN 112468329 A CN112468329 A CN 112468329A
- Authority
- CN
- China
- Prior art keywords
- hosts
- host
- relay point
- clusters
- command
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 35
- 238000004422 calculation algorithm Methods 0.000 claims abstract description 20
- 238000012545 processing Methods 0.000 claims description 17
- 238000004590 computer program Methods 0.000 claims description 9
- 238000013515 script Methods 0.000 description 14
- 238000010586 diagram Methods 0.000 description 8
- 238000012423 maintenance Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 230000000694 effects Effects 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 239000000835 fiber Substances 0.000 description 2
- 238000009434 installation Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000014509 gene expression Effects 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 238000011835 investigation Methods 0.000 description 1
- 230000002035 prolonged effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/04—Network management architectures or arrangements
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F18/00—Pattern recognition
- G06F18/20—Analysing
- G06F18/23—Clustering techniques
- G06F18/231—Hierarchical techniques, i.e. dividing or merging pattern sets so as to obtain a dendrogram
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/46—Cluster building
Landscapes
- Engineering & Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Theoretical Computer Science (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Evolutionary Biology (AREA)
- Evolutionary Computation (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Bioinformatics & Computational Biology (AREA)
- Artificial Intelligence (AREA)
- Life Sciences & Earth Sciences (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a method for batch grouping management of servers, which comprises the following steps: detecting the distance between any two hosts through a route tracking command; dividing all the hosts into a preset number of host clusters through a hierarchical clustering algorithm based on the distance between any two hosts; selecting one host from each host cluster as a relay point; and sending the command to the relay point, and issuing the command to other hosts in the host cluster by the relay point. The invention also discloses a device for batch grouping management of the servers, computer equipment and a readable storage medium. According to the invention, the server is divided into a plurality of groups by using a hierarchical clustering algorithm according to the network condition, one host in each group is selected as the relay point, the management program sends the task to the relay point, and the task is continuously issued to other hosts by the relay point, so that the delay caused by overlarge load of the management host or network reasons is effectively reduced, and the efficiency of managing the hosts in batches is improved.
Description
Technical Field
The present invention relates to the field of server technologies, and in particular, to a method, an apparatus, a device, and a readable medium for batch grouping management of servers.
Background
With the development of technology, the size of the data center becomes larger and larger, and the operation and maintenance scenes of operation and maintenance personnel also become extremely complex. The workload of operation and maintenance personnel is reduced by the presence of various operation and maintenance tools such as an alarm, Saltstack, Puppet and the like, but large time consumption is still caused when large-scale remote host management is carried out.
After investigation, several factors which easily cause time consumption are summarized: firstly, the management host has overlarge load or insufficient bandwidth, and when the number of hosts needing to run tasks in batches is too large, the management program can only issue the tasks in batches, so that the time required by running the management tasks is prolonged; secondly, loops may exist in the network, and if loops exist in the complex network, data packets can be continuously sent and checked, so that the overall network speed is influenced, the issuing of tasks or files is influenced, and delay is caused; third, network cable problems or hardware failures, etc.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method, an apparatus, a device, and a readable medium for batch group management of servers, where servers are divided into a plurality of groups by using a hierarchical clustering algorithm according to a network condition, and one host in each group is selected as a relay point, and a management program sends a task to the relay point, and then the task is continuously issued to other hosts by the relay point, so as to effectively reduce delay caused by an excessive load of a management host or a network reason, and improve efficiency of batch management of the hosts.
Based on the above object, an aspect of the embodiments of the present invention provides a method for batch group management of servers, including the following steps performed at a maintenance device: detecting the distance between any two hosts through a route tracking command; dividing all the hosts into a preset number of host clusters through a hierarchical clustering algorithm based on the distance between any two hosts; selecting one host from each host cluster as a relay point; and sending the command to the relay point, and issuing the command to other hosts in the host cluster by the relay point.
In some embodiments, further comprising: and receiving a final processing result returned by the relay point, wherein the final processing result is obtained by combining the processing results of other hosts received by the relay point.
In some embodiments, detecting the distance between any two hosts through the traceroute command includes: obtaining the return time of sending the ICMP packet for three times between any two hosts through the routing tracking command, and calculating the average value of the return time; the distance between the two hosts is represented based on the average.
In some embodiments, dividing all hosts into a preset number of host clusters by a hierarchical clustering algorithm based on the distance between any two hosts comprises: merging two hosts/clusters with the closest distance into one cluster to obtain a plurality of clusters, and judging whether the number of the obtained clusters is greater than a preset number or not; if the obtained number of clusters is larger than the preset number, recalculating the distance between the clusters and returning to the previous step; and if the obtained cluster number is not more than the preset number, determining that all the hosts are divided into the host clusters with the preset number.
In some embodiments, selecting a host in each host cluster as a relay point comprises: and randomly selecting one host in each host cluster as a relay point.
In some embodiments, selecting a host in each host cluster as a relay point comprises: and selecting one host in each host cluster as a relay point according to the CPU utilization rate and/or the memory utilization rate and/or the IO utilization rate of the server.
In some embodiments, sending the command to the relay point comprises: sending a command for acquiring the state, configuration and performance information of the server to the relay point; and/or sending a command for deploying and installing the server to the relay point; and/or sending commands for upgrading, configuring and inspecting the server firmware to the relay point.
In another aspect of the embodiments of the present invention, a device for batch grouping management of servers is further provided, including: the route tracking module is configured to detect the distance between any two hosts through a route tracking command; the clustering module is configured and used for dividing all the hosts into a preset number of host clusters through a hierarchical clustering algorithm based on the distance between any two hosts; a relay point selecting module configured to select one host from each host cluster as a relay point; and the management module is configured to send a command to the relay point, and the relay point issues the command to other hosts in the host cluster.
In some embodiments, the system further includes a processing module configured to analyze and display a final processing result returned by the relay point, where the final processing result is obtained by combining processing results of other hosts received by the relay point.
In some embodiments, the route tracing module is further configured to: obtaining the return time of sending the ICMP packet for three times between any two hosts through the routing tracking command, and calculating the average value of the return time; the distance between the two hosts is represented based on the average.
In some embodiments, the clustering module is further configured to: merging two hosts/clusters with the closest distance into one cluster to obtain a plurality of clusters, and judging whether the number of the obtained clusters is greater than a preset number or not; if the obtained number of clusters is larger than the preset number, recalculating the distance between the clusters and returning to the previous step; and if the obtained cluster number is not more than the preset number, determining that all the hosts are divided into the host clusters with the preset number.
In some embodiments, the select relay module is further configured to: and randomly selecting one host in each host cluster as a relay point.
In some embodiments, the select relay module is further configured to: and selecting one host in each host cluster as a relay point according to the CPU utilization rate and/or the memory utilization rate and/or the IO utilization rate of the server.
In some embodiments, the management module is further configured to: sending a command for acquiring the state, configuration and performance information of the server to the relay point; and/or sending a command for deploying and installing the server to the relay point; and/or sending commands for upgrading, configuring and inspecting the server firmware to the relay point.
In another aspect of the embodiments of the present invention, there is also provided a computer device, including: at least one processor; and a memory storing computer instructions executable on the processor, the instructions when executed by the processor implementing the steps of the method.
In a further aspect of the embodiments of the present invention, a computer-readable storage medium is also provided, in which a computer program for implementing the above method steps is stored when the computer program is executed by a processor.
The invention has the following beneficial technical effects: the server is divided into a plurality of groups by using a hierarchical clustering algorithm according to the network condition, one host in each group is selected as a relay point, and the management program firstly sends scripts of task execution, result acquisition and the like and files to be transmitted to the relay point and then the relay point continuously issues the scripts and the files to be transmitted to other hosts. The method effectively reduces delay caused by overlarge load of the management host or network reasons, improves the efficiency of managing the hosts in batches, and has more obvious effect particularly when the number of the managed hosts is large, the network structure is complex, and tasks needing to transmit large files such as installation are required.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other embodiments can be obtained by using the drawings without creative efforts.
FIG. 1 is a diagram illustrating an embodiment of a method for batch grouping management of servers according to the present invention;
FIG. 2 is a diagram illustrating an embodiment of an apparatus for batch grouping management of servers according to the present invention;
FIG. 3 is a schematic diagram of an embodiment of a computer device provided by the present invention;
FIG. 4 is a schematic diagram of an embodiment of a computer-readable storage medium provided by the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention are described in further detail with reference to the accompanying drawings.
It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are used for distinguishing two entities with the same name but different names or different parameters, and it should be noted that "first" and "second" are merely for convenience of description and should not be construed as limitations of the embodiments of the present invention, and they are not described in any more detail in the following embodiments.
In view of the above object, a first aspect of the embodiments of the present invention provides an embodiment of a method for batch grouping management of servers. Fig. 1 is a schematic diagram illustrating an embodiment of a method for server batch group management provided by the present invention. As shown in fig. 1, the embodiment of the present invention includes the following steps performed at the maintenance device side:
s01, detecting the distance between any two hosts through the route tracking command;
s02, dividing all hosts into a preset number of host clusters through a hierarchical clustering algorithm based on the distance between any two hosts;
s03, selecting one host in each host cluster as a relay point; and
and S04, sending the command to the relay point, and issuing the command to other hosts in the host cluster by the relay point.
In the embodiment, a management program is used for accessing the data center, and the servers in the data center are managed in batch. The grouping algorithm uses a hierarchical clustering grouping algorithm to divide all the hosts into K groups according to tresert data among the hosts as a basis for measuring network delay among the hosts. One host is selected from each group as a relay point, and the management program firstly sends scripts of task execution, result acquisition and the like and files to be transmitted to the relay point and then the relay point continuously issues the scripts and the files to be transmitted to each managed host.
In this embodiment, the purpose of the clustering and grouping algorithm is to group the hosts in the network with the least latency required for the interconnection of the managed hosts. Hierarchical clustering is a clustering algorithm, and has two modes of top-down splitting and bottom-up merging, and we use the mode of bottom-up merging here. It may divide the samples in the data set into several disjoint subsets according to distance, each subset being a cluster. Hierarchical clustering has the advantage of flexible selection of the number of clusters and the cluster centers. When a batch task is issued, the management program issues the task and the management script to the relay point, and then the relay point sends the task and the management script to other managed hosts of each cluster, so that the time for task execution and file transmission is greatly shortened.
In some embodiments of the invention, further comprising: and receiving a final processing result returned by the relay point, wherein the final processing result is obtained by combining the processing results of other hosts received by the relay point.
In this embodiment, when receiving the return values of other managed hosts, the relay points return the results to the management program in a unified manner, and merge, analyze and display the results.
In some embodiments of the invention, detecting the distance between any two hosts through the traceroute command comprises: obtaining the return time of sending the ICMP packet for three times between any two hosts through the routing tracking command, and calculating the average value of the return time; the distance between the two hosts is represented based on the average.
The Tracert is a network command for detecting the number of routing nodes, and may list the routing nodes that the packet passes through and the delay of each hop in the IP network, where the fields include the lifetime, the return time of the ICMP packet sent three times, and the routing nodes that pass through. In this embodiment, the average of the return times of three times an ICMP packet is sent is used to measure the distance between two hosts.
In some embodiments of the present invention, dividing all hosts into a preset number of host clusters by a hierarchical clustering algorithm based on a distance between any two hosts comprises: merging two hosts/clusters with the closest distance into one cluster to obtain a plurality of clusters, and judging whether the number of the obtained clusters is greater than a preset number or not; if the obtained number of clusters is larger than the preset number, recalculating the distance between the clusters and returning to the previous step; and if the obtained cluster number is not more than the preset number, determining that all the hosts are divided into the host clusters with the preset number.
In this embodiment, a hierarchical clustering algorithm and Tracert data are used to construct a grouping model of managed hosts. If there are m managed hosts, then assume the unlabeled dataset as
The task of the algorithm is to cluster the data set into k clusters C ═ C1,C2,…Ck. Each sample in the data set is first treated as a cluster. Collecting Tracert data among clusters, calculating the average value of the return time of the ICMP packet sent three times, taking the average value as a parameter for measuring the distance between two clusters, and recording the average value as dist (x)i,xj). The two samples whose data points are closest to each other are merged, assumed to be u. The distance between clusters is recalculated. The calculation method of the distance from u to each other cluster is as follows: the average of the distances of the other clusters to each sample in u is calculated. And selecting the two clusters with the minimum distance again for combination. The calculation of the distance merging clusters is repeated until the data points are divided into K groups. The selection of K is crucial to the grouping result, and may even result in poor operation result, so it should be generally selected by operation and maintenance personnel.
In some embodiments of the present invention, selecting a host in each host cluster as a relay point comprises: and randomly selecting one host in each host cluster as a relay point.
In this embodiment, one host is arbitrarily selected from each cluster as a relay point of the cluster. And accessing the management program to a management center, and performing batch host management according to the constructed packet model. When there is a batch management task, the management program firstly constructs scripts of task execution, result acquisition and the like, and sends the scripts and files to be issued to each relay point. And each relay point sends the task execution script and the task execution file to other managed hosts of the cluster according to the script content.
In some embodiments of the present invention, selecting a host in each host cluster as a relay point comprises: and selecting one host in each host cluster as a relay point according to the CPU utilization rate and/or the memory utilization rate and/or the IO utilization rate of the server.
In this embodiment, one host is selected as a relay point of each cluster according to parameters such as the CPU utilization rate, the memory utilization rate, and the I/O utilization rate of the server. And accessing the management program to a management center, and performing batch host management according to the constructed packet model. When there is a batch management task, the management program firstly constructs scripts of task execution, result acquisition and the like, and sends the scripts and files to be issued to each relay point. And each relay point sends the task execution script and the task execution file to other managed hosts of the cluster according to the script content.
In some embodiments of the invention, sending a command to the relay point comprises: sending a command for acquiring the state, configuration and performance information of the server to the relay point; and/or sending a command for deploying and installing the server to the relay point; and/or sending commands for upgrading, configuring and inspecting the server firmware to the relay point.
In this embodiment, the management program for managing the servers of the data center is used to complete batch management of the servers, the servers of the entire data center can be browsed, the management program can acquire information of the state, configuration, performance and the like of the servers, and the servers can be subjected to operations such as batch deployment, installation, firmware upgrade, firmware configuration, routing inspection and the like.
It should be particularly noted that, the steps in the embodiments of the method for server batch group management described above may be mutually intersected, replaced, added, or deleted, and therefore, these methods for server batch group management, which are transformed by reasonable permutation and combination, should also belong to the scope of the present invention, and should not limit the scope of the present invention to the embodiments.
In view of the above object, according to a second aspect of the embodiments of the present invention, an apparatus for batch grouping management of servers is provided. Fig. 2 is a schematic diagram illustrating an embodiment of an apparatus for server batch group management provided by the present invention. As shown in fig. 2, the embodiment of the present invention includes the following modules: a route trace module S11 configured to detect a distance between any two hosts through the route trace command; a clustering module S12 configured to divide all hosts into a preset number of host clusters by a hierarchical clustering algorithm based on the distance between any two hosts; a relay point selecting module S13 configured to select one host from each host cluster as a relay point; and the management module S14 is configured to send a command to the relay point, and the relay point issues the command to other hosts in the host cluster.
In some embodiments of the present invention, the relay node further includes a processing module configured to analyze and display a final processing result returned by the relay node, where the final processing result is obtained by merging processing results of other hosts received by the relay node.
In some embodiments of the invention, the route tracing module S11 is further configured to: obtaining the return time of sending the ICMP packet for three times between any two hosts through the routing tracking command, and calculating the average value of the return time; the distance between the two hosts is represented based on the average.
In some embodiments of the invention, the clustering module S12 is further configured to: merging two hosts/clusters with the closest distance into one cluster to obtain a plurality of clusters, and judging whether the number of the obtained clusters is greater than a preset number or not; if the obtained number of clusters is larger than the preset number, recalculating the distance between the clusters and returning to the previous step; and if the obtained cluster number is not more than the preset number, determining that all the hosts are divided into the host clusters with the preset number.
In some embodiments of the invention, the choose relay module S13 is further configured to: and randomly selecting one host in each host cluster as a relay point.
In some embodiments of the invention, the choose relay module S13 is further configured to: and selecting one host in each host cluster as a relay point according to the CPU utilization rate and/or the memory utilization rate and/or the IO utilization rate of the server.
In some embodiments of the invention, the management module S14 is further configured to: sending a command for acquiring the state, configuration and performance information of the server to the relay point; and/or sending a command for deploying and installing the server to the relay point; and/or sending commands for upgrading, configuring and inspecting the server firmware to the relay point.
In view of the above object, a third aspect of the embodiments of the present invention provides a computer device. Fig. 3 is a schematic diagram of an embodiment of a computer device provided by the present invention. As shown in fig. 3, an embodiment of the present invention includes the following means: at least one processor S21; and a memory S22, the memory S22 storing computer instructions S23 executable on the processor, the instructions when executed by the processor implementing the steps of the above method.
The invention also provides a computer readable storage medium. FIG. 4 is a schematic diagram illustrating an embodiment of a computer-readable storage medium provided by the present invention. As shown in fig. 4, the computer readable storage medium stores S31 a computer program that, when executed by a processor, performs the method as described above S32.
Finally, it should be noted that, as one of ordinary skill in the art can appreciate that all or part of the processes of the methods of the above embodiments can be implemented by instructing relevant hardware through a computer program, and the program of the method for server batch group management can be stored in a computer-readable storage medium, and when executed, the program can include the processes of the embodiments of the methods as described above. The storage medium of the program may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like. The embodiments of the computer program may achieve the same or similar effects as any of the above-described method embodiments.
Furthermore, the methods disclosed according to embodiments of the present invention may also be implemented as a computer program executed by a processor, which may be stored in a computer-readable storage medium. Which when executed by a processor performs the above-described functions defined in the methods disclosed in embodiments of the invention.
Further, the above method steps and system elements may also be implemented using a controller and a computer readable storage medium for storing a computer program for causing the controller to implement the functions of the above steps or elements.
Those of skill would further appreciate that the various illustrative logical blocks, modules, circuits, and algorithm steps described in connection with the disclosure herein may be implemented as electronic hardware, computer software, or combinations of both. To clearly illustrate this interchangeability of hardware and software, various illustrative components, blocks, modules, circuits, and steps have been described above generally in terms of their functionality. Whether such functionality is implemented as software or hardware depends upon the particular application and design constraints imposed on the overall system. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the disclosed embodiments of the present invention.
In one or more exemplary designs, the functions may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium. Computer-readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another. A storage media may be any available media that can be accessed by a general purpose or special purpose computer. By way of example, and not limitation, such computer-readable media can comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a general-purpose or special-purpose computer, or a general-purpose or special-purpose processor. Also, any connection is properly termed a computer-readable medium. For example, if the software is transmitted from a website, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, Digital Subscriber Line (DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. Disk and disc, as used herein, includes Compact Disc (CD), laser disc, optical disc, Digital Versatile Disc (DVD), floppy disk, blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
The foregoing is an exemplary embodiment of the present disclosure, but it should be noted that various changes and modifications could be made herein without departing from the scope of the present disclosure as defined by the appended claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements of the disclosed embodiments of the invention may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.
It should be understood that, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.
The numbers of the embodiments disclosed in the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, of embodiments of the invention is limited to these examples; within the idea of an embodiment of the invention, also technical features in the above embodiment or in different embodiments may be combined and there are many other variations of the different aspects of the embodiments of the invention as described above, which are not provided in detail for the sake of brevity. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of the embodiments of the present invention are intended to be included within the scope of the embodiments of the present invention.
Claims (10)
1. A method for server batch grouping management is characterized by comprising the following steps:
detecting the distance between any two hosts through a route tracking command;
dividing all the hosts into a preset number of host clusters through a hierarchical clustering algorithm based on the distance between any two hosts;
selecting one host from each host cluster as a relay point; and
and sending a command to the relay point, and sending the command to other hosts in the host cluster by the relay point.
2. The method for server batch group management according to claim 1, further comprising:
and analyzing and displaying the final processing result returned by the relay point, wherein the final processing result is obtained by combining the processing results of the other hosts received by the relay point.
3. The method of server batch packet management according to claim 1, wherein detecting the distance between any two hosts through a route trace command comprises:
obtaining the return time of sending ICMP packets for three times between any two hosts through a routing tracking command, and calculating the average value of the return time;
representing a distance between the two hosts based on the average.
4. The method of server batch grouping management according to claim 1, wherein the dividing all hosts into a preset number of host clusters by a hierarchical clustering algorithm based on the distance between any two hosts comprises:
merging two hosts/clusters with the closest distance into one cluster to obtain a plurality of clusters, and judging whether the number of the obtained clusters is greater than a preset number or not;
if the obtained number of clusters is larger than the preset number, recalculating the distance between the clusters and returning to the previous step;
and if the obtained cluster number is not more than the preset number, determining that all the hosts are divided into the host clusters with the preset number.
5. The method of server batch group management according to claim 1, wherein selecting a host in each of the host clusters as a relay point comprises:
and randomly selecting one host from each host cluster as a relay point.
6. The method of server batch group management according to claim 1, wherein selecting a host in each of the host clusters as a relay point comprises:
and selecting one host in each host cluster as a relay point according to the CPU utilization rate and/or the memory utilization rate and/or the IO utilization rate of the server.
7. The method of server batch packet management according to claim 1, wherein sending a command to the relay point comprises:
sending a command for acquiring the state, configuration and performance information of the server to the relay point; and/or
Sending a command for deploying and installing a server to the relay point; and/or
And sending commands for upgrading, configuring and inspecting the server firmware to the relay point.
8. An apparatus for batch grouping management of servers, comprising:
the route tracking module is configured to detect the distance between any two hosts through a route tracking command;
the clustering module is configured and used for dividing all the hosts into a preset number of host clusters through a hierarchical clustering algorithm based on the distance between any two hosts;
a relay point selecting module configured to select one host from each of the host clusters as a relay point; and
and the management module is configured to send a command to the relay point, and the relay point issues the command to other hosts in the host cluster.
9. A computer device, comprising:
at least one processor; and
a memory storing computer instructions executable on the processor, the instructions when executed by the processor implementing the steps of any of the methods 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 steps of the method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011267703.2A CN112468329B (en) | 2020-11-13 | 2020-11-13 | Method, device, equipment and readable medium for batch grouping management of servers |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011267703.2A CN112468329B (en) | 2020-11-13 | 2020-11-13 | Method, device, equipment and readable medium for batch grouping management of servers |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112468329A true CN112468329A (en) | 2021-03-09 |
CN112468329B CN112468329B (en) | 2023-01-06 |
Family
ID=74826143
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011267703.2A Active CN112468329B (en) | 2020-11-13 | 2020-11-13 | Method, device, equipment and readable medium for batch grouping management of servers |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112468329B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114397606A (en) * | 2022-01-21 | 2022-04-26 | 上海交通大学 | Transmission system of transformer oil state information |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101715243A (en) * | 2009-10-21 | 2010-05-26 | 南京邮电大学 | Wireless sensor network hierarchical cluster-based routing method |
CN110083475A (en) * | 2019-04-23 | 2019-08-02 | 新华三信息安全技术有限公司 | A kind of detection method and device of abnormal data |
CN110827924A (en) * | 2019-09-23 | 2020-02-21 | 平安科技(深圳)有限公司 | Clustering method and device for gene expression data, computer equipment and storage medium |
CN110972228A (en) * | 2019-11-08 | 2020-04-07 | 华南农业大学 | Clustering routing method based on cognitive wireless sensor network |
-
2020
- 2020-11-13 CN CN202011267703.2A patent/CN112468329B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101715243A (en) * | 2009-10-21 | 2010-05-26 | 南京邮电大学 | Wireless sensor network hierarchical cluster-based routing method |
CN110083475A (en) * | 2019-04-23 | 2019-08-02 | 新华三信息安全技术有限公司 | A kind of detection method and device of abnormal data |
CN110827924A (en) * | 2019-09-23 | 2020-02-21 | 平安科技(深圳)有限公司 | Clustering method and device for gene expression data, computer equipment and storage medium |
CN110972228A (en) * | 2019-11-08 | 2020-04-07 | 华南农业大学 | Clustering routing method based on cognitive wireless sensor network |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114397606A (en) * | 2022-01-21 | 2022-04-26 | 上海交通大学 | Transmission system of transformer oil state information |
CN114397606B (en) * | 2022-01-21 | 2023-08-15 | 上海交通大学 | Transmission system for transformer oil state information |
Also Published As
Publication number | Publication date |
---|---|
CN112468329B (en) | 2023-01-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10649838B2 (en) | Automatic correlation of dynamic system events within computing devices | |
KR101736425B1 (en) | Cloud computing enhanced gateway for communication networks | |
WO2019133763A1 (en) | System and method of application discovery | |
CN111181801A (en) | Node cluster testing method and device, electronic equipment and storage medium | |
US8443078B2 (en) | Method of determining equivalent subsets of agents to gather information for a fabric | |
WO2022134725A1 (en) | Large-scale k8s cluster monitoring method, apparatus, device, and readable medium | |
CN112269718A (en) | Service system fault analysis method and device | |
CN109039787A (en) | log processing method, device and big data cluster | |
CN112769605A (en) | Heterogeneous multi-cloud operation and maintenance management method and hybrid cloud platform | |
CN108170582A (en) | System mode querying method and device, computer readable storage medium | |
JP2021530807A (en) | Systems and methods for reporting computer security incidents | |
US10616322B2 (en) | Method for monitoring elements of a distributed computing system | |
CN112468329B (en) | Method, device, equipment and readable medium for batch grouping management of servers | |
CN113364681B (en) | Network path determination method, network path determination device, electronic apparatus, network path determination medium, and program product | |
CN115827380A (en) | Cloud platform monitoring method and cloud platform monitoring system | |
WO2024088025A1 (en) | Automated 5gc network element management method and apparatus based on multi-dimensional data | |
CN111176950A (en) | Method and equipment for monitoring network card of server cluster | |
CN116346576A (en) | Intelligent tracing method and device for information network management faults | |
CN112422349B (en) | Network management system, method, equipment and medium for NFV | |
CN117806899A (en) | Data monitoring analysis method, device, server, operation and maintenance system and storage medium | |
CN111106974B (en) | Method and device for testing lossless network performance | |
CN118277625B (en) | Distributed electromagnetic big data processing system and method | |
CN115242704B (en) | Network topology data updating method and device and electronic equipment | |
CN118509336B (en) | Communication network optimization method, device and equipment considering power consumption | |
KR102656541B1 (en) | Device, method and program that analyzes large log data using a distributed method for each log type |
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 |