CN107835262A - A kind of streaming media server dynamical load distribution method - Google Patents

A kind of streaming media server dynamical load distribution method Download PDF

Info

Publication number
CN107835262A
CN107835262A CN201711378287.1A CN201711378287A CN107835262A CN 107835262 A CN107835262 A CN 107835262A CN 201711378287 A CN201711378287 A CN 201711378287A CN 107835262 A CN107835262 A CN 107835262A
Authority
CN
China
Prior art keywords
streaming media
media server
equipment
load
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201711378287.1A
Other languages
Chinese (zh)
Inventor
刘念林
吴新勇
邱吉刚
李汶隆
李东旭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sichuan Jiuzhou Electric Group Co Ltd
Original Assignee
Sichuan Jiuzhou Electric Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sichuan Jiuzhou Electric Group Co Ltd filed Critical Sichuan Jiuzhou Electric Group Co Ltd
Priority to CN201711378287.1A priority Critical patent/CN107835262A/en
Publication of CN107835262A publication Critical patent/CN107835262A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • H04L67/1008Server selection for load balancing based on parameters of servers, e.g. available memory or workload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Abstract

The invention discloses a kind of streaming media server dynamical load distribution method, including:Step 1:User terminal asks streaming media server address to management server;Step 2:Judge whether the sub- equipment of request has been opened, if having opened, the streaming media server of the sub- equipment is opened in distribution;If the sub- equipment is not turned on, step 3 is carried out;Step 3:Judge whether the default equipment corresponding to the sub- equipment has been opened, if default equipment has been opened, be not above maximum load, then the streaming media server of the equipment is opened in distribution, if default equipment is not turned on or more than maximum load, carries out step 4;Step 4:The minimum streaming media server of a total load is found from current online streaming media server to be allocated;It can be analyzed based on the content of user terminal requests, the business that streaming media undertakes carries out dynamic load leveling distribution, while can dynamically monitor the load condition of streaming media server.

Description

A kind of streaming media server dynamical load distribution method
Technical field
The present invention relates to Net Video System field, in particular it relates to a kind of streaming media server dynamical load distribution side Method.
Background technology
As the mark of next generation internet application, stream media technology was obtaining development at full speed in recent years.In video In networked systems applications, streaming media server carrying business it is mainly live, video recording, point multicast function, with the increasing of number of users Add, the ability that convection media server provides service has very high requirement, and a high performance server is typically only supported several Thousand concurrently connect, it is impossible to meet the access of a large number of users, server cluster and load are typically taken in order to solve this problem Equilibrium meets user concurrent demand.
In server cluster, if be not monitored to the load state of each server, not based on load state pair New client asks to carry out rational management, each unbalanced situation of server load will be produced, so that part server Overload, and another part server free.The server of overload can refuse the new client request for distributing to it, and idle Server can not be but serviced client.So that the efficiency of server cluster substantially reduces.So in current server collection In group, load-balancing technique is all employed., please to the client newly to arrive by being monitored to the load state of each server Ask and always reasonably dispatched according to server load.However, because this technology is not divided the request content of client Analysis, it is simple to be scheduled by the load state of server, it is impossible to currently to be carried according to streaming media server well various Service conditions carries out dynamic equalization distribution.
In summary, present inventor has found above-mentioned technology extremely during the present application technical scheme is realized Following technical problem less be present:
(1) be it is simple be allocated according to server CPU in itself or total load, server can not be understood in real time Load condition, cause each server actual loading uneven;(2) simply it is allocated, does not have according to server maximum number of connections Have and carry out dynamically distributes according to the business weight of actual bearer;(3) just for a kind of business, the application to multiple business fusion comes Saying needs more load equalizers, considerably increases cost.
The content of the invention
The invention provides a kind of streaming media server dynamical load distribution method, solve existing deficiency, this method It can be analyzed based on the content of user terminal requests, it is more that live, program request that streaming media undertakes, video recording, alarm are pre-recorded etc. Kind business carries out dynamic load leveling distribution, while can dynamically monitor the load condition of streaming media server, to reach With the resource overhead of minimum, the purpose of the every business of completion of stability and high efficiency.
For achieving the above object, it is described this application provides a kind of streaming media server dynamical load distribution method Method includes:
Step 1:User terminal asks streaming media server address to management server;
Step 2:Judge whether the sub- equipment of request has been opened, if having opened, the Streaming Media of the sub- equipment is opened in distribution Server;If the sub- equipment is not turned on, step 3 is carried out;
Step 3:Judge whether the default equipment corresponding to the sub- equipment has been opened, if default equipment has been opened, not More than maximum load, then the streaming media server of the equipment is opened in distribution, if default equipment is not turned on or more than maximum load, Then carry out step 4;Distribution server refers to selecting a stream according to the principle of load balancing from more streaming media servers Media server is to user terminal.
Step 4:The minimum streaming media server of a total load is found from current online streaming media server to be divided Match somebody with somebody;The total load of streaming media server=video recording number * first loads the weighting+loads of program request number * second weighting+live number The load weightings of mesh * the 3rd.
Wherein, it is the characteristics of this method:Load balancing dynamic allocation scheme is employed, management server obtains stream in real time The load information of media;Can the streaming media live, program request, the video recording multiple business that undertake carry out dynamic load leveling distribution; The total load of streaming media server=video recording number * loads weighting+program request number * loads weighting+live number * load weightings; In units of headend equipment, management server using equipment state and priority facility as streaming media server load distribution because Element carries out dynamic equalization.
Further, methods described is applied in Net Video System, and Net Video System includes headend equipment, user's end End, management server, more streaming media servers.
Further, streaming media server has live, program request and video recording business, and management server is used to monitor each stream The load condition of media server, responds the service request of user terminal, and the minimum streaming media server of scheduling present load supplies Service terminal uses.
Further, management server timing obtains load information to streaming media server, and load information includes:
(1) the sub- number of devices MaxDevNum that Streaming Media can be supported;
(2) the sub- number of devices OpenedDevNum having already turned on;
(3) the affiliated cluster ID number MSCSID of streaming media server;
(4) record a video number RecordNum;
(5) video recording weighting RecordWeight;
(6) program request number VodNum;
(7) program request weighting VodWeight;
(8) live number LiveNum;
(9) live weighting Live Weight;
(10) list of devices set.
Further, list of devices includes device numbering, equipment state, priority facility.
Further, equipment state 0 represents to close, and 1 represents to open.
Further, priority facility successively decreases from Level1 to Level9.
Further, for asking demand (telecommunication) service, directly distribution load is minimum and the streaming media server of still full load is given User terminal.
When further, for the live business with video recording of user terminal requests, management server arrives according to timing acquisition Equipment and load information carry out load judgment.
Further, if the equipment is opened by a streaming media server, the Streaming Media is distributed to user terminal;Such as The fruit equipment is not switched on, and equipment is assigned to the minimum streaming media server of total load by management server, and by streaming media service Device address returns to user terminal.
One or more technical schemes that the application provides, have at least the following technical effects or advantages:
The present invention provides one kind and realizes multiple business application load dynamic allocation method for Streaming Media, and this method can be right Live, program request that Streaming Media undertakes, video recording multiple business carry out dynamic load leveling distribution, while can dynamically monitor stream matchmaker The load condition of body server, to reach with the resource overhead of minimum, the technique effect of the every business of completion of stability and high efficiency.
Brief description of the drawings
Accompanying drawing described herein is used for providing further understanding the embodiment of the present invention, forms one of the application Point, do not form the restriction to the embodiment of the present invention;
Fig. 1 is the schematic flow sheet of streaming media server dynamical load distribution method in the application.
Embodiment
The invention provides a kind of streaming media server dynamical load distribution method, solve existing deficiency, this method It can be analyzed based on the content of user terminal requests, it is more that live, program request that streaming media undertakes, video recording, alarm are pre-recorded etc. Kind business carries out dynamic load leveling distribution, while can dynamically monitor the load condition of streaming media server, to reach With the resource overhead of minimum, the purpose of the every business of completion of stability and high efficiency.
It is below in conjunction with the accompanying drawings and specific real in order to be more clearly understood that the above objects, features and advantages of the present invention Mode is applied the present invention is further described in detail.It should be noted that in the case where not conflicting mutually, the application's Feature in embodiment and embodiment can be mutually combined.
Many details are elaborated in the following description to facilitate a thorough understanding of the present invention, still, the present invention may be used also To be implemented using other different from the other modes in the range of being described herein, therefore, protection scope of the present invention is not by under The limitation of specific embodiment disclosed in face.
Fig. 1 is refer to, this application provides a kind of streaming media server dynamical load distribution method, applied to including front end Equipment, user terminal, management server, the Net Video System of more streaming media servers, wherein streaming media server have Live, program request and video recording business, wherein management server are responsible for monitoring the load condition of each streaming media server, respond user The service request of terminal, the minimum streaming media server of scheduling present load use for service terminal.
User terminal asks streaming media server address to management server.
Judge whether the sub- equipment of request has been opened, directly distribution opens the stream matchmaker of the sub- equipment if having already turned on Body server.Carried out if this is not turned in next step.
Judge whether the equipment corresponding to the sub- equipment is opened, if equipment has already turned on, and be not above maximum negative Carry, then distribution opens the streaming media server of the equipment, otherwise carries out in next step.Carried out if corresponding device is not turned on In next step.
The minimum distribution of a total load is looked for from current online streaming media server.
The total load of streaming media server=video recording number * loads weighting+program request number * loads weighting+live number * is born Carry weighting
Especially, management server timing obtains load information to streaming media server, and load information includes:Streaming Media energy The sub- number of devices MaxDevNum supported;The sub- number of devices OpenedDevNum having already turned on;Collect belonging to streaming media server Group's ID number MSCSID;Number of recording a video RecordNum;Video recording weighting RecordWeight;Program request number VodNum;Program request weights VodWeight;Live number LiveNum;Live weighting Live Weight;
List of devices set;
Especially list of devices includes device numbering, equipment state, priority facility;
Especially, the said equipment state 0 represents to close, and 1 represents to open;
Especially the said equipment priority Level 1-9 successively decrease.
Especially, for asking demand (telecommunication) service, it is not necessary to the problem of considering to open equipment.Directly distribution load is minimum and still The streaming media server of full load to user terminal just.
, it is necessary to consider to open equipment during the business with video recording live in particular for user terminal requests.Management server root The equipment and load information arrived according to timing acquisition carries out load judgment.
If the equipment is opened by a streaming media server, the Streaming Media is distributed to user terminal.
Such as some equipment is opened by two streaming media servers, a priority is 5, and a priority is 3, then returns Priority is 3 streaming media server.
If equipment is not switched on, equipment is assigned to the minimum streaming media server of total load by management server, and will stream Media server address returns to user terminal.
Although preferred embodiments of the present invention have been described, but those skilled in the art once know basic creation Property concept, then can make other change and modification to these embodiments.So appended claims be intended to be construed to include it is excellent Select embodiment and fall into having altered and changing for the scope of the invention.
Obviously, those skilled in the art can carry out the essence of various changes and modification without departing from the present invention to the present invention God and scope.So, if these modifications and variations of the present invention belong to the scope of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to comprising including these changes and modification.

Claims (10)

  1. A kind of 1. streaming media server dynamical load distribution method, it is characterised in that methods described includes:
    Step 1:User terminal asks streaming media server address to management server;
    Step 2:Judge whether the sub- equipment of request has been opened, if having opened, the streaming media service of the sub- equipment is opened in distribution Device;If the sub- equipment is not turned on, step 3 is carried out;
    Step 3:Judge whether the default equipment corresponding to the sub- equipment has been opened, if default equipment has been opened, be not above The streaming media server of the equipment is opened in maximum load, then distribution, if default equipment is not turned on or more than maximum load, entered Row step 4;
    Step 4:The minimum streaming media server of a total load is found from current online streaming media server to be allocated;Stream The total load of media server=video recording number * first loads the weighting+loads of program request number * second weighting+live number * the 3rd Load weighting.
  2. 2. streaming media server dynamical load distribution method according to claim 1, it is characterised in that methods described application In Net Video System, Net Video System includes headend equipment, user terminal, management server, more streaming media services Device.
  3. 3. streaming media server dynamical load distribution method according to claim 2, it is characterised in that streaming media server With live, program request and video recording business, management server is used for the load condition for monitoring each streaming media server, responds user The service request of terminal, the minimum streaming media server of scheduling present load use for service terminal.
  4. 4. streaming media server dynamical load distribution method according to claim 1, it is characterised in that management server is fixed When to streaming media server obtain load information, load information includes:
    (1) the sub- number of devices MaxDevNum that Streaming Media can be supported;
    (2) the sub- number of devices OpenedDevNum having already turned on;
    (3) the affiliated cluster ID number MSCSID of streaming media server;
    (4) record a video number RecordNum;
    (5) video recording weighting RecordWeight;
    (6) program request number VodNum;
    (7) program request weighting VodWeight;
    (8) live number LiveNum;
    (9) live weighting LiveWeight;
    (10) list of devices set.
  5. 5. streaming media server dynamical load distribution method according to claim 4, it is characterised in that list of devices includes Device numbering, equipment state, priority facility.
  6. 6. streaming media server dynamical load distribution method according to claim 5, it is characterised in that the table of equipment state 0 Show closing, 1 represents to open.
  7. 7. streaming media server dynamical load distribution method according to claim 5, it is characterised in that priority facility from Level1 to Level9 successively decreases.
  8. 8. streaming media server dynamical load distribution method according to claim 1, it is characterised in that for asking program request Business, directly distribution load is minimum and the still streaming media server of full load is to user terminal.
  9. 9. streaming media server dynamical load distribution method according to claim 1, it is characterised in that for user terminal When asking live and video recording business, equipment and load information that management server arrives according to timing acquisition carry out load judgment.
  10. 10. streaming media server dynamical load distribution method according to claim 9, it is characterised in that if the equipment Opened by a streaming media server, then distribute the Streaming Media to user terminal;If the equipment is not switched on, management server will Equipment is assigned to the minimum streaming media server of total load, and streaming media server address is returned into user terminal.
