CN117149564A - Performance test-based index monitoring method, device, equipment and storage medium - Google Patents

Performance test-based index monitoring method, device, equipment and storage medium Download PDF

Info

Publication number
CN117149564A
CN117149564A CN202311099879.5A CN202311099879A CN117149564A CN 117149564 A CN117149564 A CN 117149564A CN 202311099879 A CN202311099879 A CN 202311099879A CN 117149564 A CN117149564 A CN 117149564A
Authority
CN
China
Prior art keywords
monitoring
index
preset
strategy
adjusted
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311099879.5A
Other languages
Chinese (zh)
Inventor
孙佳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Bank of China Ltd
Original Assignee
Bank of China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Bank of China Ltd filed Critical Bank of China Ltd
Priority to CN202311099879.5A priority Critical patent/CN117149564A/en
Publication of CN117149564A publication Critical patent/CN117149564A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/3495Performance evaluation by tracing or monitoring for systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/02Banking, e.g. interest calculation or account maintenance

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Computing Systems (AREA)
  • Finance (AREA)
  • Computer Hardware Design (AREA)
  • Mathematical Physics (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application provides an index monitoring method, device, equipment and storage medium based on performance test, which can be used in the financial field or other fields. The method comprises the following steps: acquiring an initial value of a monitoring index of the performance test according to a preset index monitoring strategy; the index monitoring strategy representation is based on a preset time interval, and monitoring indexes are sampled; if the initial value of the monitoring index is determined to be within the preset index threshold range, adjusting the preset index monitoring strategy according to preset strategy adjustment rule information to obtain an adjusted index monitoring strategy; acquiring the current value of the monitoring index of the performance test according to the adjusted index monitoring strategy; and storing and displaying the adjusted index monitoring strategy and the current value of the monitoring index. The method of the application realizes the dynamic adjustment of the index monitoring strategy and improves the monitoring efficiency of the index.

Description

Performance test-based index monitoring method, device, equipment and storage medium
Technical Field
The present application relates to the financial field or other fields, and in particular, to a performance test-based index monitoring method, apparatus, device, and storage medium.
Background
With the rapid development of financial business, the scale of a bank information system is larger and larger, and performance test of the system is an important means for guaranteeing the quality of the information system. When the performance test is executed, the performance index of the tested transaction, the resource index of each server of the tested system and the like are required to be monitored, and the performance of the tested system is analyzed according to the monitoring result.
The high-frequency sampling monitoring of a large number of indexes consumes a large amount of system resources, and if the system resources are excessively monitored, the system resources are wasted; if the monitoring is insufficient, detailed index monitoring data cannot be provided for the result analysis of the performance test scene, so that the monitoring result is invalid. Therefore, there is a need for intelligent and efficient monitoring of monitoring indicators.
Disclosure of Invention
The application provides an index monitoring method, device, equipment and storage medium based on performance test, which are used for effectively monitoring a monitoring index.
In a first aspect, the present application provides a performance test-based index monitoring method, including:
acquiring an initial value of a monitoring index of the performance test according to a preset index monitoring strategy; the index monitoring strategy representation is based on a preset time interval, and monitoring indexes are sampled;
If the initial value of the monitoring index is determined to be within the preset index threshold range, adjusting the preset index monitoring strategy according to preset strategy adjustment rule information to obtain an adjusted index monitoring strategy;
acquiring the current value of the monitoring index of the performance test according to the adjusted index monitoring strategy;
and storing and displaying the adjusted index monitoring strategy and the current value of the monitoring index.
In a second aspect, the present application provides an index monitoring apparatus based on performance test, including:
the initial value acquisition module is used for acquiring an initial value of a monitoring index of the performance test according to a preset index monitoring strategy; the index monitoring strategy representation is based on a preset time interval, and monitoring indexes are sampled;
the strategy adjustment module is used for adjusting the preset index monitoring strategy according to preset strategy adjustment rule information if the initial value of the monitoring index is determined to be in the preset index threshold range, so as to obtain an adjusted index monitoring strategy;
the current value acquisition module is used for acquiring the current value of the monitoring index of the performance test according to the adjusted index monitoring strategy;
And the display module is used for storing and displaying the adjusted index monitoring strategy and the current value of the monitoring index.
In a third aspect, the present application provides an electronic device comprising: a processor, and a memory communicatively coupled to the processor;
the memory stores computer-executable instructions;
the processor executes computer-executable instructions stored in the memory to implement the method according to the first aspect of the application.
In a fourth aspect, the present application provides a computer-readable storage medium having stored therein computer-executable instructions for performing the method according to the first aspect of the application when executed by a processor.
In a fifth aspect, the application provides a computer program product comprising a computer program which, when executed by a processor, implements the method according to the first aspect of the application.
According to the performance test-based index monitoring method, device, equipment and storage medium, whether the initial value is within the preset index threshold range is judged by acquiring the initial value of the monitoring index of the performance test, if yes, the original index monitoring strategy is adjusted according to preset strategy adjustment rule information, and the adjusted index monitoring strategy is obtained. And obtaining the current value of the monitoring index of the performance test according to the adjusted index monitoring strategy, and storing and displaying the current value. According to the method and the device, the monitoring strategy of the index is dynamically adjusted according to the actual monitoring condition of the monitoring index, the self-adaptive intelligent monitoring is performed, the condition of excessive monitoring or insufficient monitoring is avoided, the flexibility of index monitoring is improved, and the efficient monitoring of the monitoring index is realized.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
FIG. 1 is a schematic flow chart of an index monitoring method based on performance test according to an embodiment of the present application;
FIG. 2 is a schematic flow chart of an index monitoring method based on performance test according to an embodiment of the present application;
FIG. 3 is a block diagram of a performance test-based index monitoring device according to an embodiment of the present application;
FIG. 4 is a block diagram of a performance test-based index monitoring device according to an embodiment of the present application;
fig. 5 is a block diagram of an electronic device according to an embodiment of the present application;
fig. 6 is a block diagram of an electronic device according to an embodiment of the present application.
Specific embodiments of the present application have been shown by way of the above drawings and will be described in more detail below. The drawings and the written description are not intended to limit the scope of the inventive concepts in any way, but rather to illustrate the inventive concepts to those skilled in the art by reference to the specific embodiments.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the application. Rather, they are merely examples of apparatus and methods consistent with aspects of the application as detailed in the accompanying claims.
It should be noted that, the user information (including but not limited to user equipment information, user personal information, etc.) and the data (including but not limited to data for analysis, stored data, presented data, etc.) related to the present application are information and data authorized by the user or fully authorized by each party, and the collection, use and processing of the related data need to comply with related laws and regulations and standards, and provide corresponding operation entries for the user to select authorization or rejection.
It should be noted that the performance test-based index monitoring method, device, equipment and storage medium of the present application can be used in the financial field, and also can be used in any field other than the financial field.
With the rapid development of financial business, the scale of information systems of banks is larger and larger, and performance testing of the systems is an important means for guaranteeing the quality of the information systems. When the performance test is executed, the performance index of the tested transaction and the resource index of each server of the tested system are required to be monitored, and the performance of the tested system is analyzed according to the monitoring result. Monitoring indicators of measured transactions generally include TPS (Transaction per Second, number of transactions processed per second), average response time, success rate, etc.; the resource monitoring indexes of the tested server generally comprise indexes such as CPU, memory, network card network flow, disk space, page number and the like.
The high-frequency sampling monitoring of a large number of monitoring indexes consumes a large amount of system resources, and if the monitoring is excessive, the waste of the system resources is caused; if the monitoring is insufficient, detailed index monitoring data cannot be provided for the result analysis of the performance test scene, so that the monitoring result is invalid. Therefore, the monitoring strategy needs to be dynamically adjusted according to the actual configuration condition of the test scene and the real-time performance condition of the monitored index, and the self-adaptive intelligent index monitoring is performed, so that the condition of excessive monitoring or insufficient monitoring is avoided.
At present, a default sampling frequency is generally used to monitor a default monitoring index corpus, and when system resources are tense or monitoring is found to be insufficient, a tester manually adjusts the monitoring index corpus, and sometimes, a performance test scene needs to be restarted and monitored again. This not only consumes labor, but also easily causes overstrain or understrain of monitoring, and the monitoring effect is poor.
The application provides an index monitoring method, device, equipment and storage medium based on performance test, and aims to solve the technical problems in the prior art.
The following describes the technical scheme of the present application and how the technical scheme of the present application solves the above technical problems in detail with specific embodiments. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Fig. 1 is a flowchart of a performance test-based index monitoring method according to an embodiment of the present application, where the method is performed by a performance test-based index monitoring apparatus. As shown in fig. 1, the method comprises the steps of:
s101, acquiring an initial value of a monitoring index of a performance test according to a preset index monitoring strategy; the index monitoring strategy representation is based on a preset time interval, and monitoring indexes are sampled.
For example, when performance testing of a system is performed, some indexes of the system need to be monitored, and the monitored indexes are monitoring indexes. For example, the monitoring metrics may include TPS, average response time of transactions, transaction success rate, CPU of server, memory, network card network traffic, disk space, and number of page changes, etc. And presetting an index monitoring strategy, and sampling the monitoring index according to the index monitoring strategy, namely realizing the monitoring of the monitoring index. The index monitoring policy is provided with a time interval for sampling the monitoring index, for example, the monitoring index may be sampled every 1 minute.
For different performance test projects, different kinds of monitoring indicators can be sampled. For example, for a first performance test project, three monitoring indicators need to be sampled; for the second performance test project, five monitoring indicators need to be sampled. For different monitoring indexes, different index monitoring strategies can be preset, namely, different monitoring indexes can be sampled according to different time intervals. For example, the CPU usage may be sampled every 1 second, and the memory size may be sampled every 2 seconds.
And sampling according to a preset index monitoring strategy to obtain the numerical value of the monitoring index of the performance test. And determining the numerical value of the monitoring index obtained based on a preset index monitoring strategy as an initial value of the monitoring index. Namely, according to a preset index monitoring strategy, an initial value of a monitoring index is obtained.
S102, if the initial value of the monitoring index is determined to be within the preset index threshold range, adjusting the preset index monitoring strategy according to preset strategy adjustment rule information to obtain an adjusted index monitoring strategy.
For example, an index threshold range is preset, and for different monitoring indexes, different index threshold ranges may be set. After the initial value of the monitoring index is obtained, the index threshold range of the monitoring index can be determined. For example, the monitor indicator is a memory, and the corresponding indicator threshold range is greater than or equal to 80% of the total size of the memory. And comparing the initial value of the monitoring index with a corresponding index threshold range, and judging whether the initial value of the monitoring index is in a preset index threshold range or not. For example, if the monitored memory size is greater than or equal to 80%, the initial value of the memory is considered to be within the preset index threshold range.
If the initial value of the monitoring index is determined to be within the preset index threshold range, the preset index monitoring strategy is considered to be required to be adjusted. Policy adjustment rule information, which refers to a rule for adjusting an index monitoring policy, may be preset. And adjusting the preset index monitoring strategy according to the preset strategy adjustment rule information to obtain an adjusted index monitoring strategy. For example, the index threshold range is a numerical range when there may be an abnormality in the monitoring index, and when the initial value of the monitoring index is within the preset index threshold range, it is indicated that there may be an abnormality in the monitoring index, and more strict sampling needs to be performed on the monitoring index, that is, more numerical values of the monitoring index need to be acquired. The time interval of sampling in the preset index monitoring strategy can be reduced through strategy adjustment rule information, and the index monitoring strategy after the time interval is reduced is the adjusted index monitoring strategy, so that the monitoring index is sampled more frequently. For another example, the index threshold range is a numerical value range when the monitoring index is normal, when the initial value of the monitoring index is within the preset index threshold range, the monitoring index is indicated to be normal currently, the monitoring index does not need to be frequently sampled, and the monitoring index can be more loosely sampled, that is, the numerical value of more monitoring indexes does not need to be acquired. The time interval of sampling in the preset index monitoring strategy can be increased through the strategy adjustment rule information, and the index monitoring strategy after the time interval is increased is the adjusted index monitoring strategy, so that the numerical value of fewer monitoring indexes is obtained.
If the initial value of the monitoring index is determined not to be in the preset index threshold range, the monitoring index can be continuously sampled according to the preset index monitoring strategy.
S103, acquiring the current value of the monitoring index of the performance test according to the adjusted index monitoring strategy.
Illustratively, after the adjusted index monitoring policy is obtained, the value of the monitoring index of the performance test may be continuously obtained according to the adjusted index monitoring policy. And determining the numerical value of the monitoring index obtained based on the adjusted index monitoring strategy as the current value of the monitoring index. For example, the original preset index monitoring policy is to sample the memory once every 1 second as an initial value, and the adjusted index monitoring policy samples the memory once every 2 seconds as a current value.
The index monitoring strategy can be dynamically adjusted to perform adaptive index monitoring by judging whether the initial value of the monitoring index sample reaches the index threshold range of the monitoring index in real time. The condition of excessive monitoring or insufficient monitoring is avoided, the waste of system resources is reduced, the utilization rate of the system resources is improved, the effectiveness of monitoring results is improved, and the labor cost is reduced while the performance test monitoring needs are met.
After the current value of the monitoring index of the performance test is obtained according to the adjusted index monitoring strategy, whether the current value is within the preset index threshold value range can be continuously judged. If not, the index monitoring strategy can be continuously adjusted according to the strategy adjustment rule information.
S104, storing and displaying the adjusted index monitoring strategy and the current value of the monitoring index.
For example, the monitoring result of the monitoring index and the adjustment condition of the index monitoring policy may be output, for example, the current value of the monitoring index may be stored and output as the monitoring result to the staff for viewing. And the adjusted index monitoring strategy can be stored and output. When outputting the adjusted index monitoring policy, a difference between the adjusted index monitoring policy and a preset index monitoring policy, that is, a place where the index monitoring policy is adjusted, may be determined. For example, when the original time interval of 1 second is adjusted to the time interval of 2 seconds, the original time interval and the adjusted time interval can be output to the staff, so that the staff can quickly determine the adjustment of the index monitoring strategy. The current value of the monitoring index can be used as key data to be output to the staff, and the staff can conveniently focus on the testing condition of the performance test by feeding back the adjustment condition of the index monitoring strategy, the monitoring index needing to focus on and the like to the staff.
After the initial values of the monitoring indexes of the performance test are obtained according to the preset index monitoring strategy, the preset index monitoring strategy and the initial values of the monitoring indexes can be stored and displayed. The sampled values of the monitoring indicators and the indicator monitoring strategies used may be displayed to the staff in real time or periodically.
In this embodiment, storing and displaying the adjusted index monitoring policy and the current value of the monitoring index includes: generating a monitoring file in a preset format according to the adjusted index monitoring strategy and the current value of the monitoring index; and displaying the monitoring file and storing the monitoring file in a preset blockchain.
Specifically, the format of a monitoring file is preset, and the monitoring file is a file which needs to be stored and output to a worker for display. For example, the format of the monitoring file may be text, a table, a chart, or a picture. And generating a monitoring file based on a preset format according to the adjusted index monitoring strategy and the current value of the monitoring index. For example, the obtained current value may be analyzed, integrated and calculated according to a preset data analysis algorithm, so as to output a monitoring file for a worker in a format of the monitoring file. The output form can be Excel (form) and other types of files, and can also be displayed on line, and the display form can be forms, charts, pictures and the like.
After the monitoring file is obtained, the monitoring file may be stored, for example, in a preset storage path. The monitoring file can be stored in the blockchain, so that the safety of the monitoring file is ensured.
The beneficial effect of setting up like this is that through generating the monitoring file, the staff of being convenient for looks over the monitoring result to the monitor index directly perceivedly to confirm the condition of performance test. By storing the monitoring file in the blockchain, the monitoring file can be prevented from being tampered, and the authenticity of the monitoring file is improved.
According to the performance test-based index monitoring method provided by the embodiment of the application, whether the initial value is within the preset index threshold value range is judged by acquiring the initial value of the performance test monitoring index, if yes, the original index monitoring strategy is adjusted according to the preset strategy adjustment rule information, and the adjusted index monitoring strategy is obtained. And obtaining the current value of the monitoring index of the performance test according to the adjusted index monitoring strategy, and storing and displaying the current value. According to the method and the device, the monitoring strategy of the index is dynamically adjusted according to the actual monitoring condition of the monitoring index, the self-adaptive intelligent monitoring is performed, the condition of excessive monitoring or insufficient monitoring is avoided, the flexibility of index monitoring is improved, and the efficient monitoring of the monitoring index is realized.
Fig. 2 is a schematic flow chart of an index monitoring method based on performance test according to an embodiment of the present application, where the embodiment is an alternative embodiment based on the foregoing embodiment.
In this embodiment, if it is determined that the initial value of the monitoring index is within the preset index threshold range, the preset index monitoring policy is adjusted according to the preset policy adjustment rule information, so as to obtain an adjusted index monitoring policy, which may be refined as follows: determining an index threshold range corresponding to the monitoring index as a target index threshold range according to the association relation between the preset monitoring index and the index threshold range; and if the initial value of the monitoring index is determined to be within the target index threshold range, adjusting the preset index monitoring strategy according to the preset strategy adjustment rule information to obtain an adjusted index monitoring strategy.
As shown in fig. 2, the method comprises the steps of:
s201, acquiring an initial value of a monitoring index of a performance test according to a preset index monitoring strategy; the index monitoring strategy representation is based on a preset time interval, and monitoring indexes are sampled.
For example, this step may refer to step S101, and will not be described in detail.
S202, determining an index threshold range corresponding to the monitoring index as a target index threshold range according to the association relation between the preset monitoring index and the index threshold range.
For example, different index threshold ranges may be associated in advance for different monitoring indexes. And determining an index threshold range corresponding to the monitoring index according to the association relation between the preset monitoring index and the index threshold range. And determining an index threshold range corresponding to the monitoring index as a target index threshold range. For example, the monitoring index is TPS, a target TPS is preset, and the target index threshold range of TPS is less than 90% of the target TPS; the monitoring index is the average response time of the transaction, a target average response time is preset, and the target index threshold range of the average response time is more than 2 times of the target average response time.
And S203, if the initial value of the monitoring index is determined to be within the target index threshold range, adjusting the preset index monitoring strategy according to the preset strategy adjustment rule information to obtain an adjusted index monitoring strategy.
The method includes the steps that whether an initial value of a monitoring index is within a target index threshold range or not is judged, if not, an index monitoring strategy does not need to be adjusted, and sampling is continuously carried out according to the preset index monitoring strategy; if yes, the index monitoring strategy needs to be adjusted, and the preset index monitoring strategy can be adjusted according to preset strategy adjustment rule information to obtain the adjusted index monitoring strategy. For example, if the monitoring index is TPS and the initial value of TPS obtained by sampling is 50% of the preset target TPS, the initial value of TPS is considered to be within the target index threshold range, and the index monitoring policy of TPS needs to be adjusted.
The time interval of the preset index monitoring strategy can be increased by 1 second to obtain an adjusted index monitoring strategy, so that fewer index values can be acquired.
In this embodiment, the target index threshold range includes a first target range and a second target range; if the initial value of the monitoring index is determined to be within the target index threshold range, adjusting the preset index monitoring strategy according to preset strategy adjustment rule information to obtain an adjusted index monitoring strategy, wherein the method comprises the following steps: if the initial value of the monitoring index is determined to be in the first target range, adjusting the preset index monitoring strategy according to preset first strategy adjustment rule information to obtain an adjusted index monitoring strategy; and if the initial value of the monitoring index is determined to be in the second target range, adjusting the preset index monitoring strategy according to preset second strategy adjustment rule information to obtain an adjusted index monitoring strategy.
Specifically, for the same monitoring index, a plurality of target index threshold ranges may be set, for example, two target index threshold ranges may be set, which are a first target range and a second target range, respectively. The first target range and the second target range correspond to different policy adjustment rule information, for example, the policy adjustment rule information corresponding to the first target range is first policy adjustment rule information, and the policy adjustment rule information corresponding to the second target range is second policy adjustment rule information.
After the initial value of the monitoring index is obtained, a first target range and a second target range corresponding to the monitoring index are determined. And comparing the initial value of the monitoring index with the first target range and the second target range respectively, and judging whether the initial value of the monitoring index is in the first target range or in the second target range. If the initial value of the monitoring index is not in the first target range or the second target range, the preset index monitoring strategy does not need to be adjusted; if the initial value of the monitoring index is in the first target range, determining first strategy adjustment rule information corresponding to the first target range, and adjusting a preset index monitoring strategy according to the first strategy adjustment rule information; if the initial value of the monitoring index is in the second target range, determining second strategy adjustment rule information corresponding to the second target range, and adjusting a preset index monitoring strategy according to the second strategy adjustment rule information. For example, the monitoring indicator is a transaction success rate, the first target range is less than or equal to 98%, and the second target range is greater than 99%. The first policy adjustment rule information is a decreasing time interval and the second policy adjustment rule information is an increasing time interval. If the transaction success rate is less than or equal to 98%, reducing the time interval in a preset index monitoring strategy; if the transaction success rate is greater than 99%, increasing the time interval in the preset index monitoring strategy.
The method has the beneficial effects that the real-time monitoring is carried out according to the formulated index monitoring strategy, whether the sampling value of the monitoring index reaches the target index threshold range of the monitoring index is judged in real time, different adjustment can be carried out aiming at the range of different sampling values, the flexible dynamic adjustment of the index monitoring strategy is realized, the adjustment precision of the index monitoring strategy is improved, and the monitoring effect is further improved.
In this embodiment, according to preset policy adjustment rule information, a preset index monitoring policy is adjusted to obtain an adjusted index monitoring policy, which includes: determining strategy adjustment rule information corresponding to the monitoring index according to the association relation between the preset monitoring index and the strategy adjustment rule information, wherein the strategy adjustment rule information is target strategy adjustment rule information; and adjusting the preset index monitoring strategy according to the target strategy adjustment rule information to obtain an adjusted index monitoring strategy.
Specifically, the same monitoring index may correspond to different policy adjustment rule information, and different monitoring indexes may also correspond to different policy adjustment rule information. According to the association relation between the preset monitoring index and the strategy adjustment rule information, strategy adjustment rule information corresponding to the monitoring index is determined and used as target strategy adjustment rule information, and the target strategy adjustment rule information can comprise first strategy adjustment rule information and second strategy adjustment rule information. And adjusting the preset index monitoring strategy according to the target strategy adjustment rule information to obtain an adjusted index monitoring strategy. For example, if the initial value of the monitoring index is determined to be in the first target range, adjusting the preset index monitoring strategy according to the first strategy adjustment rule information; and if the initial value of the monitoring index is determined to be in the second target range, adjusting the preset index monitoring strategy according to the second strategy adjustment rule information.
The beneficial effect of setting up like this lies in, carries out the pertinence to different monitor index and adjusts, improves monitor index's adjustment accuracy, guarantees to monitor the monitor index effectively.
In this embodiment, according to the target policy adjustment rule information, a preset index monitoring policy is adjusted to obtain an adjusted index monitoring policy, which includes: and according to the target strategy adjustment rule information, increasing or decreasing the time interval in the preset index monitoring strategy to obtain the adjusted index monitoring strategy.
Specifically, the adjustment of the preset index monitoring policy may be to adjust a time interval in the preset index monitoring policy. The target policy adjustment rule information may define a manner and an adjustment size for adjusting the time interval in the index monitoring policy, for example, the adjustment manner may be to increase the time interval or decrease the time interval, and the adjustment size may be to increase the time length of the time interval or decrease the time length of the time interval.
According to the target strategy adjustment rule information, the time interval in the preset index monitoring strategy can be determined to be increased or decreased, and the increasing or decreasing amplitude can be determined, so that the adjusted index monitoring strategy is obtained. Increasing the time interval may be considered as adjusting the preset index monitoring policy to a more relaxed index monitoring policy and decreasing the time interval may be considered as adjusting the preset index monitoring policy to a more strict index monitoring policy. For example, for TPS, average response time, success rate, etc. of the measured transaction, the first target range may be set to be less than or equal to 90%, greater than or equal to 2 times, less than or equal to 98% of the target average response time, respectively; for the measured system server resource indexes CPU, memory, disk space and the like, the first target range can be set to be more than or equal to 90%, more than or equal to 80% and more than or equal to 90% respectively; for TPS, average response time, success rate, the second target range may be set to be greater than or equal to 110% of the target TPS, less than or equal to 30% of the target average response time, greater than or equal to 99.9%, respectively; for CPU, memory, disk space, the second target range may be set to be less than or equal to 50%, respectively. For each monitoring index, when the initial value actually sampled is in the corresponding first target range, the monitoring index can be judged to be possibly a performance bottleneck or important attention is required, a preset index monitoring strategy can be adjusted to be a stricter monitoring strategy, and the sampling interval is reduced; when the actually sampled initial value is in the corresponding second target range, the preset index monitoring strategy is required to be adjusted to be a looser monitoring strategy, and the sampling interval is increased so as to reduce the waste of system resources.
The method has the advantages that the sampling time interval in the index monitoring strategy is adjusted, the situation of excessive monitoring or insufficient monitoring is avoided, the waste of system resources is reduced while the performance test monitoring requirement is met, the utilization rate of the system resources is improved, the effectiveness of monitoring results is improved, and the labor cost is reduced.
In this embodiment, if it is determined that the initial value of the monitoring index is within the preset index threshold range, the preset index monitoring policy is adjusted according to the preset policy adjustment rule information, so as to obtain an adjusted index monitoring policy, which includes: determining an average value of initial values of monitoring indexes in a preset time period; if the average value of the initial values of the monitoring indexes is within the preset index threshold value range, the preset index monitoring strategies are adjusted according to preset strategy adjustment rule information, and the adjusted index monitoring strategies are obtained.
Specifically, a time period is preset, and a plurality of initial values of the monitoring index in the preset time period are obtained. The average value of the initial values of the monitoring index is calculated, and the calculated average value is compared with a preset index threshold range. And if the average value is within the preset index threshold value range, adjusting the preset index monitoring strategy according to preset strategy adjustment rule information to obtain an adjusted index monitoring strategy. That is, for monitoring the index, some initial values are obtained first, and according to a plurality of initial values, it is determined whether the index monitoring policy needs to be adjusted, instead of directly comparing the obtained single initial value with the index threshold range. In this embodiment, a maximum value or a minimum value may be selected from a plurality of initial values in the time period, and compared with the index threshold range.
The method has the advantages that judgment is carried out by calculating the average value, so that the judgment times can be reduced, the judgment precision is improved, and the strategy adjustment precision is further improved.
S204, acquiring the current value of the monitoring index of the performance test according to the adjusted index monitoring strategy.
For example, this step may refer to step S103, and will not be described in detail.
S205, storing and displaying the adjusted index monitoring strategy and the current value of the monitoring index.
For example, this step may refer to step S104 described above, and will not be described in detail.
According to the performance test-based index monitoring method provided by the embodiment of the application, whether the initial value is within the preset index threshold value range is judged by acquiring the initial value of the performance test monitoring index, if yes, the original index monitoring strategy is adjusted according to the preset strategy adjustment rule information, and the adjusted index monitoring strategy is obtained. And obtaining the current value of the monitoring index of the performance test according to the adjusted index monitoring strategy, and storing and displaying the current value. According to the method and the device, the monitoring strategy of the index is dynamically adjusted according to the actual monitoring condition of the monitoring index, the self-adaptive intelligent monitoring is performed, the condition of excessive monitoring or insufficient monitoring is avoided, the flexibility of index monitoring is improved, and the efficient monitoring of the monitoring index is realized.
Fig. 3 is a block diagram of a performance test-based index monitoring device according to an embodiment of the present application. For ease of illustration, only portions relevant to embodiments of the present disclosure are shown. Referring to fig. 3, the apparatus includes: an initial value acquisition module 301, a policy adjustment module 302, a current value acquisition module 303, and a display module 304.
An initial value obtaining module 301, configured to obtain an initial value of a monitoring indicator of a performance test according to a preset indicator monitoring policy; the index monitoring strategy representation is based on a preset time interval, and monitoring indexes are sampled;
the policy adjustment module 302 is configured to adjust the preset index monitoring policy according to preset policy adjustment rule information if it is determined that the initial value of the monitoring index is within a preset index threshold range, so as to obtain an adjusted index monitoring policy;
a current value obtaining module 303, configured to obtain a current value of a monitoring indicator of the performance test according to the adjusted indicator monitoring policy;
and the display module 304 is configured to store and display the adjusted indicator monitoring policy and the current value of the monitoring indicator.
Fig. 4 is a block diagram of a performance test-based index monitoring apparatus according to an embodiment of the present application, and, on the basis of the embodiment shown in fig. 3, as shown in fig. 4, a policy adjustment module 302 includes a range determining unit 3021 and an adjustment unit 3022.
A range determining unit 3021, configured to determine, according to an association relationship between a preset monitoring index and an index threshold range, the index threshold range corresponding to the monitoring index as a target index threshold range;
and the adjusting unit 3022 is configured to adjust the preset index monitoring policy according to preset policy adjustment rule information if the initial value of the monitoring index is determined to be within the target index threshold range, so as to obtain an adjusted index monitoring policy.
In one example, the target indicator threshold range includes a first target range and a second target range; the adjustment unit 3022 includes:
the first adjusting subunit is configured to adjust the preset index monitoring policy according to preset first policy adjustment rule information if it is determined that the initial value of the monitoring index is within the first target range, so as to obtain an adjusted index monitoring policy;
and the second adjusting subunit is used for adjusting the preset index monitoring strategy according to preset second strategy adjusting rule information if the initial value of the monitoring index is determined to be in the second target range, so as to obtain an adjusted index monitoring strategy.
In one example, the adjusting unit 3022 includes:
the rule determining subunit is used for determining the strategy adjustment rule information corresponding to the monitoring index according to the association relation between the preset monitoring index and the strategy adjustment rule information, and the strategy adjustment rule information is target strategy adjustment rule information;
and the strategy adjustment subunit is used for adjusting the preset index monitoring strategy according to the target strategy adjustment rule information to obtain an adjusted index monitoring strategy.
In one example, the policy adjustment subunit is specifically configured to:
and increasing or decreasing the time interval in the preset index monitoring strategy according to the target strategy adjustment rule information to obtain an adjusted index monitoring strategy.
In one example, the policy adjustment module 302 is specifically configured to:
determining an average value of initial values of the monitoring indexes in a preset time period;
and if the average value of the initial values of the monitoring indexes is within a preset index threshold range, adjusting the preset index monitoring strategies according to preset strategy adjustment rule information to obtain the adjusted index monitoring strategies.
In one example, the display module 304 is specifically configured to:
Generating a monitoring file in a preset format according to the adjusted index monitoring strategy and the current value of the monitoring index;
and displaying the monitoring file and storing the monitoring file in a preset block chain.
Fig. 5 is a block diagram of an electronic device according to an embodiment of the present application, where, as shown in fig. 5, the electronic device includes: a memory 51, a processor 52; memory 51, a memory for storing instructions executable by processor 52.
Wherein the processor 52 is configured to perform the method as provided by the above-described embodiments.
The electronic device further comprises a receiver 53 and a transmitter 54. The receiver 53 is configured to receive instructions and data transmitted from other devices, and the transmitter 54 is configured to transmit instructions and data to external devices.
Fig. 6 is a block diagram of an electronic device, which may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, exercise device, personal digital assistant, or the like, in accordance with an exemplary embodiment.
The device 600 may include one or more of the following components: a processing component 602, a memory 604, a power component 606, a multimedia component 608, an audio component 610, an input/output (I/O) interface 612, a sensor component 614, and a communication component 616.
The processing component 602 generally controls overall operation of the device 600, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 602 can include one or more modules that facilitate interaction between the processing component 602 and other components. For example, the processing component 602 may include a multimedia module to facilitate interaction between the multimedia component 608 and the processing component 602.
The memory 604 is configured to store various types of data to support operations at the device 600. Examples of such data include instructions for any application or method operating on device 600, contact data, phonebook data, messages, pictures, videos, and the like. The memory 604 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power supply component 606 provides power to the various components of the device 600. The power components 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 600.
The multimedia component 608 includes a screen between the device 600 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front camera and/or a rear camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 600 is in an operational mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 610 is configured to output and/or input audio signals. For example, the audio component 610 includes a Microphone (MIC) configured to receive external audio signals when the device 600 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 604 or transmitted via the communication component 616. In some embodiments, audio component 610 further includes a speaker for outputting audio signals.
The I/O interface 612 provides an interface between the processing component 602 and peripheral interface modules, which may be a keyboard, click wheel, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 614 includes one or more sensors for providing status assessment of various aspects of the device 600. For example, the sensor assembly 614 may detect the on/off state of the device 600, the relative positioning of the components, such as the display and keypad of the device 600, the sensor assembly 614 may also detect a change in position of the device 600 or a component of the device 600, the presence or absence of user contact with the device 600, the orientation or acceleration/deceleration of the device 600, and a change in temperature of the device 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. The sensor assembly 614 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 616 is configured to facilitate communication between the device 600 and other devices, either wired or wireless. The device 600 may access a wireless network based on a communication standard, such as WiFi,2G or 3G, or a combination thereof. In one exemplary embodiment, the communication component 616 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 616 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 600 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for executing the methods described above.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as memory 604, including instructions executable by processor 620 of device 600 to perform the above-described method. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
A non-transitory computer readable storage medium, which when executed by a processor of a terminal device, causes the terminal device to perform the performance test-based index monitoring method of the terminal device.
Other embodiments of the application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It is to be understood that the application is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (10)

1. An index monitoring method based on performance test is characterized by comprising the following steps:
acquiring an initial value of a monitoring index of the performance test according to a preset index monitoring strategy; the index monitoring strategy representation is based on a preset time interval, and monitoring indexes are sampled;
If the initial value of the monitoring index is determined to be within the preset index threshold range, adjusting the preset index monitoring strategy according to preset strategy adjustment rule information to obtain an adjusted index monitoring strategy;
acquiring the current value of the monitoring index of the performance test according to the adjusted index monitoring strategy;
and storing and displaying the adjusted index monitoring strategy and the current value of the monitoring index.
2. The method of claim 1, wherein if the initial value of the monitoring index is determined to be within a preset index threshold range, adjusting the preset index monitoring policy according to preset policy adjustment rule information to obtain an adjusted index monitoring policy, including:
determining an index threshold range corresponding to a monitoring index as a target index threshold range according to the association relation between the preset monitoring index and the index threshold range;
and if the initial value of the monitoring index is determined to be within the target index threshold range, adjusting the preset index monitoring strategy according to preset strategy adjustment rule information to obtain an adjusted index monitoring strategy.
3. The method of claim 2, wherein the target indicator threshold range comprises a first target range and a second target range; if the initial value of the monitoring index is determined to be within the target index threshold range, adjusting the preset index monitoring strategy according to preset strategy adjustment rule information to obtain an adjusted index monitoring strategy, wherein the method comprises the following steps:
if the initial value of the monitoring index is determined to be in the first target range, adjusting the preset index monitoring strategy according to preset first strategy adjustment rule information to obtain an adjusted index monitoring strategy;
and if the initial value of the monitoring index is determined to be in the second target range, adjusting the preset index monitoring strategy according to preset second strategy adjustment rule information to obtain an adjusted index monitoring strategy.
4. The method of claim 2, wherein adjusting the preset index monitoring policy according to preset policy adjustment rule information to obtain an adjusted index monitoring policy comprises:
determining strategy adjustment rule information corresponding to a preset monitoring index as target strategy adjustment rule information according to an association relation between the preset monitoring index and the strategy adjustment rule information;
And adjusting the preset index monitoring strategy according to the target strategy adjustment rule information to obtain an adjusted index monitoring strategy.
5. The method of claim 4, wherein adjusting the preset index monitoring policy according to the target policy adjustment rule information to obtain an adjusted index monitoring policy comprises:
and increasing or decreasing the time interval in the preset index monitoring strategy according to the target strategy adjustment rule information to obtain an adjusted index monitoring strategy.
6. The method of claim 1, wherein if the initial value of the monitoring index is determined to be within a preset index threshold range, adjusting the preset index monitoring policy according to preset policy adjustment rule information to obtain an adjusted index monitoring policy, including:
determining an average value of initial values of the monitoring indexes in a preset time period;
and if the average value of the initial values of the monitoring indexes is within a preset index threshold range, adjusting the preset index monitoring strategies according to preset strategy adjustment rule information to obtain the adjusted index monitoring strategies.
7. The method according to any one of claims 1-6, wherein storing and displaying the adjusted indicator monitoring policy and the current value of the monitored indicator comprises:
generating a monitoring file in a preset format according to the adjusted index monitoring strategy and the current value of the monitoring index;
and displaying the monitoring file and storing the monitoring file in a preset block chain.
8. An index monitoring device based on performance test, which is characterized by comprising:
the initial value acquisition module is used for acquiring an initial value of a monitoring index of the performance test according to a preset index monitoring strategy; the index monitoring strategy representation is based on a preset time interval, and monitoring indexes are sampled;
the strategy adjustment module is used for adjusting the preset index monitoring strategy according to preset strategy adjustment rule information if the initial value of the monitoring index is determined to be in the preset index threshold range, so as to obtain an adjusted index monitoring strategy;
the current value acquisition module is used for acquiring the current value of the monitoring index of the performance test according to the adjusted index monitoring strategy;
and the display module is used for storing and displaying the adjusted index monitoring strategy and the current value of the monitoring index.
9. An electronic device, comprising: a processor, and a memory communicatively coupled to the processor;
the memory stores computer-executable instructions;
the processor executes computer-executable instructions stored in the memory to implement the method of any one of claims 1 to 7.
10. A computer readable storage medium having stored therein computer executable instructions which when executed by a processor are adapted to carry out the method of any one of claims 1 to 7.
CN202311099879.5A 2023-08-29 2023-08-29 Performance test-based index monitoring method, device, equipment and storage medium Pending CN117149564A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311099879.5A CN117149564A (en) 2023-08-29 2023-08-29 Performance test-based index monitoring method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311099879.5A CN117149564A (en) 2023-08-29 2023-08-29 Performance test-based index monitoring method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117149564A true CN117149564A (en) 2023-12-01

Family

ID=88886128

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311099879.5A Pending CN117149564A (en) 2023-08-29 2023-08-29 Performance test-based index monitoring method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117149564A (en)

Similar Documents

Publication Publication Date Title
EP3306441A1 (en) Temperature control method and apparatus
CN110166371B (en) Flow control method and device, electronic equipment and storage medium
CN106528389B (en) Performance evaluation method and device for system fluency and terminal
CN111405302B (en) Live broadcast room attention reminding method and device, electronic equipment and storage medium
CN107480785B (en) Convolutional neural network training method and device
CN108427618B (en) Method and device for determining stuck state and computer readable storage medium
CN111246278B (en) Video playing method and device, electronic equipment and storage medium
CN105955821B (en) Pre-reading method and device
CN111539617B (en) Data processing method and device, electronic equipment, interaction system and storage medium
CN111125388B (en) Method, device and equipment for detecting multimedia resources and storage medium
CN110795314B (en) Method and device for detecting slow node and computer readable storage medium
CN108012258B (en) Data traffic management method and device for virtual SIM card, terminal and server
CN114547073B (en) Aggregation query method and device for time series data and storage medium
CN106550012B (en) Monitoring method of intelligent equipment and intelligent equipment
CN117149564A (en) Performance test-based index monitoring method, device, equipment and storage medium
CN108427582B (en) Method and device for determining stuck state and computer readable storage medium
CN112925466B (en) Touch control method and device
CN108231037B (en) Method and device for determining screen brightness setting range
CN113810328A (en) Abnormal account determination method, device and storage medium
CN114710401B (en) Abnormality positioning method and device
CN112462996B (en) Service information optimizing method, service information optimizing device and storage medium
CN114238728B (en) Vehicle data processing method, device and equipment
CN114988502B (en) Water quality treatment method, device and equipment
CN109521865B (en) Power consumption application detection method and device, storage medium and mobile terminal
CN107239280B (en) Method and device for determining notification importance and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination