CN109446074B - Pressure testing method and device for on-demand distribution system, computer device and computer storage medium - Google Patents

Pressure testing method and device for on-demand distribution system, computer device and computer storage medium Download PDF

Info

Publication number
CN109446074B
CN109446074B CN201811143505.8A CN201811143505A CN109446074B CN 109446074 B CN109446074 B CN 109446074B CN 201811143505 A CN201811143505 A CN 201811143505A CN 109446074 B CN109446074 B CN 109446074B
Authority
CN
China
Prior art keywords
file
distribution system
pressure measurement
demand
demand distribution
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.)
Active
Application number
CN201811143505.8A
Other languages
Chinese (zh)
Other versions
CN109446074A (en
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.)
Shenzhen Onething Technology Co Ltd
Original Assignee
Shenzhen Onething 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 Shenzhen Onething Technology Co Ltd filed Critical Shenzhen Onething Technology Co Ltd
Priority to CN201811143505.8A priority Critical patent/CN109446074B/en
Publication of CN109446074A publication Critical patent/CN109446074A/en
Application granted granted Critical
Publication of CN109446074B publication Critical patent/CN109446074B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/4424Monitoring of the internal components or processes of the client device, e.g. CPU or memory load, processing speed, timer, counter or percentage of the hard disk space used

Abstract

A method of pressure testing an on-demand distribution system, comprising: issuing a pressure strategy to a client, wherein the pressure strategy comprises a pressure measurement file and a pressure measurement frequency, so that the client sends a scheduling request for the pressure measurement file to an on-demand distribution system according to the pressure measurement frequency, the on-demand distribution system deploys the pressure measurement file to an on-demand service node according to the scheduling request, and the on-demand service node deploying the pressure measurement file is returned to the client; acquiring a pressure measurement index of the on-demand distribution system; and judging whether the on-demand distribution system meets the system requirements or not according to the pressure measurement indexes. The invention also provides a pressure testing device of the on-demand distribution system, a computer device and a computer readable storage medium. The invention can carry out pressure test on the on-demand distribution system.

Description

