CN117608946A - Concurrent pressure test method, concurrent pressure test device, concurrent pressure test equipment and storage medium - Google Patents

Concurrent pressure test method, concurrent pressure test device, concurrent pressure test equipment and storage medium Download PDF

Info

Publication number
CN117608946A
CN117608946A CN202311682618.6A CN202311682618A CN117608946A CN 117608946 A CN117608946 A CN 117608946A CN 202311682618 A CN202311682618 A CN 202311682618A CN 117608946 A CN117608946 A CN 117608946A
Authority
CN
China
Prior art keywords
monitoring
service
pressure test
concurrent pressure
current
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
CN202311682618.6A
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.)
CMB Yunchuang Information Technology Co Ltd
Original Assignee
CMB Yunchuang Information Technology Co 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 CMB Yunchuang Information Technology Co Ltd filed Critical CMB Yunchuang Information Technology Co Ltd
Priority to CN202311682618.6A priority Critical patent/CN117608946A/en
Publication of CN117608946A publication Critical patent/CN117608946A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • 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
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • 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
    • G06F11/3024Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a central processing unit [CPU]
    • 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
    • G06F11/3037Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a memory, e.g. virtual memory, cache
    • 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/3409Recording 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 for performance assessment
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Computer Hardware Design (AREA)
  • Mathematical Physics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application discloses a concurrent pressure test method, a concurrent pressure test device, concurrent pressure test equipment and a storage medium, relates to the field of pressure test, is applied to a service monitoring system, and comprises the following steps: configuring a monitoring service corresponding to the current system payment service by using a preset server monitoring platform, and monitoring the monitoring service to obtain monitoring resource use condition and monitoring service abnormal information; acquiring the current concurrency number and the unprocessed request number of a preset server monitoring platform according to the use condition of the monitoring resources and the abnormal information of the monitoring service, and determining the processing capacity of the current payment service of the current system according to the current concurrency number and the unprocessed request number; and adjusting the monitoring configuration and the concurrent pressure test intensity of the monitoring service according to the processing capacity, and continuing to perform the concurrent pressure intensity test according to the adjusted monitoring configuration and the concurrent pressure test intensity. The concurrent pressure test is optimized by monitoring the resource use condition and the current processing capacity of the server, dynamically adjusting the speed and configuration of the service request and the like.

Description

