CN111722917A - Resource scheduling method, device and equipment for performance test task - Google Patents

Resource scheduling method, device and equipment for performance test task Download PDF

Info

Publication number
CN111722917A
CN111722917A CN202010617371.XA CN202010617371A CN111722917A CN 111722917 A CN111722917 A CN 111722917A CN 202010617371 A CN202010617371 A CN 202010617371A CN 111722917 A CN111722917 A CN 111722917A
Authority
CN
China
Prior art keywords
performance test
task
test task
server cluster
resource scheduling
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
CN202010617371.XA
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.)
Beijing Benying Network Technology Co Ltd
Beijing Laiye Network Technology Co Ltd
Original Assignee
Beijing Benying Network Technology Co Ltd
Beijing Laiye Network 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 Beijing Benying Network Technology Co Ltd, Beijing Laiye Network Technology Co Ltd filed Critical Beijing Benying Network Technology Co Ltd
Priority to CN202010617371.XA priority Critical patent/CN111722917A/en
Publication of CN111722917A publication Critical patent/CN111722917A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5022Mechanisms to release resources

Landscapes

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

Abstract

The application provides a resource scheduling method, a device and equipment for a performance test task, wherein the method comprises the following steps: s1, outputting a resource scheduling interface of the performance test task; s2, receiving a control instruction input by a user, wherein the control instruction is used for triggering a performance test task; and S3, completing resource scheduling of the performance test task according to the control instruction. The method can reasonably schedule the server for the performance test task, and ensure the smooth execution of the performance test task and the effective utilization of resources; meanwhile, performance test tasks can be triggered in different modes according to different control instructions input by a user, and the requirements of different performance test scenes can be met.

Description

