CN109446074A - On-demand distribution system pressure test method and device, computer installation and computer storage medium - Google Patents

On-demand distribution system pressure test method and device, computer installation and computer storage medium Download PDF

Info

Publication number
CN109446074A
CN109446074A CN201811143505.8A CN201811143505A CN109446074A CN 109446074 A CN109446074 A CN 109446074A CN 201811143505 A CN201811143505 A CN 201811143505A CN 109446074 A CN109446074 A CN 109446074A
Authority
CN
China
Prior art keywords
pressure
file
distribution system
demand distribution
surveys
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.)
Granted
Application number
CN201811143505.8A
Other languages
Chinese (zh)
Other versions
CN109446074B (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

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 kind of on-demand distribution system pressure test method, it include: to issue pressure strategy to client, the pressure strategy includes that pressure surveys file, pressure measured frequency, client is set to send the scheduling request for surveying file to the pressure to on-demand distribution system according to the pressure measured frequency, and make the on-demand distribution system that pressure survey file are deployed to order program service node according to the scheduling request, the order program service node for disposing the pressure survey file is returned into the client;The pressure for obtaining the on-demand distribution system surveys index;Index, which is surveyed, according to the pressure judges whether the on-demand distribution system meets system requirements.The present invention also provides a kind of on-demand distribution system pressure test device, computer installation and computer readable storage mediums.The present invention can carry out pressure test to on-demand distribution system.

Description

On-demand distribution system pressure test method and device, computer installation and computer are deposited Storage media
Technical field
The present invention relates to software testing technology fields, and in particular to a kind of on-demand distribution system pressure test method and dress It sets, computer installation and computer readable storage medium.
Background technique
On-demand distribution system has the characteristics that large user's amount, high concurrent, in order to guarantee the performance of on-demand distribution system, needs A kind of reliable method for testing pressure is wanted, pressure test can be carried out to on-demand distribution system.
Summary of the invention
In view of the foregoing, it is necessary to propose a kind of on-demand distribution system pressure test method and device, computer installation And computer readable storage medium, pressure test can be carried out to on-demand distribution system.
The first aspect of the application provides a kind of on-demand distribution system pressure test method, is applied to on-demand distribution system pressure Force test device, which comprises
Pressure strategy is issued to client, the pressure strategy includes that pressure surveys file, pressure measured frequency, makes client according to institute State pressure measured frequency to on-demand distribution system send to it is described pressure survey file scheduling request, and make the on-demand distribution system according to Pressure survey file is deployed to order program service node by the scheduling request, will dispose the order program service node of the pressure survey file Return to the client;
The pressure for obtaining the on-demand distribution system surveys index;
Index, which is surveyed, according to the pressure judges whether the on-demand distribution system meets system requirements.
In alternatively possible implementation, if carrying out single file pressure test, institute to the on-demand distribution system Stating pressure and surveying file is single file;
If listed files pressure test is fixed to the on-demand distribution system, it is glue file that the pressure, which surveys file, File in list;
If carrying out dynamic to the on-demand distribution system updates listed files pressure test, it is dynamic that the pressure, which surveys file, File in listed files.
In alternatively possible implementation, the pressure surveys the combination that index includes following one or more kinds of indexs: text Part distributes speed, file disposes number, dispatching response time;
It is described to judge whether the on-demand distribution system meets system requirements and include: according to pressure survey index
Judge whether the dispatching response time is less than or equal to preset time, if the dispatching response time is less than or waits In preset time, then the on-demand distribution system meets system requirements;And/or
Judge whether the file deployment number is greater than or equal to default deployment number, if file deployment number is greater than Or being equal to default deployment number, then the on-demand distribution system meets system requirements, wherein the default deployment number is according to institute The temperature for stating pressure survey file determines;And/or
Judge whether the file distributing speed is greater than or equal to pre-set velocity, if the file distributing speed is greater than or waits In pre-set velocity, then the on-demand distribution system meets system requirements.
It is described to judge whether the file deployment number is greater than or equal to default deployment in alternatively possible implementation Number, if file deployment number is greater than or equal to default deployment number, the on-demand distribution system meets system requirements Include:
Judge that the pressure surveys file and whether is greater than or equal to default deployment in the file deployment number of predeterminable area operator Number, if the pressure, which surveys file, is greater than or equal to default deployment number, the on-demand distribution system in predeterminable area operator System meets system requirements, wherein the default deployment number is true in the temperature of the default operator according to pressure survey file It is fixed.
It is described to judge whether the on-demand distribution system is full according to pressure survey index in alternatively possible implementation Pedal system demand includes:
Single file is pressed and is surveyed, judges whether the dispatching response time is less than or equal to preset time, if the tune The response time is spent less than or equal to preset time, then the on-demand distribution system meets system requirements;Or
Glue file list is pressed and is surveyed, judges whether the file deployment number is greater than or equal to default deployment number, If the file deployment number is greater than or equal to default deployment number, the on-demand distribution system meets system requirements, wherein The default deployment number is determined according to the temperature that the pressure surveys file;Or
Listed files pressure is updated for dynamic to survey, and judges whether the file distributing speed is greater than or equal to pre-set velocity, If the file distributing speed is greater than or equal to pre-set velocity, the on-demand distribution system meets system requirements.
The second aspect of the application provides a kind of on-demand distribution system pressure test method, is applied to client, the side Method includes:
Receive the pressure strategy that issues of program request dissemination system pressure test device, the pressure strategy include pressure survey file, Press measured frequency;
The scheduling request for surveying file to the pressure is sent to on-demand distribution system according to the pressure measured frequency, makes the program request Pressure survey file is deployed to order program service node according to the scheduling request by dissemination system;
Receive the order program service node that the deployment pressure that the on-demand distribution system returns surveys file.
In alternatively possible implementation, the method also includes:
The request of data that file is surveyed to the pressure is sent to the order program service node;The order program service node is received to return The pressure returned surveys the playable data of file.
The third aspect of the application provides a kind of on-demand distribution system pressure test device, and described device includes:
Issuance unit, for issuing pressure strategy to client, the pressure strategy includes that pressure surveys file, pressure measured frequency, It sends client to on-demand distribution system according to the pressure measured frequency and the scheduling request of file is surveyed to the pressure, and make the point It broadcasts dissemination system and pressure survey file is deployed to by order program service node according to the scheduling request, the pressure will be disposed and survey file Order program service node return to the client;
Acquiring unit, the pressure for obtaining the on-demand distribution system survey index;
Judging unit judges whether the on-demand distribution system meets system requirements for surveying index according to the pressure.
The fourth aspect of the application provides a kind of computer installation, and the computer installation includes processor, the processing Device is for realizing the on-demand distribution system pressure test method when executing the computer program stored in memory.
The 5th aspect of the application provides a kind of computer readable storage medium, is stored thereon with computer program, described The on-demand distribution system pressure test method is realized when computer program is executed by processor.
The present invention issues pressure strategy to client, and the pressure strategy includes that pressure surveys file, pressure measured frequency, makes client It is sent according to the pressure measured frequency to on-demand distribution system and the scheduling request of file is surveyed to the pressure, and make the on-demand distribution system Pressure survey file is deployed to order program service node according to the scheduling request by system, and the program request for disposing the pressure survey file is taken Business node returns to the client;The pressure for obtaining the on-demand distribution system surveys index;According to pressure survey index judgement Whether on-demand distribution system meets system requirements.The present invention can use client simulation on-demand request, to on-demand distribution system into Row pressure test.
Detailed description of the invention
Fig. 1 is the application environment schematic diagram of on-demand distribution system pressure test method provided in an embodiment of the present invention.
Fig. 2 is the flow chart of on-demand distribution system pressure test method preferred embodiment provided in an embodiment of the present invention.
Fig. 3 be another embodiment of the present invention provides on-demand distribution system pressure test method preferred embodiment process Figure.
Fig. 4 is the structure chart of on-demand distribution system pressure test device preferred embodiment provided in an embodiment of the present invention.
Fig. 5 is the schematic diagram of computer installation preferred embodiment provided in an embodiment of the present invention.
Specific embodiment
To better understand the objects, features and advantages of the present invention, with reference to the accompanying drawing and specific real Applying example, the present invention will be described in detail.It should be noted that in the absence of conflict, embodiments herein and embodiment In feature can be combined with each other.
In the following description, numerous specific details are set forth in order to facilitate a full understanding of the present invention, described embodiment is only It is only a part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill Personnel's every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
Unless otherwise defined, all technical and scientific terms used herein and belong to technical field of the invention The normally understood meaning of technical staff is identical.Term as used herein in the specification of the present invention is intended merely to description tool The purpose of the embodiment of body, it is not intended that in the limitation present invention.
Preferably, on-demand distribution system pressure test method of the invention is applied in one or more computer installation In.The computer installation is that one kind can be automatic to carry out numerical value calculating and/or information according to the instruction for being previously set or storing The equipment of processing, hardware include but is not limited to microprocessor, specific integrated circuit (Application Specific Integrated Circuit, ASIC), programmable gate array (Field-Programmable Gate Array, FPGA), number Word processing device (Digital Signal Processor, DSP), embedded device etc..
The computer installation can be the calculating such as desktop PC, notebook, palm PC and cloud server and set It is standby.The computer installation can carry out people by modes such as keyboard, mouse, remote controler, touch tablet or voice-operated devices with user Machine interaction.
Embodiment one
Fig. 1 is the application environment schematic diagram of on-demand distribution system pressure test method provided in an embodiment of the present invention.
As shown in fig.1, the application environment of the on-demand distribution system pressure test method includes on-demand distribution system pressure Force test device 10, client 2, on-demand distribution system 3, order program service node 4.On-demand distribution system pressure test device 10 with Client 2, on-demand distribution system 3 communicate to connect, and client 2 is also communicated to connect with on-demand distribution system 3, order program service node 4, On-demand distribution system 3 is also communicated to connect with order program service node 4.
The on-demand distribution system pressure test device 10 carries out pressure test to on-demand distribution system 3 by client 2, The pressure for obtaining on-demand distribution system 3 surveys index.
The client 2 is used to provide order program service (such as video-on-demand service) to personal user.In the present embodiment, The client 2 can be personal cloud disk, such as play objective cloud.The quantity of the client 2 is multiple.The number of the client 2 Amount can be configured according to testing requirement.For example, in one embodiment, the quantity of the client 2 can be 100,000.
The on-demand distribution system 3, which is used to that pressure to be surveyed file according to the scheduling request of client 2, is deployed to order program service section Point 4.
The order program service node 4 is for providing order program data (such as video data).Client 2 is from the order program service Node 4 obtains order program data.The quantity of the order program service node 4 is also multiple.
Embodiment two
Fig. 2 is the flow chart of on-demand distribution system pressure test method provided in an embodiment of the present invention.
Shown in 2, the on-demand distribution system pressure test method specifically includes the following steps:
Step 201, on-demand distribution system pressure test device 10 issues pressure strategy, the pressure strategy to client 2 File, pressure measured frequency are surveyed including pressure.
It in the present embodiment, include single file pressure test, glue file column to the pressure test of on-demand distribution system 3 Meter pressure test, dynamic update listed files pressure test.
If carrying out single file pressure test to on-demand distribution system 3, pressing and surveying file is single file.
If listed files pressure test is fixed to on-demand distribution system 3, pressing and surveying file is in glue file list File.For example, can randomly select a file from glue file list as pressure surveys file;Alternatively, can be from fixation A file is chosen in listed files in a predetermined order as pressure and surveys file.
If carrying out dynamic to on-demand distribution system 3 updates listed files pressure test, presses and survey file as living document column File in table.For example, the living document list can be updated according to predeterminated frequency (such as once every hour), from described dynamic A file is randomly selected in state living document list as pressure surveys file;Alternatively, being pressed from the dynamic living document list Predetermined order chooses a file as pressure and surveys file.
Pressure measured frequency is the frequency that pressure test is carried out to on-demand distribution system 3.Pressure measured frequency can according to need progress Setting, for example, every 20 seconds it is primary, once every minute, every 10 minutes it is primary.
Step 202, client 2 sends to the on-demand distribution system 3 according to the pressure measured frequency and surveys file to the pressure Scheduling request.
If carrying out single file pressure test to on-demand distribution system 3, client 2 is according to the pressure measured frequency to described On-demand distribution system 3 sends the scheduling request to single file.Such as the every 20s of client 2 is sent to the on-demand distribution system 3 Scheduling request, requests same file every time.
If being fixed listed files pressure test to on-demand distribution system 3, client 2 according to the pressure measured frequency to The on-demand distribution system 3 sends scheduling request, requests a file in fixed list every time.For example, the every 20s of client 2 to The on-demand distribution system 3 sends a scheduling request, requests a file randomly selected in fixed list every time.
If carrying out dynamic to on-demand distribution system 3 updates listed files pressure test, client 2 is according to the pressure frequency measurement Rate sends scheduling request to the on-demand distribution system 3, a file in each request dynamic listed files.For example, client 2 every 20s are held to send a scheduling request, a random choosing in each request dynamic listed files to the on-demand distribution system 3 The file taken.
Step 203, pressure survey file is deployed to order program service node according to the scheduling request by on-demand distribution system 3 4, the order program service node 4 that the pressure surveys file will be disposed and return to the client 2.
On-demand distribution system 3 can count the scheduling request number that pressure surveys file, and the scheduling request number of file is surveyed according to pressure The temperature that pressure surveys file is obtained, the file that the determining pressure of the temperature for surveying file according to pressure surveys file disposes number.
If pressure surveys the scheduling request of file often, the temperature which surveys file is high.Otherwise, if pressure surveys the scheduling of file Request number of times is few, then the temperature of pressure survey file is low.For example, can be by preset time (such as 10 minutes) interior scheduling request number Surveying document definition more than or equal to 10000 pressure is that high temperature pressure surveys file, and scheduling request number in preset time is less than 10000 and more than or equal to 1000 pressure survey document definition be middle temperature pressure survey file, by scheduling request number in preset time It is that low-heat degree pressure surveys file that pressure less than 1000, which surveys document definition,.
In the present embodiment, the corresponding area operators of each scheduling request.Each order program service node also corresponds to one A area operators.The temperature that on-demand distribution system 3 can also survey file according to pressure determines that the area operators of pressure survey file are distributed.
Area operators are the particular network operators of specific geographical area.Region may include " East China ", " North China ", " south China ", " northeast ", " northwest ", " southwest " six large geographical area.Operator may include " telecommunications ", " connection ", " movement " three Big network operator.Therefore, area operators may include East China telecommunications, East China connection, East China movement, south China telecommunications, south China Southwestern telecommunications that connection, south China are mobile ..., southwestern connection, mobile totally 18 area operators in southwest.
Client 2 receive on-demand distribution system 3 return deployment it is described pressure survey file order program service node 4 after, The number that file is surveyed to the pressure can be sent to order program service node 4 (disposing the order program service node 4 of the pressure survey file) According to request, and the pressure for receiving the return of program request service node 4 surveys the playable data (such as video data) of file.
Step 204, the pressure that on-demand distribution system pressure test device 10 obtains the on-demand distribution system 3 surveys index.
The pressure of on-demand distribution system 3 surveys index and refers to that on-demand distribution system 3 is executed the pressure according to the scheduling request It surveys file and is deployed to order program service node 4, the order program service node 4 that the pressure surveys file will be disposed and return to the client 2 Performance indicator.
In the present embodiment, it includes file distributing speed, file deployment number, dispatching response time that the pressure, which surveys index,.
File distributing speed be received from on-demand distribution system 3 scheduling request to will press survey file be deployed to order program service The speed of node 4.The file that the file distributing speed can be on-demand distribution system 3 in specified time averagely distributes speed.
File deployment number is the number that the pressure of request is surveyed that file is deployed to order program service node 4 by on-demand distribution system 3.
The dispatching response time is that scheduling request is received from on-demand distribution system 3 to the order program service that will dispose pressure survey file The time of the return client 2 of node 4.
On-demand distribution system 3 can directly record pressure and survey index, such as be recorded in the journal file of on-demand distribution system 3.
Alternatively, on-demand distribution system 3 can recorde the file deployment information that pressure surveys file, the test of on-demand distribution system pressure Device 10 obtains the file deployment information, surveys index according to pressure described in file deployment acquisition of information.For example, on-demand distribution The record deployment pressure of system 3 surveys each order program service node 4 of file, and on-demand distribution system pressure test device 10 is pressed according to deployment The each order program service node 4 statistics pressure for surveying file surveys the file deployment number of file.For another example, on-demand distribution system 3 records point Dissemination system 3 is broadcast to receive the time of scheduling request and return to client 2 to the order program service node 4 that will dispose pressure survey file Time, on-demand distribution system pressure test device 10 receive the time of scheduling request according to on-demand distribution system 3 and arrive portion The time that the order program service node 4 that administration's pressure surveys file returns to client 2 calculates the dispatching response time.
On-demand distribution system pressure test device 10 can send pressure measured data request to on-demand distribution system 3, request institute It states pressure and surveys index or file deployment information.After on-demand distribution system 3 receives pressure measured data request, the pressure is surveyed into index or file Deployment information returns to program request dissemination system pressure test device 10.Alternatively, on-demand distribution system 3 can be according to predetermined period actively The pressure is sent to on-demand distribution system pressure test device 10 and surveys index or file deployment information, and on-demand distribution system pressure is surveyed The pressure that 10 reception program request dissemination system, 3 periodicity sending is set in trial assembly surveys index or file deployment information.
Step 205, on-demand distribution system pressure test device 10 judges the on-demand distribution system according to pressure survey index Whether system 3 meets system requirements.
It may determine that whether the dispatching response time is less than or equal to preset time, if the dispatching response time is less than Or being equal to preset time, then the on-demand distribution system 3 meets system requirements.Otherwise, if the dispatching response time is greater than in advance If the time, then the on-demand distribution system 3 is unsatisfactory for system requirements.
Or, it can be determined that whether the file deployment number is greater than or equal to default deployment number, if the Documents Department It affixes one's name to number and is greater than or equal to default deployment number, then the on-demand distribution system 3 meets system requirements.Otherwise, if the file It disposes number and is less than default deployment number, then the on-demand distribution system 3 is unsatisfactory for system requirements.The default deployment number root It is determined according to the temperature that the pressure surveys file.
Particularly, it can be determined that whether the pressure surveys file and be greater than or wait in the file deployment number of predeterminable area operator In default deployment number, if described press survey file to be greater than or equal to default deployment number in predeterminable area operator, described in On-demand distribution system 3 meets system requirements.Otherwise, if the pressure survey file is small in the file deployment number of predeterminable area operator In default deployment number, then the on-demand distribution system 3 is unsatisfactory for system requirements.The default deployment number is surveyed according to the pressure File is determined in the temperature of the default operator.File is surveyed in the judgement of the file deployment number of predeterminable area operator to pressure It is to determine whether on-demand distribution system 3 has area operators hot spot judgement, if file can be surveyed according to pressure Area operators temperature carries out file deployment.Only on-demand distribution system 3 surveys file corresponding area operators there portion in pressure The file of enough numbers has been affixed one's name to, corresponding scheduling request is just able to satisfy.
Or, it can be determined that whether the file distributing speed is greater than or equal to pre-set velocity, if the file distributing is fast Degree is greater than or equal to pre-set velocity, then the on-demand distribution system 3 meets system requirements.Otherwise, if the file distributing speed Less than pre-set velocity, then the on-demand distribution system 3 is unsatisfactory for system requirements.
In order to improve the accuracy that pressure is surveyed, in the present embodiment, index is surveyed according to the pressure and judges the on-demand distribution system Whether system 3, which meets system requirements, may include:
(1) single file is pressed and is surveyed, judge whether the file distributing speed is less than or equal to preset time, if described File distributing speed is less than or equal to preset time, then the on-demand distribution system 3 meets system requirements;Otherwise, if the text Part distributes speed and is greater than preset time, then the on-demand distribution system 3 is unsatisfactory for system requirements.When single file pressure is surveyed, own Client 2 all press survey same file.The request of same file, if fallen on some specific order program service node, just It will lead to the unbalanced phenomena that this order program service node load is very high, other order program service nodes that do not request leave unused.If On-demand distribution system 3 is greater than preset time to the dispatching response time of single file, shows that on-demand distribution system 3 cannot optimize heat Point processing, there are single-point problems of excessive heat, thus are unsatisfactory for system requirements.
(2) glue file list is pressed and is surveyed, judge whether the file deployment number is greater than or equal to default deployment part Number, if file deployment number is greater than or equal to default deployment number, the on-demand distribution system 3 meets system requirements; Otherwise, if file deployment number is less than default deployment number, the on-demand distribution system 3 is unsatisfactory for system requirements.Example Such as, it is high temperature pressure that pressure of preset time (such as 10 minutes) the interior scheduling request number more than or equal to 10000, which surveys document definition, File is surveyed, if the file deployment number that high temperature pressure surveys file is less than or equal to 10000, the on-demand distribution system 3 is discontented Pedal system demand.Glue file list pressure surveys scene and mainly presses on-demand distribution system 3 in no new increased situation of file of surveying Handling capacity.
(3) listed files pressure is updated for dynamic to survey, judge whether the file distributing speed is greater than or equal to default speed Degree, if the file distributing speed is greater than or equal to pre-set velocity, the on-demand distribution system 3 meets system requirements;Otherwise, If the file distributing speed is less than pre-set velocity, the on-demand distribution system 3 is unsatisfactory for system requirements.Dynamic updates file It is more to meet the practical business use of program request dissemination system 3 that list pressure, which surveys scene, and file distributing speed is that most important pressure survey refers to Mark.Therefore, it is possible to judge that dynamic updates in listed files pressure survey, whether the file distributing speed is less than or equal to default speed Degree shows that on-demand distribution system 3 can not dispose pressure in time and survey text if the file distributing speed is less than or equal to pre-set velocity Part, thus it is unsatisfactory for system requirements.
In the on-demand distribution system pressure test method of embodiment two, on-demand distribution system pressure test device 10 is to client End 2 issues pressure strategy;Client 2 sends to the on-demand distribution system 3 according to the pressure measured frequency and surveys file to the pressure Scheduling request;Pressure survey file is deployed to order program service node 4 according to the scheduling request by on-demand distribution system 3, will It disposes the order program service node 4 that the pressure surveys file and returns to the client 2;On-demand distribution system pressure test device 10 obtains The pressure of the on-demand distribution system 3 surveys index;On-demand distribution system pressure test device 10 surveys index according to the pressure and judges institute State whether on-demand distribution system 3 meets system requirements.The on-demand distribution system pressure test method of embodiment two can use client End simulation on-demand request, carries out pressure test to on-demand distribution system.
Embodiment three
Fig. 3 is the flow chart of on-demand distribution system pressure test method provided in an embodiment of the present invention.The on-demand distribution System pressure test method is applied to on-demand distribution system pressure test device 10.
Shown in 3, the on-demand distribution system pressure test method specifically includes the following steps:
Step 301, pressure strategy is issued to client 2, the pressure strategy includes that pressure surveys file, pressure measured frequency, makes visitor Family end 2 sends to the on-demand distribution system 3 according to the pressure measured frequency and surveys the scheduling request of file to the pressure, and makes program request Pressure survey file is deployed to order program service node 4 according to the scheduling request by dissemination system 3, will be disposed the pressure and be surveyed file Order program service node 4 return to the client 2.
It in the present embodiment, include single file pressure test, glue file column to the pressure test of on-demand distribution system 3 Meter pressure test, dynamic update listed files pressure test.
If carrying out single file pressure test to on-demand distribution system 3, pressing and surveying file is single file.
If listed files pressure test is fixed to on-demand distribution system 3, pressing and surveying file is in glue file list File.For example, can randomly select a file from glue file list as pressure surveys file;Alternatively, can be from fixation A file is chosen in listed files in a predetermined order as pressure and surveys file.
If carrying out dynamic to on-demand distribution system 3 updates listed files pressure test, presses and survey file as living document column File in table.For example, the living document list can be updated according to predeterminated frequency (such as once every hour), from described dynamic A file is randomly selected in state living document list as pressure surveys file;Alternatively, being pressed from the dynamic living document list Predetermined order chooses a file as pressure and surveys file.
Pressure measured frequency is the frequency that pressure test is carried out to on-demand distribution system 3.Pressure measured frequency can according to need progress Setting, for example, every 20 seconds it is primary, once every minute, every 10 minutes it is primary.
Client 2 sends the scheduling for surveying file to the pressure to the on-demand distribution system 3 according to the pressure measured frequency and asks It asks.
If carrying out single file pressure test to on-demand distribution system 3, client 2 is according to the pressure measured frequency to described On-demand distribution system 3 sends the scheduling request to single file.Such as the every 20s of client 2 is sent to the on-demand distribution system 3 Scheduling request, requests same file every time.
If being fixed listed files pressure test to on-demand distribution system 3, client 2 according to the pressure measured frequency to The on-demand distribution system 3 sends scheduling request, requests a file in fixed list every time.For example, the every 20s of client 2 to The on-demand distribution system 3 sends a scheduling request, requests a file randomly selected in fixed list every time.
If carrying out dynamic to on-demand distribution system 3 updates listed files pressure test, client 2 is according to the pressure frequency measurement Rate sends scheduling request to the on-demand distribution system 3, a file in each request dynamic listed files.For example, client 2 every 20s are held to send a scheduling request, a random choosing in each request dynamic listed files to the on-demand distribution system 3 The file taken.
Pressure survey file is deployed to order program service node 4 according to the scheduling request by on-demand distribution system 3, will be disposed The order program service node 4 that the pressure surveys file returns to the client 2.
On-demand distribution system 3 can count the scheduling request number that pressure surveys file, and the scheduling request number of file is surveyed according to pressure The temperature that pressure surveys file is obtained, the file that the determining pressure of the temperature for surveying file according to pressure surveys file disposes number.
If pressure surveys the scheduling request of file often, the temperature which surveys file is high.Otherwise, if pressure surveys the scheduling of file Request number of times is few, then the temperature of pressure survey file is low.For example, can be by preset time (such as 10 minutes) interior scheduling request number Surveying document definition more than or equal to 10000 pressure is that high temperature pressure surveys file, and scheduling request number in preset time is less than 10000 and more than or equal to 1000 pressure survey document definition be middle temperature pressure survey file, by scheduling request number in preset time It is that low-heat degree pressure surveys file that pressure less than 1000, which surveys document definition,.
In the present embodiment, the corresponding area operators of each scheduling request.Each order program service node also corresponds to one A area operators.The temperature that on-demand distribution system 3 can also survey file according to pressure determines that the area operators of pressure survey file are distributed.
Area operators are the particular network operators of specific geographical area.Region may include " East China ", " North China ", " south China ", " northeast ", " northwest ", " southwest " six large geographical area.Operator may include " telecommunications ", " connection ", " movement " three Big network operator.Therefore, area operators may include East China telecommunications, East China connection, East China movement, south China telecommunications, south China Southwestern telecommunications that connection, south China are mobile ..., southwestern connection, mobile totally 18 area operators in southwest.
Client 2 receive on-demand distribution system 3 return deployment it is described pressure survey file order program service node 4 after, The number that file is surveyed to the pressure can be sent to order program service node 4 (disposing the order program service node 4 of the pressure survey file) According to request, and the pressure for receiving the return of program request service node 4 surveys the playable data (such as video data) of file.
Step 302, the pressure for obtaining the on-demand distribution system 3 surveys index.
The pressure of on-demand distribution system 3 surveys index and refers to that on-demand distribution system 3 is executed the pressure according to the scheduling request It surveys file and is deployed to order program service node 4, the order program service node 4 that the pressure surveys file will be disposed and return to the client 2 Performance indicator.
In the present embodiment, it includes file distributing speed, file deployment number, dispatching response time that the pressure, which surveys index,.
File distributing speed be received from on-demand distribution system 3 scheduling request to will press survey file be deployed to order program service The speed of node 4.The file that the file distributing speed can be on-demand distribution system 3 in specified time averagely distributes speed.
File deployment number is the number that the pressure of request is surveyed that file is deployed to order program service node 4 by on-demand distribution system 3.
The dispatching response time is that scheduling request is received from on-demand distribution system 3 to the order program service that will dispose pressure survey file The time of the return client 2 of node 4.
On-demand distribution system 3 can directly record pressure and survey index, such as be recorded in the journal file of on-demand distribution system 3.
Alternatively, on-demand distribution system 3 can recorde the file deployment information that pressure surveys file, the test of on-demand distribution system pressure Device 10 obtains the file deployment information, surveys index according to pressure described in file deployment acquisition of information.For example, on-demand distribution The record deployment pressure of system 3 surveys each order program service node 4 of file, and on-demand distribution system pressure test device 10 is pressed according to deployment The each order program service node 4 statistics pressure for surveying file surveys the file deployment number of file.For another example, on-demand distribution system 3 records point Dissemination system 3 is broadcast to receive the time of scheduling request and return to client 2 to the order program service node 4 that will dispose pressure survey file Time, on-demand distribution system pressure test device 10 receive the time of scheduling request according to on-demand distribution system 3 and arrive portion The time that the order program service node 4 that administration's pressure surveys file returns to client 2 calculates the dispatching response time.
On-demand distribution system pressure test device 10 can send pressure measured data request to on-demand distribution system 3, request institute It states pressure and surveys index or file deployment information.After on-demand distribution system 3 receives pressure measured data request, the pressure is surveyed into index or file Deployment information returns to program request dissemination system pressure test device 10.Alternatively, on-demand distribution system 3 can be according to predetermined period actively The pressure is sent to on-demand distribution system pressure test device 10 and surveys index or file deployment information, and on-demand distribution system pressure is surveyed The pressure that 10 reception program request dissemination system, 3 periodicity sending is set in trial assembly surveys index or file deployment information.
Step 303, index is surveyed according to the pressure and judges whether the on-demand distribution system 3 meets system requirements.
It may determine that whether the dispatching response time is less than or equal to preset time, if the dispatching response time is less than Or being equal to preset time, then the on-demand distribution system 3 meets system requirements.Otherwise, if the dispatching response time is greater than in advance If the time, then the on-demand distribution system 3 is unsatisfactory for system requirements.
Or, it can be determined that whether the file deployment number is greater than or equal to default deployment number, if the Documents Department It affixes one's name to number and is greater than or equal to default deployment number, then the on-demand distribution system 3 meets system requirements.Otherwise, if the file It disposes number and is less than default deployment number, then the on-demand distribution system 3 is unsatisfactory for system requirements.The default deployment number root It is determined according to the temperature that the pressure surveys file.
Particularly, it can be determined that whether the pressure surveys file and be greater than or wait in the file deployment number of predeterminable area operator In default deployment number, if described press survey file to be greater than or equal to default deployment number in predeterminable area operator, described in On-demand distribution system 3 meets system requirements.Otherwise, if the pressure survey file is small in the file deployment number of predeterminable area operator In default deployment number, then the on-demand distribution system 3 is unsatisfactory for system requirements.The default deployment number is surveyed according to the pressure File is determined in the temperature of the default operator.File is surveyed in the judgement of the file deployment number of predeterminable area operator to pressure It is to determine whether on-demand distribution system 3 has area operators hot spot judgement, if file can be surveyed according to pressure Area operators temperature carries out file deployment.Only on-demand distribution system 3 surveys file corresponding area operators there portion in pressure The file of enough numbers has been affixed one's name to, corresponding scheduling request is just able to satisfy.
Or, it can be determined that whether the file distributing speed is greater than or equal to pre-set velocity, if the file distributing is fast Degree is greater than or equal to pre-set velocity, then the on-demand distribution system 3 meets system requirements.Otherwise, if the file distributing speed Less than pre-set velocity, then the on-demand distribution system 3 is unsatisfactory for system requirements.
In order to improve the accuracy that pressure is surveyed, in the present embodiment, index is surveyed according to the pressure and judges the on-demand distribution system Whether system 3, which meets system requirements, may include:
(1) single file is pressed and is surveyed, judge whether the file distributing speed is less than or equal to preset time, if described File distributing speed is less than or equal to preset time, then the on-demand distribution system 3 meets system requirements;Otherwise, if the text Part distributes speed and is greater than preset time, then the on-demand distribution system 3 is unsatisfactory for system requirements.When single file pressure is surveyed, own Client 2 all press survey same file.The request of same file, if fallen on some specific order program service node, just It will lead to the unbalanced phenomena that this order program service node load is very high, other order program service nodes that do not request leave unused.If On-demand distribution system 3 is greater than preset time to the dispatching response time of single file, shows that on-demand distribution system 3 cannot optimize heat Point processing, there are single-point problems of excessive heat, thus are unsatisfactory for system requirements.
(2) glue file list is pressed and is surveyed, judge whether the file deployment number is greater than or equal to default deployment part Number, if file deployment number is greater than or equal to default deployment number, the on-demand distribution system 3 meets system requirements; Otherwise, if file deployment number is less than default deployment number, the on-demand distribution system 3 is unsatisfactory for system requirements.Example Such as, it is high temperature pressure that pressure of preset time (such as 10 minutes) the interior scheduling request number more than or equal to 10000, which surveys document definition, File is surveyed, if the file deployment number that high temperature pressure surveys file is less than or equal to 10000, the on-demand distribution system 3 is discontented Pedal system demand.Glue file list pressure surveys scene and mainly presses on-demand distribution system 3 in no new increased situation of file of surveying Handling capacity.
(3) listed files pressure is updated for dynamic to survey, judge whether the file distributing speed is greater than or equal to default speed Degree, if the file distributing speed is greater than or equal to pre-set velocity, the on-demand distribution system 3 meets system requirements;Otherwise, If the file distributing speed is less than pre-set velocity, the on-demand distribution system 3 is unsatisfactory for system requirements.Dynamic updates file It is more to meet the practical business use of program request dissemination system 3 that list pressure, which surveys scene, and file distributing speed is that most important pressure survey refers to Mark.Therefore, it is possible to judge that dynamic updates in listed files pressure survey, whether the file distributing speed is less than or equal to default speed Degree shows that on-demand distribution system 3 can not dispose pressure in time and survey text if the file distributing speed is less than or equal to pre-set velocity Part, thus it is unsatisfactory for system requirements.
The on-demand distribution system pressure test method of embodiment three is applied to on-demand distribution system pressure test device 10, should Method includes: to issue pressure strategy to client 2, sends out client 2 to the on-demand distribution system 3 according to the pressure measured frequency It send and the scheduling request of file is surveyed to the pressure, and make on-demand distribution system 3 according to the scheduling request by the Ya Ce Documents Department Order program service node 4 is affixed one's name to, the order program service node 4 that the pressure surveys file will be disposed and return to the client 2;Obtain the point The pressure for broadcasting dissemination system 3 surveys index;Index, which is surveyed, according to the pressure judges whether the on-demand distribution system 3 meets system requirements. The on-demand distribution system pressure test method of embodiment three can use client simulation on-demand request, carry out to on-demand distribution system Pressure test.
Example IV
Fig. 4 is the structure chart of on-demand distribution system pressure test device preferred embodiment provided in an embodiment of the present invention.Such as Shown in Fig. 4, the on-demand distribution system pressure test device 10 may include: issuance unit 401, acquiring unit 402, judgement list Member 403.
Issuance unit 401 issues pressure strategy to client 2 for on-demand distribution system pressure test device 10, described Pressure strategy includes that pressure surveys file, pressure measured frequency, sends out client 2 to the on-demand distribution system 3 according to the pressure measured frequency It send and the scheduling request of file is surveyed to the pressure, and make on-demand distribution system 3 according to the scheduling request by the Ya Ce Documents Department Order program service node 4 is affixed one's name to, the order program service node 4 that the pressure surveys file will be disposed and return to the client 2.
It in the present embodiment, include single file pressure test, glue file column to the pressure test of on-demand distribution system 3 Meter pressure test, dynamic update listed files pressure test.
If carrying out single file pressure test to on-demand distribution system 3, pressing and surveying file is single file.
If listed files pressure test is fixed to on-demand distribution system 3, pressing and surveying file is in glue file list File.For example, can randomly select a file from glue file list as pressure surveys file;Alternatively, can be from fixation A file is chosen in listed files in a predetermined order as pressure and surveys file.
If carrying out dynamic to on-demand distribution system 3 updates listed files pressure test, presses and survey file as living document column File in table.For example, the living document list can be updated according to predeterminated frequency (such as once every hour), from described dynamic A file is randomly selected in state living document list as pressure surveys file;Alternatively, being pressed from the dynamic living document list Predetermined order chooses a file as pressure and surveys file.
Pressure measured frequency is the frequency that pressure test is carried out to on-demand distribution system 3.Pressure measured frequency can according to need progress Setting, for example, every 20 seconds it is primary, once every minute, every 10 minutes it is primary.
Client 2 sends the scheduling for surveying file to the pressure to the on-demand distribution system 3 according to the pressure measured frequency and asks It asks.
If carrying out single file pressure test to on-demand distribution system 3, client 2 is according to the pressure measured frequency to described On-demand distribution system 3 sends the scheduling request to single file.Such as the every 20s of client 2 is sent to the on-demand distribution system 3 Scheduling request, requests same file every time.
If being fixed listed files pressure test to on-demand distribution system 3, client 2 according to the pressure measured frequency to The on-demand distribution system 3 sends scheduling request, requests a file in fixed list every time.For example, the every 20s of client 2 to The on-demand distribution system 3 sends a scheduling request, requests a file randomly selected in fixed list every time.
If carrying out dynamic to on-demand distribution system 3 updates listed files pressure test, client 2 is according to the pressure frequency measurement Rate sends scheduling request to the on-demand distribution system 3, a file in each request dynamic listed files.For example, client 2 every 20s are held to send a scheduling request, a random choosing in each request dynamic listed files to the on-demand distribution system 3 The file taken.
Pressure survey file is deployed to order program service node 4 according to the scheduling request by on-demand distribution system 3, will be disposed The order program service node 4 that the pressure surveys file returns to the client 2.
On-demand distribution system 3 can count the scheduling request number that pressure surveys file, and the scheduling request number of file is surveyed according to pressure The temperature that pressure surveys file is obtained, the file that the determining pressure of the temperature for surveying file according to pressure surveys file disposes number.
If scheduling request often, presses the temperature for surveying file high.Otherwise, if scheduling request number is few, survey file is pressed Temperature it is low.For example, the pressure that preset time (such as 10 minutes) interior scheduling request number can be greater than or equal to 10000 surveys text Part is defined as high temperature pressure and surveys file, the pressure by scheduling request number in preset time less than 10000 and more than or equal to 1000 Surveying document definition is that middle temperature pressure surveys file, and it is low that scheduling request number in preset time, which is surveyed document definition less than 1000 pressure, Temperature pressure surveys file.
In the present embodiment, the corresponding area operators of each scheduling request.Each order program service node also corresponds to one A area operators.The temperature that on-demand distribution system 3 can also survey file according to pressure determines that the area operators of pressure survey file are distributed.
Area operators are the particular network operators of specific geographical area.Region may include " East China ", " North China ", " south China ", " northeast ", " northwest ", " southwest " six large geographical area.Operator may include " telecommunications ", " connection ", " movement " three Big network operator.Therefore, area operators may include East China telecommunications, East China connection, East China movement, south China telecommunications, south China Southwestern telecommunications that connection, south China are mobile ..., southwestern connection, mobile totally 18 area operators in southwest.
Acquiring unit 402, the pressure for obtaining the on-demand distribution system 3 survey index.
In the present embodiment, it includes file distributing speed, file deployment number, dispatching response time that the pressure, which surveys index,.
File distributing speed be received from on-demand distribution system 3 scheduling request to will press survey file be deployed to order program service The speed of node 4.The file that the file distributing speed can be on-demand distribution system 3 in specified time averagely distributes speed.
File deployment number is the number that the pressure of request is surveyed that file is deployed to order program service node 4 by on-demand distribution system 3.
The dispatching response time is that scheduling request is received from on-demand distribution system 3 to the order program service that will dispose pressure survey file The time of the return client 2 of node 4.
On-demand distribution system 3 can directly record pressure and survey index, such as be recorded in the journal file of on-demand distribution system 3.
Alternatively, on-demand distribution system 3 can recorde the file deployment information that pressure surveys file, the test of on-demand distribution system pressure Device 10 obtains the file deployment information, surveys index according to pressure described in file deployment acquisition of information.For example, on-demand distribution The record deployment pressure of system 3 surveys each order program service node 4 of file, and on-demand distribution system pressure test device 10 is pressed according to deployment The each order program service node 4 statistics pressure for surveying file surveys the file deployment number of file.For another example, on-demand distribution system 3 records point Dissemination system 3 is broadcast to receive the time of scheduling request and return to client 2 to the order program service node 4 that will dispose pressure survey file Time, on-demand distribution system pressure test device 10 receive the time of scheduling request according to on-demand distribution system 3 and arrive portion The time that the order program service node 4 that administration's pressure surveys file returns to client 2 calculates the dispatching response time.
On-demand distribution system pressure test device 10 can send pressure measured data request to on-demand distribution system 3, request institute It states pressure and surveys index or file deployment information.After on-demand distribution system 3 receives pressure measured data request, the pressure is surveyed into index or file Deployment information returns to program request dissemination system pressure test device 10.Alternatively, on-demand distribution system 3 can be according to predetermined period actively The pressure is sent to on-demand distribution system pressure test device 10 and surveys index or file deployment information, and on-demand distribution system pressure is surveyed The pressure that 10 reception program request dissemination system, 3 periodicity sending is set in trial assembly surveys index or file deployment information.
Judging unit 403 judges whether the on-demand distribution system 3 meets system need for surveying index according to the pressure It asks.
It may determine that whether the dispatching response time is less than or equal to preset time, if the dispatching response time is less than Or being equal to preset time, then the on-demand distribution system 3 meets system requirements.Otherwise, if the dispatching response time is greater than in advance If the time, then the on-demand distribution system 3 is unsatisfactory for system requirements.
Or, it can be determined that whether the file deployment number is greater than or equal to default deployment number, if the Documents Department It affixes one's name to number and is greater than or equal to default deployment number, then the on-demand distribution system 3 meets system requirements.Otherwise, if the file It disposes number and is less than default deployment number, then the on-demand distribution system 3 is unsatisfactory for system requirements.The default deployment number root It is determined according to the temperature that the pressure surveys file.
Particularly, it can be determined that whether the pressure surveys file and be greater than or wait in the file deployment number of predeterminable area operator In default deployment number, if described press survey file to be greater than or equal to default deployment number in predeterminable area operator, described in On-demand distribution system 3 meets system requirements.Otherwise, if the pressure survey file is small in the file deployment number of predeterminable area operator In default deployment number, then the on-demand distribution system 3 is unsatisfactory for system requirements.The default deployment number is surveyed according to the pressure File is determined in the temperature of the default operator.File is surveyed in the judgement of the file deployment number of predeterminable area operator to pressure It is to determine whether on-demand distribution system 3 has area operators hot spot judgement, if file can be surveyed according to pressure Area operators temperature carries out file deployment.Only on-demand distribution system 3 surveys file corresponding area operators there portion in pressure The file of enough numbers has been affixed one's name to, corresponding scheduling request is just able to satisfy.
Or, it can be determined that whether the file distributing speed is greater than or equal to pre-set velocity, if the file distributing is fast Degree is greater than or equal to pre-set velocity, then the on-demand distribution system 3 meets system requirements.Otherwise, if the file distributing speed Less than pre-set velocity, then the on-demand distribution system 3 is unsatisfactory for system requirements.
In order to improve the accuracy that pressure is surveyed, in the present embodiment, index is surveyed according to the pressure and judges the on-demand distribution system Whether system 3, which meets system requirements, may include:
(1) single file is pressed and is surveyed, judge whether the file distributing speed is less than or equal to preset time, if described File distributing speed is less than or equal to preset time, then the on-demand distribution system 3 meets system requirements;Otherwise, if the text Part distributes speed and is greater than preset time, then the on-demand distribution system 3 is unsatisfactory for system requirements.When single file pressure is surveyed, own Client 2 all press survey same file.The request of same file, if fallen on some specific order program service node, just It will lead to the unbalanced phenomena that this order program service node load is very high, other order program service nodes that do not request leave unused.If On-demand distribution system 3 is greater than preset time to the dispatching response time of single file, shows that on-demand distribution system 3 cannot optimize heat Point processing, there are single-point problems of excessive heat, thus are unsatisfactory for system requirements.
(2) glue file list is pressed and is surveyed, judge whether the file deployment number is greater than or equal to default deployment part Number, if file deployment number is greater than or equal to default deployment number, the on-demand distribution system 3 meets system requirements; Otherwise, if file deployment number is less than default deployment number, the on-demand distribution system 3 is unsatisfactory for system requirements.Example Such as, it is high temperature pressure that pressure of preset time (such as 10 minutes) the interior scheduling request number more than or equal to 10000, which surveys document definition, File is surveyed, if the file deployment number that high temperature pressure surveys file is less than or equal to 10000, the on-demand distribution system 3 is discontented Pedal system demand.Glue file list pressure surveys scene and mainly presses on-demand distribution system 3 in no new increased situation of file of surveying Handling capacity.
(3) listed files pressure is updated for dynamic to survey, judge whether the file distributing speed is greater than or equal to default speed Degree, if the file distributing speed is greater than or equal to pre-set velocity, the on-demand distribution system 3 meets system requirements;Otherwise, If the file distributing speed is less than pre-set velocity, the on-demand distribution system 3 is unsatisfactory for system requirements.Dynamic updates file It is more to meet the practical business use of program request dissemination system 3 that list pressure, which surveys scene, and file distributing speed is that most important pressure survey refers to Mark.Therefore, it is possible to judge that dynamic updates in listed files pressure survey, whether the file distributing speed is less than or equal to default speed Degree shows that on-demand distribution system 3 can not dispose pressure in time and survey text if the file distributing speed is less than or equal to pre-set velocity Part, thus it is unsatisfactory for system requirements.
The on-demand distribution system pressure test device 10 of example IV issues pressure strategy to client 2, makes client 2 It is sent according to the pressure measured frequency to the on-demand distribution system 3 and the scheduling request of file is surveyed to the pressure, and make on-demand distribution system Pressure survey file is deployed to order program service node 4 according to the scheduling request by system 3, will dispose the program request of the pressure survey file Service node 4 returns to the client 2;The pressure for obtaining the on-demand distribution system 3 surveys index;Index judgement is surveyed according to the pressure Whether the on-demand distribution system 3 meets system requirements.The on-demand distribution system pressure test device 10 of example IV can be used Client simulation on-demand request carries out pressure test to on-demand distribution system.
Embodiment five
The present embodiment provides a kind of computer readable storage medium, computer is stored on the computer readable storage medium Program, the computer program realize the step in above-mentioned on-demand distribution system pressure test method embodiment when being executed by processor Such as step 301-303 shown in Fig. 3 suddenly:
Step 301, pressure strategy is issued to client, the pressure strategy includes that pressure surveys file, pressure measured frequency, makes client End sends to on-demand distribution system according to the pressure measured frequency and surveys the scheduling request of file to the pressure, and makes the on-demand distribution Pressure survey file is deployed to order program service node according to the scheduling request by system, will dispose the program request of the pressure survey file Service node returns to the client;
Step 302, the pressure for obtaining the on-demand distribution system surveys index;
Step 303, index is surveyed according to the pressure and judges whether the on-demand distribution system meets system requirements.
Alternatively, the function of each module/unit in above-mentioned apparatus embodiment is realized when the computer program is executed by processor, Such as the unit 401-403 in Fig. 4:
Issuance unit 401, for issuing pressure strategy to client, the pressure strategy includes that pressure surveys file, pressure frequency measurement Rate sends client to on-demand distribution system according to the pressure measured frequency and surveys the scheduling request of file to the pressure, and makes institute It states on-demand distribution system and pressure survey file is deployed to by order program service node according to the scheduling request, the pressure will be disposed and surveyed The order program service node of file returns to the client;
Acquiring unit 402, the pressure for obtaining the on-demand distribution system survey index;
Judging unit 403 judges whether the on-demand distribution system meets system requirements for surveying index according to the pressure.
Embodiment six
Fig. 5 is the schematic diagram of computer installation provided in an embodiment of the present invention.The computer installation 1 includes memory 20, processor 30 and the computer program 40 that can be run in the memory 20 and on the processor 30, example are stored in Such as on-demand distribution system pressure test program.The processor 30 realizes above-mentioned on-demand distribution when executing the computer program 40 Step in system pressure test method embodiment, such as step 301-303 shown in Fig. 3:
Step 301, pressure strategy is issued to client, the pressure strategy includes that pressure surveys file, pressure measured frequency, makes client End sends to on-demand distribution system according to the pressure measured frequency and surveys the scheduling request of file to the pressure, and makes the on-demand distribution Pressure survey file is deployed to order program service node according to the scheduling request by system, will dispose the program request of the pressure survey file Service node returns to the client;
Step 302, the pressure for obtaining the on-demand distribution system surveys index;
Step 303, index is surveyed according to the pressure and judges whether the on-demand distribution system meets system requirements.
Alternatively, realizing each module in above-mentioned apparatus embodiment/mono- when the processor 30 executes the computer program 40 The function of member, such as the unit 401-403 in Fig. 4:
Issuance unit 401, for issuing pressure strategy to client, the pressure strategy includes that pressure surveys file, pressure frequency measurement Rate sends client to on-demand distribution system according to the pressure measured frequency and surveys the scheduling request of file to the pressure, and makes institute It states on-demand distribution system and pressure survey file is deployed to by order program service node according to the scheduling request, the pressure will be disposed and surveyed The order program service node of file returns to the client;
Acquiring unit 402, the pressure for obtaining the on-demand distribution system survey index;
Judging unit 403 judges whether the on-demand distribution system meets system requirements for surveying index according to the pressure.
Illustratively, the computer program 40 can be divided into one or more module/units, it is one or Multiple module/units are stored in the memory 20, and are executed by the processor 30, to complete the present invention.Described one A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for Implementation procedure of the computer program 40 in the computer installation 1 is described.For example, the computer program 40 can be by Issuance unit 401, the acquiring unit 402, judging unit 403 being divided into Fig. 4, each unit concrete function is referring to example IV.
The computer installation 1 can be the calculating such as desktop PC, notebook, palm PC and cloud server and set It is standby.It will be understood by those skilled in the art that the schematic diagram 5 is only the example of computer installation 1, do not constitute to computer The restriction of device 1 may include perhaps combining certain components or different components, example than illustrating more or fewer components Such as described computer installation 1 can also include input-output equipment, network access equipment, bus.
Alleged processor 30 can be central processing unit (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor 30 is also possible to any conventional processor Deng the processor 30 is the control centre of the computer installation 1, utilizes various interfaces and connection entire computer dress Set 1 various pieces.
The memory 20 can be used for storing the computer program 40 and/or module/unit, and the processor 30 passes through Operation executes the computer program and/or module/unit being stored in the memory 20, and calls and be stored in memory Data in 20 realize the various functions of the computer installation 1.The memory 20 can mainly include storing program area and deposit Store up data field, wherein storing program area can application program needed for storage program area, at least one function (for example sound is broadcast Playing function, image player function etc.) etc.;Storage data area, which can be stored, uses created data (ratio according to computer installation 1 Such as audio data, phone directory) etc..In addition, memory 20 may include high-speed random access memory, it can also include non-easy The property lost memory, such as hard disk, memory, plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card), at least one disk memory, flush memory device or other Volatile solid-state part.
If the integrated module/unit of the computer installation 1 is realized in the form of SFU software functional unit and as independence Product when selling or using, can store in a computer readable storage medium.Based on this understanding, of the invention It realizes all or part of the process in above-described embodiment method, can also instruct relevant hardware come complete by computer program At the computer program can be stored in a computer readable storage medium, which is being executed by processor When, it can be achieved that the step of above-mentioned each embodiment of the method.Wherein, the computer program includes computer program code, described Computer program code can be source code form, object identification code form, executable file or certain intermediate forms etc..The meter Calculation machine readable medium may include: can carry the computer program code any entity or device, recording medium, USB flash disk, Mobile hard disk, magnetic disk, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory Device (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It needs to illustrate It is that the content that the computer-readable medium includes can be fitted according to the requirement made laws in jurisdiction with patent practice When increase and decrease, such as in certain jurisdictions, according to legislation and patent practice, computer-readable medium does not include electric carrier wave letter Number and telecommunication signal.
In several embodiments provided by the present invention, it should be understood that disclosed computer installation and method, it can be with It realizes by another way.For example, computer installation embodiment described above is only schematical, for example, described The division of unit, only a kind of logical function partition, there may be another division manner in actual implementation.
It, can also be in addition, each functional unit in each embodiment of the present invention can integrate in same treatment unit It is that each unit physically exists alone, can also be integrated in same unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of hardware adds software function module.
It is obvious to a person skilled in the art that invention is not limited to the details of the above exemplary embodiments, Er Qie In the case where without departing substantially from spirit or essential attributes of the invention, the present invention can be realized in other specific forms.Therefore, no matter From the point of view of which point, the present embodiments are to be considered as illustrative and not restrictive, and the scope of the present invention is by appended power Benefit requires rather than above description limits, it is intended that all by what is fallen within the meaning and scope of the equivalent elements of the claims Variation is included in the present invention.Any reference signs in the claims should not be construed as limiting the involved claims.This Outside, it is clear that one word of " comprising " does not exclude other units or steps, and odd number is not excluded for plural number.It is stated in computer installation claim Multiple units or computer installation can also be implemented through software or hardware by the same unit or computer installation.The One, the second equal words are used to indicate names, and are not indicated any particular order.
Finally it should be noted that the above examples are only used to illustrate the technical scheme of the present invention and are not limiting, although reference Preferred embodiment describes the invention in detail, those skilled in the art should understand that, it can be to of the invention Technical solution is modified or equivalent replacement, without departing from the spirit and scope of the technical solution of the present invention.

Claims (10)

1. a kind of on-demand distribution system pressure test method is applied to on-demand distribution system pressure test device, which is characterized in that The described method includes:
Pressure strategy is issued to client, the pressure strategy includes that pressure surveys file, pressure measured frequency, makes client according to the pressure Measured frequency sends to on-demand distribution system and surveys the scheduling request of file to the pressure, and makes the on-demand distribution system according to Pressure survey file is deployed to order program service node by scheduling request, and the order program service node for disposing the pressure survey file is returned The client;
The pressure for obtaining the on-demand distribution system surveys index;
Index, which is surveyed, according to the pressure judges whether the on-demand distribution system meets system requirements.
2. the method as described in claim 1, it is characterised in that:
If carrying out single file pressure test to the on-demand distribution system, it is single file that the pressure, which surveys file,;
If listed files pressure test is fixed to the on-demand distribution system, it is glue file list that the pressure, which surveys file, In file;
If carrying out dynamic to the on-demand distribution system updates listed files pressure test, it is living document that the pressure, which surveys file, File in list.
3. method according to claim 2, which is characterized in that it includes following one or more kinds of indexs that the pressure, which surveys index, In conjunction with: file distributing speed, file dispose number, dispatching response time;
It is described to judge whether the on-demand distribution system meets system requirements and include: according to pressure survey index
Judge whether the dispatching response time is less than or equal to preset time, if the dispatching response time is less than or equal in advance If the time, then the on-demand distribution system meets system requirements;And/or
Judge whether the file deployment number is greater than or equal to default deployment number, if file deployment number is greater than or waits In default deployment number, then the on-demand distribution system meets system requirements, wherein the default deployment number is according to the pressure The temperature for surveying file determines;And/or
Judge whether the file distributing speed is greater than or equal to pre-set velocity, if the file distributing speed is greater than or equal in advance If speed, then the on-demand distribution system meets system requirements.
4. method as claimed in claim 3, which is characterized in that described to judge whether the file deployment number is greater than or equal to Default deployment number, if file deployment number is greater than or equal to default deployment number, the on-demand distribution system meets System requirements include:
Judge that the pressure surveys file and whether is greater than or equal to default deployment number in the file deployment number of predeterminable area operator, If the pressure, which surveys file, is greater than or equal to default deployment number in predeterminable area operator, the on-demand distribution system meets System requirements determine wherein the default deployment number surveys file according to the pressure in the temperature of the default operator.
5. method as claimed in claim 3, which is characterized in that described to judge the on-demand distribution system according to pressure survey index Whether system, which meets system requirements, includes:
Single file is pressed and is surveyed, judges whether the dispatching response time is less than or equal to preset time, if the scheduling is rung It is less than or equal to preset time between seasonable, then the on-demand distribution system meets system requirements;Or
Glue file list is pressed and is surveyed, judges whether the file deployment number is greater than or equal to default deployment number, if institute It states file deployment number and is greater than or equal to default deployment number, then the on-demand distribution system meets system requirements, wherein described Default deployment number is determined according to the temperature that the pressure surveys file;Or
Listed files pressure is updated for dynamic to survey, and judges whether the file distributing speed is greater than or equal to pre-set velocity, if institute File distributing speed is stated more than or equal to pre-set velocity, then the on-demand distribution system meets system requirements.
6. a kind of on-demand distribution system pressure test method is applied to client, which is characterized in that the described method includes:
The pressure strategy that program request dissemination system pressure test device issues is received, the pressure strategy includes that pressure surveys file, pressure is surveyed Frequency;
The scheduling request for surveying file to the pressure is sent to on-demand distribution system according to the pressure measured frequency, makes the on-demand distribution Pressure survey file is deployed to order program service node according to the scheduling request by system;
Receive the order program service node that the deployment pressure that the on-demand distribution system returns surveys file.
7. method as claimed in claim 6, which is characterized in that the method also includes:
The request of data that file is surveyed to the pressure is sent to the order program service node;Receive what the order program service node returned The pressure surveys the playable data of file.
8. a kind of on-demand distribution system pressure test device, which is characterized in that described device includes:
Issuance unit, for issuing pressure strategy to client, the pressure strategy includes that pressure surveys file, pressure measured frequency, makes visitor Family end sends to on-demand distribution system according to the pressure measured frequency and surveys the scheduling request of file to the pressure, and makes the program request point Pressure survey file is deployed to order program service node according to the scheduling request by hair system, will dispose the point of the pressure survey file It broadcasts service node and returns to the client;
Acquiring unit, the pressure for obtaining the on-demand distribution system survey index;
Judging unit judges whether the on-demand distribution system meets system requirements for surveying index according to the pressure.
9. a kind of computer installation, it is characterised in that: the computer installation includes processor, and the processor is deposited for executing The computer program stored in reservoir to realize, survey as described in any one of claim 1-5 or 6-7 by on-demand distribution system pressure Method for testing.
10. a kind of computer readable storage medium, computer program, feature are stored on the computer readable storage medium It is: realizes the on-demand distribution system as described in any one of claim 1-5 or 6-7 when the computer program is executed by processor System method for testing pressure.
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 true CN109446074A (en) 2019-03-08
CN109446074B 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)

Cited By (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 (5)

* 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
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

Patent Citations (5)

* 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
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

Cited By (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

Also Published As

Publication number Publication date
CN109446074B (en) 2022-04-01

Similar Documents

Publication Publication Date Title
CN104967607B (en) A kind of information processing method, terminal and server
CN110460881A (en) Management method, device, computer equipment and the storage medium of attribute tags
CN108269109A (en) A kind of Advertisement arrangement injected volume equalization methods and device
CN104065672A (en) Advertisement pushing method, client and advertisement pushing system
CN104980417B (en) A kind of UGC document distribution method and equipment
CN107888666A (en) A kind of cross-region data-storage system and method for data synchronization and device
CN108259421A (en) The statistical method and system of a kind of user activity
CN103713895A (en) Data sending method and device
CN103679498A (en) Method and system for pushing the information on network terminal
EP1318471A2 (en) Survey methods, apparatus and programs
CN106792001A (en) The advertisement method for running and system of a kind of intelligent television
CN109150757B (en) Advertisement resource processing method and device and electronic equipment
CN109657965A (en) A kind of service resource allocation method, device, storage medium and processor
CN109446074A (en) On-demand distribution system pressure test method and device, computer installation and computer storage medium
CN103188763A (en) Sign-in method, device and electronic equipment based on space
CN110245014B (en) Data processing method and device
CN111930927B (en) Evaluation information display method and device, electronic equipment and readable storage medium
CA2968445C (en) Searching available rental vehicles based on adjustable parameters
CN110213628A (en) Direct broadcasting room distribution method and server
CN108829602A (en) Test method, test device, electronic equipment and storage medium
CN112862544A (en) Object information acquisition method and device and storage medium
CN112686697A (en) Multi-dimension-based user behavior data processing method and device
CN110188140A (en) Data pull method, apparatus, storage medium and computer equipment
CN109816450A (en) A kind of content promotion method and device
CN114268512B (en) Chat room recommendation method, chat room recommendation device, chat room recommendation server, chat room recommendation terminal, chat room recommendation program and chat room recommendation 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
GR01 Patent grant
GR01 Patent grant