Capacity determination method and device for distributed system, device, and medium

By obtaining historical data in the distributed system, determining the relationship between server applications and performance indicators, and calculating capacity prediction values, the problem of inaccurate and high complexity capacity predictions is solved, accurate and simplified capacity predictions are achieved, and performance is adapted. variation and flow non-uniformity.

WO2024212762A1PCT designated stage expired Publication Date: 2024-10-17BEIJING YOUZHUJU NETWORK TECH CO LTD

Patent Information

Application Number
PCT/CN2024/082043
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-13
Filing Date
2024-03-15
Publication Date
2024-10-17

AI Technical Summary

Technical Problem

The existing technology has problems of inaccuracy and high complexity in capacity estimation in distributed systems, especially because the test environment is inconsistent with the production environment, and capacity risks caused by performance changes and traffic unevenness cannot be identified in real time.

Method used

By obtaining the historical application indicators and performance indicators of the distributed system in the first time interval, the relationship between the server application indicators and performance indicators is determined, and the capacity prediction value is calculated based on this relationship and the peak performance indicators and traffic estimation indicators to avoid Reliance on stress testing simplifies operations and improves prediction accuracy.

Benefits of technology

It achieves accurate estimation of the capacity of distributed systems in the production environment, reduces the complexity of capacity estimation, avoids inaccurate capacity estimation problems caused by performance fluctuations and traffic unevenness, and improves the accuracy of estimation. and real-time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024082043_17102024_PF_FP_ABST
    Figure CN2024082043_17102024_PF_FP_ABST
Patent Text Reader

Abstract

Embodiments of the present disclosure provide a capacity determination method and apparatus for a distributed system, a device, and a medium. The method comprises: acquiring historical application indexes and historical performance indexes of each server in a distributed system at moments in a first time interval; determining the relationship between the server application indexes and the server performance indexes according to the historical application indexes and the historical performance indexes of the server; and acquiring a peak performance index of the server and a flow estimation index of the distributed system, and determining a predicted capacity of the distributed system according to the relationship between the server application indexes and the server performance indexes, the peak performance index, and the flow estimation index. The present disclosure solves the problem of inaccurate capacity estimation caused by the estimation of the capacity of a production environment by means of server performance under a test environment, and reduces the complexity of capacity estimation. The numerical range of historical data is determined by means of the first time interval, thereby improving the estimation accuracy, and avoiding the problem of inaccurate capacity estimation caused by performance fluctuation.
Need to check novelty before this filing date? Find Prior Art

Description

A method, device, equipment and medium for determining capacity of a distributed system

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims the benefit of Chinese Patent Application No. 202310395817.2 filed on March 22, 2023. The entire teachings of the above application are incorporated herein by reference. Technical Field

[0003] The embodiments of the present disclosure relate to data processing technology, and more particularly to a method, apparatus, device, and medium for determining the capacity of a distributed system. Background Art

[0004] Since server clusters built with a distributed architecture have the characteristics of large traffic, multiple activities, and complex links, a sudden increase in traffic may occur in scenarios such as disaster recovery, traffic switching, and activities.

[0005] To avoid capacity risks caused by sudden increases in traffic, capacity estimation is necessary in advance. Capacity estimation is typically done by combining server performance in a test environment with stress testing. However, the server types, network, and storage levels of the test environment may not be consistent with the production environment, making it difficult to accurately estimate the capacity of the production environment based on server performance in the test environment. Furthermore, distributed systems often have very large service groups, making stress testing each system relatively cumbersome, which undoubtedly increases the complexity of capacity estimation.

[0006] Summary of the Invention

[0007] The embodiments of the present disclosure provide a method, apparatus, device, and medium for determining capacity of a distributed system, which can improve the accuracy of capacity estimation and reduce the complexity of estimation.

[0008] In a first aspect, an embodiment of the present disclosure provides a method for determining capacity of a distributed system, including:

[0009] Obtaining historical application indicators and historical performance indicators of each server in a distributed system at each moment in a first time interval, wherein the first time interval is a time interval determined based on performance fluctuation information of the distributed system;

[0010] Determining a relationship between a server application indicator and a server performance indicator based on the historical application indicator and the historical performance indicator of the server;

[0011] The peak performance index of the server and the traffic estimation index of the distributed system are obtained, and the capacity prediction value of the distributed system is determined according to the relationship between the server application index and the server performance index, the peak performance index and the traffic estimation index.

[0012] In a second aspect, an embodiment of the present disclosure further provides a capacity determination device for a distributed system, the device comprising:

[0013] An indicator acquisition module, configured to acquire historical application indicators and historical performance indicators of each server in a distributed system within a first time interval, wherein the first time interval is a time interval determined based on performance fluctuation information of the distributed system;

[0014] a relationship determination module, configured to determine a relationship between a server application indicator and a server performance indicator based on the historical application indicator and the historical performance indicator of the server;

[0015] The capacity estimation module is used to obtain the peak performance index of the server and the traffic estimation index of the distributed system, and determine the capacity prediction value of the distributed system based on the relationship between the server application index and the server performance index, the peak performance index and the traffic estimation index.

[0016] In a third aspect, an embodiment of the present disclosure further provides an electronic device, the electronic device comprising:

[0017] one or more processors;

[0018] a storage device for storing one or more programs,

[0019] When the one or more programs are executed by the one or more processors, the one or more processors implement the capacity determination method for a distributed system as described in the embodiment of the present disclosure.

[0020] In a fourth aspect, an embodiment of the present disclosure further provides a storage medium containing computer-executable instructions, which, when executed by a computer processor, implements the capacity determination method of a distributed system as described in an embodiment of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The above and other features, advantages, and aspects of the various embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that the originals and elements are not necessarily drawn to scale.