Concurrent pressure test method, concurrent pressure test device, concurrent pressure test equipment and storage medium
Technical Field
The present invention relates to the field of pressure testing, and in particular, to a concurrent pressure testing method, apparatus, device, and storage medium.
Background
After the payment service is abutted to the monitoring platform, certain performance problems exist, and continuous pressure test is required. However, due to the multi-party module, and the influence on the system processing result caused by different monitoring configuration and different table history data magnitude, the problems of invalid batch payment pressure measurement, service hanging and the like may be caused by the fact that the processing capacity of the monitoring platform cannot be evaluated to adjust the number of strokes and the configuration during batch payment pressure measurement. Therefore, how to dynamically adjust the pressure test strength is a problem to be solved in the art.
Disclosure of Invention
Accordingly, the present invention aims to provide a concurrent pressure test method, apparatus, device and storage medium, which can dynamically adjust the speed and configuration of service requests by monitoring the resource usage and current processing capacity of a server, and optimize the concurrent pressure test. The specific scheme is as follows:
in a first aspect, the present application provides a concurrent pressure testing method, applied to a service monitoring system, including:
configuring a monitoring service corresponding to a current system payment service by using a preset server monitoring platform, and monitoring the monitoring service by using the preset server monitoring platform to obtain monitoring resource use conditions and monitoring service abnormal information of the monitoring service;
acquiring the current concurrency number and the unprocessed request number of the preset server monitoring platform according to the use condition of the monitoring resources and the abnormal information of the monitoring service, and determining the processing capacity of the current payment service of the current system according to the current concurrency number and the unprocessed request number;
and adjusting the monitoring configuration and the concurrent pressure test intensity of the monitoring service according to the processing capacity, and continuing to perform the concurrent pressure intensity test according to the adjusted monitoring configuration and the concurrent pressure test intensity.
Optionally, the configuring the monitoring service corresponding to the current system payment service by using a preset server monitoring platform, and monitoring the monitoring service by using the preset server monitoring platform includes:
if the monitoring service operation is in the preset application management platform, configuring monitoring service resource indexes and alarm rules by using the preset server monitoring platform; the monitoring service resource index comprises a processor utilization rate, a processor utilization threshold, a memory utilization rate and a memory utilization threshold of the monitoring service.
Optionally, the configuring the monitoring service corresponding to the current system payment service by using a preset server monitoring platform, and monitoring the monitoring service by using the preset server monitoring platform includes:
if the monitoring service is operated on the dpaas platform, configuring a monitoring database resource index and an alarm rule by using the preset server monitoring platform; the monitoring database resource index comprises the connection use number, the connection use rate and the connection threshold value of the monitoring service.
Optionally, the monitoring service through the preset server monitoring platform to obtain the monitoring resource usage condition and monitoring service abnormality information of the monitoring service includes:
monitoring the monitoring service through the preset server monitoring platform, and acquiring a monitoring result of the monitoring service according to a preset time interval;
and determining the use condition of the monitoring resource according to the monitoring result, and judging that the monitoring service has overtime abnormality when the service request of the current system payment service is not responded within the preset time interval.
Optionally, the determining, according to the current concurrency number and the unprocessed request number, a processing capability of a current payment service for the current system includes:
when judging that the monitoring service has overtime abnormality, counting overtime processing number of the current system payment service, processing number in a preset time interval, unprocessed request number, monitoring starting number and table data magnitude coefficient according to the monitoring service abnormality information and the monitoring resource use condition;
and determining the processing capacity of the current payment service of the current system according to the processing number, the monitoring enabling number and the table data magnitude coefficient in the preset time interval.
Optionally, the adjusting the monitoring configuration of the monitoring service according to the processing capability includes:
and determining a resource utilization coefficient of the service monitoring system, and adjusting the monitoring starting quantity, the request processing interval time and the resource pod number of the monitoring service according to the unprocessed request number, the resource utilization coefficient and the processing capacity.
Optionally, the continuing the concurrent pressure intensity test according to the adjusted monitoring configuration and the concurrent pressure test intensity includes:
and determining a system bottleneck of the service monitoring system according to the processing capacity, and continuing to perform concurrent pressure intensity test according to the adjusted monitoring configuration and the adjusted concurrent pressure test intensity based on the system bottleneck.
In a second aspect, the present application provides a concurrent pressure test apparatus comprising:
the service configuration module is used for configuring a monitoring service corresponding to the current system payment service by using a preset server monitoring platform, and monitoring the monitoring service through the preset server monitoring platform so as to obtain the use condition of the monitoring resource of the monitoring service and abnormal information of the monitoring service;
the capacity determining module is used for acquiring the current concurrency number and the unprocessed request number of the preset server monitoring platform according to the use condition of the monitoring resources and the abnormal information of the monitoring service, and determining the processing capacity of the current payment service of the current system according to the current concurrency number and the unprocessed request number;
and the test adjustment module is used for adjusting the monitoring configuration and the concurrent pressure test intensity of the monitoring service according to the processing capacity, and continuing to perform the concurrent pressure intensity test according to the adjusted monitoring configuration and the concurrent pressure test intensity.
In a third aspect, the present application provides an electronic device comprising a processor and a memory; the memory is used for storing a computer program, and the computer program is loaded and executed by the processor to realize the concurrent pressure testing method.
In a fourth aspect, the present application provides a computer readable storage medium storing a computer program which, when executed by a processor, implements the concurrent stress test method described above.
In the method, a preset server monitoring platform is utilized to configure monitoring service corresponding to the current system payment service, and the monitoring service is monitored through the preset server monitoring platform so as to obtain monitoring resource use conditions and monitoring service abnormal information of the monitoring service; acquiring the current concurrency number and the unprocessed request number of the preset server monitoring platform according to the use condition of the monitoring resources and the abnormal information of the monitoring service, and determining the processing capacity of the current payment service of the current system according to the current concurrency number and the unprocessed request number; and adjusting the monitoring configuration and the concurrent pressure test intensity of the monitoring service according to the processing capacity, and continuing to perform the concurrent pressure intensity test according to the adjusted monitoring configuration and the concurrent pressure test intensity. According to the method and the device, the use condition of the resources can be monitored, and the overtime abnormal information of the monitoring service can be monitored, when the use rate of the resources exceeds a threshold value or overtime abnormality occurs, the current concurrency number and the unprocessed request number of the monitoring platform are obtained, the monitoring configuration and the concurrency pressure test strength are dynamically adjusted, the processing capacity of the system can be tested, the server is prevented from being hung off, and the pressure test strength is adjusted after the optimization is performed on the performance bottleneck of the system.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present invention, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a concurrent pressure test method provided in the present application;
FIG. 2 is a flow chart of a specific concurrent pressure test method provided in the present application;
fig. 3 is a schematic structural diagram of a concurrent pressure testing apparatus provided in the present application;
fig. 4 is a block diagram of an electronic device provided in the present application.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Because the pressure test involves a plurality of modules, and the monitoring configuration is different, and the table historical data magnitude is different, the problem that the batch payment pressure test is invalid is possibly caused by the fact that the processing capacity of the monitoring platform cannot be evaluated to adjust the number of strokes and the configuration during batch payment pressure test. By monitoring the use condition of the resources and monitoring the service overtime abnormal information, when the use rate of the resources exceeds a threshold value or overtime abnormality occurs, the current concurrency number and the unprocessed request number of the monitoring platform are obtained, the monitoring configuration and the concurrency pressure test intensity are dynamically adjusted, the processing capacity of the system can be tested, and the server is prevented from being hung up.
Referring to fig. 1, the embodiment of the invention discloses a concurrent pressure test method, which is applied to a service monitoring system and comprises the following steps:
and S11, configuring a monitoring service corresponding to the current system payment service by using a preset server monitoring platform, and monitoring the monitoring service by using the preset server monitoring platform to obtain the monitoring resource use condition and the monitoring service abnormal information of the monitoring service.
In this embodiment, a preset server monitoring platform is first utilized to configure a monitoring service corresponding to a current system payment service, and the monitoring service is monitored through the preset server monitoring platform, so as to obtain a monitoring resource usage condition and monitoring service anomaly information of the monitoring service. The method is convenient for monitoring the service condition and the current processing performance of the server resource, dynamically adjusting the service request speed and configuration and the like, and optimizing the concurrent pressure testing process.
In a specific embodiment, if the monitoring service is running on the preset application management platform, the preset server monitoring platform is utilized to configure the monitoring service resource index and the alarm rule. The monitoring service resource index comprises a processor utilization rate, a processor utilization threshold, a memory utilization rate and a memory utilization threshold of the monitoring service, and related rules of the early warning notification can be configured based on the monitoring service resource index and the warning rules, and it can be understood that other related monitoring service resource indexes can be added according to actual requirements.
In another specific embodiment, if the monitoring service is running on the dpaas platform, the monitoring database resource index and the alarm rule are configured by using a preset server monitoring platform. The monitoring database resource indexes comprise the connection use number, the connection use rate and the connection threshold value of the monitoring service, and similarly, the relevant rules of the early warning notification can be configured based on the monitoring database resource indexes and the warning rules, and other relevant monitoring database resource indexes can be added according to actual requirements.
Specifically, when monitoring the monitoring service through the preset server monitoring platform, firstly, monitoring the monitoring service through the preset server monitoring platform, and acquiring a monitoring result of the monitoring service according to a preset time interval; and then determining the use condition of the monitoring resource according to the monitoring result, and judging that the monitoring service has overtime abnormality when the service request of the current system payment service is not responded within a preset time interval. For example, the monitoring service processing result is acquired from the system every 1 minute, there is a request which is not responded for more than 1 minute, and a timeout exception is returned.
And step S12, acquiring the current concurrency number and the unprocessed request number of the preset server monitoring platform according to the use condition of the monitoring resources and the abnormal information of the monitoring service, and determining the processing capacity of the current payment service of the current system according to the current concurrency number and the unprocessed request number.
In this embodiment, the current concurrency number and the number of unprocessed requests of the preset server monitoring platform may be obtained according to the use condition of the monitoring resource and the abnormal information of the monitoring service, and the processing capability of the current payment service for the current system may be determined according to the current concurrency number and the number of unprocessed requests. Therefore, the current concurrency number and the unprocessed request number of the monitoring platform can be obtained through monitoring the use condition of the resources and monitoring the overtime abnormal information of the service, when the use rate of the resources exceeds a threshold value or the overtime abnormality occurs, the monitoring configuration, the request speed and the next batch request number are dynamically adjusted, the processing capacity of the system is tested out, the server is prevented from being hung up, and then the pressure test strength is adjusted after the bottleneck is optimized.
And step S13, adjusting the monitoring configuration and the concurrent pressure test intensity of the monitoring service according to the processing capacity, and continuing to perform the concurrent pressure intensity test according to the adjusted monitoring configuration and the concurrent pressure test intensity.
In this embodiment, the monitoring configuration and the concurrent pressure test strength of the monitoring service are adjusted according to the processing capability, and the concurrent pressure strength test is continuously performed according to the adjusted monitoring configuration and the concurrent pressure test strength. Therefore, the pressure test can be dynamically and rapidly carried out, the processing capacity of the current monitoring system is obtained, the system bottleneck and optimization are analyzed by agile auxiliary technicians, and the test and development period is shortened.
The embodiment utilizes a preset server monitoring platform to configure monitoring service corresponding to the current system payment service, monitors the monitoring service through the preset server monitoring platform, and obtains monitoring resource use condition and monitoring service abnormality information of the monitoring service; acquiring the current concurrency number and the unprocessed request number of a preset server monitoring platform according to the use condition of the monitoring resources and the abnormal information of the monitoring service, and determining the processing capacity of the current payment service of the current system according to the current concurrency number and the unprocessed request number; and adjusting the monitoring configuration and the concurrent pressure test intensity of the monitoring service according to the processing capacity, and continuing to perform the concurrent pressure intensity test according to the adjusted monitoring configuration and the concurrent pressure test intensity. Through the technical scheme, the current concurrency number and the unprocessed request number of the monitoring platform can be obtained through monitoring the use condition of the resources and monitoring the overtime abnormal information of the service, when the use rate of the resources exceeds a threshold value or the overtime abnormality occurs, the monitoring configuration and the concurrency pressure test intensity are dynamically adjusted, the processing capacity of the system can be tested, the server is prevented from being hung up, and the pressure test intensity is adjusted after the optimization is performed on the performance bottleneck of the system. The concurrent pressure testing process is optimized by monitoring the service condition and the current processing performance of the server resource, dynamically adjusting the service request speed and configuration, and the like.
Based on the above embodiment, the present application can dynamically adjust the monitoring configuration and the concurrent pressure test strength by monitoring the resource usage situation and monitoring the service timeout abnormal information, and the adjusting process of the monitoring configuration and the concurrent pressure test strength will be described in detail in this embodiment. Referring to fig. 2, the embodiment of the invention discloses a specific concurrent pressure test method, which comprises the following steps:
step S21, when judging that the monitoring service has overtime abnormality, counting overtime processing number of the current system payment service, processing number in a preset time interval, unprocessed request number, monitoring starting number and table data magnitude coefficient according to monitoring service abnormality information and monitoring resource use condition; and determining the processing capacity of the current payment service of the current system according to the processing number in the preset time interval, the monitoring enabling number and the table data magnitude coefficient.
When it is determined that the monitoring service has the overtime abnormality in the embodiment, the overtime processing number, the unprocessed request number, the monitoring enabling number and the table data magnitude coefficient of the current system payment service can be counted according to the monitoring service abnormality information and the monitoring resource use condition. And then determining the processing capacity of the current payment service of the current system according to the processing number, the monitoring enabling number and the table data magnitude coefficient in the preset time interval. For example, when monitoring a resource early warning notice and monitoring service overtime abnormality, acquiring and counting the number of processing strokes in overtime processing, the number of unprocessed requests in the first 1 minute, the number of monitoring starting and the data magnitude coefficient of the table from the system, and then calculating the current processing capacity a according to the counted number of processing strokes in the first 1 minute and the number of monitoring starting and the data magnitude coefficient of the table.
Step S22, determining a resource utilization coefficient of the service monitoring system, and adjusting the monitoring starting quantity, the request processing interval time and the resource pod number of the monitoring service according to the unprocessed request number, the resource utilization coefficient and the processing capacity.
In this embodiment, the resource usage coefficient of the service monitoring system may be determined, and the monitoring enable number, the request processing interval time, and the resource pod number of the monitoring service may be adjusted according to the number of unprocessed requests, the resource usage coefficient, and the processing capability. And calculating the resources required by the residual requests through the unprocessed request number and the resource utilization coefficient/a, automatically modifying the monitoring starting quantity and the batch interval time of batch requests, and dynamically adjusting the resource configuration pod number, thereby being beneficial to avoiding the hanging-up of monitoring services or related services.
And S23, determining a system bottleneck of the service monitoring system according to the processing capacity, and continuing to perform concurrent pressure intensity test according to the adjusted monitoring configuration and the concurrent pressure test intensity based on the system bottleneck.
In this embodiment, a system bottleneck of the service monitoring system may be determined according to the processing capability, and then, based on the system bottleneck, the concurrent pressure intensity test is continuously performed according to the adjusted monitoring configuration and the concurrent pressure test intensity. And analyzing the development performance optimization after the system bottleneck according to the current processing capacity calculated in the steps so as to adjust the number of resources pod, the number of monitoring and starting strokes, the number of batch request strokes, the table data magnitude, the number of batch request intervals and the like, and performing pressure test. It should be noted that after the execution of the current batch of business is completed, the table data magnitude can be controlled to automatically delete the pressure measurement data, so as to avoid memory overflow.
When judging that the monitoring service has overtime abnormality, the embodiment counts overtime processing number, unprocessed request number, monitoring starting number and table data magnitude coefficient of the current system payment service according to monitoring service abnormality information and monitoring resource use condition; and determining the processing capacity of the current payment service of the current system according to the processing number, the monitoring enabling number and the table data magnitude coefficient in a preset time interval. And then determining a resource utilization coefficient of the service monitoring system, and adjusting the monitoring starting quantity, the request processing interval time and the resource pod number of the monitoring service according to the unprocessed request number, the resource utilization coefficient and the processing capacity. And determining a system bottleneck of the service monitoring system according to the processing capacity, and continuing to perform concurrent pressure intensity test according to the adjusted monitoring configuration and the concurrent pressure test intensity based on the system bottleneck. Therefore, the pressure can be self-adaptively and concurrently applied, the system pressure can be dynamically adjusted according to monitoring indexes and resources required by calculation in the pressure measurement process, the conditions of memory overflow, service hanging and the like are prevented, the pressure test can be dynamically and rapidly carried out, the processing capacity of the current monitoring system is obtained, the system bottleneck and optimization are analyzed by agile auxiliary technicians, and the test and development period is shortened.
Referring to fig. 3, the embodiment of the application further discloses a concurrent pressure testing device, including:
the service configuration module 11 is configured to configure a monitoring service corresponding to a current system payment service by using a preset server monitoring platform, and monitor the monitoring service through the preset server monitoring platform to obtain a monitoring resource use condition and monitoring service abnormality information of the monitoring service;
the capability determining module 12 is configured to obtain a current concurrency number and an unprocessed request number of the preset server monitoring platform according to the monitoring resource usage situation and the monitoring service abnormality information, and determine a current processing capability for the current system payment service according to the current concurrency number and the unprocessed request number;
and the test adjustment module 13 is configured to adjust the monitoring configuration and the concurrent pressure test strength of the monitoring service according to the processing capability, and continue to perform the concurrent pressure strength test according to the adjusted monitoring configuration and the concurrent pressure test strength.
According to the embodiment, a service configuration module utilizes a preset server monitoring platform to configure a monitoring service corresponding to a current system payment service, and the monitoring service is monitored through the preset server monitoring platform, so that the use condition of monitoring resources of the monitoring service and abnormal information of the monitoring service are obtained; the capacity determining module obtains the current concurrency number and the unprocessed request number of a preset server monitoring platform according to the use condition of the monitoring resources and the abnormal information of the monitoring service, and determines the processing capacity of the current system payment service according to the current concurrency number and the unprocessed request number; and adjusting the monitoring configuration and the concurrent pressure test intensity of the monitoring service according to the processing capacity by using the test adjustment module, and continuing to perform the concurrent pressure intensity test according to the adjusted monitoring configuration and the concurrent pressure test intensity. Therefore, the current concurrency number and the unprocessed request number of the monitoring platform can be obtained through monitoring the use condition of the resources and monitoring the overtime abnormal information of the service, when the use rate of the resources exceeds a threshold value or the overtime abnormality occurs, the monitoring configuration and the concurrency pressure test intensity are dynamically adjusted, the processing capacity of the system can be tested, and the pressure test intensity is adjusted to avoid the server from being hung up after the optimization is carried out on the performance bottleneck of the system.
In some embodiments, the service configuration module 11 specifically includes:
the first service configuration unit is used for configuring monitoring service resource indexes and alarm rules by using the preset server monitoring platform if the monitoring service is operated and maintained on the preset application management platform; the monitoring service resource index comprises a processor utilization rate, a processor utilization threshold, a memory utilization rate and a memory utilization threshold of the monitoring service.
In some embodiments, the service configuration module 11 specifically includes:
the second service configuration unit is used for configuring the resource index and the alarm rule of the monitoring database by using the preset server monitoring platform if the monitoring service is operated on the dpaas platform; the monitoring database resource index comprises the connection use number, the connection use rate and the connection threshold value of the monitoring service.
In some embodiments, the service configuration module 11 specifically includes:
the service monitoring unit is used for monitoring the monitoring service through the preset server monitoring platform and acquiring a monitoring result of the monitoring service according to a preset time interval;
and the abnormality judging unit is used for determining the use condition of the monitoring resource according to the monitoring result, and judging that the monitoring service has overtime abnormality when the service request of the current system payment service is not responded within the preset time interval.
In some embodiments, the capability determination module 12 specifically includes:
the quantity counting unit is used for counting the overtime processing number of the current system payment service, the processing number in a preset time interval, the unprocessed request number, the monitoring starting number and the table data magnitude coefficient according to the monitoring service abnormal information and the monitoring resource use condition when judging that the monitoring service has overtime abnormality;
and the capacity determining unit is used for determining the processing capacity of the current system payment service according to the processing number, the monitoring enabling number and the table data magnitude coefficient in the preset time interval.
In some embodiments, the test adjustment module 13 specifically includes:
and the configuration adjustment unit is used for determining the resource utilization rate coefficient of the service monitoring system and adjusting the monitoring starting quantity, the request processing interval time and the resource pod number of the monitoring service according to the unprocessed request number, the resource utilization rate coefficient and the processing capacity.
In some embodiments, the test adjustment module 13 specifically includes:
and the pressure testing unit is used for determining a system bottleneck of the service monitoring system according to the processing capacity, and continuing to perform concurrent pressure intensity testing according to the adjusted monitoring configuration and the concurrent pressure testing intensity based on the system bottleneck.
Further, the embodiment of the present application further discloses an electronic device, and fig. 4 is a block diagram of an electronic device 20 according to an exemplary embodiment, where the content of the figure is not to be considered as any limitation on the scope of use of the present application.
Fig. 4 is a schematic structural diagram of an electronic device 20 according to an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input output interface 25, and a communication bus 26. Wherein the memory 22 is used for storing a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the concurrent stress test method disclosed in any of the foregoing embodiments. In addition, the electronic device 20 in the present embodiment may be specifically an electronic computer.
In this embodiment, the power supply 23 is configured to provide an operating voltage for each hardware device on the electronic device 20; the communication interface 24 can create a data transmission channel between the electronic device 20 and an external device, and the communication protocol to be followed is any communication protocol applicable to the technical solution of the present application, which is not specifically limited herein; the input/output interface 25 is used for acquiring external input data or outputting external output data, and the specific interface type thereof may be selected according to the specific application requirement, which is not limited herein.
The memory 22 may be a carrier for storing resources, such as a read-only memory, a random access memory, a magnetic disk, or an optical disk, and the resources stored thereon may include an operating system 221, a computer program 222, and the like, and the storage may be temporary storage or permanent storage.
The operating system 221 is used for managing and controlling various hardware devices on the electronic device 20 and computer programs 222, which may be Windows Server, netware, unix, linux, etc. The computer program 222 may further comprise a computer program capable of performing other specific tasks in addition to the computer program capable of performing the concurrent stress test method performed by the electronic device 20 as disclosed in any of the previous embodiments.
Further, the application also discloses a computer readable storage medium for storing a computer program; wherein the computer program, when executed by a processor, implements the concurrent pressure test method disclosed previously. For specific steps of the method, reference may be made to the corresponding contents disclosed in the foregoing embodiments, and no further description is given here.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described in a different point from other embodiments, so that the same or similar parts between the embodiments are referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative elements and steps are described above generally in terms of functionality in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. The software modules may be disposed in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing has outlined the detailed description of the preferred embodiment of the present application, and the detailed description of the principles and embodiments of the present application has been provided herein by way of example only to facilitate the understanding of the method and core concepts of the present application; meanwhile, as those skilled in the art will have modifications in the specific embodiments and application scope in accordance with the ideas of the present application, the present description should not be construed as limiting the present application in view of the above.