Resource scheduling method, device and equipment for performance test task
Technical Field
The embodiment of the application relates to the technical field of data processing, in particular to a resource scheduling method, device and equipment for a performance test task.
Background
The cloud computing platform is also called a cloud platform, and is a service based on hardware resources and software resources, and provides computing, network and storage capabilities. The cloud platform integrates three core elements of internet application in the traditional sense: and the computing, storage and network provide the public Internet infrastructure service for the users according to different requirements of the users.
In order to ensure the reliability of the software, performance tests, such as pressure tests, benchmark tests, limit tests, etc., are generally required to be performed on the software, and the software is subjected to different performance tests. When the performance test is performed on the software based on the cloud platform, a user does not need to purchase hardware in advance, and the server cluster can be acquired through the cloud platform to execute a corresponding performance test task. However, on the one hand, the types of performance testing tasks differ, and the number of servers that are required may differ; on the other hand, the performance test task may be concurrent, and therefore, only a reasonable scheduling server can ensure the smooth execution of the performance test task and the effective utilization of resources, and therefore, there is an urgent need to invent a resource scheduling method for the performance test task to ensure the smooth execution of the performance test task and the effective utilization of resources.
Disclosure of Invention
The application provides a resource scheduling method, device and equipment for a performance test task, which can reasonably schedule a server for the performance test task, and ensure the smooth execution of the performance test task and the effective utilization of resources.
In a first aspect, the present application provides a resource scheduling method for a performance test task, which is applied to an electronic device, and the method includes: s1, outputting a resource scheduling interface of the performance test task; s2, receiving a control instruction input by a user, wherein the control instruction is used for triggering a performance test task; and S3, completing resource scheduling of the performance test task according to the control instruction.
Optionally, the method further includes: and S4, outputting resource scheduling feedback prompt information.
Optionally, the S1 specifically includes: s11, receiving a scheduling instruction input by a user; s12, calling a task flow of resource scheduling of the performance test task according to the scheduling instruction; and S13, determining and outputting the resource scheduling interface information of the performance test task corresponding to the task flow.
Optionally, S3 specifically includes: s31, monitoring whether a performance test task exists through a scheduling process, wherein the scheduling process is a preset process; s32, if the performance test task exists, judging whether an unreleased idle server cluster exists through a scheduling process; and S33, if the unreleased idle server cluster does not exist, acquiring the server cluster from the cloud platform through the scheduling process, and executing the performance test task through the server cluster.
Optionally, S3 further includes: and S34, if the unreleased idle server cluster exists, executing the performance test task through the unreleased idle server cluster.
Optionally, S34 specifically includes: s341, determining the number of server clusters required by the performance test task; s342, judging whether the number is less than or equal to the number of the unreleased idle server clusters; and S343, if the number is less than or equal to the number of the unreleased idle server clusters, executing the performance test task through the unreleased idle server clusters.
Optionally, the server cluster includes a master server and at least one slave server.
Optionally, S3 further includes: s35, judging whether the performance test task is executed through a scheduling process; and S36, if the performance testing task is completed, releasing the server cluster after the preset time.
Optionally, if the number of the performance testing tasks is at least two, S343 includes: distributing a server cluster for at least one performance test task according to at least two performance test tasks and a preset rule; at least one performance testing task is performed by the cluster of servers.
Optionally, a server cluster is allocated to at least one performance test task according to at least two performance test tasks and a preset rule, and the server cluster is allocated to at least one performance test task according to the sequence of the monitored time of any one performance test task in the at least two performance test tasks; and/or allocating a server cluster to at least one performance testing task according to the number of the server clusters required by any performance testing task in the at least two performance testing tasks when executed.
Optionally, S4 includes: s41, receiving at least one piece of feedback information sent by the cloud platform, wherein the feedback information comprises at least one of the following information: error feedback information, pressure feedback information, and result feedback information; and S42, sending a corresponding prompt message to the user according to the feedback information.
In a second aspect, the present application provides a resource scheduling apparatus for a performance test task, including:
and the output module is used for outputting the resource scheduling interface information of the performance test task.
And the receiving module is used for receiving a control instruction input by a user, and the control instruction is used for triggering the performance test task.
And the processing module is used for finishing the resource scheduling of the performance testing task according to the control instruction.
Optionally, the output module is further configured to output resource scheduling feedback prompt information.
Optionally, the output module is specifically configured to receive a scheduling instruction input by a user; according to the scheduling instruction, a task flow of resource scheduling of the performance testing task is called; and determining and outputting the resource scheduling interface information of the performance test task corresponding to the task flow.
Optionally, the output module is specifically configured to receive a scheduling instruction input by a user; according to the scheduling instruction, a task flow of resource scheduling of the performance testing task is called; and determining and outputting the resource scheduling interface information of the performance test task corresponding to the task flow.
Optionally, the processing module is specifically configured to monitor whether a performance test task exists through a scheduling process, where the scheduling process is a preset process; if the performance test task exists, judging whether an unreleased idle server cluster exists through a scheduling process; and if the unreleased idle server cluster does not exist, acquiring the server cluster from the cloud platform through the scheduling process, and executing the performance test task through the server cluster.
Optionally, the processing module is specifically configured to execute the performance test task through the unreleased idle server cluster if the unreleased idle server cluster exists.
Optionally, the processing module is specifically configured to determine the number of server clusters required for executing the performance test task; judging whether the number is less than or equal to the number of the unreleased idle server clusters; and if the number of the idle server clusters is less than or equal to the number of the idle server clusters which are not released, executing the performance testing task through the idle server clusters which are not released.
Optionally, the server cluster includes a master server and at least one slave server.
Optionally, the processing module is specifically configured to determine whether the performance test task is executed through a scheduling process; and if the performance testing task is completed, releasing the server cluster after the preset time.
Optionally, if the number of the performance test tasks is at least two, the processing module is specifically configured to allocate a server cluster to at least one performance test task according to the at least two performance test tasks and a preset rule; at least one performance testing task is performed by the cluster of servers.
Optionally, the processing module is specifically configured to allocate a server cluster to at least one performance test task according to a sequence of monitored times of any one of the at least two performance test tasks; and/or allocating a server cluster to at least one performance testing task according to the number of the server clusters required by any performance testing task in the at least two performance testing tasks when executed.
Optionally, the output module is specifically configured to receive at least one piece of feedback information sent by the cloud platform, where the feedback information includes at least one of the following information: error feedback information, pressure feedback information, and result feedback information; and sending a corresponding prompt message to the user according to the feedback information.
In a third aspect, the present application provides an electronic device, comprising: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of the first aspect or the alternatives of the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium having stored thereon computer-executable instructions for implementing the method as described in the first aspect or the alternatives thereof when executed by a processor.
According to the resource scheduling method, device and equipment for the performance test task, the resource scheduling interface of the performance test task is output; receiving a control instruction input by a user, wherein the control instruction is used for triggering a performance test task; according to the control instruction, the resource scheduling of the performance testing task is completed, the server can be reasonably scheduled for the performance testing task, and the smooth execution of the performance testing task and the effective utilization of resources are guaranteed; meanwhile, performance test tasks can be triggered in different modes according to different control instructions input by a user, and the requirements of different performance test scenes can be met. The method can also prompt the user that the performance test task fails in the execution process by outputting the resource scheduling feedback prompt information, can enable the user to find problems as early as possible, and can facilitate the user fault location by outputting different prompt information.
Drawings
FIG. 1 is an architecture diagram of a resource scheduling system for performance testing tasks according to the present application;
FIG. 2 is a flowchart illustrating a resource scheduling method for a performance test task according to the present application;
FIG. 3 is a schematic view of an interactive interface of an electronic device provided herein;
FIG. 4 is a flowchart illustrating a resource scheduling method for a performance test task according to the present application;
FIG. 5 is another schematic view of an interactive interface of an electronic device provided herein;
FIG. 6 is a further schematic view of an interactive interface of the electronic device provided herein;
FIG. 7 is a schematic structural diagram of a resource scheduling apparatus for performance testing tasks according to the present application;
fig. 8 is a schematic structural diagram of an electronic device provided in the present application.
With the foregoing drawings in mind, certain embodiments of the disclosure have been shown and described in more detail below. These drawings and written description are not intended to limit the scope of the disclosed concepts in any way, but rather to illustrate the concepts of the disclosure to those skilled in the art by reference to specific embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The cloud computing platform is also called a cloud platform, and is a service based on hardware resources and software resources, and provides computing, network and storage capabilities. The cloud platform integrates three core elements of internet application in the traditional sense: and the computing, storage and network provide the public Internet infrastructure service for the users according to different requirements of the users.
In order to ensure the reliability of the software, performance tests such as pressure tests, benchmark tests, limit tests and the like are generally required to be performed on the software, and for different performance tests, when the performance tests are performed on the software based on a cloud platform, a user does not need to purchase hardware in advance, and a server cluster can be acquired through the cloud platform to execute corresponding performance test tasks. However, on the one hand, the types of performance testing tasks differ, and the number of servers that are required may differ; on the other hand, the performance test task may be concurrent, and therefore, only a reasonable scheduling server can ensure the smooth execution of the performance test task and the effective utilization of resources, and therefore, there is an urgent need to invent a resource scheduling method for the performance test task to ensure the smooth execution of the performance test task and the effective utilization of resources.
Fig. 1 is an architecture diagram of a resource scheduling system for performance test tasks provided in the present application, and as shown in fig. 1, the system includes an electronic device 11, a cloud platform 12, and a server cluster 13.
The electronic device 11 is in communication connection with the cloud platform 12, and the cloud platform 12 is in communication connection with the server cluster 13. Specifically, the electronic device may obtain at least one server in the server cluster 13 through the cloud platform 12 according to the received performance test task, so that the electronic device 11 is in communication connection with the obtained server in the server cluster, and the performance test task is executed through the server.
And the cloud platform 12 is used for enabling the electronic equipment 11 and the servers in the server cluster 13 to be in communication connection.
The server cluster 13 includes a plurality of servers.
Fig. 2 is a schematic flowchart of a resource scheduling method for a performance test task provided in the present application, where the method is applied to an electronic device, and as shown in fig. 2, the method includes:
and S201, outputting resource scheduling interface information of the performance test task.
The electronic equipment can output the resource scheduling interface of the performance testing task through the interactive interface of the electronic equipment.
And S202, receiving a control instruction input by a user.
The control instruction is used for triggering the performance test task.
The electronic equipment can receive a control instruction input by a user through the interactive interface, for example, the user can trigger a performance test task by clicking a key on the interactive interface of the electronic equipment; the timing duration can also be input through an interactive interface of the electronic equipment, so that the electronic equipment triggers the performance test task after the timing duration is taken as the timing duration, or periodically triggers the performance test task by taking the timing duration as a period.
The following illustrates, by way of a schematic diagram, an electronic device receiving a control instruction input by a user. Fig. 3 is a schematic view of an interactive interface of the electronic device provided in the present application, and as shown in fig. 3, a user may input a control instruction by clicking a "start performance test" button on a resource scheduling interface of a performance test task, so as to trigger the performance test task.
Optionally, the user may also input a control instruction through an interface of the electronic device to trigger the performance test task. For example, the electronic device 1 and the electronic device 2 are communicatively connected, wherein the electronic device 2 is used for executing a resource scheduling method of a performance test task, and a user can control the electronic device 1 to input a control instruction to the electronic device 2.
And S203, completing resource scheduling of the performance test task according to the control instruction.
The resource scheduling of the performance testing task is to schedule a proper amount of servers for the performance testing task, and is used for completing the performance testing task. And according to the control instruction, completing resource scheduling of the performance test task, namely scheduling a proper amount of servers for the performance test task according to the performance test task triggered by the control instruction input by the user to complete the performance test task.
According to the resource scheduling method of the performance test task, the resource scheduling interface of the performance test task is output; receiving a control instruction input by a user, wherein the control instruction is used for triggering a performance test task; according to the control instruction, the resource scheduling of the performance testing task is completed, the server can be reasonably scheduled for the performance testing task, and the smooth execution of the performance testing task and the effective utilization of resources are guaranteed; meanwhile, performance test tasks can be triggered in different modes according to different control instructions input by a user, and the requirements of different performance test scenes can be met.
The reliability of the performance test task in the execution process can affect the performance test result, when the performance test task fails in the execution process, if the user can be reminded in time, the failure can be solved as early as possible, and the loss is reduced. Fig. 4 is a schematic flowchart of a resource scheduling method for a performance test task provided in the present application, and as shown in fig. 4, the method includes:
and S401, outputting resource scheduling interface information of the performance test task.
The electronic equipment can output the resource scheduling interface information of the performance testing task through the interactive interface.
Optionally, one possible implementation manner of the resource scheduling interface for outputting the performance test task is as follows: receiving a scheduling instruction input by a user; according to the scheduling instruction, a task flow of resource scheduling of the performance testing task is called; and determining and outputting the resource scheduling interface information of the performance test task corresponding to the task flow.
By the method, the user can control the electronic equipment to output the resource scheduling interface of the performance test task only by clicking the key on the interface, and the operation is simple.
Fig. 5 is another schematic view of an interaction interface of the electronic device provided in the present application, as shown in fig. 5, a user may input a scheduling instruction by clicking a key "resource scheduling" on a page 501, the electronic device invokes a task flow of resource scheduling of a performance test task according to the scheduling instruction, determines and outputs resource scheduling interface information of the performance test task corresponding to the task flow, and the user may start a performance test by clicking a key "on a second page 502, and input a control instruction, to trigger the performance test task.
S402, receiving a control instruction input by a user, wherein the control instruction is used for triggering a performance test task.
S402 is similar to S202, and for specific description, reference may be made to S202, which is not described herein again.
And S403, completing resource scheduling of the performance test task according to the control instruction.
The resource scheduling of the performance testing task is to schedule a proper amount of servers for the performance testing task, and is used for completing the performance testing task.
Optionally, one possible implementation manner of completing resource scheduling of the performance test task according to the control instruction is as follows: monitoring whether a performance test task exists or not through a scheduling process, wherein the scheduling process is a preset process; if the performance test task exists, judging whether an unreleased idle server cluster exists through a scheduling process; and if the unreleased idle server cluster does not exist, acquiring the server cluster from the cloud platform through the scheduling process, and executing the performance test task through the server cluster.
The scheduling process is a preset process and belongs to a resident process in the system, when no task runs, only one scheduling process is reserved in the system and is only responsible for allocating resources, and performance test service is not provided, so that the computation amount is small, and the scheduling process belongs to a light process.
By the method, the electronic equipment can monitor whether the performance test task is received or not through a light process; whether a new server cluster is applied to the cloud platform or not can be determined by judging whether an unreleased idle server cluster exists or not, so that excessive server clusters can be prevented from being applied, the calculation amount of the electronic equipment is increased, the resource scheduling efficiency of a performance test task is reduced, and resource waste can be avoided.
Optionally, the possible implementation manner of completing the resource scheduling of the performance test task according to the control instruction further includes: and if the unreleased idle server cluster exists, executing the performance test task through the unreleased idle server cluster.
Specifically, if there is an unreleased idle server cluster, a possible implementation manner for executing the performance test task by the unreleased idle server cluster is as follows: determining the number of server clusters required for executing the performance test task; judging whether the number is less than or equal to the number of the unreleased idle server clusters; and if the number of the idle server clusters is less than or equal to the number of the idle server clusters which are not released, executing the performance testing task through the idle server clusters which are not released.
For example, the number of server clusters required to execute the performance test task 3 is 9, the number of unreleased idle server clusters is 10, and since the number of server clusters required to execute the performance test task 3 is smaller than the number of unreleased idle server clusters, the performance test task 3 can be executed by the unreleased idle server clusters. It can be understood that, if the number of server clusters required for executing the performance test task is greater than that of the unreleased idle server clusters, the performance test task cannot be executed by the unreleased idle server clusters, and the server clusters need to be acquired from the cloud platform for the performance test task through the scheduling process.
By the method, the performance testing task can be ensured to be correctly executed because the number of the servers for executing the performance testing task is matched with the number of the servers required by the performance testing task.
Optionally, if the number of the performance test tasks is at least two, and if the number is less than or equal to the number of the unreleased idle server clusters, another possible implementation manner for executing the performance test tasks by the unreleased idle server clusters is as follows: distributing a server cluster for at least one performance test task according to at least two performance test tasks and a preset rule; at least one performance testing task is performed by the cluster of servers.
By the method, the server cluster can be allocated to at least one performance test task under the condition that the unreleased idle server cluster exists, so that the performance test task can be timely and accurately executed, and server resources can be reasonably utilized.
Specifically, according to at least two performance test tasks and a preset rule, allocating a server cluster to at least one performance test task may be: and allocating a server cluster to at least one performance test task according to the sequence of the monitored time of any one of the at least two performance test tasks, and/or allocating a server cluster to at least one performance test task according to the number of the server clusters required by any one of the at least two performance test tasks when executed.
For example, assume that the number of server clusters required to perform the performance testing task 4 is 100, and the number of server clusters required to perform the performance testing task 5 is 10; if the number of the idle server clusters which are not released is 10, the performance test task 5 can acquire the idle server clusters which are not released, and execute the performance test task through the server clusters; and the performance test task 4 needs to apply a new server cluster for the electronic device to the cloud platform through a scheduling process.
By the method, the unreleased idle server clusters can be reasonably distributed, and the performance test task of obtaining the unreleased server clusters is guaranteed to be correctly executed.
Optionally, if there is no unreleased idle server cluster, the server cluster is obtained from the cloud platform to the cloud platform through the scheduling process, and a possible implementation manner of executing the performance test task through the server cluster is as follows: acquiring a server cluster from a cloud platform through a scheduling process, wherein the server cluster comprises a main server and at least one slave server; and performing performance test through the master server and the slave server.
The implementation strategy of multitask has 3 ways:
1. all tasks share a master server and a slave server. If a plurality of tasks run in parallel, the tasks will interfere with each other, so to avoid mutual interference, the tasks need to be executed in series as much as possible, however, the task serial execution will reduce the task throughput of the whole system, and at the same time, different requirements of each task on the number of test server clusters cannot be met.
2. All tasks share a primary server, but exclusively a set of secondary servers. The system structure can run a plurality of test tasks on the premise that the pressure of the main server is not high, but the problem that the task throughput is not high and the test results are mutually interfered still exists in the strategy because the pressure of each test task on the main server is uncertain.
3. Each test task has a main server and a group of subordinate servers, and the quantity of the allocated resources is different according to different requirements of the tasks. Through the multi-master server strategy, the task throughput can be improved, and meanwhile, the mutual influence during the concurrent execution of the tasks can be avoided. The optional mode provided by the application adopts the strategy, so that the task throughput can be improved, and the mutual influence during the concurrent execution of the tasks is avoided.
Optionally, another possible implementation manner of completing resource scheduling of the performance test task according to the control instruction is as follows: monitoring whether a performance test task exists or not through a scheduling process, wherein the scheduling process is a preset process; if the performance test task exists, judging whether an unreleased idle server cluster exists through a scheduling process; if the unreleased idle server cluster does not exist, the server cluster is obtained from the cloud platform through the scheduling process, and the performance test task is executed through the server cluster; and judging whether the performance test task is executed completely or not through the scheduling process, and if the performance test is finished, releasing the new server cluster after preset time.
Due to the fact that the possible interval time between the test tasks is short, the performance test task 2 is triggered within the preset time after the performance test task 1 is executed, through the method, after the performance test task 1 of the electronic equipment is executed, the server cluster used for executing the performance test task 1 does not need to be released, the server cluster can be used for continuously executing the performance test task 2, the time for reapplying the server cluster for the performance test task 2 can be further reduced, and the scheduling efficiency of performance test task resources is improved.
And S404, outputting resource scheduling feedback prompt information.
The electronic equipment can output resource scheduling feedback prompt information through an interactive interface; and the resource scheduling feedback prompt information can be output to other electronic equipment. For example, the electronic device may output the resource scheduling feedback prompt information to a terminal device such as a mobile phone or a computer of the user through a mail or a short message.
Optionally, one possible implementation manner of outputting the resource scheduling feedback prompt information is: receiving at least one piece of feedback information sent by a cloud platform, wherein the feedback information comprises at least one of the following information: error feedback information, pressure feedback information, and result feedback information; and sending a corresponding prompt message to the user according to the feedback information.
The error feedback information is that for abnormal information in the test process, whether the abnormal information occurs in the test process is determined by collecting a Jmeter log, if the abnormal information occurs, corresponding prompt information is generated, and near real-time alarming is achieved, so that a user can find problems as soon as possible.
The pressure feedback information refers to that whether indexes of the electronic equipment are abnormal or not is determined by monitoring a plurality of indexes of the electronic equipment in the performance test process. Once the index is found to be abnormal, the performance test is immediately stopped, and corresponding prompt information is generated to inform a tester, so that the target system is prevented from being damaged.
The result feedback information means that after each performance test is completed, the electronic equipment stores the relevant indexes of the test result into the database, compares the difference between the test result and the historical test result, and generates corresponding prompt information to inform the tester if the difference exists.
For example, fig. 6 is a further schematic diagram of the interactive interface of the electronic device provided in the present application, as shown in fig. 6, an exception occurs during the performance testing task 1, and the electronic device outputs "note that the performance testing task 1 is abnormal during the testing process | through its interactive interface! ". Specifically, the electronic device may output different prompt messages according to different feedback messages, for example, when the electronic device receives an error feedback message, the electronic device outputs "notice, abnormal test process! "; when the electronic equipment receives the pressure feedback information, the electronic equipment outputs attention, index abnormity through the interactive interface! "; when the electronic equipment receives the result feedback information, the electronic equipment outputs attention, abnormal test result | through the interactive interface! Through different prompt messages, the user can quickly locate the fault.
Optionally, the performance test may be accessed into an automation process of a Continuous Integration (CI) of an enterprise, so as to provide a Continuous performance reference index for the service system.
According to the resource scheduling method for the performance test task, on the basis of the embodiment, the corresponding prompt information is output according to different feedback information, so that the user can find the problem as early as possible, and the user can conveniently locate the fault by outputting different prompt information.
Fig. 7 is a schematic structural diagram of a resource scheduling apparatus for a performance test task according to the present application, and as shown in fig. 7, the apparatus includes:
and the output module 71 is used for outputting a resource scheduling interface of the performance test task.
And the receiving module 72 is configured to receive a control instruction input by a user, where the control instruction is used to trigger a performance test task.
And the processing module 73 is configured to complete resource scheduling of the performance test task according to the control instruction.
Optionally, the output module 71 is further configured to output resource scheduling feedback prompt information.
Optionally, the output module 71 is specifically configured to receive a scheduling instruction input by a user; according to the scheduling instruction, a task flow of resource scheduling of the performance testing task is called; and determining and outputting the resource scheduling interface information of the performance test task corresponding to the task flow.
Optionally, the processing module 73 is specifically configured to monitor whether a performance test task exists through a scheduling process, where the scheduling process is a preset process; if the performance test task exists, judging whether an unreleased idle server cluster exists through a scheduling process; and if the unreleased idle server cluster does not exist, acquiring the server cluster from the cloud platform through the scheduling process, and executing the performance test task through the server cluster.
Optionally, the processing module 73 is specifically configured to execute the performance test task through the unreleased idle server cluster if the unreleased idle server cluster exists.
Optionally, the processing module 73 is specifically configured to determine the number of server clusters required for executing the performance test task; judging whether the number is less than or equal to the number of the unreleased idle server clusters; and if the number of the idle server clusters is less than or equal to the number of the idle server clusters which are not released, executing the performance testing task through the idle server clusters which are not released.
Optionally, the server cluster includes a master server and at least one slave server.
Optionally, the processing module 73 is specifically configured to determine whether the performance test task is executed through a scheduling process; and if the performance testing task is completed, releasing the server cluster after the preset time.
Optionally, if the number of the performance test tasks is at least two, the processing module is specifically configured to allocate a server cluster to at least one performance test task according to the at least two performance test tasks and a preset rule; at least one performance testing task is performed by the cluster of servers.
Optionally, the processing module 73 is specifically configured to allocate a server cluster to at least one performance test task according to a sequence of monitored times of any one of the at least two performance test tasks; and/or allocating a server cluster to at least one performance testing task according to the number of the server clusters required by any performance testing task in the at least two performance testing tasks when executed.
Optionally, the output module 71 is specifically configured to receive at least one piece of feedback information sent by the cloud platform, where the feedback information includes at least one of the following information: error feedback information, pressure feedback information, and result feedback information; and sending a corresponding prompt message to the user according to the feedback information.
The resource scheduling apparatus for the performance test task may execute the resource scheduling method for the performance test task, and the content and effect thereof may refer to the method embodiment section, which is not described herein again.
Fig. 8 is a schematic structural diagram of an electronic device provided in the present application, and as shown in fig. 8, the electronic device of this embodiment includes: a processor 81, a memory 82; the processor 81 is communicatively connected to the memory 82. The memory 82 is used to store computer programs. The processor 81 is adapted to call a computer program stored in the memory 82 to implement the method in the above-described method embodiment.
Optionally, the electronic device further comprises: a transceiver 83 for enabling communication with other devices.
The electronic device may execute the resource scheduling method for the performance test task, and the content and effect of the method may refer to the method embodiment section, which is not described herein again.
The application also provides a computer-readable storage medium, in which computer-executable instructions are stored, and the computer-executable instructions are executed by a processor to implement the resource scheduling method for the performance test task.
The content and effect of the resource scheduling method for the performance test task can be referred to the method embodiment section when the computer execution instruction stored in the computer-readable storage medium is executed by the processor, and details are not described here.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims. It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (14)