[0022] FIG1 is a schematic diagram of a flow chart of a method for determining capacity of a distributed system provided by an embodiment of the present disclosure;

[0023] FIG2 is a flow chart of another method for determining capacity of a distributed system provided by an embodiment of the present disclosure;

[0024] FIG3 is a flow chart of another method for determining capacity of a distributed system provided by an embodiment of the present disclosure;

[0025] FIG4 is a flow chart of another method for determining capacity of a distributed system provided by an embodiment of the present disclosure;

[0026] FIG5 is a schematic diagram of the structure of a capacity determination device for a distributed system provided by an embodiment of the present disclosure;

[0027] FIG6 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0028] The following describes embodiments of the present disclosure in more detail with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as limited to the embodiments described herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of protection of the present disclosure.

[0029] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0030] As used herein, the term "including" and its variations are open-ended, i.e., "including but not limited to." The term "based on" means "based, at least in part, on." The term "one embodiment" means "at least one embodiment," the term "another embodiment" means "at least one additional embodiment," and the term "some embodiments" means "at least some embodiments." Other terms are defined in the following description.

[0031] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0032] It should be noted that the modifications of "one" and "multiple" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, they should be understood as "one or more".

[0033] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0034] In the existing scenario of traffic estimation for distributed systems and outputting system capacity estimation results in combination with stress test data, the single-node performance capacity of the production environment is determined based on the single-node performance indicator data of the test environment and the pre-trained single-node performance capacity estimation model. The single-architecture layer performance capacity of the production environment is then determined based on the single-node performance capacity, number of nodes and the pre-built single-architecture layer performance capacity estimation model of the production environment. The application performance capacity of the production environment is determined based on the single-architecture layer performance capacities of multiple production environments.

[0035] However, the above capacity estimation method has the following defects:

[0036] Because the test environment cannot be completely consistent with the production environment in terms of server type, network, and storage, existing capacity estimation methods use performance indicator data from the test environment to estimate the application performance capacity of the production environment, which is prone to inaccurate estimates. In addition, existing capacity estimation methods require stress testing in the test environment in advance, which is cumbersome and undoubtedly increases the complexity of capacity estimation. For distributed systems that rapidly iterate code and configuration updates, performance changes cannot be identified in real time. For distributed systems, there is often a certain degree of traffic unevenness between peer servers in the production environment, resulting in different loads on each server, making it impossible to effectively identify capacity risks caused by traffic unevenness.

[0037] In the scenario of capacity estimation for a system with a distributed architecture, in order to solve the above problems, the embodiments of the present disclosure provide a method, apparatus, device and storage medium for determining the capacity of a distributed system. By determining the relationship between the server application index and the server performance index based on the historical application index and the historical performance index of each server in the distributed system within a first time interval, the capacity prediction value is determined according to the relationship between the server application index and the server performance index, the peak performance index and the traffic estimation index. Through this embodiment, the capacity corresponding to the peak performance index can be estimated based on the historical data of the distributed system in the production environment, solving the problem of inaccurate capacity estimation caused by estimating the capacity of the production environment by the server performance in the test environment; since the capacity estimation of this embodiment does not require the help of stress test results, the capacity estimation operation is simplified and the complexity of capacity estimation is reduced; in addition, since the first time interval is a time interval determined based on the performance fluctuation information of the distributed system, the value range of the historical data is determined based on the first time interval, which improves the estimation accuracy and avoids the problem of inaccurate capacity estimation caused by performance fluctuations. The following embodiments are provided to explain the above methods, apparatus, equipment and storage medium in detail.

[0038] Figure 1 is a flow chart of a method for determining the capacity of a distributed system provided by an embodiment of the present disclosure. The embodiment of the present disclosure is applicable to situations where capacity estimation is performed on a system with a distributed architecture. The method can be executed by a capacity determination device for a distributed system, which can be implemented in the form of software and / or hardware. Optionally, it can be implemented by an electronic device, which can be a PC or a server, etc.

[0039] As shown in FIG1 , the method includes:

[0040] S110 : Obtain historical application indicators and historical performance indicators of each server in the distributed system at each moment in a first time interval.

[0041] The first time interval is a time interval determined based on the performance fluctuation information of the distributed system. Since updating the system in the production environment may cause changes in the performance indicators of the distributed system in the production environment, and thus cause deviations in the performance indicators and application indicators compared to normal conditions, and such deviations may affect the capacity estimation and cause inaccurate estimation, it is necessary to determine a time interval in which performance is stable (for example, if the performance fluctuation information of the distributed system is less than or equal to the set performance fluctuation threshold, the performance of the distributed system is determined to be stable) to obtain historical application indicators and historical performance indicators within the time interval in which performance is stable for capacity estimation.

[0042] Historical application metrics can be traffic data of a server in a distributed system at each moment in a specific time period, where the traffic data may include queries per second (QPS). Specifically, the historical application metrics of a server can be calculated based on the peak QPS of the distributed system at different moments in the specific time period and the number of servers at the corresponding historical moments.

[0043] Historical performance indicators can be performance indicators of servers in a distributed system at each moment in a specific time period. These indicators represent resource utilization indicators of the servers, such as CPU utilization, memory utilization, and disk utilization. Specifically, the performance indicators of each server in the system can be periodically recorded using server snapshots. If historical performance indicators of a server are needed, they can be obtained from the server snapshots.