Claims (10)

1. The concurrent pressure test method is characterized by being applied to a service monitoring system and comprising the following steps of:
configuring a monitoring service corresponding to a current system payment service by using a preset server monitoring platform, and monitoring the monitoring service by using the preset server monitoring platform to obtain monitoring resource use conditions and monitoring service abnormal information of the monitoring service;
acquiring the current concurrency number and the unprocessed request number of the preset server monitoring platform according to the use condition of the monitoring resources and the abnormal information of the monitoring service, and determining the processing capacity of the current payment service of the current system according to the current concurrency number and the unprocessed request number;
and adjusting the monitoring configuration and the concurrent pressure test intensity of the monitoring service according to the processing capacity, and continuing to perform the concurrent pressure intensity test according to the adjusted monitoring configuration and the concurrent pressure test intensity.
2. The concurrent pressure test method according to claim 1, wherein the configuring the monitoring service corresponding to the current system payment service with the preset server monitoring platform and monitoring the monitoring service through the preset server monitoring platform includes:
if the monitoring service operation is in the preset application management platform, configuring monitoring service resource indexes and alarm rules by using the preset server monitoring platform; the monitoring service resource index comprises a processor utilization rate, a processor utilization threshold, a memory utilization rate and a memory utilization threshold of the monitoring service.
3. The concurrent pressure test method according to claim 1, wherein the configuring the monitoring service corresponding to the current system payment service with the preset server monitoring platform and monitoring the monitoring service through the preset server monitoring platform includes:
if the monitoring service is operated on the dpaas platform, configuring a monitoring database resource index and an alarm rule by using the preset server monitoring platform; the monitoring database resource index comprises the connection use number, the connection use rate and the connection threshold value of the monitoring service.
4. The concurrent pressure test method according to claim 1, wherein the monitoring service through the preset server monitoring platform to obtain the monitoring resource usage condition and the monitoring service anomaly information of the monitoring service includes:
monitoring the monitoring service through the preset server monitoring platform, and acquiring a monitoring result of the monitoring service according to a preset time interval;
and determining the use condition of the monitoring resource according to the monitoring result, and judging that the monitoring service has overtime abnormality when the service request of the current system payment service is not responded within the preset time interval.
5. The concurrent pressure testing method according to any one of claims 1 to 4, wherein the determining a processing capability of a current payment service for the current system according to the current concurrent number and the unprocessed request number includes:
when judging that the monitoring service has overtime abnormality, counting overtime processing number of the current system payment service, processing number in a preset time interval, unprocessed request number, monitoring starting number and table data magnitude coefficient according to the monitoring service abnormality information and the monitoring resource use condition;
and determining the processing capacity of the current payment service of the current system according to the processing number, the monitoring enabling number and the table data magnitude coefficient in the preset time interval.
6. The concurrent pressure test method according to claim 5, wherein the adjusting the monitoring configuration of the monitoring service according to the processing capability comprises:
and determining a resource utilization coefficient of the service monitoring system, and adjusting the monitoring starting quantity, the request processing interval time and the resource pod number of the monitoring service according to the unprocessed request number, the resource utilization coefficient and the processing capacity.
7. The concurrent pressure test method according to claim 5, wherein the continuing the concurrent pressure intensity test according to the adjusted monitoring configuration and the concurrent pressure test intensity comprises:
and determining a system bottleneck of the service monitoring system according to the processing capacity, and continuing to perform concurrent pressure intensity test according to the adjusted monitoring configuration and the adjusted concurrent pressure test intensity based on the system bottleneck.
8. A concurrent pressure test device, comprising:
the service configuration module is used for configuring a monitoring service corresponding to the current system payment service by using a preset server monitoring platform, and monitoring the monitoring service through the preset server monitoring platform so as to obtain the use condition of the monitoring resource of the monitoring service and abnormal information of the monitoring service;
the capacity determining module is used for acquiring the current concurrency number and the unprocessed request number of the preset server monitoring platform according to the use condition of the monitoring resources and the abnormal information of the monitoring service, and determining the processing capacity of the current payment service of the current system according to the current concurrency number and the unprocessed request number;
and the test adjustment module is used for adjusting the monitoring configuration and the concurrent pressure test intensity of the monitoring service according to the processing capacity, and continuing to perform the concurrent pressure intensity test according to the adjusted monitoring configuration and the concurrent pressure test intensity.
9. An electronic device comprising a processor and a memory; wherein the memory is for storing a computer program to be loaded and executed by the processor to implement the concurrent stress test method according to any one of claims 1 to 7.
10. A computer readable storage medium for storing a computer program which, when executed by a processor, implements a concurrent stress test method according to any one of claims 1 to 7.
CN202311682618.6A 2023-12-07 2023-12-07 Concurrent pressure test method, concurrent pressure test device, concurrent pressure test equipment and storage medium Pending CN117608946A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311682618.6A CN117608946A (en) 2023-12-07 2023-12-07 Concurrent pressure test method, concurrent pressure test device, concurrent pressure test equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311682618.6A CN117608946A (en) 2023-12-07 2023-12-07 Concurrent pressure test method, concurrent pressure test device, concurrent pressure test equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117608946A true CN117608946A (en) 2024-02-27