CN201711378287.1A 2017-12-19 2017-12-19 A kind of streaming media server dynamical load distribution method Pending CN107835262A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711378287.1A CN107835262A (en) 2017-12-19 2017-12-19 A kind of streaming media server dynamical load distribution method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711378287.1A CN107835262A (en) 2017-12-19 2017-12-19 A kind of streaming media server dynamical load distribution method

Publications (1)

Publication Number Publication Date
CN107835262A true CN107835262A (en) 2018-03-23

Family

ID=61645073

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711378287.1A Pending CN107835262A (en) 2017-12-19 2017-12-19 A kind of streaming media server dynamical load distribution method

Country Status (1)

Country Link
CN (1) CN107835262A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108833391A (en) * 2018-06-06 2018-11-16 北京世纪东方通讯设备有限公司 A kind of media flow point retransmission method and device for video monitoring system
CN108924582A (en) * 2018-09-03 2018-11-30 深圳市东微智能科技股份有限公司 Video recording method, computer readable storage medium and recording and broadcasting system
CN110808981A (en) * 2019-11-04 2020-02-18 普联技术有限公司 Video stream preview method and device
CN111064998A (en) * 2019-12-27 2020-04-24 南京巨鲨显示科技有限公司 Recording and broadcasting system supporting load balancing
CN112637258A (en) * 2020-09-28 2021-04-09 西安万像电子科技有限公司 Data processing method and system
CN115802066A (en) * 2022-09-30 2023-03-14 天翼数字生活科技有限公司 Gateway-based streaming media stream pulling method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101132393A (en) * 2006-08-25 2008-02-27 郑州威科姆电子科技有限公司 Stream media service dynamic load method
CN107231565A (en) * 2017-07-25 2017-10-03 网宿科技股份有限公司 A kind of live task management dispatching method and its system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101132393A (en) * 2006-08-25 2008-02-27 郑州威科姆电子科技有限公司 Stream media service dynamic load method
CN107231565A (en) * 2017-07-25 2017-10-03 网宿科技股份有限公司 A kind of live task management dispatching method and its system

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108833391A (en) * 2018-06-06 2018-11-16 北京世纪东方通讯设备有限公司 A kind of media flow point retransmission method and device for video monitoring system
CN108924582A (en) * 2018-09-03 2018-11-30 深圳市东微智能科技股份有限公司 Video recording method, computer readable storage medium and recording and broadcasting system
CN108924582B (en) * 2018-09-03 2021-07-06 深圳市东微智能科技股份有限公司 Video recording method, computer readable storage medium and recording and playing system
CN110808981A (en) * 2019-11-04 2020-02-18 普联技术有限公司 Video stream preview method and device
CN111064998A (en) * 2019-12-27 2020-04-24 南京巨鲨显示科技有限公司 Recording and broadcasting system supporting load balancing
CN112637258A (en) * 2020-09-28 2021-04-09 西安万像电子科技有限公司 Data processing method and system
CN115802066A (en) * 2022-09-30 2023-03-14 天翼数字生活科技有限公司 Gateway-based streaming media stream pulling method and device
CN115802066B (en) * 2022-09-30 2024-03-08 天翼数字生活科技有限公司 Streaming media streaming method and device based on gateway