[0044] In some embodiments, obtaining the historical application index and historical performance index of each server in the distributed system at each moment in the first time interval may include: for each moment in the first time interval, obtaining the peak application index and the number of servers of the distributed system at that moment. According to the peak application index and the number of servers at each moment in the first time interval, determine the historical application index of each server at each moment in the first time interval. For example, obtain the peak qps of the distributed system at different moments in the first time interval and the number of servers at the moment when the peak qps is generated, and determine the historical application index of each server based on the peak qps and the number of servers. Among them, the peak qps can be the highest qps of the distributed system at different moments, or be determined based on the highest qps at different moments, and the embodiments of the present disclosure do not make specific limitations. If Q(t) represents the peak qps of the distributed system at different moments t, and I(t) represents the number of servers of the distributed system at different moments t, then the historical application index P(t) of each server at different moments in the first time interval can be calculated using the following formula:

[0045] P(t)=Q(t) / I(t).

[0046] For example, t may be 20xx-1-1 13:00:00, and the historical application indicators of the server can be determined based on the maximum QPS and the number of servers of the distributed system within the hour 13:00:00 on January 1, 20xx.

[0047] It should be noted that since the number of historical servers may change, it is necessary to pre-record the number of servers at each time. The disclosed embodiments do not specifically limit the method for recording the number of servers at different times t. For example, when obtaining application indicators of a distributed system at each time, the application indicators can be associated and stored with the number of servers at the corresponding time. Alternatively, the number of servers of the distributed system at each time can be recorded in log form.

[0048] Obtain historical performance indicators for each server at different times within a first time interval, expressed as E(t, mk), where t represents different times within the first time interval and mk represents different historical performance indicators. For example, t can be 20xx-1-1 13:00:00, which can indicate obtaining one or more indicators of CPU usage, memory usage, and disk usage at 13:00:00 on January 1, 20xx.

[0049] It should be noted that the above example of t being 20xx-1-1 13:00:00 is only for illustrating the value of t and is not a limitation on t. Moreover, the embodiment of the present disclosure is not limited to taking performance indicators within one hour, and performance indicators within a longer or shorter time period can also be obtained.

[0050] S120: Determine the relationship between the server application index and the server performance index based on the historical application index and the historical performance index of the server.

[0051] Exemplarily, the historical application indicators and historical performance indicators at each moment in the first time interval are fitted to obtain a fitting function between the server application indicator and the server performance indicator. Since the historical application indicators and historical performance indicators of each server at different moments are discrete data, fitting these discrete data can obtain a fitting function between the server application indicator and the server performance indicator. The fitting function represents the relationship between the server application indicator and the server performance indicator.

[0052] It should be noted that the embodiments of the present disclosure do not specifically limit the specific fitting method. For example, it may include linear fitting and other methods.

[0053] S130. Obtain the peak performance index of the server and the traffic estimation index of the distributed system, and determine the capacity prediction value of the distributed system according to the relationship between the server application index and the server performance index, the peak performance index and the traffic estimation index.

[0054] The peak performance index may be a preset acceptable performance index threshold for the server, for example, a CPU usage threshold, a memory usage threshold, a disk usage threshold, etc.

[0055] The traffic estimation indicator can be a pre-set possible peak traffic volume of the distributed system. For example, the peak traffic volume can be the maximum traffic volume estimated by operation strategy, human estimation, etc., or the peak traffic volume can be calculated using a set formula based on the maximum traffic volume.

[0056] In some embodiments, determining the capacity prediction value of the distributed system based on the relationship between the server application indicator and the server performance indicator, the peak performance indicator, and the traffic estimation indicator includes: determining the application estimation indicator corresponding to the peak performance indicator based on the relationship between the server application indicator and the server performance indicator; and determining the capacity prediction value of the distributed system based on the application estimation indicator and the traffic estimation indicator. The application estimation indicator may be a traffic indicator of the distributed system when the peak performance indicator is reached, such as the peak QPS corresponding to the peak performance indicator.

[0057] Specifically, the peak performance index can be substituted into the fitting function of the server application index and the server performance index. The output of this fitting function is the application estimation index. The ratio of the traffic estimation index to the application estimation index is calculated to obtain the capacity forecast value when the traffic of the distributed system reaches the traffic estimation index and the performance of each server reaches the peak performance index.

[0058] Optionally, after determining the capacity prediction value of the distributed system based on the relationship between the server application index and the server performance index, the peak performance index, and the traffic estimation index, a current capacity value may be obtained and compared with the capacity prediction value. If the current capacity value is less than the capacity prediction value, the number of servers to be added to the distributed system may be determined based on the capacity prediction value and the current capacity value. For example, the difference between the capacity prediction value and the current capacity value may be used as the number of servers to be added. If the current capacity value is equal to or greater than the capacity prediction value, it is determined that the distributed system does not need to be expanded.

[0059] The technical solution of the disclosed embodiment can estimate the capacity corresponding to the peak performance indicator based on the historical data of the distributed system in the production environment, thereby solving the problem of inaccurate capacity estimation caused by estimating the capacity of the production environment through the server performance in the test environment; since the capacity estimation of this embodiment does not require the help of stress test results, the capacity estimation operation is simplified and the complexity of capacity estimation is reduced; in addition, since the first time interval is a time interval determined based on the performance fluctuation information of the distributed system, the value range of the historical data is determined based on the first time interval, which improves the estimation accuracy and avoids the problem of inaccurate capacity estimation caused by performance fluctuations.

[0060] FIG2 is a flow chart of another method for determining the capacity of a distributed system provided by an embodiment of the present disclosure. This embodiment, based on the above embodiment, adds a method for determining the first time interval. As shown in FIG2 , the method includes:

[0061] S210 : When the distributed system executes a set event, respectively obtain a first historical performance indicator of the distributed system at a first moment and a second historical performance indicator at a second moment.

[0062] The set event can be a system-published event corresponding to a software-related change in a distributed system. For example, software-related changes include system code changes or system configuration changes. System code changes can cause changes in server performance indicators in the production environment. System configuration changes can also cause changes in server performance indicators in the production environment.

[0063] The first moment is a set moment before the set event occurs, and the second moment is a set moment after the set event ends. For example, the performance indicators of the distributed system can be recorded before the system is released, and the time of recording the performance indicators is used as the first moment. Alternatively, the performance indicators of the distributed system can be recorded after the system is released, and the time of recording the performance indicators is used as the second moment.

[0064] S220. Determine performance fluctuation information of the distributed system according to the first historical performance indicator and the second historical performance indicator.

[0065] Performance fluctuation information can be the degree of change in the performance of the distributed system before and after a set event occurs. For example, performance fluctuation information can be expressed using a performance change rate or other method. Specifically, a system snapshot at time t1 before the system is released is obtained, and the online performance indicator E(t1, mk1) is obtained based on the system snapshot at time t1. Furthermore, a system snapshot at time t2 after the system is released is obtained, and the online performance indicator E(t2, mk2) is obtained based on the system snapshot at time t2, where mk1 represents the performance indicator at time t1 and mk2 represents the performance indicator at time t2.

[0066] It should be noted that the set time t1 and the set time t2 can be a single time point. Considering the balance of performance indicators, the set time t1 and the set time t2 can also be time periods of set lengths to avoid the problem of large data discreteness.

[0067] In some embodiments, the following formula may be used to calculate the performance fluctuation information ΔE of the distributed system based on the first historical performance indicator and the second historical performance indicator:

[0068] S230: Determine a first time interval according to the performance fluctuation information.

[0069] In some embodiments, the performance change rate is determined based on the performance fluctuation information, and the target moment is determined based on the performance change rate; and the first time interval is determined based on the target moment. Specifically, the target moment when the performance change rate exceeds the set fluctuation threshold is determined based on the performance fluctuation information; and the first time interval is determined based on the target moment. For example, a pre-set performance fluctuation threshold is obtained, and the performance fluctuation information is compared with the performance fluctuation threshold. If the performance fluctuation information is greater than the performance fluctuation threshold, it is determined that server performance degradation has occurred, and the time t2 set after the system is released is used as the starting point of the first time interval. Optionally, the time when the capacity estimation is executed can be used as the end point of the first time interval, and the time when the capacity estimation of the distributed system is about to begin can be used as the end point of the first time interval, thereby correcting the selection range of the capacity estimation data according to the first time interval.

[0070] S240: Obtain historical application indicators and historical performance indicators of each server in the distributed system at each moment in the first time interval.

[0071] S250: Determine the relationship between the server application index and the server performance index based on the historical application index and the historical performance index of the server.

[0072] S260. Obtain the peak performance index of the server and the traffic estimation index of the distributed system, and determine the capacity prediction value of the distributed system according to the relationship between the server application index and the server performance index, the peak performance index and the traffic estimation index.

[0073] The technical solution of the embodiment of the present disclosure can identify performance fluctuations based on the historical performance indicators of the distributed system before and after the execution of the set event, thereby determining the first time interval in which the performance is stable, and filtering the historical performance indicators and historical application indicators used for capacity estimation through the first time interval, thereby realizing the correction of the estimated data selection range by identifying performance fluctuations, and can solve the problem of inaccurate estimated data caused by performance optimization or degradation of the service due to code and configuration changes.

[0074] FIG3 is a flow chart of another method for determining the capacity of a distributed system provided by an embodiment of the present disclosure. This embodiment, based on the above embodiment, adds a method for determining the flow difference. As shown in FIG3, the method includes:

[0075] S310: Obtain historical application indicators and historical performance indicators of each server in the distributed system at each moment in the first time interval.

[0076] S320: Determine the relationship between the server application indicator and the server performance indicator based on the historical application indicator and the historical performance indicator of the server.

[0077] S330: Obtain a target application indicator corresponding to the second time interval from the historical application indicators of the server.

[0078] The second time interval may be a time period within the first time interval close to the current time. Since the traffic of a distributed system does not change much in a relatively short time range, the traffic unevenness of the current server can be represented based on the traffic state in a time period before the current time.

[0079] In some embodiments, the current time may be the end time of the first time interval. Since the historical application indicators of the server in the first time interval have been obtained, a target application indicator corresponding to the second time interval may be selected from the historical application indicators.

[0080] In other embodiments, the current moment may also be the current time of the distributed system, and the second time interval may be a specific time period before the current time. The peak QPS at the corresponding moment is determined based on the system snapshots at each moment in the second time interval, and then combined with the number of servers at the corresponding moment, the target application indicator corresponding to the second time interval is obtained.

[0081] S340: Determine the flow difference according to the target application indicator.

[0082] Traffic variability can be used to indicate the degree of uneven traffic distribution within a single server. In distributed systems, online peer servers experience a certain degree of traffic unevenness, resulting in varying loads on each server. This traffic unevenness can lead to capacity risks. Therefore, the impact of traffic unevenness needs to be considered when performing capacity estimation.

[0083] In some embodiments, the traffic unevenness of the server is represented based on the maximum application index and the minimum application index of each server's target application index. The first application index of the system can be determined based on the maximum application index of each server, and the second application index of the system can be determined based on the minimum application index of each server. The traffic difference is calculated based on the difference ratio between the first application index and the second application index. There are many ways to calculate the first application index and the second application index, and the disclosed embodiments do not specifically limit them. For example, the mean method or the median method can be used for calculation, etc.

