CN109040800A - EPG dispatching method, device and electronic equipment - Google Patents
EPG dispatching method, device and electronic equipment Download PDFInfo
- Publication number
- CN109040800A CN109040800A CN201810953836.1A CN201810953836A CN109040800A CN 109040800 A CN109040800 A CN 109040800A CN 201810953836 A CN201810953836 A CN 201810953836A CN 109040800 A CN109040800 A CN 109040800A
- Authority
- CN
- China
- Prior art keywords
- application server
- epg
- epg application
- load
- television terminal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- 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/26283—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 for associating distribution time parameters to content, e.g. to generate electronic program guide data
-
- 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/254—Management at additional data server, e.g. shopping server, rights management server
-
- 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/25808—Management of client data
Abstract
The present invention provides a kind of EPG dispatching method, device and electronic equipments, are related to internet television technical field, this method comprises: receiving the EPG request that television terminal is sent;Wherein, the IP address of television terminal is carried in EPG request;According to the IP address of television terminal, the determining EPG application server cluster to match with television terminal;Numerical value of each EPG application server in a variety of load indexs at current time in acquisition EPG application server cluster;According to the numerical value of a variety of load indexs, the comentropy of every kind of load index in EPG application server cluster is calculated;Based on the comentropy of every kind of load index, each EPG application server is calculated in the load score at current time;Target EPG application server is determined in EPG application server cluster based on load score, and EPG request is routed into target EPG application server.The present invention is able to ascend the viewing experience degree of television terminal user.
Description
Technical field
The present invention relates to internet television technical fields, set more particularly, to a kind of EPG dispatching method, device and electronics
It is standby.
Background technique
With popularizing for internet television, the quantity of television terminal user is increasing, for EPG (Electronic
Program Guide, electronic program guides) service requirement it is also higher and higher.In order to meet exhibition of the television terminal to the EPG page
Show demand, the suitable EPG application server of fast selecting is needed to respond the request of television terminal.
Currently, usually by the way that static fixed weight is arranged to analyze to a variety of load indexs on EPG application server
The load condition of EPG application server, and then more appropriate EPG is chosen according to the load condition of each EPG application server and is answered
The request of television terminal is responded with server, such mode confidence level is not high, and request answer speed is usually very slow, leads
The viewing experience degree for sending a telegraph view terminal user is poor.
Summary of the invention
In view of this, the purpose of the present invention is to provide a kind of EPG dispatching method, device and electronic equipments, to promote electricity
Depending on the viewing experience degree of terminal user.
In a first aspect, being applied to EPG dispatch server, this method the embodiment of the invention provides a kind of EPG dispatching method
It include: the EPG request for receiving television terminal and sending;Wherein, the IP address of television terminal is carried in EPG request;According to TV
The IP address of terminal, the determining EPG application server cluster to match with television terminal;It obtains in EPG application server cluster
Numerical value of each EPG application server in a variety of load indexs at current time;According to the numerical value of a variety of load indexs, calculate
The comentropy of every kind of load index in EPG application server cluster;Based on the comentropy of every kind of load index, each EPG is calculated
Load score of the application server at current time;Determine that target EPG is answered in EPG application server cluster based on load score
Target EPG application server is routed to server, and by EPG request.
With reference to first aspect, the embodiment of the invention provides the first possible embodiment of first aspect, EPG requests
In also carry the account of television terminal;In the IP address according to television terminal, the determining EPG to match with television terminal is applied
Before server cluster, the above method further include: according to the account of television terminal, whether judge user corresponding to television terminal
For advanced level user;It is answered if it is, the EPG request that television terminal is sent is routed to EPG corresponding to the account of television terminal
Use server;If not, thening follow the steps: according to the IP address of television terminal, the determining EPG to match with television terminal is applied
Server cluster.
With reference to first aspect, the embodiment of the invention provides second of possible embodiments of first aspect, wherein root
According to the IP address of television terminal, the step of the determining EPG application server cluster to match with television terminal, comprising: according to electricity
Depending on the IP address of terminal, the geographical location information of television terminal is obtained;According to geographical location information, in predetermined server collection series
EPG application server cluster corresponding with geographical location information is searched in table;The EPG application server cluster that will be found,
It is determined as the EPG application server cluster to match with television terminal.
With reference to first aspect, the embodiment of the invention provides the third possible embodiments of first aspect, wherein root
According to the numerical value of a variety of load indexs, the step of calculating the comentropy of every kind of load index in EPG application server cluster, comprising:
According to the numerical value of a variety of load indexs, each EPG application service under every kind of load index in EPG application server cluster is calculated
Specific gravity shared by device;Based on ratio shared by each EPG application server under every kind of load index in EPG application server cluster
Weight and default entropy calculation formula, are calculated the comentropy of every kind of load index in EPG application server cluster.
With reference to first aspect, the embodiment of the invention provides the 4th kind of possible embodiments of first aspect, wherein base
In the comentropy of every kind of load index, each EPG application server is calculated the load score at current time the step of, comprising:
According to the comentropy of every kind of load index, the coefficient of variation of every kind of load index is determined;Difference system based on every kind of load index
Several and every kind of load index default weighting coefficient, obtains the weighted difference coefficient of every kind of load index;Referred to according to every kind of load
Target weighted difference coefficient calculates separately to obtain the weight of every kind of load index;Based on the weight of every kind of load index, calculate every
Load score of a EPG application server at current time.
With reference to first aspect, the embodiment of the invention provides the 5th kind of possible embodiments of first aspect, wherein base
In the step of load score determines target EPG application server in EPG application server cluster, comprising: to EPG application service
The load score of multiple EPG application servers in device cluster is ranked up;The application of EPG corresponding to minimum load score is taken
Business device is determined as target EPG application server.
With reference to first aspect, the embodiment of the invention provides the 6th kind of possible embodiments of first aspect, wherein
The case where on EPG application server cluster equipped with kafka message queue, spark computing engines and distributed memory database
Under, obtain EPG application server cluster in each EPG application server a variety of load indexs at current time numerical value it
Afterwards, the above method further include: by EPG application server each in EPG application server cluster current time a variety of loads
The numerical value of index is stored in kafka message queue, so that spark computing engines are a variety of according to extracting from kafka message queue
The numerical value of load index obtains each EPG application server in the load score at current time with real-time streaming calculation, and
It is stored in distributed memory database;Each EPG application server bearing at current time is extracted from distributed memory database
Lotus score, and execute step: target EPG application server is determined in EPG application server cluster based on load score, and will
EPG request routes to target EPG application server.
Second aspect, the embodiment of the invention provides a kind of EPG dispatching devices, are set to EPG dispatch server;The device
It include: EPG request receiving module, for receiving the EPG request of television terminal transmission;Wherein, TV end is carried in EPG request
The IP address at end;EPG application server cluster determining module, for the IP address according to television terminal, determining and television terminal
The EPG application server cluster to match;Load index obtains module, for obtaining each EPG in EPG application server cluster
Numerical value of the application server in a variety of load indexs at current time;Comentropy computing module, for according to a variety of load indexs
Numerical value, calculate EPG application server cluster in every kind of load index comentropy;Load score computing module, for being based on
The comentropy of every kind of load index calculates each EPG application server in the load score at current time;Target EPG application clothes
Business device determining module, for determining target EPG application server in EPG application server cluster based on load score, and will
EPG request routes to target EPG application server.
The third aspect is deposited in memory the embodiment of the invention provides a kind of electronic equipment, including memory and processor
The computer program that can be run on a processor is contained, processor realizes first aspect to first aspect when executing computer program
Any one of the 6th kind of possible embodiment described in method the step of.
Fourth aspect, the embodiment of the invention provides a kind of computer readable storage medium, computer readable storage mediums
On be stored with computer program, when computer program is run by processor execute first aspect to first aspect the 6th kind of possibility
Any one of embodiment described in method the step of.
The embodiment of the invention provides a kind of EPG dispatching method, device and electronic equipments, this method comprises: receiving first
The EPG request that television terminal is sent;Wherein, the IP address of television terminal is carried in EPG request;Then according to television terminal
IP address, the determining EPG application server cluster to match with television terminal, and according to the EPG application server cluster of acquisition
In each EPG application server a variety of load indexs at current time numerical value, calculate EPG application server cluster in every kind
The comentropy of load index;And then the comentropy based on every kind of load index, each EPG application server is calculated at current time
Load score;It is based ultimately upon load score and determines target EPG application server in EPG application server cluster, and by EPG
Request routes to target EPG application server.Aforesaid way provided in an embodiment of the present invention is by first determining and television terminal phase
Matched EPG application server cluster, then the comentropy based on every kind of load index in the EPG application server cluster, it is real
When dynamic calculate the load score of each EPG application server in the EPG application server cluster, can quickly determine suitably
Target EPG application server.It is that a variety of load index static state fixed setting weights are suitable to determine in compared to the prior art
The mode of EPG application server, confidence level is higher, can effectively promote the viewing experience degree of television terminal user.
Other features and advantages of the present invention will illustrate in the following description, also, partly become from specification
It obtains it is clear that understand through the implementation of the invention.The objectives and other advantages of the invention are in specification, claims
And specifically noted structure is achieved and obtained in attached drawing.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate
Appended attached drawing, is described in detail below.
Detailed description of the invention
It, below will be to specific in order to illustrate more clearly of the specific embodiment of the invention or technical solution in the prior art
Embodiment or attached drawing needed to be used in the description of the prior art be briefly described, it should be apparent that, it is described below
Attached drawing is some embodiments of the present invention, for those of ordinary skill in the art, before not making the creative labor
It puts, is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of flow chart of EPG service scheduling method provided in an embodiment of the present invention;
Fig. 2 is the flow chart of another kind EPG service scheduling method provided in an embodiment of the present invention;
Fig. 3 is a kind of structural block diagram of EPG service dispatch device provided in an embodiment of the present invention;
Fig. 4 is the structural schematic diagram of a kind of electronic equipment provided in an embodiment of the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with attached drawing to the present invention
Technical solution be clearly and completely described, it is clear that described embodiments are some of the embodiments of the present invention, rather than
Whole embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not making creative work premise
Under every other embodiment obtained, shall fall within the protection scope of the present invention.
Currently, usually by the way that static fixed weight is arranged to analyze to a variety of load indexs on EPG application server
The load condition of EPG application server, and then more appropriate EPG is chosen according to the load condition of each EPG application server and is answered
The request of television terminal is responded with server, such mode confidence level is not high, and request answer speed is usually very slow, leads
The viewing experience degree for sending a telegraph view terminal user is poor.Based on this, a kind of EPG dispatching method provided in an embodiment of the present invention, device
And electronic equipment, it can effectively promote the viewing experience degree of television terminal user.
For convenient for understanding the present embodiment, first to the service dispatch side a kind of EPG disclosed in the embodiment of the present invention
Method describes in detail.
A kind of flow chart of EPG dispatching method shown in Figure 1, this method are applied to EPG dispatch server;Wherein,
EPG dispatch server is communicated to connect with multiple television terminals and multiple EPG application server clusters respectively;The above method includes such as
Lower step:
Step S102 receives the EPG request that television terminal is sent;Wherein, the IP of television terminal is carried in EPG request
Location;Specifically, EPG request namely television terminal are to EPG (Electronic Program Guide, the electronic program guides) page
Displaying demand.The EPG page is similar with Web page, on the EPG page generally all provide all kinds of menus, button, linking etc. for
User selects the component clicked directly on when program;In addition, also may include all kinds of dynamics for user's browsing or quiet on the EPG page
The multimedia content of state.
Step S104, according to the IP address of television terminal, the determining EPG application server collection to match with television terminal
Group;When practical application, EPG server provides service with trunking mode, and region namely a city are generally divided as unit of city to be had
One EPG server cluster can determine and television terminal phase according to the affiliated city of IP address positioning television terminal of television terminal
Matched EPG application server cluster.Based on nearby principle, such mode can enable television terminal quickly access its affiliated area
Interior EPG application server cluster preferably improves the viewing experience degree of television terminal user.
Step S106, obtain EPG application server cluster in each EPG application server current time a variety of loads
The numerical value of index;Wherein, the type of load index includes online user number ratio, cpu busy percentage and memory usage.
Step S108 calculates in EPG application server cluster every kind of load index according to the numerical value of a variety of load indexs
Comentropy;Wherein, entropy is to a kind of probabilistic measurement.Information content is bigger, and uncertain just smaller, entropy is also just smaller;Letter
Breath amount is smaller, and uncertain bigger, comentropy is also bigger.It, can be by calculating EPG application server according to this characteristic of entropy
The entropy of each load index objectively judges that the dispersion degree of some load index, the dispersion degree of load index are got in cluster
Greatly, otherness is bigger, and influence of the load index for the load condition of EPG application server is bigger.For ease of understanding, with
It is illustrated for this load index of cpu busy percentage, if the cpu busy percentage of each EPG server is the same, CPU
Utilization rate is smaller for the Decision Making Effect for determining target EPG application server;If the cpu busy percentage of each EPG server is poor
It is different very big, then for determining that the Decision Making Effect of target EPG application server is larger.
Step S110 calculates each EPG application server bearing at current time based on the comentropy of every kind of load index
Lotus score;
Specifically, every kind can be determined by calculating the comentropy of every kind of load index in EPG application server cluster in real time
Load index for the load condition of EPG application server each in EPG application server cluster influence degree, in conjunction with current every
Kind of the load index actual significance level in each EPG application server is compared with calculating the weight of every kind of load index in real time
In the mode for being in the prior art every kind of static weight fixed of load index setting, real-time calculating provided in an embodiment of the present invention
The mode of the weight of every kind of load index is more objective, and then the weight based on every kind of load index, calculates each EPG application clothes
Load score of the business device at current time, confidence level with higher.
Step S112 determines target EPG application server based on load score in EPG application server cluster, and will
EPG request routes to target EPG application server.
Specifically, in a kind of optional mode, it can be to multiple EPG application servers in EPG application server cluster
Load score be ranked up;EPG application server corresponding to minimum load score is determined as target EPG application service
Device;And then EPG request is routed into target EPG application server, so that target EPG application server requests back EPG
It answers.
Above-mentioned EPG dispatching method provided in an embodiment of the present invention is applied to EPG dispatch server, this method comprises: first
Receive the EPG request that television terminal is sent;Wherein, the IP address of television terminal is carried in EPG request;Then according to TV end
The IP address at end, the determining EPG application server cluster to match with television terminal, and according to the EPG application server of acquisition
Each EPG application server calculates in EPG application server cluster in the numerical value of a variety of load indexs at current time in cluster
The comentropy of every kind of load index;And then the comentropy based on every kind of load index, each EPG application server is calculated current
The load score at moment;It is based ultimately upon load score and determines target EPG application server in EPG application server cluster, and
EPG request is routed into target EPG application server.Aforesaid way provided in an embodiment of the present invention passes through first determining whole with TV
Hold the EPG application server cluster to match, then the information based on every kind of load index in the EPG application server cluster
Entropy dynamically calculates the load score of each EPG application server in the EPG application server cluster in real time, can quickly determine
Suitable target EPG application server.It is a variety of load index static state fixed setting weights in compared to the prior art with determination
The mode of suitable EPG application server, confidence level is higher, can effectively promote the viewing experience of television terminal user
Degree.
Specifically, for ease of understanding, above-mentioned steps S104, namely according to the IP address of television terminal, it is determining whole with TV
The EPG application server cluster to match is held, can refer to following steps implementation:
(1), according to the IP address of television terminal, the geographical location information of television terminal is obtained;Wherein, geographical location information
Including television terminal region, such as city xx of xx province.
(2), it according to geographical location information, is searched in predetermined server cluster-list corresponding with geographical location information
EPG application server cluster;Wherein, geographical location and EPG application server cluster are stored in preset service cluster list
Corresponding relationship, the corresponding first EPG application server cluster in such as city xx of xx province.
(3), the EPG application server cluster that will be found is determined as the EPG application server to match with television terminal
Cluster.
Further, the calculating process mentioned in the embodiment of above-mentioned steps S108 and step S110 for ease of understanding, this
Above-mentioned EPG application server cluster is abstracted as following math matrix expression formula first by inventive embodiments:
Wherein, A is the abstract expression of EPG application server cluster, the EPG application service
There is n EPG application server in device cluster;It include m kind (a) load index in each EPG application server.X11Indicate that EPG is answered
With the numerical value of the 1st load index in the 1st EPG application server in server cluster A;X1mIndicate EPG application server
The numerical value of m-th of load index in the 1st EPG application server in cluster A;Xn1It indicates in EPG application server cluster A
The numerical value of 1st load index in n-th of EPG application server;XnmIndicate n-th of EPG in EPG application server cluster A
The numerical value of m-th of load index in application server.
With XijIndicate the numerical value of jth kind load index in i-th of EPG application server in EPG application server cluster;Its
In, 1≤i≤n;1≤j≤m;Xij≥0;Load index includes online user number ratio, cpu busy percentage and memory usage etc..
Based on this, the embodiment of the invention provides a kind of embodiments of above-mentioned steps S108, namely according to a variety of loads
The numerical value of index, the comentropy for calculating every kind of load index in EPG application server cluster can refer to following steps implementation:
(1), it according to the numerical value of a variety of load indexs, calculates in stating EPG application server cluster under every kind of load index
Specific gravity shared by each EPG application server;
Such as calculating in EPG application server cluster i-th of EPG application server under jth kind load index, to account for this negative
The specific gravity P of lotus indexij:
(2), based on specific gravity shared by each EPG application server under every kind of load index in EPG application server cluster,
And default entropy calculation formula, the comentropy of every kind of load index in EPG application server cluster is calculated.
Such as calculate the comentropy e of jth kind load indexj:Wherein, k > 0;Generally enable k
=1/ln m, ln are natural logrithm, and k is related with sample number m;ej≥0。
Further, the embodiment of the invention also provides a kind of embodiments of above-mentioned steps S110, namely negative based on every kind
The comentropy of lotus index calculates each EPG application server the load score at current time the step of, comprising:
(1), according to the comentropy of every kind of load index, the coefficient of variation of every kind of load index is determined;
Such as calculate the coefficient of variation f of jth kind load indexj: fj=1-ej;Wherein, fjShow that jth kind load refers to more greatly
It marks more important.
(2), the default weighting coefficient of the coefficient of variation based on every kind of load index and every kind of load index, obtains every kind
The weighted difference coefficient of load index;Wherein, when practical application, load index presets weighting coefficient can be according to the load index pair
It is that the weaker target setting of importance is smaller set by the business importance difference for considering EPG applications server load state
Weighting coefficient;For the biggish weighting coefficient of the stronger target setting of importance.
Such as calculate the weighted difference coefficient g of jth kind load indexj, by introducing weighting coefficient kjIt is negative to express jth kind
The business importance coefficient of lotus index, k set by more important load index in businessjWeighting coefficient is bigger, obtains: gj=
fj*kj, gjShow that load index is important more greatly.
(3), it according to the weighted difference coefficient of every kind of load index, calculates separately to obtain the weight of every kind of load index;
Such as calculate the weight W of jth kind load indexj:
(4), the weight based on every kind of load index calculates each EPG application server in the load score at current time.
Such as based on above-mentioned Wj, i-th of EPG application server is calculated in the load score S at current timei:
Further, it is contemplated that when practical application, there are special users, and specified EPG application server to be needed to provide correspondence for it
EPG application service, be this kind of special user of quick response EPG request, the embodiment of the invention provides another EPG services
Dispatching method on the basis of Fig. 1, also carries the account of television terminal, in above-mentioned steps referring to fig. 2 in above-mentioned EPG request
S104, namely according to the IP address of television terminal, before determining the EPG application server cluster to match with television terminal, on
State method further include:
Step S202 judges whether user corresponding to television terminal is advanced level user according to the account of television terminal;Such as
Fruit is to execute step S204;If not, executing step step S104.
Specifically, can be whether there is in preset advanced level user's list by judging the account of television terminal, with determination
Whether user corresponding to television terminal is advanced level user;Wherein, advanced level user's list is stored with the account of multiple advanced level users
And the corresponding relationship of account and EPG application server;When practical application, multiple accounts can be set and correspond to the same EPG application
Server.
The EPG request that television terminal is sent is routed to the application clothes of EPG corresponding to the account of television terminal by step S204
Business device.
Above-mentioned another kind EPG service scheduling method provided in an embodiment of the present invention, being capable of direct basis for special user
The account of its television terminal quickly positions corresponding specified EPG application server, further shorten EPG service dispatch when
Between, it can effectively promote the viewing experience degree of this kind of special user.
It further, is the efficiency for promoting EPG service dispatch, so that the EPG of EPG application server quick response television terminal
Request.When practical application, can be carried on above-mentioned EPG application server cluster kafka message queue, spark computing engines and
Distributed memory database, such as Redis.
Based on this, a variety of loads of each EPG application server at current time in obtaining EPG application server cluster
After the numerical value of index, the above method further include:
By EPG application server each in EPG application server cluster a variety of load indexs at current time numerical value
It is stored in kafka message queue, so that spark computing engines are according to a variety of load indexs extracted from kafka message queue
The comentropy of every kind of load index, and then the letter based on every kind of load index are calculated with real-time streaming calculation for numerical value
Entropy is ceased, each EPG application server is calculated in the load score at current time, and the load score being calculated is stored in
Distributed memory database;
Each EPG application server is extracted from distributed memory database in the load score at current time, and is executed
Step: target EPG application server is determined in EPG application server cluster based on load score, and EPG request is routed to
Target EPG application server.
Aforesaid way provided in an embodiment of the present invention by the kafka message queue that carries on EPG application server cluster,
Spark computing engines and distributed memory database can calculate the load score for storing each EPG application server in real time,
So that EPG dispatch server is choosing target EPG application server to when television terminal offer EPG service, it can directly pass through reading
The load score in distributed memory database is taken to determine target EPG application server.Such mode can reduce EPG scheduling clothes
The time that business device waits aforementioned load score to calculate, it can effectively promote the efficiency of EPG service dispatch.
The corresponding above method, the embodiment of the invention provides a kind of EPG dispatching devices, are set to EPG dispatch server;Ginseng
A kind of structural block diagram of EPG dispatching device as shown in Figure 3, the device include:
EPG request receiving module 302, for receiving the EPG request of television terminal transmission;Wherein, it is carried in EPG request
The IP address of television terminal;
EPG application server cluster determining module 304, for the IP address according to television terminal, determining and television terminal
The EPG application server cluster to match;
Load index obtains module 306, is working as obtaining each EPG application server in EPG application server cluster
The numerical value of a variety of load indexs at preceding moment;
Comentropy computing module 308 calculates in EPG application server cluster for the numerical value according to a variety of load indexs
The comentropy of every kind of load index;
Load score computing module 310 calculates each EPG application service for the comentropy based on every kind of load index
Load score of the device at current time;
Target EPG application server determining module 312, for true in EPG application server cluster based on load score
Set the goal EPG application server, and EPG request is routed to target EPG application server.
Above-mentioned apparatus provided in an embodiment of the present invention is set to EPG dispatch server, first by EPG request receiving module
First receive the EPG request that television terminal is sent, after according to EPG request in the IP address of television terminal that carries it is determining with the TV
The EPG application server cluster that terminal matches, and the information based on every kind of load index in the EPG application server cluster
Entropy, dynamic calculates the load score of each EPG application server in EPG application server cluster in real time, can quickly determine conjunction
Suitable target EPG application server.It is that a variety of load index static state fixed setting weights are closed with determining in compared to the prior art
The mode of suitable EPG application server, confidence level is higher, can effectively promote the viewing experience degree of television terminal user.
The technical effect of device provided by the present embodiment, realization principle and generation is identical with previous embodiment, for letter
It describes, Installation practice part does not refer to place, can refer to corresponding contents in preceding method embodiment.
Further, the corresponding above method and device, the embodiment of the invention also provides a kind of electronic equipment, including memory
And processor, the computer program that can be run on handled device is stored in memory, when processor executes computer program
The step of realizing above-mentioned EPG service scheduling method.
The structural schematic diagram of a kind of electronic equipment shown in Figure 4 shows electronic equipment 400, comprising: processor
40, memory 41, bus 42 and communication interface 43, processor 40, communication interface 43 and memory 41 are connected by bus 42;Place
Reason device 40 is for executing the executable module deposited and stored in 41, such as computer program.
Wherein, memory 41 may include high-speed random access memory (RAM, Random Access Memory),
It may further include non-labile memory (non-volatile memory), for example, at least a magnetic disk storage.By extremely
A few communication interface 43 (can be wired or wireless) is realized logical between the system network element and at least one other network element
Letter connection, can be used internet, wide area network, local network, Metropolitan Area Network (MAN) etc..
Bus 42 can be isa bus, pci bus or eisa bus etc..It is total that bus can be divided into address bus, data
Line, control bus etc..Only to be indicated with a four-headed arrow in Fig. 4, it is not intended that an only bus or one convenient for indicating
The bus of seed type.
Wherein, memory 41 is for storing program 401, and processor 40 executes program 401 after receiving and executing instruction,
Method performed by the device that the stream process that aforementioned any embodiment of the embodiment of the present invention discloses defines can be applied to processor
In 40, or realized by processor 40.
Processor 40 may be a kind of IC chip, the processing capacity with signal.During realization, above-mentioned side
Each step of method can be completed by the integrated logic circuit of the hardware in processor 40 or the instruction of software form.Above-mentioned
Processor 40 can be general processor, including central processing unit (Central Processing Unit, abbreviation CPU), network
Processor (Network Processor, abbreviation NP) etc.;It can also be digital signal processor (Digital Signal
Processing, abbreviation DSP), specific integrated circuit (Application Specific Integrated Circuit, referred to as
ASIC), ready-made programmable gate array (Field-Programmable Gate Array, abbreviation FPGA) or other are programmable
Logical device, discrete gate or transistor logic, discrete hardware components.It may be implemented or execute in the embodiment of the present invention
Disclosed each method, step and logic diagram.General processor can be microprocessor or the processor is also possible to appoint
What conventional processor etc..The step of method in conjunction with disclosed in the embodiment of the present invention, can be embodied directly in hardware decoding processing
Device executes completion, or in decoding processor hardware and software module combination execute completion.Software module can be located at
Machine memory, flash memory, read-only memory, programmable read only memory or electrically erasable programmable memory, register etc. are originally
In the storage medium of field maturation.The storage medium is located at memory 41, and processor 40 reads the information in memory 41, in conjunction with
Its hardware completes the step of above method.
Further, the embodiment of the invention also provides a kind of computer readable storage medium, computer readable storage mediums
On be stored with computer program, any of the above-described EPG service scheduling method is executed when which is run by processor
Step.Specific implementation can be found in embodiment of the method, and details are not described herein.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product
It is stored in the executable non-volatile computer-readable storage medium of a processor.Based on this understanding, of the invention
Technical solution substantially the part of the part that contributes to existing technology or the technical solution can be with software in other words
The form of product embodies, which is stored in a storage medium, including some instructions use so that
One computer equipment (can be personal computer, server or the network equipment etc.) executes each embodiment institute of the present invention
State all or part of the steps of method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-
Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can be with
Store the medium of program code.
Finally, it should be noted that embodiment described above, only a specific embodiment of the invention, to illustrate the present invention
Technical solution, rather than its limitations, scope of protection of the present invention is not limited thereto, although with reference to the foregoing embodiments to this hair
It is bright to be described in detail, those skilled in the art should understand that: anyone skilled in the art
In the technical scope disclosed by the present invention, it can still modify to technical solution documented by previous embodiment or can be light
It is readily conceivable that variation or equivalent replacement of some of the technical features;And these modifications, variation or replacement, do not make
The essence of corresponding technical solution is detached from the spirit and scope of technical solution of the embodiment of the present invention, should all cover in protection of the invention
Within the scope of.Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (10)
1. a kind of EPG dispatching method is applied to EPG dispatch server, which is characterized in that the described method includes:
Receive the EPG request that television terminal is sent;Wherein, the IP address of television terminal is carried in the EPG request;
According to the IP address of the television terminal, the determining EPG application server cluster to match with the television terminal;
Each EPG application server is obtained in the EPG application server cluster in the number of a variety of load indexs at current time
Value;
According to the numerical value of a variety of load indexs, every kind of load index is calculated in the EPG application server cluster
Comentropy;
Based on the comentropy of load index described in every kind, each EPG application server is calculated in the load point at current time
Number;
Target EPG application server is determined in the EPG application server cluster based on the load score, and will be described
EPG request routes to the target EPG application server.
2. the method according to claim 1, wherein also carrying the account of television terminal in EPG request;
In the IP address according to the television terminal, the determining EPG application server collection to match with the television terminal
Before group, the method also includes:
According to the account of the television terminal, judge whether user corresponding to the television terminal is advanced level user;
It is answered if it is, the EPG request that the television terminal is sent is routed to EPG corresponding to the account of the television terminal
Use server;
If not, thening follow the steps: according to the IP address of the television terminal, the determining EPG to match with the television terminal
Application server cluster.
3. the method according to claim 1, wherein the IP address according to the television terminal, determine with
The step of EPG application server cluster that the television terminal matches, comprising:
According to the IP address of the television terminal, the geographical location information of the television terminal is obtained;
According to the geographical location information, searched in predetermined server cluster-list corresponding with the geographical location information
EPG application server cluster;
The EPG application server cluster that will be found is determined as the EPG application server collection to match with the television terminal
Group.
4. the method according to claim 1, wherein the numerical value according to a variety of load indexs, calculates
In the EPG application server cluster the step of comentropy of every kind of load index, comprising:
According to the numerical value of a variety of load indexs, every kind of load index in the EPG application server cluster is calculated
Under specific gravity shared by each EPG application server;
Based on shared by each EPG application server under every kind of load index in the EPG application server cluster
Specific gravity and default entropy calculation formula, are calculated the information of every kind of load index in the EPG application server cluster
Entropy.
5. the method according to claim 1, wherein the comentropy based on load index described in every kind, meter
Each EPG application server is calculated the load score at current time the step of, comprising:
According to the comentropy of load index described in every kind, the coefficient of variation of every kind of load index is determined;
The default weighting coefficient of coefficient of variation and every kind of load index based on load index described in every kind, obtains every kind
The weighted difference coefficient of the load index;
According to the weighted difference coefficient of load index described in every kind, calculate separately to obtain the weight of every kind of load index;
Based on the weight of load index described in every kind, each EPG application server is calculated in the load score at current time.
6. the method according to claim 1, wherein described taken based on the load score in EPG application
The step of being engaged in determining target EPG application server in device cluster, comprising:
The load score of multiple EPG application servers in the EPG application server cluster is ranked up;
EPG application server corresponding to minimum load score is determined as the target EPG application server.
7. the method according to claim 1, wherein equipped with kafka on the EPG application server cluster
In the case where message queue, spark computing engines and distributed memory database, the EPG application server is obtained described
Each EPG application server is after the numerical value of a variety of load indexs at current time in cluster, the method also includes:
A variety of loads by the EPG application server each in the EPG application server cluster at current time refer to
Target numerical value is stored in the kafka message queue, so that the spark computing engines are mentioned according to from the kafka message queue
The numerical value of a variety of load indexs taken out, obtains each EPG application server with real-time streaming calculation and is working as
The load score at preceding moment, and it is stored in the distributed memory database;
Load score of each EPG application server at current time is extracted from the distributed memory database, and
It executes step: target EPG application server being determined in the EPG application server cluster based on the load score, and will
The EPG request routes to the target EPG application server.
8. a kind of EPG dispatching device, is set to EPG dispatch server, which is characterized in that described device includes:
EPG request receiving module, for receiving the EPG request of television terminal transmission;Wherein, electricity is carried in the EPG request
Depending on the IP address of terminal;
EPG application server cluster determining module, for the IP address according to the television terminal, the determining and television terminal
The EPG application server cluster to match;
Load index obtains module, for obtaining in the EPG application server cluster each EPG application server when current
The numerical value for a variety of load indexs carved;
Comentropy computing module calculates in the EPG application server cluster for the numerical value according to a variety of load indexs
The comentropy of every kind of load index;
Load score computing module calculates each EPG application service for the comentropy based on load index described in every kind
Load score of the device at current time;
Target EPG application server determining module, for true in the EPG application server cluster based on the load score
Set the goal EPG application server, and EPG request is routed to the target EPG application server.
9. a kind of electronic equipment, which is characterized in that including memory and processor, being stored in the memory can be at the place
The computer program run on reason device, the processor realize that the claims 1 to 7 are any when executing the computer program
The step of method described in item.
10. a kind of computer readable storage medium, computer program, feature are stored on the computer readable storage medium
The step of being, the described in any item methods of the claims 1 to 7 executed when the computer program is run by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810953836.1A CN109040800A (en) | 2018-08-20 | 2018-08-20 | EPG dispatching method, device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810953836.1A CN109040800A (en) | 2018-08-20 | 2018-08-20 | EPG dispatching method, device and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109040800A true CN109040800A (en) | 2018-12-18 |
Family
ID=64627004
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810953836.1A Pending CN109040800A (en) | 2018-08-20 | 2018-08-20 | EPG dispatching method, device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109040800A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111787372A (en) * | 2020-07-01 | 2020-10-16 | 苏州万店掌网络科技有限公司 | Streaming media distribution method based on multiple condition scheduling |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101287105A (en) * | 2008-06-03 | 2008-10-15 | 中兴通讯股份有限公司 | Load balancing method and apparatus for edge EPG server, implementing method for user login |
CN104298339A (en) * | 2014-10-11 | 2015-01-21 | 东北大学 | Server integration method oriented to minimum energy consumption |
US20160210678A1 (en) * | 2013-08-13 | 2016-07-21 | Ebay Inc. | Systems for generating a global product taxonomy |
CN107590391A (en) * | 2017-07-31 | 2018-01-16 | 北京北信源软件股份有限公司 | A kind of method and device for prejudging leaking data risk |
-
2018
- 2018-08-20 CN CN201810953836.1A patent/CN109040800A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101287105A (en) * | 2008-06-03 | 2008-10-15 | 中兴通讯股份有限公司 | Load balancing method and apparatus for edge EPG server, implementing method for user login |
US20160210678A1 (en) * | 2013-08-13 | 2016-07-21 | Ebay Inc. | Systems for generating a global product taxonomy |
CN104298339A (en) * | 2014-10-11 | 2015-01-21 | 东北大学 | Server integration method oriented to minimum energy consumption |
CN107590391A (en) * | 2017-07-31 | 2018-01-16 | 北京北信源软件股份有限公司 | A kind of method and device for prejudging leaking data risk |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111787372A (en) * | 2020-07-01 | 2020-10-16 | 苏州万店掌网络科技有限公司 | Streaming media distribution method based on multiple condition scheduling |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20170142177A1 (en) | Method and system for network dispatching | |
CN105279027B (en) | A kind of virtual machine deployment method and device | |
CN104202220B (en) | Method for testing pressure and device | |
CN103716251B (en) | For the load-balancing method and equipment of content distributing network | |
CN113037869B (en) | Method and apparatus for back-sourcing of content distribution network system | |
CN107426332B (en) | A kind of load-balancing method and system of web server cluster | |
CN104796449B (en) | Content delivery method, device and equipment | |
CN108924238A (en) | Track collision analysis method and device | |
CN105897550A (en) | Off-line message pushing method and device | |
CN109255000A (en) | A kind of the dimension management method and device of label data | |
CN105119751A (en) | Service evaluation and selection method based on environment real-time perceiving | |
CN109002364A (en) | Optimization method, electronic device and the readable storage medium storing program for executing of interprocess communication | |
CN109086289A (en) | A kind of media data processing method, client, medium and equipment | |
CN108600780A (en) | Method for pushed information | |
CN107370783B (en) | Scheduling method and device for cloud computing cluster resources | |
CN110471761A (en) | Control method, user equipment, storage medium and the device of server | |
CN106897890A (en) | A kind of method and device for showing electronic gift information | |
CN109040800A (en) | EPG dispatching method, device and electronic equipment | |
CN105872082A (en) | Fine-grained resource response system based on load balancing algorithm of container cluster | |
CN109597912A (en) | Method for handling picture | |
CN108228355A (en) | Task processing method and device, method for scheduling task and device | |
CN110175820A (en) | Bill processing method, device, electronic equipment and the storage medium of cloud calculation service | |
CN111478779A (en) | Method and device for determining unlimited set meal and computing equipment | |
CN114070791B (en) | Speed limiting processing method and device for data traffic | |
CN113505304B (en) | Target object recommendation method and system |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181218 |