CN108769107A - A kind of video dispatching method, device and electronic equipment - Google Patents
A kind of video dispatching method, device and electronic equipment Download PDFInfo
- Publication number
- CN108769107A CN108769107A CN201810326245.1A CN201810326245A CN108769107A CN 108769107 A CN108769107 A CN 108769107A CN 201810326245 A CN201810326245 A CN 201810326245A CN 108769107 A CN108769107 A CN 108769107A
- Authority
- CN
- China
- Prior art keywords
- client
- service
- weighted value
- value
- preset
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
- H04L67/63—Routing a service request depending on the request content or context
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
- H04L67/1004—Server selection for load balancing
- H04L67/1023—Server selection for load balancing based on a hash applied to IP addresses or costs
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/25—Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
- H04N21/258—Client or end-user data management, e.g. managing client capabilities, user preferences or demographics, processing of multiple end-users preferences to derive collaborative data
- H04N21/25866—Management of end-user data
- H04N21/25891—Management of end-user data being end-user preferences
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/20—Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
- H04N21/25—Management operations performed by the server for facilitating the content distribution or administrating data related to end-users or client devices, e.g. end-user or client device authentication, learning user preferences for recommending movies
- H04N21/262—Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists
- H04N21/26208—Content or additional data distribution scheduling, e.g. sending additional data at off-peak times, updating software modules, calculating the carousel transmission frequency, delaying a video stream transmission, generating play-lists the scheduling operation being performed under constraints
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Computer Networks & Wireless Communication (AREA)
- Multimedia (AREA)
- Computer Graphics (AREA)
- Information Transfer Between Computers (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
Video dispatching method, device and electronic equipment provided in an embodiment of the present invention, belong to computer realm.The Video service request sent by receiving client, obtain the current service weighted value of client, and current service Weighted Threshold, wherein, the current service weighted value of client is to watch the relevant parameter of video within a preset period of time according to client to be calculated, and then judges to service whether weighted value is more than service Weighted Threshold, if it is, client is then dispatched to preset good service device, if it is not, then client is dispatched to preset common server.Using the present invention, it can be according to the service weighted value of client and the service quality of server, the higher client of weighted value will be serviced and be dispatched to good service device, the lower client of weighted value will be serviced and be dispatched to common server, realize the rational management of server resource.
Description
Technical field
The present invention relates to computer realm, more particularly to a kind of video dispatching method, device and electronic equipment.
Background technology
In CDN (Content Delivery Network, content distributing network), scheduling is a kind of important technology.
Scheduling refers to that the service request by each user is assigned in corresponding server, to meet the demand for services of each user, and it is real
Existing server load balancing.
In video traffic, generally use is based on http (Hyper Text Transfer Protocol, Hyper text transfer
Agreement) the schedulers that redirects of 302 conditional codes be scheduled.Scheduler is typically negative from realization server when being scheduled
Balanced angle is carried to be scheduled.For example, scheduler is usually by current Video service request scheduling to the minimum service of load
In device.
However, inventor has found in the implementation of the present invention, at least there are the following problems for the prior art:
In video traffic, there are the users that malicious access (such as brush amount steals chain) or network are poor.In this case,
Using existing video dispatching method, the preferable server of service quality (may be properly termed as good service device, interim card
Ratio and ratio is smaller at a slow speed) distribute to malicious access or the poor user of network, this will lead to the waste of Service Source.
Invention content
The embodiment of the present invention is designed to provide a kind of video dispatching method method, apparatus and electronic equipment, to realize
The rational management of server resource.Specific technical solution is as follows:
In a first aspect, a kind of video dispatching method is provided, the method includes:
Receive the Video service request that client is sent;
Obtain the current service weighted value of the client and current service Weighted Threshold, wherein the client
Current service weighted value is to watch the relevant parameter of video within a preset period of time according to the client to be calculated;
Judge whether the service weighted value is more than the service Weighted Threshold;
If it is, the client is dispatched to preset good service device;
Alternatively, if it is not, then the client is dispatched to preset common server.
Optionally, the calculating process of the current service weighted value of each client, including:
According to each client video account login times within a preset period of time and/or watch the time length of video,
Determine the safe credit value of each client;
The speed of download for downloading each video file in the preset time period according to each client determines described each
The service quality value of client;
It is weighted according to the safe credit value of each client, the service quality value of each client and preset service
It is worth calculation formula, determines the service weighted value of each client.
Optionally, the download speed for downloading each video file in the preset time period according to each client
Degree, determines the service quality value of each client, including:
Obtain the speed of download that each client downloads each video file in the preset time period;
Using the median of the speed of download of each client as the standard download speed of each client;
The standard download speed of each client is ranked up according to sequence from small to large, by any client
The ratio for the serial number and each client sum of sorting, the service quality value as any client.
Optionally, the determination process of the service Weighted Threshold, including:
The service weighted value of each client is ranked up according to sequence from big to small;
According to the sequence as a result, and the preset good service device and common server quantity ratio, really
The fixed service Weighted Threshold.
Optionally, after the Video service request for receiving client transmission, the method further includes:
Obtain the integrated service weighted value and integrated service Weighted Threshold of the client, the integrated service weighting
Value services weighted value according to the preset number of the client and is calculated, and the integrated service Weighted Threshold is according to each client
The integrated service weighted value at end and the quantity ratio calculation of the preset good service device and common server obtain;
Using the integrated service weighted value of the client service weighted value current as the client, by the synthesis
Weighted Threshold is serviced as current service Weighted Threshold.
Optionally, after the Video service request for receiving client transmission, the method further includes:
Judge whether the client is included in the scoring list being generated in advance, each client in the scoring list
The total degree for accessing each video server is all higher than preset amount threshold;
If it is, executing the current service weighted value of the acquisition client and current service weighting threshold
The step of value.
Second aspect, provides a kind of video dispatching device, and described device includes:
Transceiver module, the Video service request for receiving client transmission;
Processing module, for obtaining the current service weighted value of the client and current service Weighted Threshold,
In, the current service weighted value of the client is to watch the relevant parameter of video within a preset period of time according to the client
It is calculated;
The processing module is additionally operable to judge whether the service weighted value is more than the service Weighted Threshold;
If it is, the client is dispatched to preset good service device;
If it is not, then the client is dispatched to preset common server.
Optionally, the processing module is specifically used for:
According to each client video account login times within a preset period of time and/or watch the time length of video,
Determine the safe credit value of each client;
The speed of download for downloading each video file in the preset time period according to each client determines described each
The service quality value of client;
It is weighted according to the safe credit value of each client, the service quality value of each client and preset service
It is worth calculation formula, determines the service weighted value of each client.
Optionally, the processing module is specifically used for:
Obtain the speed of download that each client downloads each video file in the preset time period;
Using the median of the speed of download of each client as the standard download speed of each client;
The standard download speed of each client is ranked up according to sequence from small to large, by any client
The ratio for the serial number and each client sum of sorting, the service quality value as any client.
Optionally, the processing module is specifically used for:
The service weighted value of each client is ranked up according to sequence from big to small;
According to the sequence as a result, and the preset good service device and common server quantity ratio, really
The fixed service Weighted Threshold.
Optionally, the processing module is specifically used for:
Obtain the integrated service weighted value and integrated service Weighted Threshold of the client, the integrated service weighting
Value services weighted value according to the preset number of the client and is calculated, and the integrated service Weighted Threshold is according to each client
The integrated service weighted value at end and the quantity ratio calculation of the preset good service device and common server obtain;
Using the integrated service weighted value of the client service weighted value current as the client, by the synthesis
Weighted Threshold is serviced as current service Weighted Threshold.
Optionally, the processing module is specifically used for:
Judge whether the client is included in the scoring list being generated in advance, each client in the scoring list
The total degree for accessing each video server is all higher than preset amount threshold;
If it is, executing the current service weighted value of the acquisition client and current service weighting threshold
The step of value.
The third aspect, provides a kind of electronic equipment, the electronic equipment include processor, communication interface, memory and
Communication bus, wherein the processor, the communication interface, the memory are completed each other by the communication bus
Communication;
The memory, for storing computer program;
The processor when for executing the program stored on the memory, is realized described in above-mentioned first aspect
Any video dispatching method step.
Fourth aspect, in order to achieve the above object, the embodiment of the present invention additionally provide a kind of computer readable storage medium,
Computer program is stored in the computer readable storage medium, when the computer program is executed by processor, in realization
State any video dispatching method step described in first aspect.
5th aspect, the embodiment of the present invention additionally provides a kind of computer program product including instruction, when it is being calculated
When being run on machine, any video dispatching method step described in above-mentioned first aspect is realized.
Video dispatching method, device and electronic equipment provided in an embodiment of the present invention, by receiving regarding for client transmission
Frequency service request obtains the current service weighted value of client and current service Weighted Threshold, wherein client is current
Service weighted value be to watch the relevant parameter of video within a preset period of time according to client to be calculated, then judge clothes
Whether weighted value of being engaged in is more than service Weighted Threshold, if it is, client is dispatched to preset good service device, if not
It is that client is then dispatched to preset common server.
Video dispatching method, device and electronic equipment provided in an embodiment of the present invention can add according to the service of client
The service quality of weights and server will service the higher client of weighted value and be dispatched to good service device, will service weighted value
Lower client is dispatched to common server, realizes the rational management of server resource.Certainly, implement any of the present invention
Product or method are not necessarily required to reach all the above advantage simultaneously.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technology description to be briefly described.
Fig. 1 is a kind of video dispatching method flow chart provided in an embodiment of the present invention;
Fig. 2 is a kind of method flow diagram of determining service weighted value provided in an embodiment of the present invention;
Fig. 3 is a kind of method flow diagram of determining service quality value provided in an embodiment of the present invention;
Fig. 4 is the statistical form signal of a kind of client secure credit value provided in an embodiment of the present invention and service quality value
Figure;
Fig. 5 is a kind of method flow diagram of determining service Weighted Threshold provided in an embodiment of the present invention;
Fig. 6 is provided in an embodiment of the present invention a kind of to determine current service weighted value and current service Weighted Threshold
Method flow diagram;
Fig. 7 is a kind of video dispatching apparatus structure schematic diagram provided in an embodiment of the present invention;
Fig. 8 is the structural schematic diagram of a kind of electronic equipment provided in an embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention is described.
The embodiment of the invention discloses a kind of video dispatching method, device and electronic equipment, the execution of the embodiment of the present invention
Main body can be the scheduler for video dispatching, be described in detail separately below.
As shown in FIG. 1, FIG. 1 is a kind of video dispatching method flow charts of the embodiment of the present invention, include the following steps:
S110:Receive the Video service request that client is sent.
In embodiments of the present invention, scheduler can receive the Video service request of client transmission, Video service request
In can include client (Internet Protocol, the Internet protocol) addresses IP and video traffic mark, wherein it is each
The service identification of video is unique, and client, scheduler and server can be identified by video traffic and distinguish each video.
S120:Obtain the current service weighted value of client and current service Weighted Threshold.
Wherein, the current service weighted value of client is to watch the related ginseng of video within a preset period of time according to client
What number was calculated.
In embodiments of the present invention, scheduler can extract the client ip address in Video service request, then from pre-
In the service weighted value list of each client first generated, the current service weighted value of the client and current clothes are obtained
Business Weighted Threshold.Wherein, the current service weighted value of client is to watch the phase of video within a preset period of time according to client
What related parameter was calculated.For example, being added according to the safe credit value and/or service quality value of client and preset service
Weight computing formula determines service weighted value of the data as client.Current service Weighted Threshold can be default
A fixed value determine current service alternatively, according to the current service weighted value of each client and preset proportionality coefficient
Weighted Threshold.
S130:Judge to service whether weighted value is more than service Weighted Threshold.If servicing weighted value is more than service weighting threshold
Value executes S140;If servicing weighted value is less than service Weighted Threshold, S150 is executed.
In embodiments of the present invention, the current service weighted value of client can be weighted threshold by scheduler with current service
Value is compared, and judges to service whether weighted value is more than service Weighted Threshold.
S140:Client is dispatched to preset good service device.
In embodiments of the present invention, if it is determined that the service weighted value of scheduler client currently adds more than current service
Threshold value is weighed, then the client is dispatched to preset good service device.Card of the service quality of server generally according to server
Ratio and/or ratio distinguishes at a slow speed, for example, ratio is less than the server of certain threshold value by interim card ratio and/or at a slow speed
As good service device, interim card ratio and/or at a slow speed ratio are more than the server of certain threshold value as common server, here
Threshold value, can be empirical value, the method for determination of the numerical value that can also be set as needed or adjust, the threshold value do not limit to
In this.
S150:Client is dispatched to preset common server.
In embodiments of the present invention, if it is determined that the service weighted value of scheduler client currently adds less than current service
Threshold value is weighed, then the client is dispatched to preset common server.
Video dispatching method provided in an embodiment of the present invention, can be according to the service weighted value of client and the clothes of server
Business quality, will service the higher client of weighted value and is dispatched to good service device, will service the lower client scheduling of weighted value
To common server, the rational management of server resource is realized.
Optionally, as a kind of embodiment of the embodiment of the present invention, the calculating of the current service weighted value of each client
Process can be with as shown in Fig. 2, include the following steps:
S210:According to each client video account login times within a preset period of time and/or watch time of video
Length determines the safe credit value of each client.
In embodiments of the present invention, scheduler can count the video account login time and login times of each client,
And the time of viewing video.Scheduler can according to the video account login times of each client within a preset period of time and/
Or the time length of viewing video, determine the safe credit value of each client.For example, scheduler is every the primary visitor of 8 hours statistics
The time length of the video account login times and viewing video at family end, if some client during this period of time logs in video
The number of account is more than preset first threshold, and the time for watching video is less than preset second threshold, then by the client
The safe credit value at end is arranged to lower value.The safe credit value range of each client can be arranged to 0~100 point, score value
It is higher that represent safe credit worthiness higher.
S220:The speed of download for downloading each video file within a preset period of time according to each client determines each client
Service quality value.
Scheduler can count the speed of download of primary each each video file of client downloads every the preset period,
Then using the median of the speed of download of each client or average value as the standard download speed of each client, if standard
Speed of download value is bigger, then the service quality value of the client is higher.The range of the service quality value of client can also be arranged
At 0~100 point.
S230:According to the safe credit value of each client, the service quality value of each client and preset service weighted value
Calculation formula determines the service weighted value of each client.
In view of practical application request, the embodiment of the present invention is wished when safe credit value is relatively low, with safe credit value
Increase, service weighted value can obviously increase;When safe credit value is higher, with the increase of safe credit value, service adds
The increased unobvious of weights, only service quality value increase can just so that servicing weighted value increases at this time.Therefore, if by client
The service weighted value at end is expressed as Sw, safe credit value is expressed as Sr, service quality value is expressed as Sq, then following public affairs can be used
Formula calculates Sw:
Sw=a*Sq*ln(b*Sr+1)
Wherein, a, b are preset coefficient.
In scheme provided in an embodiment of the present invention, when calculating the service weighted value of client, client has been considered
Safe credit value and service quality value, enable the service weighted value of client embody simultaneously client safe prestige and under
Carry speed.
Optionally, as a kind of embodiment of the embodiment of the present invention, above-mentioned steps S220 can be with as shown in figure 3, include
Following steps:
S221:Obtain the speed of download that each client downloads each video file within a preset period of time.
Scheduler can obtain the daily record of each each video file of client downloads in preset time period, then from these daily records
The middle speed for obtaining each downloading video files.
S222:Using the median of the speed of download of each client as the standard download speed of each client.
The speed of download of each client can be ranked up by scheduler respectively, then chosen median therein respectively and made
For the standard download speed of each client.
S223:The standard download speed of each client is ranked up according to sequence from small to large, by any client
Sequence serial number and each client sum ratio, the service quality value as any client.
The standard download speed of each client can be ranked up by scheduler according to sequence from small to large, then will be appointed
The ratio of the sequence serial number and each client sum of one client, the service quality value as any client.When using percentage
When processed, data are obtained after can the ratio of the sequence serial number of arbitrary client and each client sum being multiplied by 100, as any
The service quality value of client.For example, a total of 10 clients, the service quality value for being arranged in the 6th client can be with
It is denoted as:6/10*100=60.If computational accuracy is of less demanding, when it is decimal service quality point occur, decimal can be taken
Service quality value of the integer obtained after whole as client.Wherein, " * " in the embodiment indicates the multiplication between numerical value.
As shown in figure 4, being a kind of statistics of client secure credit value and service quality value provided in an embodiment of the present invention
Table can include the safe credit value and service quality value of the IP address and client of client in the table.For example, statistics
The second row indicates that the safe credit value for the client that IP address is 202.111.111.11 is 96 points in table, service quality value 88
Point.
In scheme provided in an embodiment of the present invention, when determining service quality value, by the middle position of the speed of download of client
It is worth the standard download speed as client, the service quality value obtained in this way can more represent the service quality of the client.
Optionally, as a kind of embodiment of the embodiment of the present invention, the determination process for servicing Weighted Threshold can be such as Fig. 5
It is shown, include the following steps:
S510:The service weighted value of each client is ranked up according to sequence from big to small.
The service weighted value of each client can be ranked up by scheduler according to sequence from big to small.
S520:According to sequence as a result, and preset good service device and common server quantity ratio, determine clothes
Business Weighted Threshold.
For example, preset good service device:Preset common server=3:1, scheduler can will be arranged in 30%
The service weighted value set is as service Weighted Threshold.Variation or preset good service device due to client sum with it is common
The variation of the quantity ratio of server causes preset good service device with the quantity ratio of common server without directly corresponding
Service weighted value when, service Weighted Threshold can be determined by way of rounding.For example, the sum when client is 12
When, due to 12*30%=3.6, at this moment the service weighted value for being arranged in the 4th can be added as service by way of rounding
Weigh threshold value.
In scheme provided in an embodiment of the present invention, when calculating service weighted value, the service of each client has been considered
The quantity ratio of weighted value and preset good service device and common server, the service Weighted Threshold calculated in this way can be equal
It weighs the load of each server.
Optionally, as shown in fig. 6, a kind of embodiment as the embodiment of the present invention, scheduler carried out S110 it
Afterwards, following steps be can also carry out:
S1101:Obtain the integrated service weighted value and integrated service Weighted Threshold of client.
Wherein, integrated service weighted value services weighted value according to the preset number of client and is calculated, integrated service
Weighted Threshold is according to the quantity ratio of the integrated service weighted value and preset good service device and common server of each client
It is calculated.
In embodiments of the present invention, scheduler can calculate the service weighted value of multiple periods, then according to preset
Integrated service weighted value calculation formula obtains integrated service Weighted Threshold.For example, scheduler can be primary each every calculating in 10 seconds
Client go over 5 minutes, past 30 seconds, past 10 seconds when service weighted value, the calculation formula of integrated service weighted value can be with
It is expressed as:
Sc=d*S5m+e*S30s+f*S10s
Wherein, ScIndicate integrated service weighted value, S5m、S30s、S10sPast 5 minutes, past 30 seconds, past 10 are indicated respectively
Second when service weighted value, d, e, f are predetermined coefficient, and d+e+f=1.
It, can be by these integrated services after the integrated service weighted value for determining each client by calculation formula above
Weighted value sorts from big to small, arrangement position is equal to or closest to default good service device and default common server quantity ratio
The integrated service weighted value of value is as integrated service Weighted Threshold.
S1102:Using the integrated service weighted value of the client service weighted value current as client, by integrated service plus
Threshold value is weighed as current service Weighted Threshold.
Integrated service can be weighted threshold by the integrated service weighted value service weighted value current as client by scheduler
Then value executes step S130 as current service Weighted Threshold.
In scheme provided in an embodiment of the present invention, using corresponding integrated service weighted value of multiple periods as current clothes
Business weighted value, the current service weighted value obtained in this way can more reflect the safe credit value and service quality value of client, with true
Protect the rational management of server resource.
Optionally, as a kind of embodiment of the embodiment of the present invention, scheduler can also carry out after having carried out S110
Following steps:
S11001:Judge whether client is included in the scoring list being generated in advance, each client in list of scoring
The total degree for accessing each video server is all higher than preset amount threshold.If so, executing S11002;If not, executing
S11003。
Scheduler can count the number that client accesses each video server, and access times are more than preset quantity threshold
It is worth corresponding client to be added in scoring list.It, can after scheduler receives the Video service request of client transmission
First to judge the client whether in list of scoring.
S11002:Obtain the current service weighted value of client and current service Weighted Threshold.
S11003:According to the preset algorithm (for example, minimum join algorithm or Weighted Round Robin) for realizing load balancing,
Client is dispatched to and loads smaller server.
In scheme provided in an embodiment of the present invention, it is contemplated that some clients access the total degree of each video server too
It is few, cause the service weighted value that scheduler calculates that may not be able to represent client really safe credit value and service quality value.
In this case, if using video dispatching method as shown in Figure 1, practical significance is little, is respectively regarded so being accessed in scheduling
When the total degree of frequency server is less than the client of preset amount threshold, directly using realization load balancing in the prior art
Algorithm is scheduled, rationally to utilize scheduler.
Based on the same technical idea, embodiment of the method shown in Fig. 1 is corresponded to, the embodiment of the present invention additionally provides one kind and regards
Frequency dispatching device, as shown in fig. 7, the device includes:
Transceiver module 701, the Video service request for receiving client transmission;
Processing module 702 weights threshold for obtaining the current service weighted value of the client and current service
Value, wherein the current service weighted value of the client is to watch the phase of video within a preset period of time according to the client
What related parameter was calculated;
The processing module 702 is additionally operable to judge whether the service weighted value is more than the service Weighted Threshold;
If it is, the client is dispatched to preset good service device;
Alternatively, if it is not, then the client is dispatched to preset common server.
Wherein, the transceiver module in the embodiment of the present invention, can be the transceiver in equipment, which may include connecing
Receive device and transmitter;In addition, the processing module in the embodiment of the present invention, can be the processor in equipment;The embodiment of the present invention
In the equipment, can be scheduler.
Video dispatching device provided in an embodiment of the present invention, can be according to the service weighted value of client and the clothes of server
Business quality, will service the higher client of weighted value and is dispatched to good service device, will service the lower client scheduling of weighted value
To common server, the rational management of server resource is realized.
Optionally, the processing module 702 is specifically used for:
According to each client video account login times within a preset period of time and/or watch the time length of video,
Determine the safe credit value of each client;
The speed of download for downloading each video file in the preset time period according to each client determines described each
The service quality value of client;
It is weighted according to the safe credit value of each client, the service quality value of each client and preset service
It is worth calculation formula, determines the service weighted value of each client.
In scheme provided in an embodiment of the present invention, when calculating the service weighted value of client, client has been considered
Safe credit value and service quality value, enable the service weighted value of client embody simultaneously client safe prestige and under
Carry speed.
Optionally, the processing module 702 is specifically used for:
Obtain the speed of download that each client downloads each video file in the preset time period;
Using the median of the speed of download of each client as the standard download speed of each client;
The standard download speed of each client is ranked up according to sequence from small to large, by any client
The ratio for the serial number and each client sum of sorting, the service quality value as any client.
In scheme provided in an embodiment of the present invention, when determining service quality value, by the middle position of the speed of download of client
It is worth the standard download speed as client, the service quality value obtained in this way can more represent the service quality of the client.
Optionally, the processing module 702 is specifically used for:
The service weighted value of each client is ranked up according to sequence from big to small;
According to the sequence as a result, and the preset good service device and common server quantity ratio, really
The fixed service Weighted Threshold.
In scheme provided in an embodiment of the present invention, when calculating service weighted value, the service of each client has been considered
The quantity ratio of weighted value and preset good service device and common server, the service Weighted Threshold calculated in this way can be equal
It weighs the load of each server.
Optionally, the processing module 702 is specifically used for:
Obtain the integrated service weighted value and integrated service Weighted Threshold of the client, the integrated service weighting
Value services weighted value according to the preset number of the client and is calculated, and the integrated service Weighted Threshold is according to each client
The integrated service weighted value at end and the quantity ratio calculation of the preset good service device and common server obtain;
Using the integrated service weighted value of the client service weighted value current as the client, by the synthesis
Weighted Threshold is serviced as current service Weighted Threshold.
In scheme provided in an embodiment of the present invention, using corresponding integrated service weighted value of multiple periods as current clothes
Business weighted value, the current service weighted value obtained in this way can more reflect the safe credit value and service quality value of client, with true
Protect the rational management of server resource.
Optionally, the processing module 702 is specifically used for:
Judge whether the client is included in the scoring list being generated in advance, each client in the scoring list
The total degree for accessing each video server is all higher than preset amount threshold;
If it is, executing the current service weighted value of the acquisition client and current service weighting threshold
The step of value.
Scheduler can count the number that client accesses each video server, and access times are more than preset quantity
The corresponding client of threshold value is added in scoring list.After scheduler receives the Video service request of client transmission,
It can first judge the client whether in list of scoring.
The embodiment of the present invention additionally provides a kind of electronic equipment, as shown in figure 8, including processor 801, communication interface 802,
Memory 803 and communication bus 804, wherein processor 801, communication interface 802, memory 803 are complete by communication bus 804
At mutual communication;
Memory 803, for storing computer program;
Processor 801 when for executing the program stored on memory 803, realizes provided in an embodiment of the present invention regard
Frequency dispatching method;
Specifically, above-mentioned video dispatching method, including:
Receive the Video service request that client is sent;
Obtain the current service weighted value of the client and current service Weighted Threshold, wherein the client
Current service weighted value is to watch the relevant parameter of video within a preset period of time according to the client to be calculated;
Judge whether the service weighted value is more than the service Weighted Threshold;
If it is, the client is dispatched to preset good service device;
If it is not, then the client is dispatched to preset common server.
It should be noted that other realization methods of above-mentioned video dispatching method are identical as preceding method embodiment part,
Which is not described herein again.
Electronic equipment provided in an embodiment of the present invention, can be according to the service weighted value of client and the Service Quality of server
Amount, the higher client of weighted value will be serviced and be dispatched to good service device, will service the lower client of weighted value be dispatched to it is general
Logical server, realizes the rational management of server resource.Certainly, it implements any of the products of the present invention or method is not necessarily required to
Reach all the above advantage simultaneously.
The communication bus of above-mentioned electronic equipment can be Peripheral Component Interconnect standard (Peripheral Component
Interconnect, abbreviation PCI) bus or expanding the industrial standard structure (Extended Industry Standard
Architecture, abbreviation EISA) bus etc..The communication bus can be divided into address bus, data/address bus, controlling bus etc..
For ease of indicating, only indicated with a thick line in figure, it is not intended that an only bus or a type of bus.
Communication interface is for the communication between above-mentioned electronic equipment and other equipment.
Memory may include random access memory (Random Access Memory, abbreviation RAM), can also include
Nonvolatile memory (non-volatile memory), for example, at least a magnetic disk storage.Optionally, memory may be used also
To be at least one storage device for being located remotely from aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit,
Abbreviation CPU), network processing unit (Network Processor, abbreviation NP) etc.;It can also be digital signal processor
(Digital Signal Processing, abbreviation DSP), application-specific integrated circuit (Application Specific
Integrated Circuit, abbreviation ASIC), field programmable gate array (Field Programmable Gate Array,
Abbreviation FPGA) either other programmable logic device, discrete gate or transistor logic, discrete hardware components.
In another embodiment provided by the invention, a kind of computer readable storage medium is additionally provided, which can
It reads to be stored with instruction in storage medium, when run on a computer so that computer executes any institute in above-described embodiment
The video dispatching method stated.
Readable storage medium storing program for executing provided in an embodiment of the present invention, can be according to the service weighted value of client and the clothes of server
Business quality, will service the higher client of weighted value and is dispatched to good service device, will service the lower client scheduling of weighted value
To common server, the rational management of server resource is realized.Certainly, implement any of the products of the present invention or method not necessarily
It needs to reach all the above advantage simultaneously.
In another embodiment provided by the invention, a kind of computer program product including instruction is additionally provided, when it
When running on computers so that computer executes any video dispatching method in above-described embodiment.
Computer program product provided in an embodiment of the present invention, can be according to the service weighted value of client and server
Service quality will service the higher client of weighted value and be dispatched to good service device, will service the lower client tune of weighted value
Common server is spent, the rational management of server resource is realized.Certainly, it implements any of the products of the present invention or method differs
It is fixed to need while reaching all the above advantage.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or its arbitrary combination real
It is existing.When implemented in software, it can entirely or partly realize in the form of a computer program product.The computer program
Product includes one or more computer instructions.When loading on computers and executing the computer program instructions, all or
It partly generates according to the flow or function described in the embodiment of the present invention.The computer can be all-purpose computer, special meter
Calculation machine, computer network or other programmable devices.The computer instruction can be stored in computer readable storage medium
In, or from a computer readable storage medium to the transmission of another computer readable storage medium, for example, the computer
Instruction can pass through wired (such as coaxial cable, optical fiber, number from a web-site, computer, server or data center
User's line (DSL)) or wireless (such as infrared, wireless, microwave etc.) mode to another web-site, computer, server or
Data center is transmitted.The computer readable storage medium can be any usable medium that computer can access or
It is comprising data storage devices such as one or more usable mediums integrated server, data centers.The usable medium can be with
It is magnetic medium, (for example, floppy disk, hard disk, tape), optical medium (for example, DVD) or semiconductor medium (such as solid state disk
Solid State Disk (SSD)) etc..
It should be noted that herein, relational terms such as first and second and the like are used merely to a reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to
Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those
Element, but also include other elements that are not explicitly listed, or further include for this process, method, article or equipment
Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, identical similar portion between each embodiment
Point just to refer each other, and each embodiment focuses on the differences from other embodiments.Especially for device,
For electronic equipment, readable storage medium storing program for executing and computer program product embodiments, since it is substantially similar to the method embodiment, institute
With the fairly simple of description, the relevent part can refer to the partial explaination of embodiments of method.
Claims (13)
1. a kind of video dispatching method, which is characterized in that the method includes:
Receive the Video service request that client is sent;
Obtain the current service weighted value of the client and current service Weighted Threshold, wherein the client is current
Service weighted value be to watch the relevant parameter of video within a preset period of time according to the client to be calculated;
Judge whether the service weighted value is more than the service Weighted Threshold;
If it is, the client is dispatched to preset good service device;
Alternatively, if it is not, then the client is dispatched to preset common server.
2. according to the method described in claim 1, it is characterized in that, the calculating process of the current service weighted value of each client,
Including:
According to each client video account login times within a preset period of time and/or the time length of video is watched, is determined
The safe credit value of each client;
The speed of download for downloading each video file in the preset time period according to each client determines each client
The service quality value at end;
According to the safe credit value of each client, the service quality value of each client and preset service weighted value meter
Formula is calculated, determines the service weighted value of each client.
3. according to the method described in claim 2, it is characterized in that, it is described according to each client in the preset time period
The interior speed of download for downloading each video file, determines the service quality value of each client, including:
Obtain the speed of download that each client downloads each video file in the preset time period;
Using the median of the speed of download of each client as the standard download speed of each client;
The standard download speed of each client is ranked up according to sequence from small to large, by the sequence of any client
The ratio of serial number and each client sum, the service quality value as any client.
4. according to the method described in claim 1, it is characterized in that, it is described service Weighted Threshold determination process, including:
The service weighted value of each client is ranked up according to sequence from big to small;
According to the sequence as a result, and the preset good service device and common server quantity ratio, determine institute
State service Weighted Threshold.
5. according to the method described in claim 1, it is characterized in that, the Video service for receiving client transmission asks it
Afterwards, the method further includes:
Obtain the integrated service weighted value and integrated service Weighted Threshold of the client, the integrated service weighted value root
It is calculated according to the preset number service weighted value of the client, the integrated service Weighted Threshold is according to each client
Integrated service weighted value and the quantity ratio calculation of the preset good service device and common server obtain;
Using the integrated service weighted value of the client service weighted value current as the client, by the integrated service
Weighted Threshold is as current service Weighted Threshold.
6. according to the method described in claim 1, it is characterized in that, the Video service for receiving client transmission asks it
Afterwards, the method further includes:
Judge whether the client is included in the scoring list being generated in advance, each client in the scoring list accesses
The total degree of each video server is all higher than preset amount threshold;
If it is, the current service weighted value of the acquisition client is executed, and current service Weighted Threshold
Step.
7. a kind of video dispatching device, which is characterized in that described device includes:
Transceiver module, the Video service request for receiving client transmission;
Processing module, for obtaining the current service weighted value of the client and current service Weighted Threshold, wherein
The current service weighted value of the client is to watch the relevant parameter meter of video within a preset period of time according to the client
It obtains;
The processing module is additionally operable to judge whether the service weighted value is more than the service Weighted Threshold;If it is, will
The client is dispatched to preset good service device;If it is not, then the client is dispatched to preset generic services
Device.
8. device according to claim 7, which is characterized in that the processing module is specifically used for:
According to each client video account login times within a preset period of time and/or the time length of video is watched, is determined
The safe credit value of each client;
The speed of download for downloading each video file in the preset time period according to each client determines each client
The service quality value at end;
According to the safe credit value of each client, the service quality value of each client and preset service weighted value meter
Formula is calculated, determines the service weighted value of each client.
9. device according to claim 8, which is characterized in that the processing module is specifically used for:
Obtain the speed of download that each client downloads each video file in the preset time period;
Using the median of the speed of download of each client as the standard download speed of each client;
The standard download speed of each client is ranked up according to sequence from small to large, by the sequence of any client
The ratio of serial number and each client sum, the service quality value as any client.
10. device according to claim 7, which is characterized in that the processing module is specifically used for:
The service weighted value of each client is ranked up according to sequence from big to small;
According to the sequence as a result, and the preset good service device and common server quantity ratio, determine institute
State service Weighted Threshold.
11. device according to claim 7, which is characterized in that the processing module is specifically used for:
Obtain the integrated service weighted value and integrated service Weighted Threshold of the client, the integrated service weighted value root
It is calculated according to the preset number service weighted value of the client, the integrated service Weighted Threshold is according to each client
Integrated service weighted value and the quantity ratio calculation of the preset good service device and common server obtain;
Using the integrated service weighted value of the client service weighted value current as the client, by the integrated service
Weighted Threshold is as current service Weighted Threshold.
12. device according to claim 7, which is characterized in that the processing module is specifically used for:
Judge whether the client is included in the scoring list being generated in advance, each client in the scoring list accesses
The total degree of each video server is all higher than preset amount threshold;
If it is, the current service weighted value of the acquisition client is executed, and current service Weighted Threshold
Step.
13. a kind of electronic equipment, which is characterized in that the electronic equipment includes that processor, communication interface, memory and communication are total
Line, wherein the processor, the communication interface, the memory complete mutual communication by the communication bus;
The memory, for storing computer program;
The processor when for executing the program stored on the memory, realizes any sides claim 1-6
Method step.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810326245.1A CN108769107B (en) | 2018-04-12 | 2018-04-12 | Video scheduling method and device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810326245.1A CN108769107B (en) | 2018-04-12 | 2018-04-12 | Video scheduling method and device and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108769107A true CN108769107A (en) | 2018-11-06 |
CN108769107B CN108769107B (en) | 2021-11-26 |
Family
ID=63981712
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810326245.1A Active CN108769107B (en) | 2018-04-12 | 2018-04-12 | Video scheduling method and device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108769107B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109951716A (en) * | 2019-03-26 | 2019-06-28 | 北京达佳互联信息技术有限公司 | A kind of main broadcaster's dispatching method, device, electronic equipment and readable storage medium storing program for executing |
CN110661879A (en) * | 2019-10-12 | 2020-01-07 | 北京奇艺世纪科技有限公司 | Node scheduling method, device and system, scheduling server and terminal equipment |
CN113435809A (en) * | 2021-06-01 | 2021-09-24 | 北京京东乾石科技有限公司 | Information processing method, device, electronic equipment and computer readable medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103647673A (en) * | 2013-12-24 | 2014-03-19 | 博元森禾信息科技(北京)有限公司 | Method and device for QoS (quality of service) prediction of Web service |
CN104883363A (en) * | 2015-05-11 | 2015-09-02 | 北京交通大学 | Method and device for analyzing abnormal access behaviors |
US20160094408A1 (en) * | 2014-01-21 | 2016-03-31 | Oracle International Corporation | System and method for enterprise java bean support in a multitenant application server environment |
CN105763476A (en) * | 2014-12-19 | 2016-07-13 | 电信科学技术研究院 | Method and apparatus for customizing data business service strategies |
CN105898402A (en) * | 2015-11-13 | 2016-08-24 | 乐视云计算有限公司 | Network scheduling method and system |
CN106922028A (en) * | 2015-12-28 | 2017-07-04 | 中兴通讯股份有限公司 | A kind of method of discrimination and device of wireless telecommunication system User Priority |
-
2018
- 2018-04-12 CN CN201810326245.1A patent/CN108769107B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103647673A (en) * | 2013-12-24 | 2014-03-19 | 博元森禾信息科技(北京)有限公司 | Method and device for QoS (quality of service) prediction of Web service |
US20160094408A1 (en) * | 2014-01-21 | 2016-03-31 | Oracle International Corporation | System and method for enterprise java bean support in a multitenant application server environment |
CN105763476A (en) * | 2014-12-19 | 2016-07-13 | 电信科学技术研究院 | Method and apparatus for customizing data business service strategies |
CN104883363A (en) * | 2015-05-11 | 2015-09-02 | 北京交通大学 | Method and device for analyzing abnormal access behaviors |
CN105898402A (en) * | 2015-11-13 | 2016-08-24 | 乐视云计算有限公司 | Network scheduling method and system |
CN106922028A (en) * | 2015-12-28 | 2017-07-04 | 中兴通讯股份有限公司 | A kind of method of discrimination and device of wireless telecommunication system User Priority |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109951716A (en) * | 2019-03-26 | 2019-06-28 | 北京达佳互联信息技术有限公司 | A kind of main broadcaster's dispatching method, device, electronic equipment and readable storage medium storing program for executing |
CN109951716B (en) * | 2019-03-26 | 2020-10-30 | 北京达佳互联信息技术有限公司 | Anchor scheduling method and device, electronic equipment and readable storage medium |
CN110661879A (en) * | 2019-10-12 | 2020-01-07 | 北京奇艺世纪科技有限公司 | Node scheduling method, device and system, scheduling server and terminal equipment |
CN110661879B (en) * | 2019-10-12 | 2023-03-24 | 北京奇艺世纪科技有限公司 | Node scheduling method, device and system, scheduling server and terminal equipment |
CN113435809A (en) * | 2021-06-01 | 2021-09-24 | 北京京东乾石科技有限公司 | Information processing method, device, electronic equipment and computer readable medium |
Also Published As
Publication number | Publication date |
---|---|
CN108769107B (en) | 2021-11-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107332902B (en) | The user of online customer service system asks distribution method, device and computing device | |
US9652538B2 (en) | Web crawler optimization system | |
CN109274987B (en) | Video set ordering method, server and readable storage medium | |
CN108762885B (en) | Virtual machine creating method and device, management equipment and terminal equipment | |
CN108769107A (en) | A kind of video dispatching method, device and electronic equipment | |
KR102450487B1 (en) | Hybrid client-server data delivery | |
CN108665321A (en) | High viscosity customer loss prediction technique, device and computer readable storage medium | |
US20160328783A1 (en) | Information processing apparatus, information processing method, and program | |
US20120130850A1 (en) | Techniques and system for revenue sharing in an online storefront | |
CN111753239B (en) | Resource distribution method and device, electronic equipment and storage medium | |
CN108038758B (en) | Application recommendation method and system and terminal equipment | |
CN110866040A (en) | User portrait generation method, device and system | |
CN112684899A (en) | Client operation control method and device, electronic equipment and computer readable medium | |
US20160162934A1 (en) | Advertisement distribution management device, advertisement distribution management method, and non-transitory computer readable storage medium | |
CN111831891A (en) | Material recommendation method and system | |
CN109804349B (en) | System and method for reducing download requirements | |
CN112561301A (en) | Work order distribution method, device, equipment and computer readable medium | |
US10366358B1 (en) | Backlogged computing work exchange | |
CN107734006A (en) | A kind of statistical log sending method, device and electronic equipment | |
CN113365095B (en) | Live broadcast resource recommendation method and device, electronic equipment and storage medium | |
CN109872211A (en) | A kind of method and apparatus of object recommendation | |
CN108572869A (en) | A kind of physical host selection method, device, equipment and readable storage medium storing program for executing | |
US20170169456A1 (en) | Methods and systems of cost determination of computational resources | |
CN114493132A (en) | Resource allocation method and device and electronic equipment | |
CN110674412A (en) | Resource recommendation information pushing method and device and electronic equipment |
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 |