1. A resource scheduling method of a performance test task is applied to electronic equipment, and the method comprises the following steps:
s1, outputting resource scheduling interface information of the performance test task;
s2, receiving a control instruction input by a user, wherein the control instruction is used for triggering a performance test task;
and S3, completing resource scheduling of the performance test task according to the control instruction.
2. The method of claim 1, further comprising:
and S4, outputting resource scheduling feedback prompt information.
3. The method according to claim 1, wherein the S1 specifically includes:
s11, receiving a scheduling instruction input by a user;
s12, calling a task flow of resource scheduling of the performance test task according to the scheduling instruction;
and S13, determining and outputting the resource scheduling interface information of the performance test task corresponding to the task flow.
4. The method according to claim 1, wherein the S3 specifically includes:
s31, monitoring whether a performance test task exists through a scheduling process, wherein the scheduling process is a preset process;
s32, if the performance test task exists, judging whether an unreleased idle server cluster exists through the scheduling process;
and S33, if the unreleased idle server cluster does not exist, acquiring the server cluster from the cloud platform through the scheduling process, and executing the performance test task through the server cluster.
5. The method according to claim 4, wherein the S3 further comprises:
and S34, if the unreleased idle server cluster exists, executing the performance test task through the unreleased idle server cluster.
6. The method according to claim 5, wherein the S34 specifically includes:
s341, determining the number of server clusters required for executing the performance test task;
s342, judging whether the number is less than or equal to the unreleased idle server cluster;
s343, if the number is less than or equal to the unreleased idle server cluster, executing the performance test task through the unreleased idle server cluster.
7. The method of claim 4, wherein the server cluster comprises a master server and at least one slave server.
8. The method according to claim 4, wherein the S3 further comprises:
s35, judging whether the performance test task is executed or not through the scheduling process;
and S36, if the performance testing task is completed, releasing the server cluster after a preset time.
9. The method according to claim 3, wherein if the number of the performance testing tasks is at least two, the step S343 comprises:
distributing a server cluster for at least one performance test task according to the at least two performance test tasks and a preset rule;
executing, by the server cluster, the at least one performance testing task.
10. The method according to claim 9, wherein said allocating a server cluster to at least one performance testing task according to the at least two performance testing tasks and a preset rule comprises:
according to the sequence of the monitored time of any one of the at least two performance testing tasks, distributing a server cluster for at least one performance testing task;
and/or the presence of a gas in the gas,
and distributing the server clusters for at least one performance testing task according to the number of the server clusters required by any performance testing task in the at least two performance testing tasks when executed.
11. The method according to claim 2, wherein the S4 includes:
s41, receiving at least one piece of feedback information sent by the cloud platform, wherein the feedback information comprises at least one of the following information: error feedback information, pressure feedback information, and result feedback information;
and S42, sending corresponding prompt information to the user according to the feedback information.
12. A resource scheduling apparatus for a performance test task, comprising:
the output device is used for outputting the resource scheduling interface information of the performance test task;
the receiving device is used for receiving a control instruction input by a user, and the control instruction is used for triggering a performance test task;
and the processing device is used for finishing the resource scheduling of the performance testing task according to the control instruction.
13. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1 to 11.
14. A computer-readable storage medium having computer-executable instructions stored thereon, which when executed by a processor, are configured to implement the method of any one of claims 1 to 11.
CN202010617371.XA 2020-06-30 2020-06-30 Resource scheduling method, device and equipment for performance test task Pending CN111722917A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010617371.XA CN111722917A (en) 2020-06-30 2020-06-30 Resource scheduling method, device and equipment for performance test task

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010617371.XA CN111722917A (en) 2020-06-30 2020-06-30 Resource scheduling method, device and equipment for performance test task