Pressure testing method and device for on-demand distribution system, computer device and computer storage medium
Technical Field
The invention relates to the technical field of software testing, in particular to a method and a device for testing pressure of an on-demand distribution system, a computer device and a computer readable storage medium.
Background
The on-demand distribution system has the characteristics of large user quantity and high concurrency, and in order to ensure the performance of the on-demand distribution system, a reliable pressure test method is needed, and the pressure test can be performed on the on-demand distribution system.
Disclosure of Invention
In view of the foregoing, there is a need for a pressure testing method and apparatus for an on-demand distribution system, a computer apparatus, and a computer readable storage medium, which can perform pressure testing on the on-demand distribution system.
A first aspect of the present application provides a method for testing pressure of an on-demand distribution system, which is applied to a pressure testing device of an on-demand distribution system, and the method includes:
issuing a pressure strategy to a client, wherein the pressure strategy comprises a pressure measurement file and a pressure measurement frequency, so that the client sends a scheduling request for the pressure measurement file to an on-demand distribution system according to the pressure measurement frequency, the on-demand distribution system deploys the pressure measurement file to an on-demand service node according to the scheduling request, and the on-demand service node deploying the pressure measurement file is returned to the client;
acquiring a pressure measurement index of the on-demand distribution system;
and judging whether the on-demand distribution system meets the system requirements or not according to the pressure measurement indexes.
In another possible implementation manner, if a single file pressure test is performed on the on-demand distribution system, the pressure test file is a single file;
if the fixed file list pressure test is carried out on the on-demand distribution system, the pressure test file is a file in the fixed file list;
and if the on-demand distribution system is subjected to the pressure test of the dynamic update file list, the pressure test file is a file in the dynamic file list.
In another possible implementation manner, the pressure measurement index includes one or a combination of the following indexes: the file distribution speed, the file deployment number and the scheduling response time;
the step of judging whether the on-demand distribution system meets the system requirements according to the pressure measurement indexes comprises the following steps:
judging whether the scheduling response time is less than or equal to preset time, if so, enabling the on-demand distribution system to meet the system requirement; and/or
Judging whether the deployment number of the files is greater than or equal to a preset deployment number, if so, enabling the on-demand distribution system to meet system requirements, wherein the preset deployment number is determined according to the heat of the pressure-measured files; and/or
And judging whether the file distribution speed is greater than or equal to a preset speed or not, and if the file distribution speed is greater than or equal to the preset speed, the on-demand distribution system meets the system requirements.
In another possible implementation manner, the determining whether the number of file deployment copies is greater than or equal to a preset number of deployment copies, and if the number of file deployment copies is greater than or equal to the preset number of deployment copies, the on-demand distribution system meeting the system requirements includes:
judging whether the file deployment number of the pressure measurement file in a preset region operator is larger than or equal to a preset deployment number, if so, enabling the on-demand distribution system to meet the system requirement, wherein the preset deployment number is determined according to the popularity of the pressure measurement file in the preset operator.
In another possible implementation manner, the determining whether the on-demand distribution system meets the system requirement according to the pressure measurement indicator includes:
for single file pressure measurement, judging whether the scheduling response time is less than or equal to preset time, if so, the on-demand distribution system meets the system requirement; or
For the fixed file array pressure measurement, judging whether the file deployment number is greater than or equal to a preset deployment number, if the file deployment number is greater than or equal to the preset deployment number, the on-demand distribution system meets the system requirement, wherein the preset deployment number is determined according to the heat of the pressure measurement file; or
And for dynamic update file array pressure measurement, judging whether the file distribution speed is greater than or equal to a preset speed, and if the file distribution speed is greater than or equal to the preset speed, the on-demand distribution system meets the system requirements.
A second aspect of the present application provides a method for testing pressure of an on-demand distribution system, which is applied to a client, and the method includes:
receiving a pressure strategy issued by a pressure testing device of the on-demand distribution system, wherein the pressure strategy comprises a pressure measurement file and a pressure measurement frequency;
sending a scheduling request for the pressure measurement file to an on-demand distribution system according to the pressure measurement frequency, so that the on-demand distribution system deploys the pressure measurement file to an on-demand service node according to the scheduling request;
and receiving the on-demand service node which is returned by the on-demand distribution system and is used for deploying the pressure measurement file.
In another possible implementation manner, the method further includes:
sending a data request for the pressure measurement file to the on-demand service node; and receiving playable data of the pressure measurement file returned by the on-demand service node.
A third aspect of the present application provides an on-demand distribution system pressure testing apparatus, the apparatus comprising:
the distribution unit is used for distributing a pressure strategy to a client, wherein the pressure strategy comprises a pressure measurement file and a pressure measurement frequency, so that the client sends a scheduling request for the pressure measurement file to an on-demand distribution system according to the pressure measurement frequency, the on-demand distribution system deploys the pressure measurement file to an on-demand service node according to the scheduling request, and the on-demand service node deploying the pressure measurement file is returned to the client;
the acquisition unit is used for acquiring a pressure measurement index of the on-demand distribution system;
and the judging unit is used for judging whether the on-demand distribution system meets the system requirements or not according to the pressure measurement indexes.
A fourth aspect of the present application provides a computer apparatus comprising a processor for implementing the on-demand dispensing system pressure testing method when executing a computer program stored in a memory.
A fifth aspect of the present application provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the on-demand distribution system stress testing method.
The method comprises the steps of issuing a pressure strategy to a client, wherein the pressure strategy comprises a pressure measurement file and a pressure measurement frequency, enabling the client to send a scheduling request for the pressure measurement file to an on-demand distribution system according to the pressure measurement frequency, enabling the on-demand distribution system to deploy the pressure measurement file to an on-demand service node according to the scheduling request, and returning the on-demand service node where the pressure measurement file is deployed to the client; acquiring a pressure measurement index of the on-demand distribution system; and judging whether the on-demand distribution system meets the system requirements or not according to the pressure measurement indexes. The invention can simulate the request of the on-demand by the client and test the pressure of the on-demand distribution system.
Drawings
Fig. 1 is a schematic application environment diagram of a pressure testing method for an on-demand distribution system according to an embodiment of the present invention.
Fig. 2 is a flowchart of a pressure testing method for an on-demand distribution system according to an embodiment of the present invention.
Fig. 3 is a flowchart of a pressure testing method for an on-demand distribution system according to another embodiment of the present invention.
Fig. 4 is a structural diagram of a preferred embodiment of a pressure testing device of an on-demand distribution system according to an embodiment of the present invention.
FIG. 5 is a diagram of a computer device according to a preferred embodiment of the present invention.
Detailed Description
In order that the above objects, features and advantages of the present invention can be more clearly understood, a detailed description of the present invention will be given below with reference to the accompanying drawings and specific embodiments. It should be noted that the embodiments and features of the embodiments of the present application may be combined with each other without conflict.
In the following description, numerous specific details are set forth to provide a thorough understanding of the present invention, and the described embodiments are merely a subset of the embodiments of the present invention, rather than a complete embodiment. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.
Preferably, the on-demand distribution system pressure testing method of the present invention is applied to one or more computer devices. The computer device is a device capable of automatically performing numerical calculation and/or information processing according to a preset or stored instruction, and the hardware includes, but is not limited to, a microprocessor, an Application Specific Integrated Circuit (ASIC), a Programmable Gate Array (FPGA), a Digital Signal Processor (DSP), an embedded device, and the like.
The computer device can be a desktop computer, a notebook, a palm computer, a cloud server and other computing equipment. The computer device can be in man-machine interaction with a user through a keyboard, a mouse, a remote controller, a touch panel or voice control equipment and the like.
Example one
Fig. 1 is a schematic application environment diagram of a pressure testing method for an on-demand distribution system according to an embodiment of the present invention.
Referring to fig. 1, an application environment of the on-demand distribution system pressure testing method includes an on-demand distribution system pressure testing apparatus 10, a client 2, an on-demand distribution system 3, and an on-demand service node 4. The on-demand distribution system pressure testing device 10 is in communication connection with the client 2 and the on-demand distribution system 3, the client 2 is also in communication connection with the on-demand distribution system 3 and the on-demand service node 4, and the on-demand distribution system 3 is also in communication connection with the on-demand service node 4.
The pressure testing device 10 of the on-demand distribution system performs pressure testing on the on-demand distribution system 3 through the client 2 to obtain a pressure testing index of the on-demand distribution system 3.
The client 2 is used to provide on-demand services (e.g. video-on-demand services) to individual users. In this embodiment, the client 2 may be a personal cloud disk, such as a guest-playing cloud. The number of the clients 2 is multiple. The number of the clients 2 can be set according to the test requirements. For example, in one embodiment, the number of clients 2 may be one hundred thousand.
The on-demand distribution system 3 is used for deploying the pressure measurement file to the on-demand service node 4 according to the scheduling request of the client 2.
The on-demand service node 4 is used to provide on-demand data (e.g., video data). The client 2 obtains the on-demand data from the on-demand service node 4. The number of the on-demand service nodes 4 is also multiple.
Example two
Fig. 2 is a flowchart of a pressure testing method for an on-demand distribution system according to an embodiment of the present invention.
Referring to fig. 2, the pressure testing method for the on-demand distribution system specifically includes the following steps:
step 201, the pressure testing device 10 of the on-demand distribution system issues a pressure policy to the client 2, where the pressure policy includes a pressure measurement file and a pressure measurement frequency.
In this embodiment, the stress test for the on-demand distribution system 3 includes a single file stress test, a fixed file list stress test, and a dynamic update file list stress test.
If the unicast distribution system 3 is subjected to a single file pressure test, the pressure test file is a single file.
If the fixed file list pressure test is performed on the multicast distribution system 3, the pressure test file is a file in the fixed file list. For example, a file can be randomly selected from a fixed file list as a compression test file; alternatively, one file may be selected from the fixed file list in a predetermined order as the compression file.
If the pressure test of the dynamic update file list is performed on the multicast distribution system 3, the pressure test file is a file in the dynamic file list. For example, the dynamic file list may be updated according to a preset frequency (e.g., once per hour), and a file is randomly selected from the dynamic file list as a pressure measurement file; or selecting one file from the dynamic file list as a pressure measurement file according to a preset sequence.
The pressure test frequency is a frequency at which the on-demand distribution system 3 is pressure tested. The frequency of pressure measurements may be set as desired, for example, every 20 seconds, every minute, every 10 minutes.
Step 202, the client 2 sends a scheduling request for the pressure measurement file to the on-demand distribution system 3 according to the pressure measurement frequency.
If the single file pressure test is performed on the on-demand distribution system 3, the client 2 sends a scheduling request for a single file to the on-demand distribution system 3 according to the pressure test frequency. For example, client 2 sends a scheduling request to the on-demand distribution system 3 every 20s, each time requesting the same file.
If the on-demand distribution system 3 is subjected to the pressure test of the fixed file list, the client 2 sends a scheduling request to the on-demand distribution system 3 according to the pressure test frequency, and requests one file in the fixed list each time. For example, the client 2 sends a scheduling request to the on-demand distribution system 3 every 20s, each time requesting a randomly chosen file from the fixed list.
If the on-demand distribution system 3 is subjected to a pressure test for dynamically updating the file list, the client 2 sends a scheduling request to the on-demand distribution system 3 according to the pressure test frequency, and requests one file in the dynamic file list each time. For example, the client 2 sends a scheduling request to the on-demand distribution system 3 every 20s, each time requesting a randomly selected file from the dynamic file list.
Step 203, the on-demand distribution system 3 deploys the pressure measurement file to the on-demand service node 4 according to the scheduling request, and returns the on-demand service node 4 deployed with the pressure measurement file to the client 2.
The on-demand distribution system 3 counts the scheduling request times of the pressure measurement files, obtains the heat of the pressure measurement files according to the scheduling request times of the pressure measurement files, and determines the file deployment number of the pressure measurement files according to the heat of the pressure measurement files.
And if the dispatching request times of the pressure measurement file are more, the heat degree of the pressure measurement file is high. Otherwise, if the scheduling request frequency of the pressure measurement file is less, the heat of the pressure measurement file is low. For example, a pressure measurement file with the scheduling request number greater than or equal to 10000 in a preset time (e.g., 10 minutes) may be defined as a high-heat pressure measurement file, a pressure measurement file with the scheduling request number less than 10000 and greater than or equal to 1000 in the preset time may be defined as a medium-heat pressure measurement file, and a pressure measurement file with the scheduling request number less than 1000 in the preset time may be defined as a low-heat pressure measurement file.
In this embodiment, each scheduling request corresponds to one regional operator. Each on-demand service node also corresponds to a regional carrier. On-demand distribution system 3 also determines the regional operator distribution of the pressure files based on their heat.
A regional operator is a particular network operator for a particular geographic region. The regions may include six geographical regions "east China", "North China", "south China", "northeast", "northwest" and "southwest". The operators can comprise three network operators of 'telecom', 'Unicom' and 'mobile'. Thus, the regional operators may include 18 regional operators, including eastern China telecom, eastern China Union, eastern China Mobile, southern China telecom, southern China Union, southern China Mobile … … southwest China telecom, southwest China Union, and southwest China Mobile.
After receiving the on-demand service node 4 that deploys the pressure measurement file and is returned by the on-demand distribution system 3, the client 2 may send a data request for the pressure measurement file to the on-demand service node 4 (i.e., the on-demand service node 4 that deploys the pressure measurement file), and receive playable data (e.g., video data) of the pressure measurement file and is returned by the on-demand service node 4.
Step 204, the on-demand distribution system pressure testing device 10 obtains a pressure testing index of the on-demand distribution system 3.
The pressure measurement index of the on-demand distribution system 3 refers to the performance index of the on-demand distribution system 3 executing the deployment of the pressure measurement file to the on-demand service node 4 according to the scheduling request and returning the on-demand service node 4 deployed with the pressure measurement file to the client 2.
In this embodiment, the pressure measurement indexes include a file distribution speed, a file deployment number, and a scheduling response time.
The file distribution speed is the speed from when a scheduling request is received from the on-demand distribution system 3 to when the pressure measurement file is deployed to the on-demand service node 4. The file distribution speed may be an average file distribution speed of the on-demand distribution system 3 over a certain time.
The number of file deployment copies is the number of copies of the requested pressure measurement file that the on-demand distribution system 3 deploys to the on-demand service node 4.
The schedule response time is the time from when the schedule request is received from on-demand distribution system 3 to when on-demand service node 4 deploying the pressure measurement file is returned to client 2.
On-demand distribution system 3 may directly record the pressure measurement indicator, such as a log file recorded at on-demand distribution system 3.
Or, the on-demand distribution system 3 may record file deployment information of the pressure measurement file, and the pressure test device 10 of the on-demand distribution system acquires the file deployment information and acquires the pressure measurement index according to the file deployment information. For example, the on-demand distribution system 3 records each on-demand service node 4 that deploys the pressure measurement file, and the on-demand distribution system pressure test device 10 counts the number of file deployments of the pressure measurement file according to each on-demand service node 4 that deploys the pressure measurement file. For another example, on-demand distribution system 3 records the time when on-demand distribution system 3 receives the scheduling request and the time until on-demand service node 4 that deploys the pressure measurement file returns to client 2, and on-demand distribution system pressure testing apparatus 10 calculates the scheduling response time according to the time when on-demand distribution system 3 receives the scheduling request and the time until on-demand service node 4 that deploys the pressure measurement file returns to client 2.
The on-demand distribution system pressure testing device 10 may send a pressure measurement data request to the on-demand distribution system 3, requesting the pressure measurement index or the file deployment information. And after receiving the pressure measurement data request, the on-demand distribution system 3 returns the pressure measurement indexes or the file deployment information to the pressure testing device 10 of the on-demand distribution system. Or, the on-demand distribution system 3 may actively send the pressure measurement index or the file deployment information to the on-demand distribution system pressure testing device 10 according to a preset period, and the on-demand distribution system pressure testing device 10 receives the pressure measurement index or the file deployment information periodically sent by the on-demand distribution system 3.
Step 205, the on-demand distribution system pressure testing device 10 determines whether the on-demand distribution system 3 meets the system requirements according to the pressure measurement index.
It may be determined whether the scheduling response time is less than or equal to a preset time, and if the scheduling response time is less than or equal to the preset time, the on-demand distribution system 3 meets the system requirements. Otherwise, if the scheduling response time is longer than the preset time, the on-demand distribution system 3 does not meet the system requirements.
Or, it may be determined whether the number of file deployment copies is greater than or equal to a preset number of deployment copies, and if the number of file deployment copies is greater than or equal to the preset number of deployment copies, the on-demand distribution system 3 meets the system requirements. Otherwise, if the number of file deployment copies is smaller than the preset number of deployment copies, the on-demand distribution system 3 does not meet the system requirements. And the preset number of deployment copies is determined according to the heat of the pressure measurement file.
Particularly, it may be determined whether the number of file deployment copies of the pressure measurement file in the preset regional operator is greater than or equal to a preset number of deployment copies, and if the number of file deployment copies of the pressure measurement file in the preset regional operator is greater than or equal to the preset number of deployment copies, the on-demand distribution system 3 meets the system requirements. Otherwise, if the number of file deployment copies of the pressure measurement file in the preset regional operator is smaller than the preset number of deployment copies, the on-demand distribution system 3 does not meet the system requirements. And determining the preset deployment number according to the popularity of the pressure measurement file in the preset operator. The judgment of the number of file deployment copies of the pressure-measured file in the preset regional operator is to determine whether the on-demand distribution system 3 has the regional operator hotspot judgment capability, and whether the file deployment can be performed according to the regional operator popularity of the pressure-measured file. Only if the on-demand distribution system 3 deploys a sufficient number of files in the regional operator corresponding to the pressure-measured file, the corresponding scheduling request can be satisfied.
Or, it may be determined whether the file distribution speed is greater than or equal to a preset speed, and if the file distribution speed is greater than or equal to the preset speed, the on-demand distribution system 3 meets the system requirement. Otherwise, if the file distribution speed is lower than the preset speed, the on-demand distribution system 3 does not meet the system requirement.
In order to improve the accuracy of pressure measurement, in this embodiment, determining whether the on-demand distribution system 3 meets the system requirement according to the pressure measurement indicator may include:
(1) for single file pressure measurement, judging whether the file distribution speed is less than or equal to a preset time, if so, enabling the on-demand distribution system 3 to meet the system requirement; otherwise, if the file distribution speed is greater than the preset time, the on-demand distribution system 3 does not meet the system requirements. When a single file is compressed, all clients 2 compress the same file. If the request of the same file falls on a specific on-demand service node, the load of the on-demand service node is high, and other on-demand service nodes without requests are idle. If the scheduling response time of the on-demand distribution system 3 to the single file is longer than the preset time, it indicates that the on-demand distribution system 3 cannot optimize the hot spot processing, and the problem of single-point overheating exists, so that the system requirements are not met.
(2) For the fixed file array pressure measurement, judging whether the file deployment number is greater than or equal to a preset deployment number, if so, enabling the on-demand distribution system 3 to meet the system requirement; otherwise, if the number of file deployment copies is smaller than the preset number of deployment copies, the on-demand distribution system 3 does not meet the system requirements. For example, a pressure measurement file with the scheduling request number greater than or equal to 10000 within a preset time (e.g., 10 minutes) is defined as a high-heat pressure measurement file, and if the file deployment number of the high-heat pressure measurement file is less than or equal to 10000, the on-demand distribution system 3 does not meet the system requirement. Fixed file column pressure measurement scenarios the throughput capability of the on-demand distribution system 3 is primarily measured without new files added.
(3) For the dynamic update file array pressure measurement, judging whether the file distribution speed is greater than or equal to a preset speed, if so, the on-demand distribution system 3 meets the system requirement; otherwise, if the file distribution speed is lower than the preset speed, the on-demand distribution system 3 does not meet the system requirement. The dynamic updating of the file array pressure measurement scene is more suitable for the actual service use of the on-demand distribution system 3, and the file distribution speed is the most important pressure measurement index. Therefore, it can be determined whether the file distribution speed is less than or equal to the preset speed during dynamic update file array pressure measurement, and if the file distribution speed is less than or equal to the preset speed, it indicates that the on-demand distribution system 3 cannot timely deploy the pressure measurement file, so that the system requirements are not met.
In the pressure test method for the on-demand distribution system of the second embodiment, the pressure test device 10 of the on-demand distribution system issues a pressure strategy to the client 2; the client 2 sends a scheduling request for the pressure measurement file to the on-demand distribution system 3 according to the pressure measurement frequency; the on-demand distribution system 3 deploys the pressure measurement file to an on-demand service node 4 according to the scheduling request, and returns the on-demand service node 4 deployed with the pressure measurement file to the client 2; the pressure testing device 10 of the on-demand distribution system obtains a pressure testing index of the on-demand distribution system 3; and the pressure testing device 10 of the on-demand distribution system judges whether the on-demand distribution system 3 meets the system requirements or not according to the pressure testing index. The second pressure testing method for the on-demand distribution system in the embodiment can be used for simulating an on-demand request by using the client and carrying out pressure testing on the on-demand distribution system.
EXAMPLE III
Fig. 3 is a flowchart of a pressure testing method for an on-demand distribution system according to an embodiment of the present invention. The pressure testing method of the on-demand distribution system is applied to the pressure testing device 10 of the on-demand distribution system.
Referring to fig. 3, the pressure testing method for the on-demand distribution system specifically includes the following steps:
step 301, issuing a pressure policy to the client 2, where the pressure policy includes a pressure measurement file and a pressure measurement frequency, so that the client 2 sends a scheduling request for the pressure measurement file to the on-demand distribution system 3 according to the pressure measurement frequency, the on-demand distribution system 3 deploys the pressure measurement file to the on-demand service node 4 according to the scheduling request, and the on-demand service node 4 deploying the pressure measurement file returns to the client 2.
In this embodiment, the stress test for the on-demand distribution system 3 includes a single file stress test, a fixed file list stress test, and a dynamic update file list stress test.
If the unicast distribution system 3 is subjected to a single file pressure test, the pressure test file is a single file.
If the fixed file list pressure test is performed on the multicast distribution system 3, the pressure test file is a file in the fixed file list. For example, a file can be randomly selected from a fixed file list as a compression test file; alternatively, one file may be selected from the fixed file list in a predetermined order as the compression file.
If the pressure test of the dynamic update file list is performed on the multicast distribution system 3, the pressure test file is a file in the dynamic file list. For example, the dynamic file list may be updated according to a preset frequency (e.g., once per hour), and a file is randomly selected from the dynamic file list as a pressure measurement file; or selecting one file from the dynamic file list as a pressure measurement file according to a preset sequence.
The pressure test frequency is a frequency at which the on-demand distribution system 3 is pressure tested. The frequency of pressure measurements may be set as desired, for example, every 20 seconds, every minute, every 10 minutes.
And the client 2 sends a scheduling request for the pressure measurement file to the on-demand distribution system 3 according to the pressure measurement frequency.
If the single file pressure test is performed on the on-demand distribution system 3, the client 2 sends a scheduling request for a single file to the on-demand distribution system 3 according to the pressure test frequency. For example, client 2 sends a scheduling request to the on-demand distribution system 3 every 20s, each time requesting the same file.
If the on-demand distribution system 3 is subjected to the pressure test of the fixed file list, the client 2 sends a scheduling request to the on-demand distribution system 3 according to the pressure test frequency, and requests one file in the fixed list each time. For example, the client 2 sends a scheduling request to the on-demand distribution system 3 every 20s, each time requesting a randomly chosen file from the fixed list.
If the on-demand distribution system 3 is subjected to a pressure test for dynamically updating the file list, the client 2 sends a scheduling request to the on-demand distribution system 3 according to the pressure test frequency, and requests one file in the dynamic file list each time. For example, the client 2 sends a scheduling request to the on-demand distribution system 3 every 20s, each time requesting a randomly selected file from the dynamic file list.
And the on-demand distribution system 3 deploys the pressure measurement file to the on-demand service node 4 according to the scheduling request, and returns the on-demand service node 4 deployed with the pressure measurement file to the client 2.
The on-demand distribution system 3 counts the scheduling request times of the pressure measurement files, obtains the heat of the pressure measurement files according to the scheduling request times of the pressure measurement files, and determines the file deployment number of the pressure measurement files according to the heat of the pressure measurement files.
And if the dispatching request times of the pressure measurement file are more, the heat degree of the pressure measurement file is high. Otherwise, if the scheduling request frequency of the pressure measurement file is less, the heat of the pressure measurement file is low. For example, a pressure measurement file with the scheduling request number greater than or equal to 10000 in a preset time (e.g., 10 minutes) may be defined as a high-heat pressure measurement file, a pressure measurement file with the scheduling request number less than 10000 and greater than or equal to 1000 in the preset time may be defined as a medium-heat pressure measurement file, and a pressure measurement file with the scheduling request number less than 1000 in the preset time may be defined as a low-heat pressure measurement file.
In this embodiment, each scheduling request corresponds to one regional operator. Each on-demand service node also corresponds to a regional carrier. On-demand distribution system 3 also determines the regional operator distribution of the pressure files based on their heat.
A regional operator is a particular network operator for a particular geographic region. The regions may include six geographical regions "east China", "North China", "south China", "northeast", "northwest" and "southwest". The operators can comprise three network operators of 'telecom', 'Unicom' and 'mobile'. Thus, the regional operators may include 18 regional operators, including eastern China telecom, eastern China Union, eastern China Mobile, southern China telecom, southern China Union, southern China Mobile … … southwest China telecom, southwest China Union, and southwest China Mobile.
After receiving the on-demand service node 4 that deploys the pressure measurement file and is returned by the on-demand distribution system 3, the client 2 may send a data request for the pressure measurement file to the on-demand service node 4 (i.e., the on-demand service node 4 that deploys the pressure measurement file), and receive playable data (e.g., video data) of the pressure measurement file and is returned by the on-demand service node 4.
Step 302, obtaining the pressure measurement index of the on-demand distribution system 3.
The pressure measurement index of the on-demand distribution system 3 refers to the performance index of the on-demand distribution system 3 executing the deployment of the pressure measurement file to the on-demand service node 4 according to the scheduling request and returning the on-demand service node 4 deployed with the pressure measurement file to the client 2.
In this embodiment, the pressure measurement indexes include a file distribution speed, a file deployment number, and a scheduling response time.
The file distribution speed is the speed from when a scheduling request is received from the on-demand distribution system 3 to when the pressure measurement file is deployed to the on-demand service node 4. The file distribution speed may be an average file distribution speed of the on-demand distribution system 3 over a certain time.
The number of file deployment copies is the number of copies of the requested pressure measurement file that the on-demand distribution system 3 deploys to the on-demand service node 4.
The schedule response time is the time from when the schedule request is received from on-demand distribution system 3 to when on-demand service node 4 deploying the pressure measurement file is returned to client 2.
On-demand distribution system 3 may directly record the pressure measurement indicator, such as a log file recorded at on-demand distribution system 3.
Or, the on-demand distribution system 3 may record file deployment information of the pressure measurement file, and the pressure test device 10 of the on-demand distribution system acquires the file deployment information and acquires the pressure measurement index according to the file deployment information. For example, the on-demand distribution system 3 records each on-demand service node 4 that deploys the pressure measurement file, and the on-demand distribution system pressure test device 10 counts the number of file deployments of the pressure measurement file according to each on-demand service node 4 that deploys the pressure measurement file. For another example, on-demand distribution system 3 records the time when on-demand distribution system 3 receives the scheduling request and the time until on-demand service node 4 that deploys the pressure measurement file returns to client 2, and on-demand distribution system pressure testing apparatus 10 calculates the scheduling response time according to the time when on-demand distribution system 3 receives the scheduling request and the time until on-demand service node 4 that deploys the pressure measurement file returns to client 2.
The on-demand distribution system pressure testing device 10 may send a pressure measurement data request to the on-demand distribution system 3, requesting the pressure measurement index or the file deployment information. And after receiving the pressure measurement data request, the on-demand distribution system 3 returns the pressure measurement indexes or the file deployment information to the pressure testing device 10 of the on-demand distribution system. Or, the on-demand distribution system 3 may actively send the pressure measurement index or the file deployment information to the on-demand distribution system pressure testing device 10 according to a preset period, and the on-demand distribution system pressure testing device 10 receives the pressure measurement index or the file deployment information periodically sent by the on-demand distribution system 3.
And 303, judging whether the on-demand distribution system 3 meets the system requirements or not according to the pressure measurement indexes.
It may be determined whether the scheduling response time is less than or equal to a preset time, and if the scheduling response time is less than or equal to the preset time, the on-demand distribution system 3 meets the system requirements. Otherwise, if the scheduling response time is longer than the preset time, the on-demand distribution system 3 does not meet the system requirements.
Or, it may be determined whether the number of file deployment copies is greater than or equal to a preset number of deployment copies, and if the number of file deployment copies is greater than or equal to the preset number of deployment copies, the on-demand distribution system 3 meets the system requirements. Otherwise, if the number of file deployment copies is smaller than the preset number of deployment copies, the on-demand distribution system 3 does not meet the system requirements. And the preset number of deployment copies is determined according to the heat of the pressure measurement file.
Particularly, it may be determined whether the number of file deployment copies of the pressure measurement file in the preset regional operator is greater than or equal to a preset number of deployment copies, and if the number of file deployment copies of the pressure measurement file in the preset regional operator is greater than or equal to the preset number of deployment copies, the on-demand distribution system 3 meets the system requirements. Otherwise, if the number of file deployment copies of the pressure measurement file in the preset regional operator is smaller than the preset number of deployment copies, the on-demand distribution system 3 does not meet the system requirements. And determining the preset deployment number according to the popularity of the pressure measurement file in the preset operator. The judgment of the number of file deployment copies of the pressure-measured file in the preset regional operator is to determine whether the on-demand distribution system 3 has the regional operator hotspot judgment capability, and whether the file deployment can be performed according to the regional operator popularity of the pressure-measured file. Only if the on-demand distribution system 3 deploys a sufficient number of files in the regional operator corresponding to the pressure-measured file, the corresponding scheduling request can be satisfied.
Or, it may be determined whether the file distribution speed is greater than or equal to a preset speed, and if the file distribution speed is greater than or equal to the preset speed, the on-demand distribution system 3 meets the system requirement. Otherwise, if the file distribution speed is lower than the preset speed, the on-demand distribution system 3 does not meet the system requirement.
In order to improve the accuracy of pressure measurement, in this embodiment, determining whether the on-demand distribution system 3 meets the system requirement according to the pressure measurement indicator may include:
(1) for single file pressure measurement, judging whether the file distribution speed is less than or equal to a preset time, if so, enabling the on-demand distribution system 3 to meet the system requirement; otherwise, if the file distribution speed is greater than the preset time, the on-demand distribution system 3 does not meet the system requirements. When a single file is compressed, all clients 2 compress the same file. If the request of the same file falls on a specific on-demand service node, the load of the on-demand service node is high, and other on-demand service nodes without requests are idle. If the scheduling response time of the on-demand distribution system 3 to the single file is longer than the preset time, it indicates that the on-demand distribution system 3 cannot optimize the hot spot processing, and the problem of single-point overheating exists, so that the system requirements are not met.
(2) For the fixed file array pressure measurement, judging whether the file deployment number is greater than or equal to a preset deployment number, if so, enabling the on-demand distribution system 3 to meet the system requirement; otherwise, if the number of file deployment copies is smaller than the preset number of deployment copies, the on-demand distribution system 3 does not meet the system requirements. For example, a pressure measurement file with the scheduling request number greater than or equal to 10000 within a preset time (e.g., 10 minutes) is defined as a high-heat pressure measurement file, and if the file deployment number of the high-heat pressure measurement file is less than or equal to 10000, the on-demand distribution system 3 does not meet the system requirement. Fixed file column pressure measurement scenarios the throughput capability of the on-demand distribution system 3 is primarily measured without new files added.
(3) For the dynamic update file array pressure measurement, judging whether the file distribution speed is greater than or equal to a preset speed, if so, the on-demand distribution system 3 meets the system requirement; otherwise, if the file distribution speed is lower than the preset speed, the on-demand distribution system 3 does not meet the system requirement. The dynamic updating of the file array pressure measurement scene is more suitable for the actual service use of the on-demand distribution system 3, and the file distribution speed is the most important pressure measurement index. Therefore, it can be determined whether the file distribution speed is less than or equal to the preset speed during dynamic update file array pressure measurement, and if the file distribution speed is less than or equal to the preset speed, it indicates that the on-demand distribution system 3 cannot timely deploy the pressure measurement file, so that the system requirements are not met.
The pressure testing method for the on-demand distribution system of the third embodiment is applied to the pressure testing device 10 for the on-demand distribution system, and the method includes: issuing a pressure strategy to a client 2, enabling the client 2 to send a scheduling request for the pressure measurement file to the on-demand distribution system 3 according to the pressure measurement frequency, enabling the on-demand distribution system 3 to deploy the pressure measurement file to an on-demand service node 4 according to the scheduling request, and returning the on-demand service node 4 where the pressure measurement file is deployed to the client 2; acquiring a pressure measurement index of the on-demand distribution system 3; and judging whether the on-demand distribution system 3 meets the system requirements or not according to the pressure measurement indexes. The pressure test method for the on-demand distribution system in the third embodiment can simulate an on-demand request by using the client to perform a pressure test on the on-demand distribution system.
Example four
Fig. 4 is a structural diagram of a preferred embodiment of a pressure testing device of an on-demand distribution system according to an embodiment of the present invention. As shown in fig. 4, the on-demand distribution system pressure testing apparatus 10 may include: issuing unit 401, acquiring unit 402, and determining unit 403.
The issuing unit 401 is configured to issue a pressure policy to the client 2 by the pressure testing device 10 of the on-demand distribution system, where the pressure policy includes a pressure measurement file and a pressure measurement frequency, so that the client 2 sends a scheduling request for the pressure measurement file to the on-demand distribution system 3 according to the pressure measurement frequency, the on-demand distribution system 3 deploys the pressure measurement file to the on-demand service node 4 according to the scheduling request, and the on-demand service node 4 deploying the pressure measurement file is returned to the client 2.
In this embodiment, the stress test for the on-demand distribution system 3 includes a single file stress test, a fixed file list stress test, and a dynamic update file list stress test.
If the unicast distribution system 3 is subjected to a single file pressure test, the pressure test file is a single file.
If the fixed file list pressure test is performed on the multicast distribution system 3, the pressure test file is a file in the fixed file list. For example, a file can be randomly selected from a fixed file list as a compression test file; alternatively, one file may be selected from the fixed file list in a predetermined order as the compression file.
If the pressure test of the dynamic update file list is performed on the multicast distribution system 3, the pressure test file is a file in the dynamic file list. For example, the dynamic file list may be updated according to a preset frequency (e.g., once per hour), and a file is randomly selected from the dynamic file list as a pressure measurement file; or selecting one file from the dynamic file list as a pressure measurement file according to a preset sequence.
The pressure test frequency is a frequency at which the on-demand distribution system 3 is pressure tested. The frequency of pressure measurements may be set as desired, for example, every 20 seconds, every minute, every 10 minutes.
And the client 2 sends a scheduling request for the pressure measurement file to the on-demand distribution system 3 according to the pressure measurement frequency.
If the single file pressure test is performed on the on-demand distribution system 3, the client 2 sends a scheduling request for a single file to the on-demand distribution system 3 according to the pressure test frequency. For example, client 2 sends a scheduling request to the on-demand distribution system 3 every 20s, each time requesting the same file.
If the on-demand distribution system 3 is subjected to the pressure test of the fixed file list, the client 2 sends a scheduling request to the on-demand distribution system 3 according to the pressure test frequency, and requests one file in the fixed list each time. For example, the client 2 sends a scheduling request to the on-demand distribution system 3 every 20s, each time requesting a randomly chosen file from the fixed list.
If the on-demand distribution system 3 is subjected to a pressure test for dynamically updating the file list, the client 2 sends a scheduling request to the on-demand distribution system 3 according to the pressure test frequency, and requests one file in the dynamic file list each time. For example, the client 2 sends a scheduling request to the on-demand distribution system 3 every 20s, each time requesting a randomly selected file from the dynamic file list.
And the on-demand distribution system 3 deploys the pressure measurement file to the on-demand service node 4 according to the scheduling request, and returns the on-demand service node 4 deployed with the pressure measurement file to the client 2.
The on-demand distribution system 3 counts the scheduling request times of the pressure measurement files, obtains the heat of the pressure measurement files according to the scheduling request times of the pressure measurement files, and determines the file deployment number of the pressure measurement files according to the heat of the pressure measurement files.
And if the scheduling request times are more, the hot degree of the pressure file is high. Otherwise, if the number of times of scheduling requests is small, the hot degree of the compression-testing file is low. For example, a pressure measurement file with the scheduling request number greater than or equal to 10000 in a preset time (e.g., 10 minutes) may be defined as a high-heat pressure measurement file, a pressure measurement file with the scheduling request number less than 10000 and greater than or equal to 1000 in the preset time may be defined as a medium-heat pressure measurement file, and a pressure measurement file with the scheduling request number less than 1000 in the preset time may be defined as a low-heat pressure measurement file.
In this embodiment, each scheduling request corresponds to one regional operator. Each on-demand service node also corresponds to a regional carrier. On-demand distribution system 3 also determines the regional operator distribution of the pressure files based on their heat.
A regional operator is a particular network operator for a particular geographic region. The regions may include six geographical regions "east China", "North China", "south China", "northeast", "northwest" and "southwest". The operators can comprise three network operators of 'telecom', 'Unicom' and 'mobile'. Thus, the regional operators may include 18 regional operators, including eastern China telecom, eastern China Union, eastern China Mobile, southern China telecom, southern China Union, southern China Mobile … … southwest China telecom, southwest China Union, and southwest China Mobile.
An obtaining unit 402, configured to obtain a pressure measurement indicator of the on-demand distribution system 3.
In this embodiment, the pressure measurement indexes include a file distribution speed, a file deployment number, and a scheduling response time.
The file distribution speed is the speed from when a scheduling request is received from the on-demand distribution system 3 to when the pressure measurement file is deployed to the on-demand service node 4. The file distribution speed may be an average file distribution speed of the on-demand distribution system 3 over a certain time.
The number of file deployment copies is the number of copies of the requested pressure measurement file that the on-demand distribution system 3 deploys to the on-demand service node 4.
The schedule response time is the time from when the schedule request is received from on-demand distribution system 3 to when on-demand service node 4 deploying the pressure measurement file is returned to client 2.
On-demand distribution system 3 may directly record the pressure measurement indicator, such as a log file recorded at on-demand distribution system 3.
Or, the on-demand distribution system 3 may record file deployment information of the pressure measurement file, and the pressure test device 10 of the on-demand distribution system acquires the file deployment information and acquires the pressure measurement index according to the file deployment information. For example, the on-demand distribution system 3 records each on-demand service node 4 that deploys the pressure measurement file, and the on-demand distribution system pressure test device 10 counts the number of file deployments of the pressure measurement file according to each on-demand service node 4 that deploys the pressure measurement file. For another example, on-demand distribution system 3 records the time when on-demand distribution system 3 receives the scheduling request and the time until on-demand service node 4 that deploys the pressure measurement file returns to client 2, and on-demand distribution system pressure testing apparatus 10 calculates the scheduling response time according to the time when on-demand distribution system 3 receives the scheduling request and the time until on-demand service node 4 that deploys the pressure measurement file returns to client 2.
The on-demand distribution system pressure testing device 10 may send a pressure measurement data request to the on-demand distribution system 3, requesting the pressure measurement index or the file deployment information. And after receiving the pressure measurement data request, the on-demand distribution system 3 returns the pressure measurement indexes or the file deployment information to the pressure testing device 10 of the on-demand distribution system. Or, the on-demand distribution system 3 may actively send the pressure measurement index or the file deployment information to the on-demand distribution system pressure testing device 10 according to a preset period, and the on-demand distribution system pressure testing device 10 receives the pressure measurement index or the file deployment information periodically sent by the on-demand distribution system 3.
A judging unit 403, configured to judge whether the on-demand distribution system 3 meets the system requirements according to the pressure measurement indicator.
It may be determined whether the scheduling response time is less than or equal to a preset time, and if the scheduling response time is less than or equal to the preset time, the on-demand distribution system 3 meets the system requirements. Otherwise, if the scheduling response time is longer than the preset time, the on-demand distribution system 3 does not meet the system requirements.
Or, it may be determined whether the number of file deployment copies is greater than or equal to a preset number of deployment copies, and if the number of file deployment copies is greater than or equal to the preset number of deployment copies, the on-demand distribution system 3 meets the system requirements. Otherwise, if the number of file deployment copies is smaller than the preset number of deployment copies, the on-demand distribution system 3 does not meet the system requirements. And the preset number of deployment copies is determined according to the heat of the pressure measurement file.
Particularly, it may be determined whether the number of file deployment copies of the pressure measurement file in the preset regional operator is greater than or equal to a preset number of deployment copies, and if the number of file deployment copies of the pressure measurement file in the preset regional operator is greater than or equal to the preset number of deployment copies, the on-demand distribution system 3 meets the system requirements. Otherwise, if the number of file deployment copies of the pressure measurement file in the preset regional operator is smaller than the preset number of deployment copies, the on-demand distribution system 3 does not meet the system requirements. And determining the preset deployment number according to the popularity of the pressure measurement file in the preset operator. The judgment of the number of file deployment copies of the pressure-measured file in the preset regional operator is to determine whether the on-demand distribution system 3 has the regional operator hotspot judgment capability, and whether the file deployment can be performed according to the regional operator popularity of the pressure-measured file. Only if the on-demand distribution system 3 deploys a sufficient number of files in the regional operator corresponding to the pressure-measured file, the corresponding scheduling request can be satisfied.
Or, it may be determined whether the file distribution speed is greater than or equal to a preset speed, and if the file distribution speed is greater than or equal to the preset speed, the on-demand distribution system 3 meets the system requirement. Otherwise, if the file distribution speed is lower than the preset speed, the on-demand distribution system 3 does not meet the system requirement.
In order to improve the accuracy of pressure measurement, in this embodiment, determining whether the on-demand distribution system 3 meets the system requirement according to the pressure measurement indicator may include:
(1) for single file pressure measurement, judging whether the file distribution speed is less than or equal to a preset time, if so, enabling the on-demand distribution system 3 to meet the system requirement; otherwise, if the file distribution speed is greater than the preset time, the on-demand distribution system 3 does not meet the system requirements. When a single file is compressed, all clients 2 compress the same file. If the request of the same file falls on a specific on-demand service node, the load of the on-demand service node is high, and other on-demand service nodes without requests are idle. If the scheduling response time of the on-demand distribution system 3 to the single file is longer than the preset time, it indicates that the on-demand distribution system 3 cannot optimize the hot spot processing, and the problem of single-point overheating exists, so that the system requirements are not met.
(2) For the fixed file array pressure measurement, judging whether the file deployment number is greater than or equal to a preset deployment number, if so, enabling the on-demand distribution system 3 to meet the system requirement; otherwise, if the number of file deployment copies is smaller than the preset number of deployment copies, the on-demand distribution system 3 does not meet the system requirements. For example, a pressure measurement file with the scheduling request number greater than or equal to 10000 within a preset time (e.g., 10 minutes) is defined as a high-heat pressure measurement file, and if the file deployment number of the high-heat pressure measurement file is less than or equal to 10000, the on-demand distribution system 3 does not meet the system requirement. Fixed file column pressure measurement scenarios the throughput capability of the on-demand distribution system 3 is primarily measured without new files added.
(3) For the dynamic update file array pressure measurement, judging whether the file distribution speed is greater than or equal to a preset speed, if so, the on-demand distribution system 3 meets the system requirement; otherwise, if the file distribution speed is lower than the preset speed, the on-demand distribution system 3 does not meet the system requirement. The dynamic updating of the file array pressure measurement scene is more suitable for the actual service use of the on-demand distribution system 3, and the file distribution speed is the most important pressure measurement index. Therefore, it can be determined whether the file distribution speed is less than or equal to the preset speed during dynamic update file array pressure measurement, and if the file distribution speed is less than or equal to the preset speed, it indicates that the on-demand distribution system 3 cannot timely deploy the pressure measurement file, so that the system requirements are not met.
The pressure testing device 10 of the on-demand distribution system according to the fourth embodiment issues a pressure policy to the client 2, so that the client 2 sends a scheduling request for the pressure measurement file to the on-demand distribution system 3 according to the pressure measurement frequency, the on-demand distribution system 3 deploys the pressure measurement file to the on-demand service node 4 according to the scheduling request, and the on-demand service node 4 where the pressure measurement file is deployed returns to the client 2; acquiring a pressure measurement index of the on-demand distribution system 3; and judging whether the on-demand distribution system 3 meets the system requirements or not according to the pressure measurement indexes. The pressure testing apparatus 10 of the on-demand distribution system according to the fourth embodiment can simulate an on-demand request with a client to perform a pressure test on the on-demand distribution system.
EXAMPLE five
The present embodiment provides a computer-readable storage medium, which stores thereon a computer program, and when the computer program is executed by a processor, the computer program implements the steps in the above-mentioned on-demand distribution system pressure testing method embodiment, such as the steps 301 and 303 shown in fig. 3:
step 301, issuing a pressure policy to a client, where the pressure policy includes a pressure measurement file and a pressure measurement frequency, and enabling the client to send a scheduling request for the pressure measurement file to an on-demand distribution system according to the pressure measurement frequency, and enabling the on-demand distribution system to deploy the pressure measurement file to an on-demand service node according to the scheduling request, and returning the on-demand service node where the pressure measurement file is deployed to the client;
step 302, obtaining a pressure measurement index of the on-demand distribution system;
and 303, judging whether the on-demand distribution system meets the system requirements or not according to the pressure measurement indexes.
Alternatively, the computer program, when executed by the processor, implements the functions of the modules/units in the above-described device embodiments, for example, unit 401 and 403 in fig. 4:
the issuing unit 401 is configured to issue a pressure policy to a client, where the pressure policy includes a pressure measurement file and a pressure measurement frequency, so that the client sends a scheduling request for the pressure measurement file to an on-demand distribution system according to the pressure measurement frequency, the on-demand distribution system deploys the pressure measurement file to an on-demand service node according to the scheduling request, and the on-demand service node where the pressure measurement file is deployed returns to the client;
an obtaining unit 402, configured to obtain a pressure measurement indicator of the on-demand distribution system;
a judging unit 403, configured to judge whether the on-demand distribution system meets the system requirement according to the pressure measurement indicator.
EXAMPLE six
Fig. 5 is a schematic diagram of a computer device according to an embodiment of the present invention. The computer device 1 comprises a memory 20, a processor 30 and a computer program 40, such as an on-demand distribution system stress test program, stored in the memory 20 and executable on the processor 30. When the processor 30 executes the computer program 40, the steps in the above-mentioned on-demand distribution system pressure testing method embodiment are implemented, for example, the steps 301 and 303 shown in fig. 3:
step 301, issuing a pressure policy to a client, where the pressure policy includes a pressure measurement file and a pressure measurement frequency, and enabling the client to send a scheduling request for the pressure measurement file to an on-demand distribution system according to the pressure measurement frequency, and enabling the on-demand distribution system to deploy the pressure measurement file to an on-demand service node according to the scheduling request, and returning the on-demand service node where the pressure measurement file is deployed to the client;
step 302, obtaining a pressure measurement index of the on-demand distribution system;
and 303, judging whether the on-demand distribution system meets the system requirements or not according to the pressure measurement indexes.
Alternatively, the processor 30, when executing the computer program 40, implements the functions of the modules/units in the above-mentioned device embodiments, for example, units 401 and 403 in fig. 4:
the issuing unit 401 is configured to issue a pressure policy to a client, where the pressure policy includes a pressure measurement file and a pressure measurement frequency, so that the client sends a scheduling request for the pressure measurement file to an on-demand distribution system according to the pressure measurement frequency, the on-demand distribution system deploys the pressure measurement file to an on-demand service node according to the scheduling request, and the on-demand service node where the pressure measurement file is deployed returns to the client;
an obtaining unit 402, configured to obtain a pressure measurement indicator of the on-demand distribution system;
a judging unit 403, configured to judge whether the on-demand distribution system meets the system requirement according to the pressure measurement indicator.
Illustratively, the computer program 40 may be partitioned into one or more modules/units that are stored in the memory 20 and executed by the processor 30 to implement the present invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program 40 in the computer apparatus 1. For example, the computer program 40 may be divided into a distribution unit 401, an acquisition unit 402, and a determination unit 403 in fig. 4, and the specific functions of each unit are shown in the fourth embodiment.
The computer device 1 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. It will be understood by those skilled in the art that the schematic diagram 5 is only an example of the computer apparatus 1, and does not constitute a limitation to the computer apparatus 1, and may include more or less components than those shown, or combine some components, or different components, for example, the computer apparatus 1 may further include an input and output device, a network access device, a bus, and the like.
The Processor 30 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. The general purpose processor may be a microprocessor or the processor 30 may be any conventional processor or the like, the processor 30 being the control center of the computer device 1 and connecting the various parts of the whole computer device 1 with various interfaces and lines.
The memory 20 may be used for storing the computer program 40 and/or the module/unit, and the processor 30 implements various functions of the computer device 1 by running or executing the computer program and/or the module/unit stored in the memory 20 and calling data stored in the memory 20. The memory 20 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the computer apparatus 1, and the like. In addition, the memory 20 may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
The modules/units integrated with the computer device 1 may be stored in a computer-readable storage medium if they are implemented in the form of software functional units and sold or used as separate products. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
In the embodiments provided in the present invention, it should be understood that the disclosed computer apparatus and method can be implemented in other ways. For example, the above-described embodiments of the computer apparatus are merely illustrative, and for example, the division of the units is only one logical function division, and there may be other divisions when the actual implementation is performed.
In addition, functional units in the embodiments of the present invention may be integrated into the same processing unit, or each unit may exist alone physically, or two or more units are integrated into the same unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional module.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned. Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. The units or computer means recited in the computer means claims may also be implemented by the same unit or computer means, either in software or in hardware. The terms first, second, etc. are used to denote names, but not any particular order.
Finally, it should be noted that the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.