[0084] Specifically, the first application index P1 of the system is determined based on the average of the maximum QPS of each server in the second time interval, and the second application index P2 of the system is determined based on the average of the minimum QPS of each server in the second time interval. The flow difference v% can be calculated based on the first application index P1 and the second application index P2 using the following formula:

[0085] Wherein, P1 represents the first application index, P2 represents the second application index, and v% represents the traffic difference of a single server.

[0086] S350: Determine an application estimation indicator corresponding to the peak performance indicator based on the relationship between the server application indicator and the server performance indicator.

[0087] S360. Determine a capacity prediction value of the distributed system according to the application prediction index, the traffic prediction index, and the traffic difference.

[0088] The capacity prediction value may be the capacity required by the distributed system to carry the traffic estimation index while ensuring that the performance index of each server is at the peak performance index.

[0089] In some embodiments, the ratio of the traffic prediction index to the application prediction index is calculated, and the traffic difference is used as a compensation coefficient. The capacity prediction value is determined based on the above ratio and the compensation coefficient. The capacity prediction value C can be calculated using the following formula: need :

[0090] S370. Obtain the current capacity value of the distributed system and determine whether the current capacity is less than the predicted capacity value. If so, execute S380; otherwise, execute S390.

[0091] Exemplarily, a current capacity value of the distributed system is obtained, and the capacity prediction value is compared with the current capacity value.

[0092] S380. Determine the number of servers to be added to the distributed system according to the predicted capacity value and the current capacity value.

[0093] C cur Represents the current capacity value of the distributed system, C need Represents the capacity prediction value of the distributed system. If C cur <C need , then it is determined that the distributed system needs to increase C need -C cur servers.

[0094] S390: Determine that the distributed system does not need to be expanded.

[0095] If C cur ≥C need , it is determined that the distributed system does not need to be expanded.

[0096] The technical solution of the embodiment of the present disclosure determines the traffic difference through the target application indicator in the second time interval, and combines the traffic difference as a compensation coefficient with the application estimation indicator and the traffic estimation indicator to calculate the capacity prediction value. This can solve the problem of inaccurate capacity estimation caused by uneven traffic distribution of a single server and further improve the accuracy of capacity estimation.

[0097] FIG4 is a flow chart of another method for determining the capacity of a distributed system provided by an embodiment of the present disclosure. This embodiment is a specific example provided on the basis of the above embodiment. As shown in FIG4 , the method includes:

[0098] S410: Determine a traffic estimation indicator.

[0099] Among them, the traffic estimation indicator can be the maximum traffic Q of the distributed system artificially estimated by means of operation strategy, etc. max .

[0100] S420: Obtain historical application indicators of each server in the distributed system at each moment in the first time interval.

[0101] For example, historical application metrics for capacity estimation are filtered from historical data using the performance change time point t2 closest to the current moment. Specifically, within the first time interval from t2 to the current moment, system snapshots are obtained at different times t. The highest QPS at time t and the number of servers at that time are obtained based on the system snapshots. The ratio of the highest QPS to the number of servers at that time is calculated to obtain the QPS of a single server at different times. The historical application metrics are then determined based on the QPS of the single server at different times.

[0102] S430: Obtain historical performance indicators of each server in the distributed system at each moment in the first time interval.

[0103] For example, historical performance indicators for capacity estimation are filtered from historical data using the performance change time point t2 closest to the current time. Specifically, within the first time interval from t2 to the current time, server snapshots are obtained at different times t, and server performance indicators at different times are obtained based on the server snapshots. For example, obtaining the performance indicators at 13:00:00 on January 1, 20xx, can represent obtaining the performance indicators for the hour 13:00:00 on January 1, 20xx.

[0104] S440: Fit the relationship between the historical application index and the historical performance index in the first time interval to obtain a formula for the relationship between the performance index and QPS.

[0105] For example, the historical application indicators and historical performance indicators of each server during the first time interval are fitted to obtain the performance indicator-QPS relationship formula: P = f(E), where P represents the QPS that a single server can handle, E represents the acceptable performance indicator threshold for a single server, and f represents the fitting function.

[0106] S450: Identify traffic difference.

[0107] For example, the qps of each server within the preset time interval is obtained, which is expressed as p = flow (h, △t), where h represents a server and △t represents the preset time interval. From the qps of each server within the preset time interval, the maximum qps and minimum qps of each server are selected, and p is used to calculate the maximum qps and minimum qps of each server. max Indicates the average value of all maximum qps, using p min It represents the average value of all minimum qps, and the flow difference v% can be calculated by the following formula:

[0108] S460. Calculate the capacity gap.

[0109] Since the qps that a single server can carry has been calculated, it is represented by P. According to the maximum flow Q max , P and flow difference v%, use the following formula to calculate the capacity prediction value C need :

[0110] According to the calculated capacity prediction value C need and the current capacity value C of the distributed system cur Identify capacity gaps.

[0111] S470, manual capacity expansion.

[0112] In C cur <C need In the case of C, it is determined that the distributed system needs to be expanded need -C cur If there are multiple servers, the distributed system is manually expanded; otherwise, no expansion is performed.

[0113] Figure 5 is a schematic diagram of the structure of a distributed system capacity determination apparatus provided in an embodiment of the present disclosure. This apparatus can be implemented using software and / or hardware and can be configured in an electronic device, typically a PC or server. As shown in Figure 5 , the distributed system capacity determination apparatus provided in this embodiment includes an indicator acquisition module 510, a relationship determination module 520, and a capacity estimation module 530.