Publications (1)

Publication Number Publication Date
CN111722917A true CN111722917A (en) 2020-09-29

Family

ID=72570676

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010617371.XA Pending CN111722917A (en) 2020-06-30 2020-06-30 Resource scheduling method, device and equipment for performance test task

Country Status (1)

Country Link
CN (1) CN111722917A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113886050A (en) * 2021-10-21 2022-01-04 中国联合网络通信集团有限公司 Pressure testing method, device, equipment and storage medium
CN114741284A (en) * 2022-03-30 2022-07-12 中国电子产品可靠性与环境试验研究所((工业和信息化部电子第五研究所)(中国赛宝实验室)) Task reliability evaluation method and device, computer equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090199047A1 (en) * 2008-01-31 2009-08-06 Yahoo! Inc. Executing software performance test jobs in a clustered system
CN105933137A (en) * 2015-12-21 2016-09-07 中国银联股份有限公司 Resource management method, device and system
CN107992362A (en) * 2016-10-27 2018-05-04 北京京东尚科信息技术有限公司 The method, apparatus and system of automated performance testing
CN108563544A (en) * 2018-03-26 2018-09-21 平安普惠企业管理有限公司 System performance testing method, apparatus, computer equipment and storage medium
CN109660421A (en) * 2018-10-26 2019-04-19 平安科技(深圳)有限公司 Method, apparatus, server and the storage medium of flexible scheduling resource

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090199047A1 (en) * 2008-01-31 2009-08-06 Yahoo! Inc. Executing software performance test jobs in a clustered system
CN105933137A (en) * 2015-12-21 2016-09-07 中国银联股份有限公司 Resource management method, device and system
CN107992362A (en) * 2016-10-27 2018-05-04 北京京东尚科信息技术有限公司 The method, apparatus and system of automated performance testing
CN108563544A (en) * 2018-03-26 2018-09-21 平安普惠企业管理有限公司 System performance testing method, apparatus, computer equipment and storage medium
CN109660421A (en) * 2018-10-26 2019-04-19 平安科技(深圳)有限公司 Method, apparatus, server and the storage medium of flexible scheduling resource

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113886050A (en) * 2021-10-21 2022-01-04 中国联合网络通信集团有限公司 Pressure testing method, device, equipment and storage medium
CN113886050B (en) * 2021-10-21 2024-06-04 中国联合网络通信集团有限公司 Pressure test method, device, equipment and storage medium
CN114741284A (en) * 2022-03-30 2022-07-12 中国电子产品可靠性与环境试验研究所((工业和信息化部电子第五研究所)(中国赛宝实验室)) Task reliability evaluation method and device, computer equipment and storage medium
CN114741284B (en) * 2022-03-30 2023-02-07 中国电子产品可靠性与环境试验研究所((工业和信息化部电子第五研究所)(中国赛宝实验室)) Task reliability evaluation method and device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
US11775416B2 (en) System and method for continuous testing and delivery of software
Farshchi et al. Experience report: Anomaly detection of cloud application operations using log and cloud metric correlation analysis
CN106844198B (en) Distributed dispatching automation test platform and method
Xu et al. POD-Diagnosis: Error diagnosis of sporadic operations on cloud applications
EP2510653B1 (en) Cloud computing monitoring and management system
CN108845954B (en) Pressure testing method, system and storage medium
CN110162471A (en) A kind of method for testing pressure and system based on container cloud
CN111552556B (en) GPU cluster service management system and method
CN107992362B (en) Method, device and system for automatic performance test
CN112631846A (en) Fault drilling method and device, computer equipment and storage medium
CN111722917A (en) Resource scheduling method, device and equipment for performance test task
CN111008105A (en) Distributed system call relation visualization method and device
CN114422386B (en) Monitoring method and device for micro-service gateway
CN112202647B (en) Test method, device and test equipment in block chain network
CN112925648B (en) Business strategy issuing method and device
CN111082964B (en) Distribution method and device of configuration information
Besaw et al. Cluster system management
CN110795330A (en) Monkey pressure testing method and device
CN113342650A (en) Chaos engineering method and device for distributed system
CN114238091A (en) Resident interactive service cluster testing method and system
CN114461957A (en) Method, device and equipment for issuing road tools and storage medium
Edmondson et al. Automating testing of service-oriented mobile applications with distributed knowledge and reasoning
CN111381921A (en) Front-end and back-end separation system and method based on Ambari
CN111008116A (en) Timing snapshot characteristic testing method and system
CN113031960B (en) Code compiling method, device, server 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