Family

ID=89953460

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311682618.6A Pending CN117608946A (en) 2023-12-07 2023-12-07 Concurrent pressure test method, concurrent pressure test device, concurrent pressure test equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117608946A (en)

Similar Documents

Publication Publication Date Title
CN107809331B (en) Method and device for identifying abnormal flow
CN108984370A (en) A kind of method and apparatus of determining monitoring threshold value
WO2007078643A2 (en) Load balancing mechanism using resource availability profiles
CN108415811B (en) Method and device for monitoring business logic
CN112187512B (en) Port automatic expansion method, device and equipment based on flow monitoring
EP3932025B1 (en) Computing resource scheduling method, scheduler, internet of things system, and computer readable medium
CN113704063B (en) Performance monitoring method, device, equipment and storage medium of cloud mobile phone
CN110727560A (en) Cloud service alarm method and device
CN108199861B (en) Computer room management method and device
CN112100034A (en) Service monitoring method and device
CN113377559A (en) Big data based exception handling method, device, equipment and storage medium
US11146447B2 (en) Method and apparatus of establishing computer network monitoring criteria
CN110727563A (en) Cloud service alarm method and device for preset customer
CN113760634A (en) Data processing method and device
CN117608946A (en) Concurrent pressure test method, concurrent pressure test device, concurrent pressure test equipment and storage medium
EP4050487A1 (en) Method and apparatus for determining collection frequency, computer device, and storage medium
CN115296979B (en) Fault processing method, device, equipment and storage medium
US7606745B1 (en) System and method for tracking a billing cycle
CN114465919A (en) Network service testing method, system, electronic equipment and storage medium
CN114398222A (en) Method for declaratively visually configuring Prometheus monitoring alarm
CN114185612B (en) Method, device, equipment and storage medium for updating data
CN110852537A (en) Service quality detection method and device
CN110955579A (en) Ambari-based large data platform monitoring method
CN115686583B (en) Mass Internet of things equipment upgrading method and device, electronic equipment and storage medium
WO2022001257A1 (en) Data analysis method, electronic device, and storage medium

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