[0114] An indicator acquisition module 510 is configured to acquire historical application indicators and historical performance indicators of each server in a distributed system at each moment in a first time interval, wherein the first time interval is a time interval determined based on performance fluctuation information of the distributed system;

[0115] a relationship determination module 520 for determining a relationship between a server application indicator and a server performance indicator based on the historical application indicator and the historical performance indicator of the server;

[0116] The capacity estimation module 530 is used to obtain the peak performance index of the server and the traffic estimation index of the distributed system, and determine the capacity prediction value of the distributed system based on the relationship between the server application index and the server performance index, the peak performance index and the traffic estimation index.

[0117] A capacity determination device for a distributed system provided by an embodiment of the present disclosure can estimate the capacity corresponding to a peak performance indicator based on historical data of the distributed system in a production environment, thereby solving the problem of inaccurate capacity estimation caused by estimating the capacity of a production environment through server performance in a test environment. Since the capacity estimation of this embodiment does not require the use of stress test results, the capacity estimation operation is simplified and the complexity of capacity estimation is reduced. In addition, since the first time interval is a time interval determined based on performance fluctuation information of the distributed system, the value range of the historical data is determined based on the first time interval, thereby improving the estimation accuracy and avoiding the problem of inaccurate capacity estimation caused by performance fluctuations.

[0118] Furthermore, the device also includes:

[0119] an acquisition module, configured to acquire, when the distributed system executes a set event, a first historical performance indicator of the distributed system at a first moment and a second historical performance indicator at a second moment, respectively, wherein the first moment is a set moment before the set event occurs, and the second moment is a set moment after the set event ends;

[0120] A fluctuation information determination module, configured to determine performance fluctuation information of the distributed system based on the first historical performance indicator and the second historical performance indicator;

[0121] A time determination module is configured to determine a first time interval according to the performance fluctuation information.

[0122] In the above solution, the time interval determination module is specifically used to:

[0123] determining a performance change rate according to the performance fluctuation information, and determining a target time based on the performance change rate;

[0124] The first time interval is determined according to the target time.

[0125] Furthermore, the indicator acquisition module 510 is specifically configured to:

[0126] For each moment in the first time interval, obtaining the peak application index and the number of servers of the distributed system at that moment;

[0127] According to the peak application index at each moment in the first time interval and the number of servers, a historical application index of each server at each moment in the first time interval is determined.

[0128] Furthermore, the capacity estimation module 530 is specifically configured to:

[0129] Determining an application estimation indicator corresponding to the peak performance indicator based on the relationship between the server application indicator and the server performance indicator;

[0130] A capacity prediction value of the distributed system is determined based on the application prediction index and the traffic prediction index.

[0131] In the above solution, the device further comprises:

[0132] a traffic difference determination module configured to obtain, after obtaining historical application indicators of each server in the distributed system at each moment in a first time interval, obtain a target application indicator corresponding to a second time interval from the historical application indicators of the server; and determine the traffic difference based on the target application indicator;

[0133] The capacity estimation module 530 is further specifically configured to:

[0134] The capacity prediction value of the distributed system is determined according to the application prediction index, the traffic prediction index and the traffic difference.

[0135] Furthermore, the device further comprises:

[0136] a comparison module, configured to, after determining a capacity prediction value of the distributed system based on a relationship between the server application indicator and the server performance indicator, a peak performance indicator, and a traffic estimation indicator, compare the capacity prediction value with a current capacity value of the distributed system;

[0137] a first capacity expansion module, configured to determine, when the current capacity value is less than the predicted capacity value, the number of servers to be added to the distributed system according to the predicted capacity value and the current capacity value;

[0138] The second capacity expansion module is configured to determine that the distributed system does not need to be expanded if the current capacity value is equal to or greater than the predicted capacity value.

[0139] The distributed system capacity determination apparatus provided in the embodiments of the present disclosure can execute the distributed system capacity determination method provided in any embodiment of the present disclosure, and has the corresponding functional modules and beneficial effects of executing the method. For technical details not fully described in this embodiment, please refer to the distributed system capacity determination method provided in any embodiment of the present disclosure.

[0140] FIG6 is a schematic diagram of the structure of an electronic device provided by an embodiment of the present disclosure. Referring to FIG6 , a schematic diagram of the structure of an electronic device (such as a terminal device or server in FIG6 ) 600 suitable for implementing an embodiment of the present disclosure is shown below. The terminal device in the embodiment of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. The electronic device shown in FIG6 is merely an example and should not impose any limitations on the functions and scope of use of the embodiments of the present disclosure.

[0141] As shown in FIG6 , the electronic device 600 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 608 into a random access memory (RAM) 603. Various programs and data required for the operation of the electronic device 600 are also stored in the RAM 603. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An edit / output (I / O) interface 605 is also connected to the bus 604.

[0142] Typically, the following devices may be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touchpad, a keyboard, a mouse, etc.; an output device 607 including, for example, a liquid crystal display (LCD); a storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609. The communication device 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. Although FIG. 6 illustrates the electronic device 600 with various devices, it should be understood that not all of the illustrated devices are required to be implemented or present. More or fewer devices may alternatively be implemented or present.

[0143] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program includes program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network via the communication device 609, or installed from the storage device 608, or installed from the ROM 602. When the computer program is executed by the processing device 601, the above-mentioned functions defined in the method of the embodiment of the present disclosure are performed.

[0144] The electronic device provided in the embodiment of the present disclosure and the capacity determination method of the distributed system provided in the above embodiment belong to the same inventive concept. For technical details not fully described in this embodiment, please refer to the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.