Claims (8)

1. A pressure testing method of an on-demand distribution system is applied to a pressure testing device of the on-demand distribution system, and is characterized by comprising the following steps:
issuing a pressure strategy to a client, wherein the pressure strategy comprises a pressure measurement file and a pressure measurement frequency, so that the client sends a scheduling request for the pressure measurement file to an on-demand distribution system according to the pressure measurement frequency, the on-demand distribution system deploys the pressure measurement file to on-demand service nodes according to the scheduling request, the on-demand service nodes with the pressure measurement file deployed are returned to the client, and the number of the on-demand service nodes is multiple;
acquiring a pressure measurement index of the on-demand distribution system, wherein the pressure measurement index comprises the number of deployed files;
judging whether the on-demand distribution system meets the system requirements or not according to the pressure measurement indexes, and the method comprises the following steps: judging whether the deployment number of the files is larger than or equal to a preset deployment number, if so, enabling the on-demand distribution system to meet system requirements, wherein the deployment number of the files is the number of the pressure measurement files deployed to the on-demand service node by the on-demand distribution system, and the preset deployment number is determined according to the heat of the pressure measurement files.
2. The method of claim 1, wherein:
if the single file pressure test is carried out on the on-demand distribution system, the pressure test file is a single file;
if the fixed file list pressure test is carried out on the on-demand distribution system, the pressure test file is a file in the fixed file list;
and if the on-demand distribution system is subjected to the pressure test of the dynamic update file list, the pressure test file is a file in the dynamic file list.
3. The method of claim 2, wherein the pressure measurement indicators further include file distribution speed and/or scheduling response time;
the step of judging whether the on-demand distribution system meets the system requirements according to the pressure measurement indexes further comprises the following steps:
judging whether the scheduling response time is less than or equal to preset time, if so, enabling the on-demand distribution system to meet the system requirement; and/or
And judging whether the file distribution speed is greater than or equal to a preset speed or not, and if the file distribution speed is greater than or equal to the preset speed, the on-demand distribution system meets the system requirements.
4. The method of claim 1, wherein the determining whether the number of file deployments is greater than or equal to a preset number of deployments, and if the number of file deployments is greater than or equal to the preset number of deployments, the on-demand distribution system meeting system requirements comprises:
judging whether the file deployment number of the pressure measurement file in a preset region operator is larger than or equal to a preset deployment number, if so, enabling the on-demand distribution system to meet the system requirement, wherein the preset deployment number is determined according to the popularity of the pressure measurement file in the preset operator.
5. The method of claim 1, wherein said determining whether the on-demand distribution system meets system requirements based on the pressure measurement indicators comprises:
for single file pressure measurement, judging whether the scheduling response time is less than or equal to preset time, if so, the on-demand distribution system meets the system requirement; or
For the fixed file array pressure measurement, judging whether the file deployment number is greater than or equal to a preset deployment number, if the file deployment number is greater than or equal to the preset deployment number, the on-demand distribution system meets the system requirement, wherein the preset deployment number is determined according to the heat of the pressure measurement file; or
And for dynamic update file array pressure measurement, judging whether the file distribution speed is greater than or equal to a preset speed, and if the file distribution speed is greater than or equal to the preset speed, the on-demand distribution system meets the system requirements.
6. An on-demand dispensing system pressure testing apparatus, the apparatus comprising:
the system comprises a distributing unit, a request sending unit and a request distributing unit, wherein the distributing unit is used for sending a pressure strategy to a client, the pressure strategy comprises a pressure measurement file and a pressure measurement frequency, the client sends a scheduling request for the pressure measurement file to a demand distribution system according to the pressure measurement frequency, the demand distribution system deploys the pressure measurement file to a demand service node according to the scheduling request, the demand service node where the pressure measurement file is deployed is returned to the client, and the number of the demand service nodes is multiple;
the acquisition unit is used for acquiring a pressure measurement index of the on-demand distribution system, wherein the pressure measurement index comprises the number of file deployment copies;
the judging unit is used for judging whether the on-demand distribution system meets the system requirements according to the pressure measurement indexes, and is specifically used for: judging whether the deployment number of the files is larger than or equal to a preset deployment number, if so, enabling the on-demand distribution system to meet system requirements, wherein the deployment number of the files is the number of the pressure measurement files deployed to the on-demand service node by the on-demand distribution system, and the preset deployment number is determined according to the heat of the pressure measurement files.
7. A computer device, characterized by: the computer apparatus includes a processor for executing a computer program stored in a memory to implement the on-demand dispensing system pressure testing method of any of claims 1-5.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: the computer program, when executed by a processor, implements the on-demand distribution system stress testing method of any of claims 1-5.
CN201811143505.8A 2018-09-28 2018-09-28 Pressure testing method and device for on-demand distribution system, computer device and computer storage medium Active CN109446074B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811143505.8A CN109446074B (en) 2018-09-28 2018-09-28 Pressure testing method and device for on-demand distribution system, computer device and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811143505.8A CN109446074B (en) 2018-09-28 2018-09-28 Pressure testing method and device for on-demand distribution system, computer device and computer storage medium

