Load state determination method and device of host, equipment, storage medium and product
By acquiring and analyzing the indicator sets of multiple performance indicators, combining pulse threshold and score calculation, the problem of insufficient comprehensive and accurate host load evaluation in the prior art is solved, and the fine evaluation and effective management of host load status is achieved.
Patent Information
- Application Number
- CN202411944105.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-26
- Publication Date
- 2025-05-02
AI Technical Summary
When monitoring and managing host load in cloud computing networks, the prior art mainly relies on the instantaneous value of a single indicator, resulting in the evaluation being incomplete and accurate enough to effectively reflect the overall situation of host load.
By obtaining multiple metric sets corresponding to multiple performance indicators of the target host, the pulse value of the indicator set is determined based on the pulse threshold of each performance indicator, and the first, second and third values of each performance indicator are calculated to determine the total score, and finally the load state of the host is determined based on the mapping relationship between the preset score and the load state.
A comprehensive, accurate and meticulous evaluation of the host load status is achieved, the limitations of a single indicator are avoided, and the understanding of the changes in host load trends and volatility is improved, thereby improving the performance and efficiency of the cloud computing network.
Smart Images

Figure CN119917266A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to but is not limited to the field of data analysis, and in particular to a method, device, equipment, storage medium and product for determining the load status of a host. Background Art
[0002] In cloud computing networks, monitoring and management of host load is an important challenge. If the performance and resource allocation of hosts are uneven, some hosts will be overloaded while others will be underloaded, which will directly affect the performance and efficiency of the entire cloud computing network. Currently, the monitoring and management of host load is mostly based on the instantaneous value of a single indicator. This method is rather one-sided and limited, and cannot comprehensively and accurately evaluate the overall situation of host load. Summary of the invention
[0003] In view of this, the present application provides a method, apparatus, device, storage medium and product for determining the load status of a host, which can comprehensively and accurately determine the load status of the target host through multiple indicator sets corresponding to multiple performance indicators of the target host.
[0004] The technical solution of the embodiment of the present application is implemented as follows:
[0005] In a first aspect, a method for determining a load state of a host comprises: obtaining multiple indicator sets corresponding to multiple performance indicators of a target host, wherein the indicator set of each performance indicator comprises multiple indicator values of the performance indicator at different times; based on a pulse threshold corresponding to each performance indicator, determining the indicator value in each indicator set that is greater than the pulse threshold as the pulse value of the indicator set; based on the indicator set and the pulse values, determining a first value, a second value and a third value of each performance indicator of the target host; wherein the first value represents the time length from the collection moment of the most recent pulse value to the current moment, the second value represents the number of pulse values, and the third value represents the average value of multiple indicator values in an indicator set; determining a total score of the target host based on the first value, the second value and the third value of each performance indicator; and determining the load state corresponding to the total score of the target host based on a mapping relationship between a preset score and a load state.
[0006] In a second aspect, the present application provides a host load status determination device, comprising:
[0007] An acquisition module configured to acquire multiple indicator sets corresponding to multiple performance indicators of the target host, wherein the indicator set of each performance indicator includes multiple indicator values of the performance indicator at different times;
[0008] The first processing module is configured to determine the indicator value in each indicator set that is greater than the pulse threshold as the pulse value of the indicator set based on the pulse threshold corresponding to each performance indicator; determine the first value, the second value and the third value of each performance indicator of the target host based on the indicator set and the pulse value; wherein the first value represents the time length from the collection time of the most recent pulse value to the current time, the second value represents the number of pulse values, and the third value represents the average value of multiple indicator values in an indicator set;
[0009] A second processing module is configured to determine a total score of the target host based on the first value, the second value and the third value of each performance indicator;
[0010] The determination module is configured to determine the load state corresponding to the total score of the target host based on a preset mapping relationship between the score and the load state.
[0011] In a third aspect, the present application provides an electronic device comprising a memory and a processor, wherein the memory stores a computer program executable on the processor, and when the processor executes the computer program, some or all of the steps in the above-mentioned method for determining the load status of the host are implemented.
[0012] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements part or all of the steps in the above-mentioned method for determining the load status of a host.
[0013] In a fifth aspect, the present application provides a computer program, including a computer-readable code. When the computer-readable code runs in an electronic device, a processor in the electronic device executes part or all of the steps in the method for determining the load status of the host to implement the above-mentioned method.
[0014] In a sixth aspect, the present application provides a computer program product, which includes a computer-readable storage medium storing a computer program, and when the computer program is read and executed by a computer, it implements some or all of the steps in the above-mentioned method for determining the load status of the host.
[0015] In the present application, multiple indicator sets corresponding to multiple performance indicators of the target host are obtained, and the indicator set of each performance indicator includes multiple indicator values of the performance indicator. On the one hand, multiple performance indicators can reflect the load state of the host from multiple dimensions, avoiding the limitations of a single indicator. On the other hand, multiple indicator values of a performance indicator at different times can reflect the changing trend and volatility of the load state, which is conducive to more accurately evaluating the load state of the host. Then, based on the pulse threshold corresponding to each performance indicator, the indicator value greater than the pulse threshold in each indicator set is determined as the pulse value of the indicator set, and then based on the indicator set and the pulse value, the first value, the second value and the third value of each performance indicator of the target host are determined, and the first value represents the time from the collection time of the most recent pulse value to the current time, the second value represents the number of pulse values, and the third value represents the average value of multiple indicator values in an indicator set. Then, based on the first value, the second value and the third value of each performance indicator, the total score of the target host is determined, and based on the mapping relationship between the preset score and the load state, the load state corresponding to the total score of the target host is determined. In this way, the indicator values are analyzed in a refined manner through the pulse threshold to determine the first value, the second value and the third value. These three values can comprehensively and accurately reflect the characteristics of the target host with respect to each performance indicator in terms of time, quantity and mean. Therefore, the present application can more comprehensively, accurately and finely determine the load status of the target host, which is beneficial to improving the performance and efficiency of the entire cloud computing network.
[0016] It should be understood that the above general description and the following detailed description are merely exemplary and explanatory, and are not intended to limit the technical solutions of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present application and are used together with the specification to illustrate the technical solution of the present application.
[0018] Figure 1A is a structural schematic diagram of an electronic device provided in an embodiment of the present application;
[0019] Figure 1B It is a structural schematic diagram of a host load status determination device provided in an embodiment of the present application;
[0020] Figure 2 It is a schematic diagram of an implementation flow of a method for determining a load state of a host provided in an embodiment of the present application;
[0021] Figure 3 is a schematic diagram of an implementation flow of a method for determining pulse data provided in an embodiment of the present application;
[0022] Figure 4is a schematic diagram of an implementation flow of a method for determining a total score of a target host provided in an embodiment of the present application;
[0023] Figure 5 It is a schematic diagram of an implementation flow of a method for determining a first score, a second score, and a third score for each performance indicator provided in an embodiment of the present application;
[0024] Figure 6 is a schematic diagram of an implementation flow of another method for determining the total score of a target host provided in an embodiment of the present application;
[0025] Figure 7 It is a schematic diagram of the implementation process of the method for determining the index score of CPU utilization provided in an embodiment of the present application. DETAILED DESCRIPTION
[0026] The following is a description of the embodiments of the present application in conjunction with the drawings in the embodiments of the present application. In the following description, reference is made to the drawings that form a part of the present application and show the specific aspects of the embodiments of the present application or the specific aspects of the embodiments of the present application in an illustrative manner. It should be understood that the embodiments of the present application can be used in other aspects and may include structural or logical changes not depicted in the drawings. Therefore, the following detailed description should not be understood in a restrictive sense, and the scope of the present application is defined by the appended claims. For example, it should be understood that the disclosure of the described method can be equally applicable to the corresponding device or system for performing the method, and vice versa. For example, if one or more specific method steps are described, the corresponding device may include one or more units such as functional units to perform the described one or more method steps (for example, one unit performs one or more steps, or multiple units, each of which performs one or more of the multiple steps), even if such one or more units are not explicitly described or illustrated in the drawings. On the other hand, for example, if a specific device is described based on one or more units such as functional units, the corresponding method may include a step to perform the functionality of the one or more units (e.g., a step to perform the functionality of the one or more units, or multiple steps, each of which performs the functionality of one or more of the multiple units), even if such one or more steps are not explicitly described or illustrated in the drawings. Further, it should be understood that, unless otherwise explicitly stated, the features of the various exemplary embodiments and / or aspects described herein may be combined with each other.
[0027] At present, the commonly used method for determining the host load status is based on the instantaneous value of a single indicator, that is, directly using the instantaneous value of a certain performance indicator of the host to determine the load status. This method has the advantages of being direct and simple. However, this method may lead to misjudgment of the load status because it is too sensitive to the instantaneous fluctuation of the indicator value. For example, the instantaneous value of the CPU utilization is used to determine the host load status. If the CPU utilization is greater than 80% at time T1 and then decreases at time T2, in this case, if the host is determined to be in a high load state based on the CPU utilization at time T1, this does not actually conform to the actual load situation of the host.
[0028] In view of this, the embodiments of the present application provide a method, device, storage medium and program product for determining the load status of a host, which can comprehensively, accurately and finely determine the load status of a target host.
[0029] In some embodiments, the method of the embodiments of the present application can be applied to cloud computing networks, for example, cloud storage services, cloud monitoring services, cloud hosting services, etc., and can be promoted to many scenarios and has strong replicability.
[0030] The following describes an exemplary application of the electronic device provided in the embodiment of the present application. The electronic device provided in the embodiment of the present application can be a laptop, a tablet computer, a desktop computer, a mobile device (e.g., a mobile phone, a wearable smart watch, a dedicated messaging device), an electric car, an electric bicycle, and other rechargeable devices, but is not limited thereto. Alternatively, the electronic device can also be implemented as a server.
[0031] In some embodiments, the server may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, and big data and artificial intelligence platforms, but is not limited thereto. In some embodiments, the server and the electronic device may be directly or indirectly connected via wired or wireless communication, and this is not specifically limited in the embodiments of the present application.
[0032] See also Figure 1A , Figure 1A is a structural schematic diagram of an electronic device provided in an embodiment of the present application, Figure 1AThe electronic device 100 shown includes: at least one processor 110, a memory 150, at least one network interface 120 and a user interface 130. The various components in the electronic device 100 are coupled together via a bus system 140. It is understood that the bus system 140 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 140 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 140 is not described in detail. Figure 1A The various buses are collectively labeled bus system 140 .
[0033] The processor 110 can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., where the general-purpose processor can be a microprocessor or any conventional processor, etc.
[0034] The user interface 130 includes one or more output devices 131 that enable presentation of media content, including one or more speakers and / or one or more visual display screens. The user interface 130 also includes one or more input devices 132, including user interface components that facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons and controls.
[0035] The memory 150 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid-state memory, hard disk drives, optical disk drives, etc. The memory 150 may optionally include one or more storage devices that are physically remote from the processor 110.
[0036] The memory 150 includes a volatile memory or a nonvolatile memory, and may also include both volatile and nonvolatile memories. The nonvolatile memory may be a read-only memory (ROM), and the volatile memory may be a random access memory (RAM). The memory 150 described in the embodiments of the present application is intended to include any suitable type of memory.
[0037] In some embodiments, the memory 150 can store data to support various operations, examples of which include programs, modules, and data structures, or a subset or superset thereof, as exemplarily described below.
[0038] The operating system 151 includes system programs for processing various basic system services and performing hardware-related tasks, such as a framework layer, a core library layer, a driver layer, etc., which are used to implement various basic businesses and process hardware-based tasks.
[0039] The network communication module 152 is used to reach other computing devices via one or more (wired or wireless) network interfaces 120. Exemplary network interfaces 120 include: Bluetooth, WiFi, and universal serial bus (USB).
[0040] The presentation module 153 is used to enable presentation of information (eg, a user interface for operating peripheral devices and displaying content and information) via one or more output devices 131 (eg, a display screen, a speaker, etc.) associated with the user interface 130 .
[0041] The input processing module 154 is configured to detect one or more user inputs or interactions from one of the one or more input devices 132 and to translate the detected inputs or interactions.
[0042] In some embodiments, the host load status determination method provided in the embodiments of the present application can be implemented in software and stored in the memory 150. Figure 1B , Figure 1B It is a structural diagram of a host load status determination device provided in an embodiment of the present application, which can be software in the form of a program and a plug-in.
[0043] The host load state determination device 155 includes the following software modules: an acquisition module 1551, a first processing module 1552, a second processing module 1553 and a determination module 1554. These modules are logical and can be arbitrarily combined or further divided according to the functions implemented. The functions of each module will be described below.
[0044] In other embodiments, the host load state determination device 155 provided in the embodiment of the present application can be implemented in hardware. As an example, the host load state determination device 155 provided in the embodiment of the present application can be a processor in the form of a hardware decoding processor, which is programmed to execute the host load state determination method provided in the embodiment of the present application. For example, the processor in the form of a hardware decoding processor can adopt one or more application specific integrated circuits (ASIC), DSP, programmable logic device (PLD), complex programmable logic device (CPLD), field programmable gate array (FPGA) or other electronic components.
[0045] The method for determining the load status of a host provided in an embodiment of the present application will be described below in conjunction with an exemplary application and implementation of an electronic device provided in an embodiment of the present application.
[0046] Figure 2 FIG. 1 is a schematic diagram of an implementation flow of a method for determining a host load state provided in an embodiment of the present application. Figure 2 As shown, the method for determining the load status of a host in an embodiment of the present application may include steps S210 to S250.
[0047] In the disclosed embodiment, the load status determination method of the host is executed by an electronic device, which may be a host, and the host may be, for example, a target host whose load status is to be determined, other hosts in the network where the target host is located, a host in the network where the target host is located that is responsible for monitoring and managing the load status, etc. It may also be a server, or it may be a terminal, and the terminal may include, for example, a mobile phone, a smart watch, a wearable device, an Internet of Things device, a car with communication function, a smart car, a tablet computer (Pad), a computer with wireless transceiver function, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal device in industrial control, a wireless terminal device in self-driving, a wireless terminal device in remote medical surgery, a wireless terminal device in a smart grid, a wireless terminal device in transportation safety, a wireless terminal device in a smart city, and at least one of a wireless terminal device in a smart home, but is not limited thereto.
[0048] In step S210, multiple indicator sets corresponding to multiple performance indicators of the target host are obtained.
[0049] In some embodiments, the electronic device may collect multiple indicator sets corresponding to multiple performance indicators of the target host from the underlying hardware or underlying interface in real time through a data monitoring tool and / or a data synchronization tool. The electronic device may also directly obtain multiple indicator sets corresponding to multiple performance indicators of the target host from a database of the target host.
[0050] In some embodiments, one performance indicator corresponds to one indicator set, and the indicator set of each performance indicator includes multiple indicator values of the performance indicator at different times. Alternatively, the indicator set of each performance indicator includes multiple indicator values of the performance indicator collected at a preset collection frequency within a preset period of time. The multiple performance indicators include: central processing unit (CPU) utilization, memory usage, network port traffic, and average CPU load within a preset period of time.
[0051] In some embodiments, when acquiring multiple indicator sets, the electronic device may acquire the collection time of multiple indicator values in each indicator set, or mark the collection time of multiple indicator values in each indicator set, so as to accurately evaluate the load status of the target host through subsequent refined data analysis.
[0052] For example, the electronic device uses a monitoring tool to collect the target host's CPU utilization indicator set, memory usage indicator set, network port traffic indicator set, and CPU average load indicator set within a preset time period in the last hour. For each indicator set, the monitoring tool collects data every 1 minute during the data collection process, that is, each indicator set includes 60 indicator values.
[0053] In some embodiments, the target host can be understood as a target virtual machine, a target physical machine, a target container, etc., that is, the embodiments of the present disclosure can be used to determine the load status of the target virtual machine, the load status of the target physical machine, and the load status of the target container.
[0054] In step S220, based on the pulse threshold corresponding to each performance indicator, the indicator value in each indicator set that is greater than the pulse threshold is determined as the pulse value of the indicator set.
[0055] In some embodiments, each performance indicator corresponds to a pulse threshold, and the pulse thresholds corresponding to each performance indicator may be the same or different. The pulse threshold corresponding to each performance indicator may be predefined, or may be determined based on an indicator set of the target host, or may be determined based on an indicator set of all hosts in the network where the target host is located.
[0056] For example, taking CPU utilization as an example, the pulse threshold corresponding to CPU utilization can be set to 40% based on historical experience or historical data. For another example, the average value or median value of the CPU utilization indicator set is determined through multiple indicator values in the target host's CPU utilization indicator set, and the average value or median value is set as the pulse threshold. For another example, there are 100 hosts in the network where the target host is located. The pulse threshold corresponding to the CPU utilization of the target host is determined by the average value of the CPU utilization indicator set of these 100 hosts.
[0057] In some embodiments, Figure 3 As shown, step S220 may include the following steps:
[0058] In step S221, for all hosts in the network where the target host is located, multiple indicator sets of multiple performance indicators of all hosts are obtained.
[0059] In some embodiments, the electronic device can obtain the host list from the target host or other hosts in the network where the target host is located through a data synchronization tool, or directly obtain the host list from the database of the target host or other hosts. Then, based on the host list, all hosts in the network where the target host is located are determined, and then multiple indicator sets of multiple performance indicators of all hosts are obtained.
[0060] For example, the target host is host A, the cloud computing network where host A is located includes host A, host B and host C, and the multiple performance indicators include CPU utilization, memory utilization, and network port traffic. The electronic device obtains the CPU utilization indicator set of host A, the memory utilization indicator set of host A, and the network port traffic indicator set of host A, and then obtains the CPU utilization indicator set of host B, the memory utilization indicator set of host B, and the network port traffic indicator set of host B, and finally obtains the CPU utilization indicator set of host C, the memory utilization indicator set of host C, and the network port traffic indicator set of host C.
[0061] In step S222, the average value of the indicator set of the i-th performance indicator of each host is calculated.
[0062] In some embodiments, for the indicator set of the i-th performance indicator among multiple performance indicators of each host, the electronic device sums all indicator values in the indicator set of the i-th performance indicator and calculates the average value to obtain the average value of the i-th indicator set of each host.
[0063] For example, the number of performance indicators is 3, and the network where the target host is located includes 3 hosts, namely host A, host B and host C. Then, for the first performance indicator (for example, CPU utilization), the average values of the CPU utilization indicator set of host A, the average values of the CPU utilization indicator set of host B and the average values of the CPU utilization indicator set of host C are calculated respectively. For the second performance indicator (for example, memory usage), the average values of the memory usage indicator set of host A, the average values of the memory usage indicator set of host B and the average values of the memory usage indicator set of host C are calculated respectively. For the third performance indicator, the calculation process is similar and will not be described in detail here.
[0064] In step S223, a pulse threshold corresponding to the ith performance indicator is determined based on the average value of the ith performance indicators of all hosts.
[0065] In some embodiments, for each performance indicator, the electronic device determines the pulse threshold corresponding to the performance indicator based on the average value of the indicator set of all hosts regarding the performance indicator, that is, i=1, 2, ..., N, where N is the number of performance indicators.
[0066] In some embodiments, the electronic device may select a maximum value from the average values of the i-th performance indicators of all hosts, and use the maximum value as the pulse threshold corresponding to the i-th performance indicator. The electronic device may also select a minimum value from the average values of the i-th performance indicators of all hosts, and use the minimum value as the pulse threshold corresponding to the i-th performance indicator. The electronic device may also select a median value from the average values of the i-th performance indicators of all hosts, and use the median value as the pulse threshold corresponding to the i-th performance indicator. The electronic device may also select a maximum value and a minimum value from the average values of the i-th performance indicators of all hosts, and use the average value of the maximum value and the minimum value as the pulse threshold corresponding to the i-th performance indicator.
[0067] For example, the target host is host A, and the network where host A is located includes host A, host B and host C. For the first performance indicator (for example, CPU utilization), the average value of the CPU utilization indicator set of host A is greater than the average value of the CPU utilization indicator set of host C, and the average value of the CPU utilization indicator set of host C is greater than the average value of the CPU utilization indicator set of host B. Then the average value of the CPU utilization indicator set of host C is the median value of all average values, and the average value of the CPU utilization indicator set of host C can be determined as the pulse threshold corresponding to the CPU utilization of host A.
[0068] For another example, for the second performance indicator (such as memory usage), the average value of the memory usage indicator set of host A is greater than the average value of the memory usage indicator set of host B, and the average value of the memory usage indicator set of host B is greater than the average value of the memory usage indicator set of host C. Then the minimum value of all average values, that is, the average value of the memory usage indicator set of host C, can be determined as the pulse threshold corresponding to the memory usage of host A.
[0069] In some embodiments, for the i-th performance indicator, the electronic device may sort the average values of the i-th performance indicators of all hosts from large to small, and determine the median value from the average values of the i-th performance indicators of all hosts, and use the median value as the pulse threshold of the i-th performance indicator.
[0070] In step S224, based on the pulse threshold corresponding to the ith performance indicator, the indicator value in the indicator set of the ith performance indicator that is greater than the pulse threshold is determined as the pulse value of the indicator set.
[0071] In some embodiments, after the electronic device determines the pulse threshold corresponding to each performance indicator, based on the pulse threshold corresponding to each performance indicator, selects indicator values greater than the pulse threshold from the indicator set of each performance indicator, and determines these indicator values as the pulse values of the indicator set.
[0072] In step S230, based on the indicator set and the pulse value, a first value, a second value and a third value of each performance indicator of the target host are determined.
[0073] In some embodiments, the electronic device determines the first value and the second value of each performance indicator based on the pulse value of the indicator set of each performance indicator, and determines the third value of each performance indicator based on the indicator set of each performance indicator. The first value represents the time from the collection time of the most recent pulse value to the current time, the second value represents the number of pulse values, and the third value represents the average value of multiple indicator values in an indicator set.
[0074] For example, for the first performance indicator (such as CPU utilization), based on the pulse values of the CPU utilization indicator set, it is determined that the duration of the pulse value closest to the current moment is 300s, then the first value of the CPU utilization is 300; and based on the pulse values of the CPU utilization indicator set, the number of pulse values is determined to be 2, then the second value of the CPU utilization is 2; then it is determined that the average value of multiple indicator values in the CPU utilization indicator set is 42.21%, then the third value of the CPU utilization is 42.21%. Similarly, the electronic device can determine the first value, second value and third value of other performance indicators.
[0075] In step S240, a total score of the target host is determined based on the first value, the second value, and the third value of each performance indicator.
[0076] In some embodiments, the electronic device may determine a first numerical range to which the first value of each performance indicator belongs, a second numerical range to which the second value belongs, and a third numerical range to which the third value belongs, and determine the total score of the target host based on a mapping relationship between different numerical ranges and different scores. In some embodiments, the electronic device may obtain a mapping relationship between different numerical ranges and different scores from a database in advance, and the mapping relationship may be embodied in the form of a mapping table, a mapping function, or a mapping curve.
[0077] In some embodiments, the electronic device may also normalize the first value, second value, and third value of each performance indicator, and then weight the normalized first value, second value, and third value based on the first weight corresponding to the first value, the second weight corresponding to the second value, and the third weight corresponding to the third value to obtain the total score of the target host.
[0078] In some embodiments, the total score of the target host represents the load state of the target host. In one embodiment, the higher the total score, the worse the load state of the target host, that is, the target host is in a high load state, and the lower the total score, the better the load state of the target host, that is, the target host is in a low load state.
[0079] In some embodiments, Figure 4 As shown, step S240 includes the following steps:
[0080] In step S241, based on a preset data binning algorithm, a first score corresponding to the first value, a second score corresponding to the second value, and a third score corresponding to the third value of each performance indicator are determined.
[0081] In some embodiments, the electronic device may bin all first values, second values, and third values obtained at historical moments based on a preset data binning algorithm, and determine a first score corresponding to the first value, a second score corresponding to the second value, and a third score corresponding to the third value of each performance indicator of the target host based on the binning result. In some embodiments, all first values, second values, and third values obtained at historical moments may be of the target host, or may be of other hosts except the target host, or may be of all hosts in the network where the target host is located. In some embodiments, the preset data binning algorithm includes at least one of the following: equidistant binning, equal frequency binning, chi-square binning, decision tree binning, and supervised binning.
[0082] In some embodiments, Figure 5 As shown, step S241 may include the following steps:
[0083] In step S2411, for all hosts in the network where the target host is located, the first value, the second value and the third value of each performance indicator of all hosts are obtained.
[0084] In some embodiments, the method for obtaining the first value, the second value, and the third value of each performance indicator of all hosts is the same as the method for determining the first value, the second value, and the third value of each performance indicator of the target host. The embodiments of steps S210 to S230 above may be referred to and will not be repeated here.
[0085] In step S2412, the first value, the second value and the third value of each performance indicator of all hosts are binned respectively to obtain multiple first bins corresponding to the first value, multiple second bins corresponding to the second value and multiple third bins corresponding to the third value.
[0086] In some embodiments, for the first performance indicator, the electronic device bins the first value of the first performance indicator of all hosts to obtain a plurality of first bins corresponding to the first value of the first performance indicator. Then, the second value of the first performance indicator of all hosts is binned to obtain a plurality of second bins corresponding to the second value of the first performance indicator. Finally, the third value of the first performance indicator of all hosts is binned to obtain a plurality of third bins corresponding to the third value of the first performance indicator. Thus, the data binning of all values of the first performance indicator is completed. Similarly, the electronic device bins all values of the second performance indicator until the data binning of all values of all performance indicators is completed.
[0087] In some embodiments, the above data binning process can be understood as dividing continuous data into several intervals according to certain rules, and the data in each interval is regarded as the same category. Data binning can discretize data, and the discretized data has strong robustness to abnormal data.
[0088] In step S2413, the first score, second score and third score of each performance indicator of the target host are determined based on the position of the first value of each performance indicator of the target host in the multiple first boxes, the position of the second value of each performance indicator of the target host in the multiple second boxes, and the position of the third value of each performance indicator of the target host in the multiple third boxes.
[0089] In some embodiments, if the first value of each performance indicator belongs to the mth 1 The first bins, then the first score of the first value of the performance indicator is m 1 -1. If the second value of each performance indicator belongs to the mth 2 The second score of the second value of the performance indicator is m. 2 -1. If the third value of each performance indicator belongs to the mth 3 The third bin, then the third score of the third value of the performance indicator is m 3 -1. Among them, m 1 =1,2,…,M 1 , m 2 =1,2,…,M 2 , m 2 =1,2,…,M 2 , M 1 is the number of the first bin, M 2 is the number of the second bin, M 3 In some embodiments, the number of the first bins, the number of the second bins, and the number of the third bins may be the same.
[0090] For example, the first values of the first performance indicators of all hosts include 50, 42, 63, 4, 104, and 87. Taking equal-interval binning as an example, all data are first sorted from smallest to smallest to get 4, 42, 50, 63, 87, and 104. Assuming that these data are divided into 3 boxes, the equal-interval intervals of these data are calculated, that is, (104-4) / 3=33.3333, and it is determined that every 33 is a box. Then the first box includes 4, the second box includes 42, 50, and 63, and the third box includes 87 and 104. First, based on the binning results, the scores corresponding to 50, 42, 63, 4, 104, and 87 are determined to be 1, 1, 1, 0, 2, and 2.
[0091] In step S242, a total score of the target host is determined based on the first score, the second score, and the third score of each performance indicator.
[0092] In some embodiments, the electronic device may sum the first score, the second score, and the third score of each performance indicator to obtain the indicator score of each performance indicator, and then determine the total score of the target host based on the indicator score of each performance indicator. In some embodiments, the electronic device may calculate the average of the first score, the second score, and the third score of each performance indicator to obtain the indicator score of each performance indicator, and then determine the total score of the target host based on the indicator score of each performance indicator. In some embodiments, the electronic device may also select the maximum and minimum values from the first score, the second score, and the third score of each performance indicator, calculate the average of the maximum and minimum values, obtain the indicator score of each performance indicator, and then determine the total score of the target host based on the indicator score of each performance indicator.
[0093] In some embodiments, Figure 6 As shown, step S242 may include the following steps:
[0094] In step S2421, based on the first score, the second score and the third score of each performance indicator, the indicator score of each performance indicator is determined by a preset scoring condition.
[0095] In some embodiments, the preset scoring condition is a scoring condition with the third score corresponding to the third value as an anchor point. In some embodiments, through the preset scoring condition, the electronic device can determine the first weighted score corresponding to the first score of each performance indicator, the second weighted score corresponding to the second score, and the third weighted score corresponding to the third score, and then determine the indicator score of each performance indicator based on the first weighted score, the second weighted score, and the third weighted score. In some embodiments, through the preset scoring condition, the first score can be processed as a first weighted score of a 0-1 distribution, the second score can be processed as a second weighted score of a 0-1 distribution, and the third score can be processed as a third weighted score of a multi-distribution.
[0096] In some embodiments, for multiple indicator values in the collected indicator set, the first weight corresponding to the first score of each performance indicator, the second weight corresponding to the second score, and the third weight corresponding to the third score are determined according to the business scenarios and collection periods to which these indicator values belong. Then, based on the first score, the first weight, the second score, the second weight, the third score, and the third weight, the first weighted score, the second weighted score, and the third weighted score are determined through the scoring conditions. Finally, based on the first weighted score, the second weighted score, and the third weighted score of each performance indicator, the indicator score of each performance indicator is determined.
[0097] In some embodiments, for different performance indicators, the first weight, the second weight, and the third weight may be different or the same. In some embodiments, the business scenarios to which the indicator values belong are different, and the values of the first weight, the second weight, and the third weight are also different. The collection period of the indicator values is different, and the values of the first weight, the second weight, and the third weight are also different. In some embodiments, the first weight, the second weight, and the third weight may be set based on historical data and expert experience.
[0098] In some embodiments, when the first score is greater than or equal to the first threshold, the first weighted score is determined to be the value of the first weight, and when the first score is less than the first threshold, the first weighted score is determined to be 0. In some embodiments, when the second score is greater than or equal to the second threshold, the second weighted score is determined to be the value of the second weight, and when the second score is less than the second threshold, the second weighted score is determined to be 0. In some embodiments, the third score is multiplied by the third weight to obtain the third weighted score. Alternatively, the value obtained by subtracting one from the third score is multiplied by the third weight to obtain the third weighted score.
[0099] In some embodiments, if the first weighted score, the second weighted score, and the third weighted score are all 0, the indicator score of the performance indicator is determined as a default weighted score value.
[0100] In some embodiments, the first threshold may be the average of the first scores of all hosts, the second threshold may be the average of the second scores of all hosts, and the third threshold may be the average of the third scores of all hosts.
[0101] In step S2422, the total score of the target host is determined based on the indicator score of each performance indicator and the indicator weight corresponding to each performance indicator.
[0102] In some embodiments, the electronic device may perform a weighted summation of the indicator score of each performance indicator and the indicator weight corresponding to each performance indicator to obtain a total score of the target host.
[0103] In some embodiments, the electronic device can determine the indicator weight corresponding to each performance indicator according to the host type of the target host. In some embodiments, the host type includes at least one of the following: a computing host, a storage host, and a network host. For example, if the target host is a network host, the indicator weight corresponding to the network traffic indicator is greater than the indicator weights of other performance indicators. For another example, if the target host is a storage host, the indicator weight corresponding to the memory usage indicator is greater than the indicator weights of other performance indicators.
[0104] In some embodiments, the electronic device may obtain the indicator weight of each performance indicator based on the historical data of each performance indicator and based on the entropy weight method.
[0105] In step S250, based on a preset mapping relationship between scores and load states, the load state corresponding to the total score of the target host is determined.
[0106] In some embodiments, the electronic device can obtain a mapping relationship between a preset score and a load state from a database in advance, and the mapping relationship can be embodied in the form of a mapping table, a mapping function, or a mapping curve. Table 1 is a mapping table of preset scores and load states. As shown in Table 1, if the total score is between 850 and 1000 points, the target host is in a high load state, if the total score is between 650 and 800 points, the target host is in a medium-high load state, if the total score is between 450 and 600 points, the target host is in a medium load state, if the total score is between 250 and 400 points, the target host is in a medium-low load state, and if the total score is between 50 and 200 points, the target host is in a low load state.
[0107] Table 1
[0108] category Points illustrate 411 1000 High load high pulse active 410 950 High load and high pulse stability 401 900 High load less pulse active 400 850 High load, few pulses, stable 311 800 Medium to high load high pulse active 310 750 High pulse stability at medium to high loads 301 700 Medium to high loads with few pulses and active 300 650 Medium to high load, few pulses and stable 211 600 Medium load high pulse active 210 550 Medium load high pulse stability 201 500 Medium load, few pulses, active 200 450 Medium load, few pulses, stable 111 400 High pulse active at low to medium loads 110 350 High pulse stability at low to medium loads 101 300 Low to medium loads with few pulses and active 100 250 Low to medium load, few pulses and stable 011 200 Low load high pulse active 010 150 High pulse stability at low load 001 100 Low load less pulse active 000 50 Low load, few pulses, stable
[0109] In the disclosed embodiment, by performing data analysis on the indicator values of multiple performance indicators and describing the load status of the host from multiple dimensions, the limitations of a single indicator can be effectively avoided. At the same time, during the data collection and data analysis process, the trend of the indicator value changing over time is considered, so that the development trend of the load status of the target host can be better predicted. In addition, in the process of determining the load status of the target host, the indicator values of other hosts in the network where the target host is located are also taken into account, so that the influence of the load status of the entire network on the load status of the target host is fully considered, making the determination of the load status of the target host more accurate.
[0110] The following uses the CPU utilization performance indicator as an example to explain the calculation process of the CPU utilization indicator score. Figure 7 As shown, the calculation process of the CPU utilization index score includes steps S310 to S360.
[0111] In step S310, the CPU utilization data of the target host in the recent t time period is extracted from database A.
[0112] In some embodiments, the CPU utilization data is expressed as cpu_pct, and the value is in percentage format, such as 45.65%. In some embodiments, database A is an observation database that can support online analytical processing queries under massive data. It can be a column-based open source database like ClickHouse or a distributed open source database like HBase. It mainly stores massive underlying data reported by the data acquisition module as a basic data source to provide raw data for data analysis.
[0113] In step S320, the 50% percentile value of the average CPU utilization of all hosts in the network where the target host is located within the recent time t is calculated to obtain the pulse threshold.
[0114] In step S330, data in the CPU utilization data of the target host that is greater than the pulse threshold is determined as pulse data.
[0115] In step S340, the time since the latest pulse data, the number of pulse data and the average value of CPU utilization are determined.
[0116] In some embodiments, the time since the most recent pulse data can be called a first value or R value, the number of pulse data can be called a second value or F value, and the average CPU utilization can be called a third value or M value.
[0117] In some embodiments, the time since the last pulse data is represented as cpu_pct_ac_r, the number of pulse data is represented as cpu_pct_ac_f, and the average CPU utilization is represented as cpu_pct_ac_m. For example, cpu_pct_ac_r=300, cpu_pct_ac_f=2, cpu_pct_ac_m=42.21%.
[0118] In step S350, the score corresponding to the time since the most recent pulse data, the score corresponding to the number of pulse data, and the score corresponding to the average CPU utilization are determined.
[0119] In some embodiments, based on the historical data of the actual values of all R, F, and M of all hosts in the global domain in the recent period, a scoring table is designed, the data is divided into 5 boxes, and then the actual values of the target host are discretized into 1-5 points to obtain the corresponding R, F, and M scores. For example, cpu_pct_ac_r_score=5, cpu_pct_ac_f_score=1, cpu_pct_ac_m_score=3.
[0120] In step S360, the index score of the CPU utilization of the target host is determined through the preset scoring conditions.
[0121] In some embodiments, the weight corresponding to the R score is 50, the weight corresponding to the F score is 100, and the weight corresponding to the M score is 200. In some embodiments, the CPU utilization index score (cpu_pct_rfm_score) is calculated as follows:
[0122] (r_score>r_score_avg)*50+(f_score>f_score_avg)*100+(m_score-1)*200
[0123] Among them, r_score_avg is the average R score of all hosts, and f_score_avg is the average F score of all hosts. For example, assuming r_score_avg = 3.2, f_score_avg = 2.1, then the above formula can be used to calculate cpu_pct_rfm_score = (5>3.2)*50+(1>2.1)*100+(3-1)*200 = 50+0+400 = 450.
[0124] In some embodiments, the relevant data of other hosts except the target host used in the above steps can be obtained from database B. Database B is a business database. The business database mainly stores various business data reported by the data synchronization module. These business data serve as a supplementary data source to provide dimensional data for data analysis. In addition, the intermediate values and final results calculated in the above steps are also stored in database B.
[0125] Based on the same inventive concept, the embodiment of the present application also provides a host load status determination device. Figure 1B As shown, the host load status determination device 155 includes: an acquisition module 1551 , a first processing module 1552 , a second processing module 1553 and a determination module 1554 .
[0126] In some embodiments, the acquisition module 1551 is configured to acquire multiple indicator sets corresponding to multiple performance indicators of the target host, and the indicator set of each performance indicator includes multiple indicator values of the performance indicator at different times; the first processing module 1552 is configured to determine the indicator value in each indicator set that is greater than the pulse threshold as the pulse value of the indicator set based on the pulse threshold corresponding to each performance indicator; based on the indicator set and the pulse value, determine the first value, second value and third value of each performance indicator of the target host; wherein the first value represents the length of time from the collection time of the most recent pulse value to the current time, the second value represents the number of pulse values, and the third value represents the average value of multiple indicator values in an indicator set; the second processing module 1553 is configured to determine the total score of the target host based on the first value, second value and third value of each performance indicator; the determination module 1554 is configured to determine the load state corresponding to the total score of the target host based on a mapping relationship between a preset score and a load state.
[0127] In some embodiments, the first processing module 1552 is further configured to obtain multiple indicator sets of multiple performance indicators of all hosts in the network where the target host is located; calculate the average value of the indicator set of the i-th performance indicator of each host; where i=1, 2,…, N, and N is the number of performance indicators; determine the pulse threshold corresponding to the i-th performance indicator based on the average value of the i-th performance indicator of all hosts; and determine the indicator value in the indicator set of the i-th performance indicator that is greater than the pulse threshold as the pulse value of the indicator set based on the pulse threshold corresponding to the i-th performance indicator.
[0128] In some embodiments, the first processing module 1552 is further configured to determine a median value of the average values of the i-th performance indicators of all hosts; and use the median value as the pulse threshold of the i-th performance indicator.
[0129] In some embodiments, the second processing module 1553 is also configured to determine, based on a preset data binning algorithm, a first score corresponding to the first value of each performance indicator, a second score corresponding to the second value, and a third score corresponding to the third value; and determine the total score of the target host based on the first score, second score, and third score of each performance indicator.
[0130] In some embodiments, the second processing module 1553 is also configured to obtain the first value, the second value and the third value of each performance indicator of all hosts in the network where the target host is located; bin the first value, the second value and the third value of each performance indicator of all hosts respectively to obtain multiple first bins corresponding to the first value, multiple second bins corresponding to the second value and multiple third bins corresponding to the third value; determine the first score, the second score and the third score of each performance indicator of the target host based on the position of the first value of each performance indicator of the target host in the multiple first bins, the position of the second value of each performance indicator of the target host in the multiple second bins, and the position of the third value of each performance indicator of the target host in the multiple third bins.
[0131] In some embodiments, the second processing module 1553 is further configured to determine the index score of each performance index through a preset scoring condition based on the first score, the second score and the third score of each performance index; wherein the scoring condition is a scoring condition with the third score corresponding to the third value as an anchor point;
[0132] Based on the indicator score of each performance indicator and the indicator weight corresponding to each performance indicator, the total score of the target host is determined.
[0133] In some embodiments, the second processing module 1553 is also configured to determine the first weight corresponding to the first score of each performance indicator, the second weight corresponding to the second score, and the third weight corresponding to the third score, respectively, according to the business scenario and collection period to which the indicator value belongs; based on the first score, the first weight, the second score, the second weight, the third score and the third weight, determine the first weighted score corresponding to the first score of each performance indicator, the second weighted score corresponding to the second score, and the third weighted score corresponding to the third score through scoring conditions; based on the first weighted score, the second weighted score and the third weighted score of each performance indicator, determine the indicator score of each performance indicator.
[0134] In some embodiments, the second processing module 1553 is also configured to determine the first weighted score as the value of the first weight when the first score is greater than or equal to the first threshold, and to determine the first weighted score to be 0 when the first score is less than the first threshold; determine the second weighted score as the value of the second weight when the second score is greater than or equal to the second threshold, and to determine the second weighted score to be 0 when the second score is less than the second threshold; and multiply the value obtained by subtracting one from the third score by the third weight to obtain the third weighted score.
[0135] In some embodiments, the second processing module 1553 is further configured to determine the indicator weight corresponding to each performance indicator according to the host type of the target host; and determine the total score of the target host according to the indicator weight of each performance indicator and the indicator score of each performance indicator.
[0136] The description of the above device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. In some embodiments, the functions or modules included in the device provided in the embodiment of the present application can be used to execute the method described in the above method embodiment. For technical details not disclosed in the device embodiment of the present application, please refer to the description of the method embodiment of the present application for understanding.
[0137] It should be noted that in the embodiment of the present application, if the load state determination method of the host described above is implemented in the form of a software function module and is sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable an electronic device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods of each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a disk or an optical disk. In this way, the embodiment of the present application is not limited to any specific hardware, software or firmware, or any combination of hardware, software, and firmware.
[0138] An embodiment of the present application provides an electronic device, including a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and when the processor executes the program, some or all of the steps in the above method are implemented.
[0139] The embodiment of the present application provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, some or all of the steps in the above method are implemented. The computer-readable storage medium can be transient or non-transient.
[0140] An embodiment of the present application provides a computer program, including a computer-readable code. When the computer-readable code runs in an electronic device, a processor in the electronic device executes some or all of the steps in the above method.
[0141] The present application embodiment provides a computer program product, the computer program product includes a computer-readable storage medium storing a computer program, and when the computer program is read and executed by a computer, some or all of the steps in the above method are implemented. The computer program product can be implemented specifically by hardware, software, or a combination thereof. In some embodiments, the computer program product is specifically embodied as a computer storage medium, and in other embodiments, the computer program product is specifically embodied as a software product, such as a software development kit (SDK), etc.
[0142] It should be noted here that the description of the various embodiments above tends to emphasize the differences between the various embodiments, and the same or similar aspects can be referenced to each other. The description of the above device, storage medium, computer program and computer program product embodiments is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the embodiments of the device, storage medium, computer program and computer program product of this application, please refer to the description of the method embodiment of this application for understanding.
[0143] It should be understood that "one embodiment" or "an embodiment" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the serial number of each step / process mentioned above does not mean the order of execution, and the execution order of each step / process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application. The serial numbers of the embodiments of the present application mentioned above are for description only and do not represent the advantages and disadvantages of the embodiments.
[0144] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0145] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.
[0146] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0147] In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be a separate unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0148] Those skilled in the art will appreciate that all or part of the steps of the above method embodiments may be implemented by hardware associated with program instructions, and the aforementioned program may be stored in a computer-readable storage medium, which, when executed, executes the steps of the above method embodiments; and the aforementioned storage medium includes various media that can store program codes, such as mobile storage devices, read-only memories (ROM), magnetic disks or optical disks.
[0149] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can essentially or in other words, the part that contributes to the relevant technology can be embodied in the form of a software product, which is stored in a storage medium and includes a number of instructions for an electronic device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods of each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks, or optical disks.
[0150] The above are only implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.
Claims
1. A method for determining the load status of a host, characterized in that: include: Acquire multiple indicator sets corresponding to multiple performance indicators of the target host, where each indicator set includes multiple indicator values of the performance indicator at different times; Based on the pulse threshold corresponding to each performance indicator, determining the indicator value in each indicator set that is greater than the pulse threshold as the pulse value of the indicator set; Determining a first value, a second value, and a third value of each performance indicator of the target host based on the indicator set and the pulse value; The first value represents the time interval between the most recent acquisition time of the pulse value and the current time, the second value represents the number of pulse values, and the third value represents the average value of multiple indicator values in an indicator set; Determining a total score of the target host based on the first value, the second value, and the third value of each performance indicator; Based on a preset mapping relationship between scores and load states, the load state corresponding to the total score of the target host is determined.
2. The method according to claim 1, characterized in that The step of determining, based on the pulse threshold corresponding to each performance indicator, an indicator value in each indicator set that is greater than the pulse threshold as a pulse value of the indicator set includes: For all hosts in the network where the target host is located, obtaining multiple indicator sets of the multiple performance indicators of all hosts; Calculate the average value of the metric set of the i-th performance metric of each host; where i = 1, 2, ..., N, and N is the number of performance metrics; Determine the pulse threshold corresponding to the i-th performance indicator based on the average value of the i-th performance indicator of all hosts; Based on the pulse threshold corresponding to the i-th performance indicator, the indicator value in the indicator set of the i-th performance indicator that is greater than the pulse threshold is determined as the pulse value of the indicator set.
3. The method according to claim 2, characterized in that The step of determining a pulse threshold corresponding to the i-th performance indicator based on an average value of the i-th performance indicators of all hosts includes: Determine the median value of the average values of the i-th performance indicator of all hosts; The median value is used as the pulse threshold of the i-th performance indicator.
4. The method according to claim 1, wherein Determining the total score of the target host based on the first value, the second value, and the third value of each performance indicator includes: Determine, based on a preset data binning algorithm, a first score corresponding to a first value, a second score corresponding to a second value, and a third score corresponding to a third value of each performance indicator; A total score of the target host is determined based on the first score, the second score, and the third score of each performance indicator.
5. The method according to claim 4, characterized in that The determining, based on a preset data binning algorithm, a first score corresponding to a first value, a second score corresponding to a second value, and a third score corresponding to a third value of each performance indicator includes: For all hosts in the network where the target host is located, obtaining the first value, the second value, and the third value of each performance indicator of all hosts; Binning the first value, the second value, and the third value of each performance indicator of all hosts respectively to obtain a plurality of first bins corresponding to the first value, a plurality of second bins corresponding to the second value, and a plurality of third bins corresponding to the third value; A first score, a second score, and a third score for each performance indicator of the target host are determined based on a position of a first value of each performance indicator of the target host in the multiple first bins, a position of a second value of each performance indicator of the target host in the multiple second bins, and a position of a third value of each performance indicator of the target host in the multiple third bins.
6. The method according to claim 4, characterized in that Determining the total score of the target host based on the first score, the second score, and the third score of each performance indicator includes: Based on the first score, the second score, and the third score of each performance indicator, determining the indicator score of each performance indicator by a preset scoring condition; wherein the scoring condition is a scoring condition with the third score corresponding to the third value as an anchor point; Based on the indicator score of each performance indicator and the indicator weight corresponding to each performance indicator, a total score of the target host is determined.
7. The method according to claim 6, characterized in that The step of determining the index score of each performance index based on the first score, the second score, and the third score of each performance index by using a preset scoring condition includes: Determine, for each performance indicator, a first weight corresponding to a first score, a second weight corresponding to a second score, and a third weight corresponding to a third score, respectively, based on the business scenario and collection period to which the indicator value belongs; Based on the first score, the first weight, the second score, the second weight, the third score, and the third weight, determining, for each performance indicator, a first weighted score corresponding to the first score, a second weighted score corresponding to the second score, and a third weighted score corresponding to the third score according to the scoring conditions; An indicator score for each performance indicator is determined based on the first weighted score, the second weighted score, and the third weighted score for each performance indicator.
8. The method according to claim 7, characterized in that The determining, based on the first score, the first weight, the second score, the second weight, the third score, and the third weight, respectively, a first weighted score corresponding to the first score, a second weighted score corresponding to the second score, and a third weighted score corresponding to the third score of each performance indicator according to the scoring condition includes: If the first score is greater than or equal to a first threshold, determine the first weighted score to be the value of the first weight; if the first score is less than the first threshold, determine the first weighted score to be 0; If the second score is greater than or equal to a second threshold, determine the second weighted score as the value of the second weight; if the second score is less than the second threshold, determine the second weighted score as 0; The value obtained by subtracting one from the third score is multiplied by the third weight to obtain the third weighted score.
9. The method according to claim 6, characterized in that Determining the total score of the target host based on the indicator score of each performance indicator and the indicator weight corresponding to each performance indicator includes: Determining an indicator weight corresponding to each performance indicator according to the host type of the target host; The total score of the target host is determined according to the indicator weight of each performance indicator and the indicator score of each performance indicator.
10. The method according to any one of claims 1 to 9, characterized in that The multiple performance indicators include: central processing unit (CPU) utilization, memory usage, network port traffic, and average CPU load within a preset time period.
11. A device for determining a load status of a host, characterized in that: include: an acquisition module configured to acquire multiple indicator sets corresponding to multiple performance indicators of the target host, where each indicator set of the performance indicator includes multiple indicator values of the performance indicator at different times; A first processing module is configured to determine, based on a pulse threshold corresponding to each performance indicator, an indicator value in each indicator set that is greater than the pulse threshold as a pulse value of the indicator set; Determining a first value, a second value, and a third value of each performance indicator of the target host based on the indicator set and the pulse value; The first value represents the time interval between the most recent acquisition time of the pulse value and the current time, the second value represents the number of pulse values, and the third value represents the average value of multiple indicator values in an indicator set; a second processing module configured to determine a total score of the target host based on the first value, the second value, and the third value of each performance indicator; The determination module is configured to determine the load state corresponding to the total score of the target host based on a preset mapping relationship between the score and the load state.
12. An electronic device comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, wherein: When the processor executes the program, the steps of the method according to any one of claims 1 to 10 are implemented.
13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 10 are implemented.
14. A computer program product, characterized in that The computer program product comprises a computer-readable storage medium storing a computer program, and when the computer program is read and executed by a computer, the steps of the method according to any one of claims 1 to 10 are implemented.