[0145] An embodiment of the present disclosure provides a computer storage medium having a computer program stored thereon. When the program is executed by a processor, the method for determining the capacity of a distributed system provided in the above embodiment is implemented.

[0146] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or component. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.

[0147] In some embodiments, the client and server can communicate using any currently known or later developed network protocol, such as HTTP (HyperText Transfer Protocol), and can be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or later developed network.

[0148] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0149] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device:

[0150] Obtaining historical application indicators and historical performance indicators of each server in a distributed system at each moment in a first time interval, wherein the first time interval is a time interval determined based on performance fluctuation information of the distributed system;

[0151] Determining a relationship between a server application indicator and a server performance indicator based on the historical application indicator and the historical performance indicator of the server;

[0152] The peak performance index of the server and the traffic estimation index of the distributed system are obtained, and the capacity prediction value of the distributed system is determined according to the relationship between the server application index and the server performance index, the peak performance index and the traffic estimation index.

[0153] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including, but not limited to, object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0154] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0155] The units involved in the embodiments described in this disclosure may be implemented in software or hardware. In some cases, the name of a unit does not limit the unit itself. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses."

[0156] The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.

[0157] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0158] According to one or more embodiments of the present disclosure, Example 1 provides a method for determining capacity of a distributed system, including:

[0159] Obtaining historical application indicators and historical performance indicators of each server in a distributed system at each moment in a first time interval, wherein the first time interval is a time interval determined based on performance fluctuation information of the distributed system;

[0160] Determining a relationship between a server application indicator and a server performance indicator based on the historical application indicator and the historical performance indicator of the server;

[0161] The peak performance index of the server and the traffic estimation index of the distributed system are obtained, and the capacity prediction value of the distributed system is determined according to the relationship between the server application index and the server performance index, the peak performance index and the traffic estimation index.

[0162] According to one or more embodiments of the present disclosure, Example 2 is the method according to Example 1, wherein the first time interval is determined in the following manner:

[0163] When the distributed system executes a set event, obtaining a first historical performance indicator of the distributed system at a first moment and a second historical performance indicator at a second moment, respectively, wherein the first moment is a set moment before the set event occurs, and the second moment is a set moment after the set event ends;

[0164] determining performance fluctuation information of the distributed system according to the first historical performance indicator and the second historical performance indicator;

[0165] A first time interval is determined according to the performance fluctuation information.

[0166] According to one or more embodiments of the present disclosure, Example 3 is the method according to Example 2, wherein determining the first time interval according to the performance fluctuation information includes:

[0167] determining a performance change rate according to the performance fluctuation information, and determining a target time based on the performance change rate;

[0168] The first time interval is determined according to the target time.

[0169] According to one or more embodiments of the present disclosure, Example 4, according to the method of Example 1, obtaining historical application indicators of each server in the distributed system at each time in the first time interval includes:

[0170] For each moment in the first time interval, obtaining the peak application index and the number of servers of the distributed system at that moment;

[0171] According to the peak application index at each moment in the first time interval and the number of servers, a historical application index of each server at each moment in the first time interval is determined.

[0172] According to one or more embodiments of the present disclosure, Example 5 is the method according to Example 1, wherein determining the capacity prediction value of the distributed system based on the relationship between the server application indicator and the server performance indicator, the peak performance indicator, and the traffic estimation indicator includes:

[0173] Determining an application estimation indicator corresponding to the peak performance indicator based on the relationship between the server application indicator and the server performance indicator;

[0174] A capacity prediction value of the distributed system is determined based on the application prediction index and the traffic prediction index.

[0175] According to one or more embodiments of the present disclosure, Example 6, according to the method of Example 5, further includes, after obtaining historical application indicators of each server in the distributed system at each time point in the first time interval:

[0176] Obtaining a target application indicator corresponding to a second time interval from the historical application indicators of the server;

[0177] Determining a flow difference according to the target application indicator;

[0178] The determining of the capacity prediction value of the distributed system according to the application prediction index and the traffic prediction index includes:

[0179] The capacity prediction value of the distributed system is determined according to the application prediction index, the traffic prediction index and the traffic difference.

[0180] According to one or more embodiments of the present disclosure, Example 7, according to the method of any one of Examples 1-6, further includes, after determining the capacity prediction value of the distributed system based on the relationship between the server application indicator and the server performance indicator, the peak performance indicator, and the traffic estimation indicator:

[0181] comparing the capacity prediction value with a current capacity value of the distributed system;

[0182] In a case where the current capacity value is less than the predicted capacity value, determining the number of servers to be added to the distributed system according to the predicted capacity value and the current capacity value;

[0183] When the current capacity value is equal to or greater than the predicted capacity value, it is determined that the distributed system does not need to be expanded.

[0184] According to one or more embodiments of the present disclosure, Example 8 provides a capacity determination device for a distributed system, including:

[0185] An indicator acquisition module, configured to acquire historical application indicators and historical performance indicators of each server in a distributed system at each moment in a first time interval, wherein the first time interval is a time interval determined based on performance fluctuation information of the distributed system;

[0186] a relationship determination module, configured to determine a relationship between a server application indicator and a server performance indicator based on the historical application indicator and the historical performance indicator of the server;

[0187] The capacity estimation module is used to obtain the peak performance index of the server and the traffic estimation index of the distributed system, and determine the capacity prediction value of the distributed system based on the relationship between the server application index and the server performance index, the peak performance index and the traffic estimation index.

[0188] According to one or more embodiments of the present disclosure, Example 9 provides an electronic device, the electronic device including:

[0189] one or more processors;

[0190] a storage device for storing one or more programs,