Publications (2)

Publication Number Publication Date
CN109446074A CN109446074A (en) 2019-03-08
CN109446074B true CN109446074B (en) 2022-04-01

Family

ID=65544580

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811143505.8A Active CN109446074B (en) 2018-09-28 2018-09-28 Pressure testing method and device for on-demand distribution system, computer device and computer storage medium

Country Status (1)

Country Link
CN (1) CN109446074B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111290907A (en) * 2020-01-14 2020-06-16 深圳市网心科技有限公司 Distributed storage network pressure measurement method and device, computer device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101291263A (en) * 2008-06-13 2008-10-22 中兴通讯股份有限公司 Performance test system and method for content distributing network node
CN101291260A (en) * 2007-09-25 2008-10-22 深圳市同洲电子股份有限公司 Load test system and method for stream media service
CN103313093A (en) * 2012-03-14 2013-09-18 腾讯科技(深圳)有限公司 Method and index system for distributed video on demand
CN105357073A (en) * 2015-11-17 2016-02-24 深圳市网心科技有限公司 Infinite-node based network performance test system and method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060271322A1 (en) * 2005-05-31 2006-11-30 David Haggerty Systems and Methods Providing A Normalized Graphical User Interface For Testing Disparate Devices

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101291260A (en) * 2007-09-25 2008-10-22 深圳市同洲电子股份有限公司 Load test system and method for stream media service
CN101291263A (en) * 2008-06-13 2008-10-22 中兴通讯股份有限公司 Performance test system and method for content distributing network node
CN103313093A (en) * 2012-03-14 2013-09-18 腾讯科技(深圳)有限公司 Method and index system for distributed video on demand
CN105357073A (en) * 2015-11-17 2016-02-24 深圳市网心科技有限公司 Infinite-node based network performance test system and method

