Capacity adjusting method and device, electronic equipment and computer readable medium
By collecting and marking the indicator data of online services, the resource capacity is dynamically adjusted, which solves the problems of long resource capacity adjustment cycle and poor stability, and achieves reasonable adjustment of resources and reduction of waste.
Patent Information
- Application Number
- CN202410609830.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-16
- Publication Date
- 2024-08-23
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Resource capacity adjustment in the existing technology has large errors and slow speed, resulting in a long cycle, inability to timely alarm and repair, resulting in poor system stability, and inability to rationally adjust resources, causing waste and reducing system stability.
By collecting indicator data of online services, preset cycle detection is performed, abnormal data is marked, resource capacity is dynamically adjusted, the adjustment cycle is shortened, resources are reasonably adjusted, and waste is reduced.
It shortens the resource capacity adjustment cycle, improves system stability, saves resources, and avoids manual adjustment errors and waste.
Smart Images

Figure CN118535329A
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure relate to the field of computer technology, and in particular to a capacity adjustment method, device, electronic device, and computer-readable medium. Background Art
[0002] With the development of the Internet, the demand for adjusting resource capacity is increasing, and reasonable expansion and reduction of resource capacity is becoming more and more popular. When users process resource capacity, they usually need to expand or reduce resource capacity. Capacity adjustment is a technology for adjusting resource capacity, which can improve system stability and shorten the cycle of resource capacity adjustment. In addition, adjusting resource capacity information according to various parameters can also improve system stability. In addition, verifying user operation behavior can also improve system stability and shorten the cycle of resource capacity adjustment. At present, the common method of capacity adjustment is that users adjust resource capacity through manual intervention.
[0003] However, when the above method is adopted, the following technical problems often occur:
[0004] First, the manual adjustment of resource capacity information produces large errors and slow processing speed, resulting in a long resource capacity adjustment cycle. In addition, the system stability is poor because of the inability to promptly alarm and repair faults when faults occur. In addition, because resource capacity cannot be adjusted reasonably, capacity resources are wasted.
[0005] Second, it is impossible to comprehensively adjust resource capacity information according to various parameters, resulting in ineffective utilization of resources, thus wasting resources and reducing system stability.
[0006] Third, since the user's operation interface cannot be effectively detected, abnormal user operation behavior may cause the system's stability to decline, and abnormalities may occur when authenticating the user's operation information, resulting in a longer cycle for resource capacity adjustment.
[0007] The above information disclosed in this Background section is only for enhancement of understanding of the background of the inventive concept and therefore it may contain information that does not form the prior art that is already known in this country to a person of ordinary skill in the art. Summary of the invention
[0008] The content of this disclosure is used to introduce concepts in a brief form, which will be described in detail in the detailed implementation section below. The content of this disclosure is not intended to identify the key features or essential features of the technical solution claimed for protection, nor is it intended to limit the scope of the technical solution claimed for protection.
[0009] Some embodiments of the present disclosure propose a capacity adjustment method, an apparatus, an electronic device, and a computer-readable medium to solve one or more of the technical problems mentioned in the above background technology section.
[0010] In a first aspect, some embodiments of the present disclosure provide a capacity adjustment method, the method comprising: collecting an indicator data set corresponding to an online service; performing a preset period detection on the above indicator data set to obtain a detection result set; in response to determining that there is a value corresponding to a detection result in the above detection result set that is greater than a preset first value threshold, performing abnormal alarm processing on at least one detection result greater than the preset first value threshold, and marking the indicator data corresponding to at least one detection result greater than the preset first value threshold with a first label to obtain a first marked indicator data group; performing a first capacity adjustment on the resource capacity information corresponding to the above online service according to the above first marked indicator data group to obtain a first adjusted resource information group; in response to determining that the above detection result set has a value corresponding to a detection result that is greater than a preset first value threshold, performing an abnormal alarm processing on at least one detection result greater than the preset first value threshold, and marking the indicator data corresponding to at least one detection result greater than the preset first value threshold with a first label to obtain a first marked indicator data group. If there is a detection result in the result set whose corresponding value is less than or equal to a preset second numerical threshold, an abnormal alarm is performed on at least one detection result whose value is less than or equal to the preset second numerical threshold, and a second label is marked on the indicator data corresponding to at least one detection result whose value is less than or equal to the preset second numerical threshold to obtain a second marked indicator data group; based on the above-mentioned second marked indicator data group, a second capacity adjustment is performed on the resource capacity information corresponding to the above-mentioned online service to obtain a second adjusted resource information group; based on the above-mentioned first adjusted resource information group and the above-mentioned second adjusted resource information group, the resource capacity information corresponding to the above-mentioned online service is dynamically adjusted to obtain adjusted resource capacity information; and the above-mentioned adjusted resource capacity information is displayed on the corresponding operation interface of the user.
[0011] In a second aspect, some embodiments of the present disclosure provide a capacity adjustment device, the device comprising: a collection unit, configured to collect an indicator data set corresponding to an online service; a detection unit, configured to perform a preset period detection on the above indicator data set to obtain a detection result set; a first processing unit, configured to, in response to determining that there is a detection result in the above detection result set that corresponds to a value greater than a preset first numerical threshold, perform abnormal alarm processing on at least one detection result greater than the preset first numerical threshold, and mark the indicator data corresponding to at least one detection result greater than the preset first numerical threshold with a first label to obtain a first marked indicator data group; a first adjustment unit, configured to perform a first capacity adjustment on the resource capacity information corresponding to the above online service according to the above first marked indicator data group to obtain a first adjusted resource information group; and a second processing unit, configured to perform a preset period detection on the above indicator data set to obtain a detection result set; and a first .... The system is configured to, in response to determining that a numerical value corresponding to a detection result in the detection result set is less than or equal to a preset second numerical threshold, perform abnormal alarm processing on at least one detection result that is less than or equal to the preset second numerical threshold, and perform a second label marking on the indicator data corresponding to at least one detection result that is less than or equal to the preset second numerical threshold, so as to obtain a second marked indicator data group; the second adjustment unit is configured to perform a second capacity adjustment on the resource capacity information corresponding to the above-mentioned online service according to the above-mentioned second marked indicator data group, so as to obtain a second adjusted resource information group; the dynamic adjustment unit is configured to dynamically adjust the resource capacity information corresponding to the above-mentioned online service according to the above-mentioned first adjusted resource information group and the above-mentioned second adjusted resource information group, so as to obtain the adjusted resource capacity information; the storage unit is configured to store the above-mentioned adjusted resource capacity information to the server.
[0012] In a third aspect, some embodiments of the present disclosure provide an electronic device comprising: one or more processors; a storage device on which one or more programs are stored, and when the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any implementation manner of the above-mentioned first aspect.
[0013] In a fourth aspect, some embodiments of the present disclosure provide a computer-readable medium having a computer program stored thereon, wherein when the program is executed by a processor, the method described in any implementation manner of the above-mentioned first aspect is implemented.
[0014] The above-mentioned various embodiments of the present disclosure have the following beneficial effects: through the capacity adjustment method of some embodiments of the present disclosure, the cycle of resource capacity adjustment is shortened, the stability of the system is improved, and capacity resources are saved. Specifically, the reason for the long cycle of resource capacity adjustment, poor system stability, and waste of capacity resources is that the error caused by manual adjustment of resource capacity information is large, and the processing speed is slow, resulting in a long cycle of resource capacity adjustment. In addition, the system stability is poor because it is impossible to alarm and repair the fault in time when a fault occurs. In addition, because the resource capacity cannot be adjusted reasonably, the capacity resources are wasted. Based on this, the capacity adjustment method of some embodiments of the present disclosure first collects the indicator data set corresponding to the online service. Thus, it can provide convenience for subsequent processing, and the online service can be processed more accurately. The above indicator data set is detected at a preset period to obtain a detection result set. Thus, the indicator data set can be fragmented through a preset period, which can shorten the adjustment time and reduce the workload. In response to determining that the value corresponding to the detection result in the above detection result set is greater than the preset first numerical threshold, an abnormal alarm process is performed on at least one detection result greater than the preset first numerical threshold, and a first label is marked on the index data corresponding to at least one detection result greater than the preset first numerical threshold, to obtain a first marked index data group. Thus, the capacity corresponding to the index data that needs to be reduced can be determined more accurately, and the problem of large errors and slow processing speed caused by manually adjusting the resource capacity information can be avoided by limiting the value threshold. By marking, it can be prevented that the error cannot be repaired in time when an error occurs, thereby improving the stability of the system. Then, according to the above first marked index data group, the resource capacity information corresponding to the above online service is adjusted by the first capacity, and the first adjusted resource information group is obtained. Thus, the capacity can be adjusted dynamically, shortening the cycle of resource capacity adjustment. Afterwards, in response to determining that the value corresponding to the detection result in the above detection result set is less than or equal to the preset second numerical threshold, an abnormal alarm process is performed on at least one detection result less than or equal to the preset second numerical threshold, and a second label is marked on the index data corresponding to at least one detection result less than or equal to the preset second numerical threshold, to obtain a second marked index data group. Thus, the capacity corresponding to the indicator data that needs to be reduced can be determined more accurately, and the problem of large errors and slow processing speed caused by manually adjusting the resource capacity information can be avoided by limiting the value threshold. According to the second marked indicator data group, the resource capacity information corresponding to the online service is adjusted for the second capacity to obtain the second adjusted resource information group. Thus, the capacity can be adjusted dynamically, shortening the cycle of resource capacity adjustment.According to the first adjusted resource information group and the second adjusted resource information group, the resource capacity information corresponding to the online service is dynamically adjusted to obtain the adjusted resource capacity information. Thus, the resource capacity can be reasonably adjusted to reduce the waste of capacity resources. The adjusted resource capacity information is displayed to the user's corresponding operation interface. Thus, it is convenient for the user to visualize the adjusted resource capacity information. Therefore, the resource capacity adjustment cycle is shortened, the system stability is improved, and capacity resources are saved. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. Throughout the accompanying drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and that components and elements are not necessarily drawn to scale.
[0016] Figure 1 is a flow chart of some embodiments of the capacity adjustment method according to the present disclosure;
[0017] Figure 2 is a schematic structural diagram of some embodiments of the capacity adjustment device according to the present disclosure;
[0018] Figure 3 It is a schematic diagram of the structure of an electronic device suitable for implementing some embodiments of the present disclosure. DETAILED DESCRIPTION
[0019] Embodiments of the present disclosure will be described in more detail below 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 being limited to the embodiments set forth herein. On the contrary, 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 only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0020] It should also be noted that, for ease of description, only the parts related to the invention are shown in the drawings. In the absence of conflict, the embodiments and features in the embodiments of the present disclosure can be combined with each other.
[0021] It should be noted that the concepts such as "first" and "second" mentioned in the present 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.
[0022] It should be noted that the modifications of "one" and "plurality" 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, it should be understood as "one or more".
[0023] 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.
[0024] The present disclosure will be described in detail below with reference to the accompanying drawings and in conjunction with embodiments.
[0025] Figure 1 The process 100 of some embodiments of the capacity adjustment method of the present disclosure includes the following steps:
[0026] Step 101: Collect indicator data sets corresponding to online services.
[0027] In some embodiments, the execution subject (eg, computing device) of the capacity adjustment method may collect an indicator data set corresponding to the online service through an associated data collection device (data collector).
[0028] Here, the above indicator data set may include memory indicator data, error rate indicator data and time window indicator data. Here, the above online service may refer to providing services to users online.
[0029] Step 102: Perform a preset period detection on the above indicator data set to obtain a detection result set.
[0030] In some embodiments, the execution entity may perform a preset period detection on the indicator data set to obtain a detection result set.
[0031] Here, the preset period may refer to a period within a preset period of time. For example, the preset period may refer to 30 minutes. The test result set may represent a normal test result and an abnormal test result.
[0032] As an example, the execution subject may detect each indicator data in the indicator data set to generate a data detection result and obtain a data detection result set. Then, the detection result set is extracted according to a preset period to obtain an extracted detection result set as the detection result set.
[0033] Optionally, the execution subject may perform a preset period detection on the indicator data set through the following steps to obtain a detection result set:
[0034] The first step is to preprocess the above indicator data set to obtain a processed indicator data set.
[0035] Here, the above data preprocessing may refer to data cleaning.
[0036] The second step is to divide the processed indicator data set according to the task window duration threshold within the preset period to obtain a divided indicator data set.
[0037] Here, the task window duration threshold may refer to the maximum value of the task window duration. For example, the task window duration threshold may refer to 5 minutes.
[0038] In the third step, in response to determining that the threshold corresponding to the divided indicator data in the divided indicator data set is greater than the preset data threshold, at least one divided indicator data corresponding to the data greater than the preset data threshold is determined as an abnormal indicator data set.
[0039] Here, the preset data threshold may refer to a preset maximum value of specific data. The specific data may include but is not limited to at least one of the following: memory data, error rate data, and time window data. For example, the preset data threshold may refer to a maximum value of 200 GB for memory data, a maximum value of 25% for error rate data, and a maximum value of 6 minutes for time window data.
[0040] In the fourth step, in response to determining that the threshold corresponding to the divided indicator data in the above-mentioned divided indicator data set is less than the above-mentioned preset data threshold and greater than or equal to the preset indicator data threshold, at least one divided indicator data corresponding to the data less than the above-mentioned preset data threshold and greater than or equal to the preset indicator data threshold is determined as a normal indicator data set.
[0041] Here, the preset indicator data threshold may refer to the maximum value of the preset indicator data. For example, the preset indicator data threshold may refer to the maximum value of the preset memory indicator data is 150GB. The preset indicator data threshold may refer to the maximum value of the preset error rate indicator data is 20%. The preset indicator data threshold may refer to the maximum value of the preset time window indicator data is 5.5 minutes.
[0042] In the fifth step, the above abnormal indicator data set and the above normal indicator data set are determined as the detection result set.
[0043] Step 103, in response to determining that there is a detection result in the above detection result set that corresponds to a numerical value greater than a preset first numerical threshold, abnormal alarm processing is performed on at least one detection result greater than the preset first numerical threshold, and a first label is marked on the indicator data corresponding to at least one detection result greater than the preset first numerical threshold to obtain a first marked indicator data group.
[0044] In some embodiments, the above-mentioned execution entity can, in response to determining that there is a detection result in the above-mentioned detection result set that corresponds to a numerical value greater than a preset first numerical threshold, perform abnormal alarm processing on at least one detection result that is greater than the preset first numerical threshold, and mark the indicator data corresponding to at least one detection result that is greater than the preset first numerical threshold with a first label to obtain a first marked indicator data group.
[0045] Here, the preset first numerical threshold may refer to a preset maximum numerical threshold. For example, the preset first numerical threshold may refer to an error rate reaching 25%. Here, the first label may refer to a label marked with "to be reduced".
[0046] As an example, the execution subject may first, in response to determining that there is a value corresponding to a detection result in the detection result set that is greater than a preset first value threshold, perform abnormal alarm processing on at least one detection result that is greater than the preset first value threshold, and the abnormal alarm processing may refer to pop-up abnormal window processing. And the indicator data corresponding to at least one detection result that is greater than the preset first value threshold is annotated with text to obtain an annotated indicator data group as the first annotated indicator data group. The text annotation may refer to an annotation with the text "to be reduced".
[0047] Step 104: Perform a first capacity adjustment on the resource capacity information corresponding to the online service according to the first marked indicator data group to obtain a first adjusted resource information group.
[0048] In some embodiments, the execution entity may perform a first capacity adjustment on the resource capacity information corresponding to the online service according to the first marked indicator data group to obtain a first adjusted resource information group.
[0049] Here, the first capacity may refer to a reduced capacity.
[0050] As an example, the execution subject may adjust the resource capacity information corresponding to the online service according to each first marked indicator data in the first marked indicator data group to generate reduced-adjusted resource information as the first adjusted resource information, thereby obtaining the first adjusted resource information group. The capacity reduction may refer to a capacity reduction from 100% to 50%.
[0051] Optionally, the execution subject may perform a first capacity adjustment on the resource capacity information corresponding to the online service according to the first marked indicator data group to obtain a first adjusted resource information group through the following steps:
[0052] In the first step, the resource capacity of each first marked indicator data in the first marked indicator data group is determined to generate first marked data resource capacity information and obtain a first marked data resource capacity information set.
[0053] Here, the first mark data resource capacity information in the first mark data resource capacity information set may refer to resource capacity information required for reducing capacity.
[0054] As an example, the execution subject may determine the resource capacity information corresponding to each first marked indicator data in the first marked indicator data group to generate first marked data resource capacity information and obtain a first marked data resource capacity information set.
[0055] In the second step, the resource capacity information corresponding to the above-mentioned online service is divided according to the above-mentioned first marking data resource capacity information set to obtain a first divided resource capacity information set.
[0056] As an example, the execution subject may detect the stop signal corresponding to each first marked data resource capacity information set in the first marked data resource capacity information set to obtain a detection result set. Then, in response to determining that each detection result in the detection result set represents a confirmed stop result, the resource capacity information corresponding to the online service is divided to obtain a first divided resource capacity information set.
[0057] Step 3: for each piece of first divided resource capacity information in the first divided resource capacity information set, perform the following first processing step:
[0058] The first sub-step is to perform signal detection on the resource capacity information after the first division to obtain a first signal detection result.
[0059] As an example, the execution subject may use a signal generator to perform signal detection on the first divided resource capacity information to obtain a first signal detection result. The signal may be a stop signal.
[0060] The second sub-step is, in response to determining that the first signal detection result represents a signal stop result, performing resource capacity reduction processing on the first divided resource capacity information to obtain reduced resource capacity information.
[0061] As an example, the execution subject may reduce the resource capacity corresponding to the first divided resource capacity information in response to determining that the first signal detection result represents a signal stop result, and obtain reduced resource capacity information. The reduction process may refer to reducing the resource capacity by 30%.
[0062] The third sub-step is to perform flow detection on the reduced resource capacity information to obtain a first flow monitoring result.
[0063] As an example, the execution entity may use a detection tool (eg, Grafana) to perform flow detection on the reduced resource capacity information to obtain a first flow monitoring result.
[0064] The fourth sub-step is to perform traffic analysis on the first traffic detection result to obtain the transmission rate information of the first traffic and the data volume of the first traffic.
[0065] As an example, the execution entity may use a traffic analysis tool (eg, Wireshark, network packet analysis software) to perform traffic analysis on the first traffic detection result to obtain the transmission rate information of the first traffic and the data volume of the first traffic.
[0066] The fifth sub-step is to determine the transmission time of the first flow according to the transmission rate information of the first flow and the data volume of the first flow.
[0067] Here, the transmission rate information of the first traffic may refer to the speed information of the traffic transmission in the resource capacity to be reduced. For example, the transmission rate information of the first traffic may refer to V. The data volume of the first traffic may refer to the total amount of traffic transmitted in the resource capacity. For example, the data volume of the first traffic may refer to S.
[0068] As an example, the execution subject may determine the ratio of the data volume of the first flow to the transmission rate information of the first flow as the transmission time of the first flow. For example, the transmission time T of the first flow = the data volume S of the first flow / the transmission rate information V of the first flow.
[0069] The sixth sub-step is to determine the state of the reduced resource capacity information according to the transmission time of the first traffic and a preset first time threshold, and obtain the state of the reduced resource capacity information.
[0070] Here, the preset first time threshold may refer to a pre-set time threshold. For example, the preset first time threshold may refer to 0.
[0071] As an example, the execution entity may first detect the state of the reduced resource capacity information in response to determining that the transmission time of the first traffic is greater than the preset first time threshold, and obtain the state of the reduced resource capacity information.
[0072] In a seventh sub-step, in response to determining that the reduced resource capacity information state represents a reduced resource capacity information transmission end state, the reduced resource capacity information corresponding to the reduced resource capacity information transmission end state is determined as the first adjusted resource information.
[0073] The fourth step is to determine each obtained first adjusted resource information as a first adjusted resource information group.
[0074] Step 105, in response to determining that there is a detection result in the above detection result set whose corresponding numerical value is less than or equal to a preset second numerical threshold, abnormal alarm processing is performed on at least one detection result that is less than or equal to the preset second numerical threshold, and a second label is marked on the indicator data corresponding to at least one detection result that is less than or equal to the preset second numerical threshold to obtain a second marked indicator data group.
[0075] In some embodiments, the above-mentioned execution entity can, in response to determining that there is a detection result in the above-mentioned detection result set whose corresponding numerical value is less than or equal to a preset second numerical threshold, perform abnormal alarm processing on at least one detection result that is less than or equal to the preset second numerical threshold, and perform a second label mark on the indicator data corresponding to at least one detection result that is less than or equal to the preset second numerical threshold, to obtain a second marked indicator data group.
[0076] Here, the preset second numerical threshold may refer to a preset numerical threshold. For example, the preset second numerical threshold may refer to a memory usage rate reaching 50%. Here, the second label may refer to a label marked with "to be expanded".
[0077] As an example, the execution subject may first, in response to determining that there is a value corresponding to a detection result in the detection result set that is less than or equal to a preset second value threshold, perform abnormal alarm processing on at least one detection result that is less than or equal to the preset second value threshold, and the abnormal alarm processing may refer to pop-up abnormal window processing. And the indicator data corresponding to at least one detection result that is less than or equal to the preset second value threshold is annotated with text to obtain an annotated indicator data group as the second annotated indicator data group. The text annotation may refer to an annotation with the text "to be expanded".
[0078] Step 106: Perform a second capacity adjustment on the resource capacity information corresponding to the online service according to the second marked indicator data group to obtain a second adjusted resource information group.
[0079] In some embodiments, the execution entity may perform a second capacity adjustment on the resource capacity information corresponding to the online service according to the second marked indicator data group to obtain a second adjusted resource information group.
[0080] Here, the second capacity may refer to an expanded capacity.
[0081] As an example, the execution subject may adjust the resource capacity information corresponding to the online service according to each second marked indicator data in the second marked indicator data group to generate expanded and adjusted resource information as the second adjusted resource information, thereby obtaining a second adjusted resource information group. The capacity expansion may refer to the capacity expansion from 50% to 100%.
[0082] Optionally, the execution subject may perform a second capacity adjustment on the resource capacity information corresponding to the online service according to the second marked indicator data group to obtain a second adjusted resource information group through the following steps:
[0083] In the first step, the resource capacity of each second marked indicator data in the above second marked indicator data group is determined to generate second marked data resource capacity information and obtain a second marked data resource capacity information set.
[0084] Here, the second mark data resource capacity information in the second mark data resource capacity information set may refer to resource capacity information required for capacity expansion.
[0085] As an example, the execution subject may determine the resource capacity information corresponding to each second marked indicator data in the second marked indicator data group to generate second marked data resource capacity information and obtain a second marked data resource capacity information set.
[0086] In the second step, the resource capacity information corresponding to the above-mentioned online service is divided according to the above-mentioned second marking data resource capacity information set to obtain a second divided resource capacity information set.
[0087] As an example, the execution subject may detect the stop signal corresponding to each second marked data resource capacity information set in the second marked data resource capacity information set to obtain a detection result set. Then, in response to determining that each detection result in the detection result set represents a confirmed stop result, the resource capacity information corresponding to the online service is divided to obtain a second divided resource capacity information set.
[0088] Step 3: for each second divided resource capacity information in the second divided resource capacity information set, perform the following second processing step:
[0089] The first sub-step is to perform signal detection on the second divided resource capacity information to obtain a second signal detection result.
[0090] As an example, the execution subject may use a signal generator to perform signal detection on the second divided resource capacity information to obtain a second signal detection result. The signal may be a stop signal.
[0091] The second sub-step is, in response to determining that the second signal detection result represents a signal stop result, performing resource capacity increase processing on the second divided resource capacity information to obtain increased resource capacity information.
[0092] As an example, the execution subject may, in response to determining that the second signal detection result represents a signal stop result, increase the resource capacity corresponding to the second divided resource capacity information to obtain increased resource capacity information. The increase may refer to increasing the resource capacity by 30%.
[0093] The third sub-step is to perform flow detection on the increased resource capacity information to obtain a second flow monitoring result.
[0094] As an example, the execution entity may use a detection tool (eg, Grafana) to perform flow detection on the increased resource capacity information to obtain a second flow monitoring result.
[0095] The fourth sub-step is to perform traffic analysis on the second traffic detection result to obtain the transmission rate information of the second traffic and the data volume of the second traffic.
[0096] As an example, the execution entity may use a traffic analysis tool (eg, Wireshark, network packet analysis software) to perform traffic analysis on the second traffic detection result to obtain the transmission rate information of the second traffic and the data volume of the second traffic.
[0097] The fifth sub-step is to determine the transmission time of the second flow according to the transmission rate information of the second flow and the data volume of the second flow.
[0098] Here, the transmission rate information of the second traffic may refer to the speed information of the traffic transmission in the resource capacity to be increased. For example, the transmission rate information of the second traffic may refer to V. The data volume of the second traffic may refer to the total amount of traffic transmitted in the resource capacity. For example, the data volume of the second traffic may refer to S.
[0099] As an example, the execution subject may determine the transmission time of the second flow as the ratio of the data volume of the second flow to the transmission rate information of the second flow. For example, the transmission time T of the second flow = the data volume S of the second flow / the transmission rate information V of the second flow.
[0100] The sixth sub-step is to determine the state of the increased resource capacity information according to the transmission time of the second traffic and a preset second time threshold, and obtain the state of the increased resource capacity information.
[0101] Here, the preset second time threshold may refer to a pre-set time threshold. For example, the preset second time threshold may refer to 0.
[0102] As an example, the execution entity may first detect the state of the increased resource capacity information in response to determining that the transmission time of the second traffic is greater than the preset second time threshold, and obtain the state of the increased resource capacity information.
[0103] A seventh sub-step, in response to determining that the increased resource capacity information state represents an increased resource capacity information transmission end state, determines the increased resource capacity information corresponding to the increased resource capacity information transmission end state as the second adjusted resource information.
[0104] The fourth step is to determine each obtained second adjusted resource information as a second adjusted resource information group.
[0105] Step 107: dynamically adjust the resource capacity information corresponding to the online service according to the first adjusted resource information group and the second adjusted resource information group to obtain adjusted resource capacity information.
[0106] In some embodiments, the execution entity may dynamically adjust the resource capacity information corresponding to the online service according to the first adjusted resource information group and the second adjusted resource information group to obtain the adjusted resource capacity information.
[0107] As an example, the execution subject may merge the first adjusted resource information group and the second adjusted resource information group to obtain a merged resource information group. Then, according to each merged resource information in the merged resource information group, the resource capacity information corresponding to the online service is adjusted in sequence to obtain the adjusted resource capacity information. The sequential adjustment of capacity may refer to an increase in capacity. The sequential adjustment of capacity may also refer to a decrease in capacity.
[0108] Optionally, the execution subject may dynamically adjust the resource capacity information corresponding to the online service according to the first adjusted resource information group and the second adjusted resource information group to obtain the adjusted resource capacity information through the following steps:
[0109] The first step is to perform rolling update on the first adjusted resource information group and the second adjusted resource information group to obtain an updated first resource information group and an updated second resource information group.
[0110] Here, the above rolling update may refer to a rolling release.
[0111] As an example, the execution subject may perform the first processing step on the first adjusted resource information group to obtain the first processed resource information group as the updated first resource information. Then, the execution subject may perform the second processing step on the second adjusted resource information group to obtain the second processed resource information group as the updated second resource information group.
[0112] The second step is to send the updated first resource information group and the updated second resource information group to a user device so that the user can detect the resource capacity information corresponding to the online service to obtain a detection result.
[0113] Here, the user equipment may refer to a mobile phone device of the user. The detection result may represent a capacity result corresponding to the detection resource capacity information.
[0114] The third step is to dynamically adjust the resource capacity information corresponding to the above detection results to obtain the adjusted resource capacity information.
[0115] As an example, the execution subject may refer to adjusting the resource capacity information corresponding to the detection result according to the real-time situation to obtain the adjusted resource capacity information.
[0116] Optionally, the execution subject may dynamically adjust the resource capacity information corresponding to the online service according to the first adjusted resource information group and the second adjusted resource information group to obtain the adjusted resource capacity information through the following steps:
[0117] The first step is to perform a multi-dimensional analysis on the first adjusted resource information group and the second adjusted resource information group to obtain an analyzed resource information group set.
[0118] Here, the above-mentioned multiple dimensions may refer to a memory dimension and an error rate dimension.
[0119] As an example, the execution subject may analyze the memory dimension corresponding to the first adjusted resource information group and the second adjusted resource information group to obtain a memory dimension analyzed resource information group set. Then, the error rate dimension corresponding to the first adjusted resource information group and the second adjusted resource information group is analyzed to obtain an error rate dimension analyzed resource information group set. Finally, the memory dimension analyzed resource information group set and the error rate dimension analyzed resource information group set are determined as analyzed resource information group sets.
[0120] In the second step, security detection is performed on each analyzed resource information group in the analyzed resource information group set to generate a security detection result group, thereby obtaining a security detection result group set.
[0121] As an example, the execution subject may use an automated tool to perform a vulnerability scan on each of the post-analysis resource information groups in the post-analysis resource information group set to obtain a scan result. Then, in response to determining that the scan result represents a normal scan result, each post-analysis resource information group corresponding to the scan result is determined as the post-analysis resource information group set.
[0122] In the third step, in response to determining that there is an abnormality in the detection error rate of the security detection result representation in the security detection result set, the parameters of the analyzed resource information set are adjusted to obtain an adjusted parameter information set.
[0123] Here, the above parameters may refer to capacity allocation parameters.
[0124] As an example, the execution subject may perform capacity reduction allocation on the analyzed resource information group set to obtain an allocated parameter information set as an adjusted parameter information set.
[0125] In the fourth step, in response to determining that there is a security detection result representative time window detection anomaly in the security detection result set, the time window corresponding to the analyzed resource information set is adjusted to obtain an adjusted time window information set.
[0126] As an example, in response to determining that there is a security detection result characterizing a time window detection anomaly in the security detection result set, the execution subject may adjust the time window corresponding to the analyzed resource information set by a preset ratio to obtain an adjusted time window information set. The preset ratio may be 10%.
[0127] The fifth step is to synchronously update the analyzed resource information set according to the adjusted parameter information set and the adjusted time window information set to obtain an updated resource information set.
[0128] As an example, the execution entity may update the adjusted parameter information set and the adjusted time window information set for each analyzed resource information group in the analyzed resource information group set to generate an updated resource information group and obtain an updated resource information group set.
[0129] The sixth step is to perform resource information matching between the updated resource information set and the resource capacity information corresponding to the online service to obtain a resource information matching result set.
[0130] As an example, the execution subject may compare each updated resource information group in the updated resource information group set with the resource capacity information corresponding to the online service to obtain a comparison result. Then, in response to determining that the comparison result indicates a comparison consistency, the updated resource information group set is matched with the resource information corresponding to the resource capacity information corresponding to the online service to obtain a resource information matching result set.
[0131] In a seventh step, in response to determining that the resource information matching result in the resource information matching result set represents a consistent resource information matching result, the resource capacity information corresponding to the online service is determined as adjusted resource capacity information.
[0132] In the eighth step, in response to determining that the resource information matching results in the above resource information matching result set represent inconsistent resource information matching results, resource capacity information corresponding to the above online services is divided according to each resource information matching result in the above resource information matching result set to obtain divided resource capacity information as adjusted resource capacity information.
[0133] As an example, the execution entity may divide the resources corresponding to the resource capacity information corresponding to the online service according to each resource information matching result in the resource information matching result set, and obtain the divided resource capacity information as the adjusted resource capacity information.
[0134] The relevant contents in the first step to the eighth step above are an inventive point of the present disclosure, which solves the technical problem 2 mentioned in the background technology, "it is impossible to fully adjust the resource capacity information according to various parameters, resulting in the ineffective utilization of resources, thereby generating waste of resources and reducing the stability of the system". The factors that lead to waste of resources and low stability of the system are often as follows: it is impossible to fully adjust the resource capacity information according to various parameters, resulting in the ineffective utilization of resources, thereby generating waste of resources and reducing the stability of the system. If the above factors are solved, the effect of improving the utilization rate of effective utilization can be achieved, thereby reducing the waste of resources and improving the stability of the system. In order to achieve this effect, in the first step, the above-mentioned first adjusted resource information group and the above-mentioned second adjusted resource information group are analyzed in multiple dimensions to obtain an analyzed resource information group set. In the second step, each analyzed resource information group in the above-mentioned analyzed resource information group set is subjected to security detection to generate a security detection result group to obtain a security detection result group set. In the third step, in response to determining that there is an abnormality in the detection of the error rate represented by the security detection result in the above-mentioned security detection result group set, the above-mentioned analyzed resource information group set is parameter adjusted to obtain an adjusted parameter information set. Step 4: In response to determining that the security detection result set contains a time window detection anomaly, the time window corresponding to the analyzed resource information set is adjusted to obtain an adjusted time window information set. Step 5: Synchronously update the analyzed resource information set according to the adjusted parameter information set and the adjusted time window information set to obtain an updated resource information set. Step 6: Perform resource information matching between the updated resource information set and the resource capacity information corresponding to the online service to obtain a resource information matching result set. Step 7: In response to determining that the resource information matching result in the resource information matching result set represents a consistent resource information matching result, the resource capacity information corresponding to the online service is determined as the adjusted resource capacity information. Step 8: In response to determining that the resource information matching result in the resource information matching result set represents an inconsistent resource information matching result, the resource capacity information corresponding to the online service is divided according to each resource information matching result in the resource information matching result set to obtain the divided resource capacity information as the adjusted resource capacity information. Thus, the utilization rate of effective utilization can be improved, thereby reducing the waste of resources and improving the stability of the system.
[0135] Step 108: Display the adjusted resource capacity information to the user's corresponding operation interface.
[0136] In some embodiments, the execution entity may display the adjusted resource capacity information to a corresponding operation interface of the user.
[0137] Here, the operation interface may refer to a main page configured according to the adjusted resource capacity information. The main page may be a home page.
[0138] Optionally, after the above “step 108”, the above method further includes:
[0139] The first step is to detect abnormal operation information corresponding to the operation interface corresponding to the above user to obtain abnormal operation detection information.
[0140] Here, the abnormal operation detection information may represent the detected abnormal operation behavior information of the user.
[0141] In the second step, in response to determining that the abnormal operation detection information is error information, a behavior verification is performed on the operation corresponding to the user to obtain behavior verified information.
[0142] As an example, the execution subject may authenticate the operation behavior corresponding to the user to obtain information after the behavior is authenticated. The authentication may refer to password authentication.
[0143] In the third step, in response to determining that the behavior-verified information represents abnormal request information, the behavior-verified information corresponding to the abnormal request information is automatically intercepted, and an abnormal warning is issued for the intercepted information to obtain abnormal warning information.
[0144] In a fourth step, in response to determining that the behavior-verified information is non-abnormal request information, identity authentication is performed on the non-abnormal request information.
[0145] Here, the above-mentioned identity authentication may refer to password authentication.
[0146] In the fifth step, in response to determining that the identity authentication is passed, the above non-abnormal request information is authenticated to obtain an authentication result.
[0147] Here, the above authentication result can represent an authentication success result and an authentication failure result.
[0148] In the sixth step, in response to determining that the authentication result indicates that the authentication is successful, a non-abnormal warning is performed on the non-abnormal request information to obtain non-abnormal warning information.
[0149] The seventh step is to perform multimodal information fusion on the above abnormal warning information and the above non-abnormal warning information to obtain fused warning information.
[0150] As an example, the execution entity may combine the abnormal warning information and the non-abnormal warning information into a warning information set. Then, the warning information set is subjected to correlation analysis to obtain an analyzed warning information set. Finally, each analyzed warning information in the analyzed warning information set is fused to obtain fused warning information.
[0151] In the eighth step, the above fused warning information is input into a pre-trained sequence model to obtain the timing information corresponding to the user operation.
[0152] Here, the pre-trained sequence model may refer to a long short-term memory network (Long Short-Term Memory, LSTM) model.
[0153] In step nine, in response to determining that the timing information corresponding to the user operation represents the timing information corresponding to the normal user operation, the timing information corresponding to the user operation is sent to the server, so that the server can log the timing information and obtain a stored log information set.
[0154] In the tenth step, according to the stored log information set, the firewall of the server is updated to obtain an updated server.
[0155] The relevant contents in the first step to the tenth step above are an inventive point of the present disclosure, which solves the technical problem three mentioned in the background technology: "Since the user's operation interface cannot be effectively detected, the abnormal behavior of the user's operation may cause the stability of the system to decrease, and an abnormality may occur when the user's operation information is authenticated, resulting in a long cycle of resource capacity adjustment." The factors that lead to a long cycle of resource capacity adjustment are often as follows: Since the user's operation interface cannot be effectively detected, the abnormal behavior of the user's operation may cause the stability of the system to decrease, and an abnormality may occur when the user's operation information is authenticated, resulting in a long cycle of resource capacity adjustment. If the above factors are solved, the effect of shortening the cycle of resource capacity adjustment can be achieved. In order to achieve this effect, in the first step, the abnormal operation information corresponding to the operation interface corresponding to the above user is detected to obtain abnormal operation detection information. In the second step, in response to determining that the above abnormal operation detection information is error information, the operation corresponding to the above user is verified by behavior to obtain behavior verification information. In the third step, in response to determining that the above behavior verification information represents abnormal request information, the behavior verification information corresponding to the abnormal request information is automatically intercepted, and the intercepted information is abnormally warned to obtain abnormal warning information. Step 4: In response to determining that the information after the above-mentioned behavior verification is non-abnormal request information, identity authentication is performed on the above-mentioned non-abnormal request information. Step 5: In response to determining that the identity authentication is passed, the above-mentioned non-abnormal request information is authenticated to obtain an authentication result. Step 6: In response to determining that the authentication result indicates that the authentication is successful, a non-abnormal warning is performed on the above-mentioned non-abnormal request information to obtain non-abnormal warning information. Step 7: Multi-modal information fusion is performed on the above-mentioned abnormal warning information and the above-mentioned non-abnormal warning information to obtain fused warning information. Step 8: Input the above-mentioned fused warning information into a pre-trained sequence model to obtain the timing information corresponding to the user operation. Step 9: In response to determining that the timing information corresponding to the above-mentioned user operation indicates the timing information corresponding to the normal user operation, the timing information corresponding to the above-mentioned user operation is sent to the server, so that the above-mentioned server can log and store the above-mentioned timing information to obtain a stored log information set. Step 10: According to the above-mentioned stored log information set, the firewall of the above-mentioned server is updated to obtain an updated server. Therefore, the stability of the system is improved. The cycle of resource capacity adjustment is shortened.
[0156] The above-mentioned various embodiments of the present disclosure have the following beneficial effects: through the capacity adjustment method of some embodiments of the present disclosure, the cycle of resource capacity adjustment is shortened, the stability of the system is improved, and capacity resources are saved. Specifically, the reason for the long cycle of resource capacity adjustment, poor system stability, and waste of capacity resources is that the error caused by manual adjustment of resource capacity information is large, and the processing speed is slow, resulting in a long cycle of resource capacity adjustment. In addition, the system stability is poor because it is impossible to alarm and repair the fault in time when a fault occurs. In addition, because the resource capacity cannot be adjusted reasonably, the capacity resources are wasted. Based on this, the capacity adjustment method of some embodiments of the present disclosure first collects the indicator data set corresponding to the online service. Thus, it can provide convenience for subsequent processing, and the online service can be processed more accurately. The above indicator data set is detected at a preset period to obtain a detection result set. Thus, the indicator data set can be fragmented through a preset period, which can shorten the adjustment time and reduce the workload. In response to determining that the value corresponding to the detection result in the above detection result set is greater than the preset first numerical threshold, an abnormal alarm process is performed on at least one detection result greater than the preset first numerical threshold, and a first label is marked on the index data corresponding to at least one detection result greater than the preset first numerical threshold, to obtain a first marked index data group. Thus, the capacity corresponding to the index data that needs to be reduced can be determined more accurately, and the problem of large errors and slow processing speed caused by manually adjusting the resource capacity information can be avoided by limiting the value threshold. By marking, it can be prevented that the error cannot be repaired in time when an error occurs, thereby improving the stability of the system. Then, according to the above first marked index data group, the resource capacity information corresponding to the above online service is adjusted by the first capacity, and the first adjusted resource information group is obtained. Thus, the capacity can be adjusted dynamically, shortening the cycle of resource capacity adjustment. Afterwards, in response to determining that the value corresponding to the detection result in the above detection result set is less than or equal to the preset second numerical threshold, an abnormal alarm process is performed on at least one detection result less than or equal to the preset second numerical threshold, and a second label is marked on the index data corresponding to at least one detection result less than or equal to the preset second numerical threshold, to obtain a second marked index data group. Thus, the capacity corresponding to the indicator data that needs to be reduced can be determined more accurately, and the problem of large errors and slow processing speed caused by manually adjusting the resource capacity information can be avoided by limiting the value threshold. According to the second marked indicator data group, the resource capacity information corresponding to the online service is adjusted for the second capacity to obtain the second adjusted resource information group. Thus, the capacity can be adjusted dynamically, shortening the cycle of resource capacity adjustment.According to the first adjusted resource information group and the second adjusted resource information group, the resource capacity information corresponding to the online service is dynamically adjusted to obtain the adjusted resource capacity information. Thus, the resource capacity can be reasonably adjusted to reduce the waste of capacity resources. The adjusted resource capacity information is displayed to the user's corresponding operation interface. Thus, it is convenient for the user to visualize the adjusted resource capacity information. Therefore, the resource capacity adjustment cycle is shortened, the system stability is improved, and capacity resources are saved.
[0157] Further references Figure 2 As an implementation of the methods shown in the above figures, the present disclosure provides some embodiments of a capacity adjustment method. These device embodiments are similar to Figure 1 Corresponding to the method embodiments shown, the device can be specifically applied to various electronic devices.
[0158] like Figure 2As shown, the capacity adjustment device 200 of some embodiments includes: a collection unit 201, a detection unit 202, a first processing unit 203, a first adjustment unit 204, a second processing unit 205, a second adjustment unit 206, a dynamic adjustment unit 207 and a storage unit. The collection unit 201 is configured to collect an indicator data set corresponding to an online service; the detection unit 202 is configured to perform a preset period detection on the above indicator data set to obtain a detection result set; the first processing unit 203 is configured to, in response to determining that there is a value corresponding to a detection result in the above detection result set that is greater than a preset first value threshold, perform abnormal alarm processing on at least one detection result greater than the preset first value threshold, and mark the indicator data corresponding to at least one detection result greater than the preset first value threshold with a first label to obtain a first marked indicator data group; the first adjustment unit 204 is configured to perform a first capacity adjustment on the resource capacity information corresponding to the above online service according to the above first marked indicator data group to obtain a first adjusted resource information group; the second processing unit 205 is configured to, in response to determining that the above detection result set has a value corresponding to a detection result that is greater than a preset first value threshold, perform abnormal alarm processing on at least one detection result greater than the preset first value threshold, and mark the indicator data corresponding to at least one detection result greater than the preset first value threshold with a first label to obtain a first marked indicator data group. If there is a value corresponding to a detection result in the detection result set that is less than or equal to a preset second value threshold, an abnormal alarm is processed for at least one detection result that is less than or equal to the preset second value threshold, and a second label is marked for the indicator data corresponding to at least one detection result that is less than or equal to the preset second value threshold, so as to obtain a second marked indicator data group; the second adjustment unit 206 is configured to perform a second capacity adjustment on the resource capacity information corresponding to the above-mentioned online service according to the above-mentioned second marked indicator data group, so as to obtain a second adjusted resource information group; the dynamic adjustment unit 207 is configured to dynamically adjust the resource capacity information corresponding to the above-mentioned online service according to the above-mentioned first adjusted resource information group and the above-mentioned second adjusted resource information group, so as to obtain the adjusted resource capacity information; the storage unit 208 is configured to store the above-mentioned adjusted resource capacity information to the server.
[0159] It is understood that the units described in the device 200 are similar to those described in the reference Figure 1 Therefore, the operations, features and beneficial effects described above for the method are also applicable to the device 200 and the units included therein, and will not be described in detail here.
[0160] Reference below Figure 3 , which shows a schematic structural diagram of an electronic device (such as a computing device) 300 suitable for implementing some embodiments of the present disclosure. Figure 3 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0161] like Figure 3As shown, the electronic device 300 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 301, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 302 or a program loaded from a storage device 308 into a random access memory (RAM) 304. In RAM 303, various programs and data required for the operation of the electronic device 300 are also stored. The processing device 301, ROM 302, and RAM 304 are connected to each other via a bus 304. An input / output (I / O) interface 305 is also connected to the bus 304.
[0162] Typically, the following devices may be connected to the I / O interface 305: input devices 306 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 307 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 308 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 309. The communication devices 309 may allow the electronic device 300 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 3 The electronic device 300 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead. Figure 3 Each block shown in the figure may represent one device, or may represent multiple devices as required.
[0163] In particular, according to some embodiments of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, some embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In some such embodiments, the computer program can be downloaded and installed from the network through the communication device 309, or installed from the storage device 308, or installed from the ROM 302. When the computer program is executed by the processing device 301, the functions defined in the method of some embodiments of the present disclosure are executed.
[0164] It should be noted that the computer-readable medium recorded in some embodiments of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, 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 thereof. In some embodiments of the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, device or device. In some embodiments of the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit 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.
[0165] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (Hyper Text Transfer Protocol), and may 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 future developed network.
[0166] The above-mentioned computer-readable medium may be included in the above-mentioned electronic device; or it may exist independently without being assembled into the electronic device. The above-mentioned computer-readable medium carries one or more programs. When the above-mentioned one or more programs are executed by the electronic device, the electronic device: collects an indicator data set corresponding to the online service; performs preset period detection on the above-mentioned indicator data set to obtain a detection result set; in response to determining that there is a value corresponding to a detection result in the above-mentioned detection result set that is greater than a preset first numerical threshold, performs abnormal alarm processing on at least one detection result greater than the preset first numerical threshold, and performs a first label marking on the indicator data corresponding to at least one detection result greater than the preset first numerical threshold to obtain a first marked indicator data group; according to the above-mentioned first marked indicator data group, performs a first capacity adjustment on the resource capacity information corresponding to the above-mentioned online service to obtain a first adjusted resource information group; In response to determining that there is a detection result in the detection result set whose corresponding numerical value is less than or equal to a preset second numerical threshold, abnormal alarm processing is performed on at least one detection result that is less than or equal to the preset second numerical threshold, and a second label is marked on the indicator data corresponding to at least one detection result that is less than or equal to the preset second numerical threshold to obtain a second marked indicator data group; based on the second marked indicator data group, a second capacity adjustment is performed on the resource capacity information corresponding to the online service to obtain a second adjusted resource information group; based on the first adjusted resource information group and the second adjusted resource information group, the resource capacity information corresponding to the online service is dynamically adjusted to obtain adjusted resource capacity information; and the adjusted resource capacity information is displayed on the corresponding operation interface of the user.
[0167] Computer program code for performing the operations of some embodiments of the present disclosure may be written in one or more programming languages or a combination thereof, including 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 separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via 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., via the Internet using an Internet service provider).
[0168] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the box can also occur in a different order from the order 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 flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0169] The units described in some embodiments of the present disclosure may be implemented by software or by hardware. The described units may also be provided in a processor, for example, may be described as: a processor comprising: a collection unit, a detection unit, a first processing unit, a first adjustment unit, a second processing unit, a second adjustment unit, a dynamic adjustment unit and a storage unit. The names of these units do not, in some cases, constitute limitations on the units themselves, for example, the collection unit may also be described as a "unit for collecting indicator data sets corresponding to online services".
[0170] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, 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 chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0171] The above descriptions are only some preferred embodiments of the present disclosure and the explanation of the technical principles used above. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present disclosure is not limited to the technical solutions formed by the specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above invention concept. For example, the above features are replaced with the technical features with similar functions disclosed in the embodiments of the present disclosure (but not limited to) and the technical solutions formed.
Claims
1. A capacity adjustment method, include: Collect indicator data sets corresponding to online services; Performing a preset period detection on the indicator data set to obtain a detection result set; In response to determining that a value corresponding to a detection result in the detection result set is greater than a preset first value threshold, performing abnormal alarm processing on at least one detection result greater than the preset first value threshold, and marking the indicator data corresponding to at least one detection result greater than the preset first value threshold with a first label to obtain a first marked indicator data group; According to the first marked indicator data group, performing a first capacity adjustment on the resource capacity information corresponding to the online service to obtain a first adjusted resource information group; In response to determining that a value corresponding to a detection result in the detection result set is less than or equal to a preset second value threshold, performing abnormal alarm processing on at least one detection result that is less than or equal to the preset second value threshold, and marking the indicator data corresponding to at least one detection result that is less than or equal to the preset second value threshold with a second label to obtain a second marked indicator data group; According to the second marked indicator data group, performing a second capacity adjustment on the resource capacity information corresponding to the online service to obtain a second adjusted resource information group; Dynamically adjusting the resource capacity information corresponding to the online service according to the first adjusted resource information group and the second adjusted resource information group to obtain adjusted resource capacity information; The adjusted resource capacity information is displayed to the user's corresponding operation interface.
2. The method according to claim 1, in, The step of performing a preset period detection on the indicator data set to obtain a detection result set includes: Performing data preprocessing on the indicator data set to obtain a processed indicator data set; Within the preset period, the processed indicator data set is divided according to the task window duration threshold to obtain a divided indicator data set; In response to determining that a threshold corresponding to the divided indicator data in the divided indicator data set is greater than a preset data threshold, determining at least one divided indicator data corresponding to the data greater than the preset data threshold as an abnormal indicator data set; In response to determining that the threshold corresponding to the divided indicator data in the divided indicator data set is less than the preset data threshold and greater than or equal to the preset indicator data threshold, determining at least one divided indicator data corresponding to the divided indicator data that is less than the preset data threshold and greater than or equal to the preset indicator data threshold as a normal indicator data set; The abnormal indicator data set and the normal indicator data set are determined as a detection result set.
3. The method according to claim 1, in, The dynamically adjusting the resource capacity information corresponding to the online service according to the first adjusted resource information group and the second adjusted resource information group to obtain the adjusted resource capacity information includes: Rollingly updating the first adjusted resource information group and the second adjusted resource information group to obtain an updated first resource information group and an updated second resource information group; Sending the updated first resource information group and the updated second resource information group to a user device so that the user can detect the resource capacity information corresponding to the online service and obtain a detection result; Dynamically adjust the resource capacity information corresponding to the detection result to obtain adjusted resource capacity information.
4. The method according to claim 1, in, The step of performing a first capacity adjustment on the resource capacity information corresponding to the online service according to the first marked indicator data group to obtain a first adjusted resource information group includes: Determine the resource capacity of each first marked indicator data in the first marked indicator data group to generate first marked data resource capacity information, and obtain a first marked data resource capacity information set; According to the first marking data resource capacity information set, resource capacity information corresponding to the online service is divided to obtain a first divided resource capacity information set; For each first divided resource capacity information in the first divided resource capacity information set, the following first processing step is performed: Performing signal detection on the first divided resource capacity information to obtain a first signal detection result; In response to determining that the first signal detection result represents a signal stop result, performing resource capacity reduction processing on the first divided resource capacity information to obtain reduced resource capacity information; Performing flow detection on the reduced resource capacity information to obtain a first flow monitoring result; Performing flow analysis on the first flow detection result to obtain transmission rate information of the first flow and data volume of the first flow; Determining a transmission time of the first flow according to the transmission rate information of the first flow and the data volume of the first flow; Determine the state of the reduced resource capacity information according to the transmission time of the first traffic and a preset first time threshold, and obtain the state of the reduced resource capacity information; In response to determining that the reduced resource capacity information state represents a reduced resource capacity information transmission end state, determining the reduced resource capacity information corresponding to the reduced resource capacity information transmission end state as the first adjusted resource information; The obtained pieces of first adjusted resource information are determined as a first adjusted resource information group.
5. The method according to claim 1, in, The step of performing a second capacity adjustment on the resource capacity information corresponding to the online service according to the second marked indicator data group to obtain second adjusted resource information includes: Determine the resource capacity of each second marked indicator data in the second marked indicator data group to generate second marked data resource capacity information, and obtain a second marked data resource capacity information set; According to the second marking data resource capacity information set, the resource capacity information corresponding to the online service is divided to obtain a second divided resource capacity information set; For each second divided resource capacity information in the second divided resource capacity information set, the following second processing step is performed: Performing signal detection on the second divided resource capacity information to obtain a second signal detection result; In response to determining that the second signal detection result represents a signal stop result, performing resource capacity increase processing on the second divided resource capacity information to obtain increased resource capacity information; Performing flow detection on the increased resource capacity information to obtain a second flow monitoring result; Performing flow analysis on the second flow detection result to obtain transmission rate information of the second flow and data volume of the second flow; Determining a transmission time of the second flow according to the transmission rate information of the second flow and the data volume of the second flow; Determine the state of the increased resource capacity information according to the transmission time of the second traffic and a preset second time threshold, and obtain the state of the increased resource capacity information; In response to determining that the increased resource capacity information state represents an increased resource capacity information transmission end state, determining the increased resource capacity information corresponding to the increased resource capacity information transmission end state as the second adjusted resource information; The obtained pieces of second adjusted resource information are determined as a second adjusted resource information group.
6. A capacity adjustment device, include: A collection unit, configured to collect indicator data sets corresponding to online services; A detection unit, configured to perform a preset period detection on the indicator data set to obtain a detection result set; A first processing unit is configured to, in response to determining that a value corresponding to a detection result in the detection result set is greater than a preset first value threshold, perform abnormal alarm processing on at least one detection result greater than the preset first value threshold, and mark the indicator data corresponding to at least one detection result greater than the preset first value threshold with a first label to obtain a first marked indicator data group; A first adjustment unit is configured to perform a first capacity adjustment on the resource capacity information corresponding to the online service according to the first marked indicator data group to obtain a first adjusted resource information group; A second processing unit is configured to, in response to determining that a value corresponding to a detection result in the detection result set is less than or equal to a preset second value threshold, perform abnormal alarm processing on at least one detection result that is less than or equal to the preset second value threshold, and perform a second label marking on the indicator data corresponding to at least one detection result that is less than or equal to the preset second value threshold, to obtain a second marked indicator data group; A second adjustment unit is configured to perform a second capacity adjustment on the resource capacity information corresponding to the online service according to the second marked indicator data group to obtain a second adjusted resource information group; a dynamic adjustment unit, configured to dynamically adjust the resource capacity information corresponding to the online service according to the first adjusted resource information group and the second adjusted resource information group to obtain adjusted resource capacity information; The storage unit is configured to store the adjusted resource capacity information in the server.
7. An electronic device, include: one or more processors; a storage device having one or more programs stored thereon; When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 5.
8. A computer readable medium having a computer program stored thereon, in, When the program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Early warning method and device
CN113778778A
Service capacity regulation and control method and device, electronic equipment and storage medium
CN116633789A
Flow control method and device, electronic equipment and computer readable medium
CN117336298A
Resource control method for function computing, device, and medium
EP4235424A1