[0191] When the one or more programs are executed by the one or more processors, the one or more processors implement the capacity determination method of the distributed system as described in any one of Examples 1-7.

[0192] According to one or more embodiments of the present disclosure, Example 10 provides a storage medium containing computer-executable instructions, which, when executed by a computer processor, are used to perform the capacity determination method for a distributed system as described in any one of Examples 1-7.

[0193] The above description is merely a preferred embodiment of the present disclosure and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, but also includes other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the above-mentioned disclosed concepts. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions disclosed in this disclosure.

[0194] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details have been included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.

[0195] Although the subject matter has been described in language specific to structural features and / or methodological logical acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.

Claims

1. A method for determining the capacity of a distributed system, wherein: include: Acquire historical application indicators and historical performance indicators of each server in a distributed system at each moment in a first time interval, wherein the first time interval is a time interval determined based on performance fluctuation information of the distributed system; Determining the relationship between the server application indicator and the server performance indicator based on the historical application indicator and the historical performance indicator of the server; The peak performance index of the server and the traffic estimation index of the distributed system are obtained, and the capacity prediction value of the distributed system is determined according to the relationship between the server application index and the server performance index, the peak performance index and the traffic estimation index.

2. The method according to claim 1, wherein: The method for determining the first time interval includes: When the distributed system executes a set event, respectively obtaining a first historical performance indicator of the distributed system at a first moment and a second historical performance indicator at a second moment, wherein the first moment is a set moment before the set event occurs, and the second moment is a set moment after the set event ends; Determine performance fluctuation information of the distributed system according to the first historical performance indicator and the second historical performance indicator; A first time interval is determined according to the performance fluctuation information.

3. The method according to claim 2, wherein: The determining the first time interval according to the performance fluctuation information includes: Determine a performance change rate according to the performance fluctuation information, and determine a target time based on the performance change rate; The first time interval is determined according to the target time.

4. The method according to claim 1, wherein: The obtaining of the historical application index of each server in the distributed system at each time in the first time interval includes: For each moment in the first time interval, obtaining the peak application index and the number of servers of the distributed system at that moment; According to the peak application index and the number of servers at each moment in the first time interval, a historical application index of each server at each moment in the first time interval is determined.

5. The method according to claim 1, wherein: Determining the capacity prediction value of the distributed system according to the relationship between the server application indicator and the server performance indicator, the peak performance indicator and the traffic estimation indicator includes: Determining an application estimation indicator corresponding to the peak performance indicator according to the relationship between the server application indicator and the server performance indicator; The capacity prediction value of the distributed system is determined according to the application prediction index and the traffic prediction index.

6. The method according to claim 5, wherein: After obtaining the historical application indicators of each server in the distributed system at each time in the first time interval, the method further includes: Obtaining a target application indicator corresponding to a second time interval from among the historical application indicators of the server; Determining a flow difference according to the target application indicator; The determining the capacity prediction value of the distributed system according to the application prediction index and the traffic prediction index includes: The capacity prediction value of the distributed system is determined according to the application prediction index, the traffic prediction index and the traffic difference.

7. The method according to any one of claims 1 to 6, wherein: After determining the capacity prediction value of the distributed system according to the relationship between the server application index and the server performance index, the peak performance index and the traffic estimation index, the method further includes: comparing the capacity prediction value with a current capacity value of the distributed system; In a case where the current capacity value is less than the predicted capacity value, determining the number of servers to be added to the distributed system according to the predicted capacity value and the current capacity value; When the current capacity value is equal to or greater than the predicted capacity value, it is determined that the distributed system does not need to be expanded.

8. The method according to claim 1, wherein: The peak performance indicator includes a maximum query rate per second of the server in the distributed system.

9. The method according to claim 1, wherein: The historical performance indicator is a performance indicator used to represent a resource utilization indicator of the server.

10. The method according to claim 9, further comprising: The performance indicators of the servers in the distributed system are recorded periodically by means of server snapshots.

11. The method according to claim 1, wherein: Determining the relationship between the server application indicator and the server performance indicator includes: The historical application index and the historical performance index at each moment in the first time interval are fitted to obtain a fitting function of the server application index and the server performance index, wherein the fitting function represents a relationship between the server application index and the server performance index.

12. The method according to claim 11, wherein: Substitute the peak performance index into the fitting function to output the application prediction index.

13. A capacity determination device for a distributed system, wherein: include: An indicator acquisition module, used to acquire historical application indicators and historical performance indicators of each server in a distributed system at each moment in a first time interval, wherein the first time interval is a time interval determined based on performance fluctuation information of the distributed system; A relationship determination module, used to determine the relationship between the server application indicator and the server performance indicator according to the historical application indicator and the historical performance indicator of the server; The capacity estimation module is used to obtain the peak performance index of the server and the traffic estimation index of the distributed system, and determine the capacity prediction value of the distributed system according to the relationship between the server application index and the server performance index, the peak performance index and the traffic estimation index.

14. An electronic device, wherein: The electronic device comprises: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the capacity determination method for a distributed system as described in any one of claims 1-12.

15. A storage medium containing computer executable instructions, characterized in that: When the computer executable instructions are executed by a computer processor, they are used to perform the capacity determination method for a distributed system as described in any one of claims 1-12.

Citation Information

Patent Citations

  • Cloud calculation system capacity evaluation method and device, equipment and storage medium

    CN113010576A

  • System capacity estimation method and device

    CN114356577A

  • System capacity estimation method, system, equipment and storage medium

    CN115292146A

  • Machine learning to predict quality-of-service needs in an operational data management system

    US20210044496A1

Cited By

  • Server power supply switching method and device supporting multi-node power supply

    CN122068645A