Similar Documents

Publication Publication Date Title
CN107835262A (en) A kind of streaming media server dynamical load distribution method
CN107465708B (en) CDN bandwidth scheduling system and method
CN107801086B (en) The dispatching method and system of more cache servers
CN109547517B (en) Method and device for scheduling bandwidth resources
CN103391299B (en) Load-balancing method and SiteServer LBS
Zhang et al. Workload-aware load balancing for clustered web servers
CN101938504A (en) Cluster server intelligent dispatching method and system
US8959225B2 (en) Cooperative caching method and contents providing method using request apportioning device
US7054943B1 (en) Method and apparatus for dynamically adjusting resources assigned to plurality of customers, for meeting service level agreements (slas) with minimal resources, and allowing common pools of resources to be used across plural customers on a demand basis
JP5654022B2 (en) Dynamic load balancing and scaling of allocated cloud resources within the corporate network
CN110401657B (en) Processing method and device for access log
CN106131229A (en) The processing method of CDN business, equipment and communication system
CN105007312A (en) Method and system for controlling adaptive load-balancing of cloud computing server
CN102480469B (en) Based on the method for the load dispatch of balancing energy and device in a kind of SIP service cluster
CN109327550A (en) A kind of distribution method of access request, device, storage medium and computer equipment
CN105141541A (en) Task-based dynamic load balancing scheduling method and device
CN103401947A (en) Method and device for allocating tasks to multiple servers
CN107026907A (en) A kind of load-balancing method, load equalizer and SiteServer LBS
CN109672711B (en) Reverse proxy server Nginx-based http request processing method and system
JP2013525931A (en) Dynamic binding used for content delivery
CN106385459A (en) Method and device for distributing connection request message
CN108632384A (en) Load-balancing method based on the prediction of video request number
CN106953926A (en) A kind of method for routing and device
CN102932271A (en) Method and device for realizing load balancing
CN107645540A (en) The load-balancing method of web application systems

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

Application publication date: 20180323

RJ01 Rejection of invention patent application after publication