Also Published As

Publication number Publication date
CN109446074A (en) 2019-03-08

Similar Documents

Publication Publication Date Title
CN106843828B (en) Interface display and loading method and device
CN111262759B (en) Internet of things platform testing method, device, equipment and storage medium
US9087156B2 (en) Application version release management
CN111931949A (en) Communication in a federated learning environment
US10248674B2 (en) Method and apparatus for data quality management and control
CN109309596B (en) Pressure testing method and device and server
CN113094136A (en) Page display control method and device, storage medium and electronic equipment
CN109831532B (en) Data sharing method, device, equipment and medium
CN109413147B (en) Service node management method, device, equipment and computer readable storage medium
CN103577207A (en) Loading method and loading device for interface components in custom interface system
CN102841846A (en) Software testing method, device and system based on Hadoop
US10755707B2 (en) Selectively blacklisting audio to improve digital assistant behavior
CN111694748B (en) Pressure testing method and device
CN104077082A (en) Network voting data storage method and device
CN109446074B (en) Pressure testing method and device for on-demand distribution system, computer device and computer storage medium
CN110677321A (en) Elastically-telescopic cloud pressure measuring method, device, equipment and storage medium
CN108632085A (en) Gray scale user management method, device, platform and storage medium
CN114625407A (en) Method, system, equipment and storage medium for implementing AB experiment
CN110933070A (en) User identification method, system, equipment and computer readable storage medium
CN113507529B (en) Method for realizing file downloading based on Web application
CN109982412A (en) A kind of wifi access point connection method and device
CN114384611A (en) Typhoon simulation area determining method and device, electronic equipment and storage medium
CN109982143B (en) Method, device, medium and equipment for determining video playing time delay
CN104240016A (en) Management method and device for users in virtual place
CN110162982A (en) Detect method and device, the storage medium, electronic equipment of illegal permission

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
GR01 Patent grant
GR01 Patent grant