CN118714086A - Load balancing method, device, equipment and medium - Google Patents
Load balancing method, device, equipment and medium Download PDFInfo
- Publication number
- CN118714086A CN118714086A CN202410860068.0A CN202410860068A CN118714086A CN 118714086 A CN118714086 A CN 118714086A CN 202410860068 A CN202410860068 A CN 202410860068A CN 118714086 A CN118714086 A CN 118714086A
- Authority
- CN
- China
- Prior art keywords
- load balancing
- balancing server
- address information
- local load
- service request
- 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
- 238000000034 method Methods 0.000 title claims abstract description 62
- 238000004590 computer program Methods 0.000 claims description 19
- 238000012545 processing Methods 0.000 claims description 12
- 230000036541 health Effects 0.000 claims description 7
- 230000001133 acceleration Effects 0.000 abstract description 10
- 230000008569 process Effects 0.000 description 18
- 238000010586 diagram Methods 0.000 description 17
- 238000005516 engineering process Methods 0.000 description 5
- 230000004044 response Effects 0.000 description 5
- 230000011218 segmentation Effects 0.000 description 5
- 238000013467 fragmentation Methods 0.000 description 4
- 238000006062 fragmentation reaction Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 230000008901 benefit Effects 0.000 description 3
- 230000003139 buffering effect Effects 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000000750 progressive effect Effects 0.000 description 2
- 239000013589 supplement Substances 0.000 description 2
- 101001121408 Homo sapiens L-amino-acid oxidase Proteins 0.000 description 1
- 101000827703 Homo sapiens Polyphosphoinositide phosphatase Proteins 0.000 description 1
- 102100026388 L-amino-acid oxidase Human genes 0.000 description 1
- 102100023591 Polyphosphoinositide phosphatase Human genes 0.000 description 1
- 101100012902 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) FIG2 gene Proteins 0.000 description 1
- 101100233916 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) KAR5 gene Proteins 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 239000012634 fragment Substances 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000004806 packaging method and process Methods 0.000 description 1
- 239000000047 product Substances 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/12—Avoiding congestion; Recovering from congestion
- H04L47/125—Avoiding congestion; Recovering from congestion by balancing the load, e.g. traffic engineering
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/45—Network directories; Name-to-address mapping
- H04L61/4505—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
- H04L61/4511—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
-
- 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
-
- 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/23—Processing of content or additional data; Elementary server operations; Server middleware
- H04N21/231—Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion
- H04N21/23103—Content storage operation, e.g. caching movies for short term storage, replicating data over plural servers, prioritizing data for deletion using load balancing strategies, e.g. by placing or distributing content on different disks, different memories or different servers
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Multimedia (AREA)
- Computer And Data Communications (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本发明实施例提供了一种负载均衡方法、装置、设备和介质,通过接收客户终端发送的业务请求;将业务请求发送至全局负载均衡服务器,以使全局负载均衡服务器根据本地DNS的地址信息判断客户终端的位置,确定目标本地负载均衡服务器的地址信息,其中,本地负载均衡服务器与客户终端之间的距离小于预设值;接收全局负载均衡服务器返回的目标本地负载均衡服务器的地址信息,并根据目标本地负载均衡服务器的地址信息,获取与业务请求对应的业务数据,实现CDN分担源站压力,避免网络拥塞,确保在不同区域、不同场景下加速网站内容的分发,提高资源访问速度。
The embodiments of the present invention provide a load balancing method, apparatus, device and medium, which receive a service request sent by a client terminal; send the service request to a global load balancing server, so that the global load balancing server determines the location of the client terminal according to the address information of the local DNS, and determines the address information of the target local load balancing server, wherein the distance between the local load balancing server and the client terminal is less than a preset value; receive the address information of the target local load balancing server returned by the global load balancing server, and obtain the service data corresponding to the service request according to the address information of the target local load balancing server, so as to realize CDN sharing the pressure of the source station, avoid network congestion, ensure the acceleration of the distribution of website content in different regions and different scenarios, and improve the resource access speed.
Description
技术领域Technical Field
本发明涉及通信技术领域,特别是涉及一种负载均衡方法、装置、设备和介质。The present invention relates to the field of communication technology, and in particular to a load balancing method, device, equipment and medium.
背景技术Background Art
如今,互联网使人们的生活越来越方便,为知识付费已经被越来越多人所认可,现在也有很多知识共享平台,这些平台已经聚集了各行各业的用户群体,可以直接在这些平台上开课,网课在未来将会无处不在,人们需要在视频网站上观看课程,在网络差的情况下若播放一个长视频会出现卡顿的现象,特别是切换播放进度的时候,非常影响用户的体验,如何减少视频卡顿现象,提高用户体验,是目前急需解决的问题。Nowadays, the Internet makes people's lives more and more convenient, and paying for knowledge has been recognized by more and more people. There are also many knowledge sharing platforms. These platforms have gathered user groups from all walks of life. Courses can be opened directly on these platforms. Online courses will be everywhere in the future. People need to watch courses on video websites. If a long video is played under poor network conditions, there will be a phenomenon of freeze, especially when switching the playback progress, which greatly affects the user experience. How to reduce video freezes and improve user experience is an urgent problem to be solved.
发明内容Summary of the invention
鉴于上述问题,提出了本发明实施例以便提供一种克服上述问题或者至少部分地解决上述问题的一种负载均衡方法、装置、设备和介质。In view of the above problems, embodiments of the present invention are proposed to provide a load balancing method, apparatus, device and medium that overcome the above problems or at least partially solve the above problems.
第一个方面,本发明实施例提供一种负载均衡方法,该方法包括:In a first aspect, an embodiment of the present invention provides a load balancing method, the method comprising:
接收客户终端发送的业务请求;Receiving a service request sent by a client terminal;
将所述业务请求发送至全局负载均衡服务器,以使所述全局负载均衡服务器根据所述本地DNS的地址信息判断所述客户终端的位置,确定目标本地负载均衡服务器的地址信息,其中,所述本地负载均衡服务器与所述客户终端之间的距离小于预设值;Sending the service request to a global load balancing server, so that the global load balancing server determines the location of the client terminal according to the address information of the local DNS, and determines the address information of the target local load balancing server, wherein the distance between the local load balancing server and the client terminal is less than a preset value;
接收所述全局负载均衡服务器返回的目标本地负载均衡服务器的地址信息,并根据所述目标本地负载均衡服务器的地址信息,获取与所述业务请求对应的业务数据。Receive the address information of the target local load balancing server returned by the global load balancing server, and acquire the service data corresponding to the service request according to the address information of the target local load balancing server.
可选地,所述方法还包括:Optionally, the method further comprises:
根据预设判断条件,判断本地负载均衡服务器中是否存在请求资源,所述预设判断条件至少包括健康程度、负载量或连接数中的一种或多种;Determine whether the requested resource exists in the local load balancing server according to preset judgment conditions, wherein the preset judgment conditions include at least one or more of health, load or number of connections;
若所述本地负载均衡服务器满足所述预设判断条件,则确定所述本地负载均衡服务器为所述目标本地负载均衡服务器。If the local load balancing server meets the preset judgment condition, the local load balancing server is determined to be the target local load balancing server.
可选地,所述本地负载均衡服务器中至少包括分片视频数据,所述分片视频数据是将第一视频头标识存放在第一文件头中,并将第一视频帧数据存放在第一数据文件中;或者所述分片视频数据是将多个流媒体数据进行封装得到的,每一个所述流媒体数据是将第二视频头标识存放在第二文件头中,并将第二视频帧数据存放在第二数据文件中。Optionally, the local load balancing server includes at least sliced video data, and the sliced video data stores a first video header identifier in a first file header, and stores first video frame data in a first data file; or the sliced video data is obtained by encapsulating multiple streaming media data, and each of the streaming media data stores a second video header identifier in a second file header, and stores second video frame data in a second data file.
可选地,所述业务请求至少包括流媒体访问信息,所述流媒体访问信息至少包括目标索引标识。Optionally, the service request includes at least streaming media access information, and the streaming media access information includes at least a target index identifier.
可选地,所述根据所述目标本地负载均衡服务器的地址信息,获取与所述业务请求对应的业务数据,包括:Optionally, acquiring the service data corresponding to the service request according to the address information of the target local load balancing server includes:
根据所述预先设置的索引文件,获取与所述目标索引标识对应的目标分片视频数据。According to the preset index file, the target segmented video data corresponding to the target index identifier is obtained.
第二个方面,本发明实施例提供一种负载均衡装置,应用于本地DNS,装置包括:In a second aspect, an embodiment of the present invention provides a load balancing device, which is applied to a local DNS, and the device includes:
接收模块,用于接收客户终端发送的业务请求;A receiving module, used for receiving a service request sent by a client terminal;
确定模块,用于将所述业务请求发送至全局负载均衡服务器,以使所述全局负载均衡服务器根据所述本地DNS的地址信息判断所述客户终端的位置,确定目标本地负载均衡服务器的地址信息,其中,所述本地负载均衡服务器与所述客户终端之间的距离小于预设值;A determination module, configured to send the service request to a global load balancing server, so that the global load balancing server determines the location of the client terminal according to the address information of the local DNS, and determines the address information of the target local load balancing server, wherein the distance between the local load balancing server and the client terminal is less than a preset value;
处理模块,用于接收所述全局负载均衡服务器返回的目标本地负载均衡服务器的地址信息,并根据所述目标本地负载均衡服务器的地址信息,获取与所述业务请求对应的业务数据。The processing module is used to receive the address information of the target local load balancing server returned by the global load balancing server, and obtain the service data corresponding to the service request according to the address information of the target local load balancing server.
可选地,所述确定模块用于:Optionally, the determining module is used to:
根据预设判断条件,判断本地负载均衡服务器中是否存在请求资源,所述预设判断条件至少包括健康程度、负载量或连接数中的一种或多种;Determine whether the requested resource exists in the local load balancing server according to preset judgment conditions, wherein the preset judgment conditions include at least one or more of health, load or number of connections;
若所述本地负载均衡服务器满足所述预设判断条件,则确定所述本地负载均衡服务器为所述目标本地负载均衡服务器。If the local load balancing server meets the preset judgment condition, the local load balancing server is determined to be the target local load balancing server.
可选地,所述本地负载均衡服务器中至少包括分片视频数据,所述分片视频数据是将第一视频头标识存放在第一文件头中,并将第一视频帧数据存放在第一数据文件中;或者所述分片视频数据是将多个流媒体数据进行封装得到的,每一个所述流媒体数据是将第二视频头标识存放在第二文件头中,并将第二视频帧数据存放在第二数据文件中。Optionally, the local load balancing server includes at least sliced video data, and the sliced video data stores a first video header identifier in a first file header, and stores first video frame data in a first data file; or the sliced video data is obtained by encapsulating multiple streaming media data, and each of the streaming media data stores a second video header identifier in a second file header, and stores second video frame data in a second data file.
可选地,所述业务请求至少包括流媒体访问信息,所述流媒体访问信息至少包括目标索引标识。Optionally, the service request includes at least streaming media access information, and the streaming media access information includes at least a target index identifier.
可选地,所述处理模块用于:Optionally, the processing module is used to:
根据所述预先设置的索引文件,获取与所述目标索引标识对应的目标分片视频数据。According to the preset index file, the target segmented video data corresponding to the target index identifier is obtained.
第三个方面,本发明实施例提供一种终端设备,包括:至少一个处理器和存储器;In a third aspect, an embodiment of the present invention provides a terminal device, including: at least one processor and a memory;
存储器存储计算机程序;至少一个处理器执行存储器存储的计算机程序,以实现第一个方面提供的负载均衡方法。The memory stores a computer program; and at least one processor executes the computer program stored in the memory to implement the load balancing method provided in the first aspect.
第四个方面,本发明实施例提供一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,计算机程序被执行时实现第一个方面提供的负载均衡方法。In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed, the load balancing method provided in the first aspect is implemented.
本发明实施例包括以下优点:The embodiments of the present invention include the following advantages:
本发明实施例提供的负载均衡方法、装置、设备和介质,通过接收客户终端发送的业务请求;将所述业务请求发送至全局负载均衡服务器,以使所述全局负载均衡服务器根据所述本地DNS的地址信息判断所述客户终端的位置,确定目标本地负载均衡服务器的地址信息,其中,所述本地负载均衡服务器与所述客户终端之间的距离小于预设值;接收所述全局负载均衡服务器返回的目标本地负载均衡服务器的地址信息,并根据所述目标本地负载均衡服务器的地址信息,获取与所述业务请求对应的业务数据,实现CDN分担源站压力,避免网络拥塞,确保在不同区域、不同场景下加速网站内容的分发,提高资源访问速度。The load balancing method, apparatus, device and medium provided by the embodiments of the present invention receive a service request sent by a client terminal; send the service request to a global load balancing server, so that the global load balancing server determines the location of the client terminal according to the address information of the local DNS, and determines the address information of the target local load balancing server, wherein the distance between the local load balancing server and the client terminal is less than a preset value; receive the address information of the target local load balancing server returned by the global load balancing server, and obtain the service data corresponding to the service request according to the address information of the target local load balancing server, so as to realize CDN sharing the pressure of the source station, avoid network congestion, ensure the acceleration of the distribution of website content in different regions and different scenarios, and improve the resource access speed.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1是本发明的一种负载均衡方法实施例的步骤流程图;FIG1 is a flow chart of steps of an embodiment of a load balancing method of the present invention;
图2是未使用CDN前的数据访问流程示意图;FIG2 is a schematic diagram of the data access process before using CDN;
图3是本发明的通过CDN进行请求响应的过程图;FIG3 is a process diagram of request response through CDN of the present invention;
图4是本发明的视频分片过程示意图;FIG4 is a schematic diagram of a video segmentation process according to the present invention;
图5是本发明的视频分片播放过程示意图;FIG5 is a schematic diagram of a video segment playback process of the present invention;
图6是本发明的又一视频分片播放过程示意图;FIG6 is a schematic diagram of another video segment playback process of the present invention;
图7是本发明的又一视频分片过程示意图;FIG7 is a schematic diagram of another video segmentation process of the present invention;
图8是本发明的一种负载均衡装置实施例的结构框图;FIG8 is a structural block diagram of an embodiment of a load balancing device of the present invention;
图9是本发明的一种终端设备的结构示意图。FIG. 9 is a schematic diagram of the structure of a terminal device of the present invention.
具体实施方式DETAILED DESCRIPTION
为使本发明的上述目的、特征和优点能够更加明显易懂,下面结合附图和具体实施方式对本发明作进一步详细的说明。In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
本发明一实施例提供一种负载均衡方法,用于对客户终端进行均衡处理。本实施例的执行主体为负载均衡装置,设置在终端设备上,其中,该终端设备至少包括计算机等。An embodiment of the present invention provides a load balancing method for performing balancing processing on client terminals. The execution subject of this embodiment is a load balancing device, which is arranged on a terminal device, wherein the terminal device at least includes a computer and the like.
参照图1,示出了本发明的一种负载均衡方法实施例的步骤流程图,该方法具体可以包括如下步骤:1, a flow chart of a load balancing method embodiment of the present invention is shown. The method may specifically include the following steps:
S101、本地DNS服务器接收客户终端发送的业务请求;S101, the local DNS server receives a service request sent by a client terminal;
S102、将业务请求发送至全局负载均衡服务器,以使全局负载均衡服务器根据本地DNS的地址信息判断客户终端的位置,确定目标本地负载均衡服务器的地址信息,其中,本地负载均衡服务器与客户终端之间的距离小于预设值;S102, sending the service request to the global load balancing server, so that the global load balancing server determines the location of the client terminal according to the address information of the local DNS, and determines the address information of the target local load balancing server, wherein the distance between the local load balancing server and the client terminal is less than a preset value;
本地DNS服务器将业务请求发送至全局负载均衡服务器GSLB,全局负载均衡服务器根据本地DNS的地址信息判断客户终端的位置,进而判断出距离客户终端的距离小于预设值的范围内的本地负载均衡服务器。The local DNS server sends the service request to the global load balancing server GSLB. The global load balancing server determines the location of the client terminal based on the address information of the local DNS, and then determines the local load balancing server whose distance from the client terminal is less than the preset value.
S103、接收全局负载均衡服务器返回的目标本地负载均衡服务器的地址信息,并根据目标本地负载均衡服务器的地址信息,获取与业务请求对应的业务数据。S103: Receive the address information of the target local load balancing server returned by the global load balancing server, and obtain the service data corresponding to the service request according to the address information of the target local load balancing server.
本地DNS服务器接收到全局负载均衡服务器返回的目标本地负载均衡服务器的地址信息,并根据目标本地负载均衡服务器的地址信息,获取与业务请求对应的业务数据,示例性地,可以从目标本地负载均衡服务器上获取分片视频数据,本申请实施例基于CDN和视频分片技术,将会解决多用户访问时的流量控制问题,建立并覆盖在承载网之上,由分布在不同区域的边缘节点服务器群组成的分布式网络。CDN分担源站压力,避免网络拥塞,确保在不同区域、不同场景下加速网站内容的分发,提高资源访问速度,实现CDN和视频分片分担源站压力,避免网络拥塞,确保在不同区域、不同场景下加速网站内容的分发,提高资源访问速度。The local DNS server receives the address information of the target local load balancing server returned by the global load balancing server, and obtains the business data corresponding to the business request based on the address information of the target local load balancing server. For example, the fragmented video data can be obtained from the target local load balancing server. The embodiment of the present application is based on CDN and video fragmentation technology, which will solve the problem of traffic control during multi-user access, and establish and cover a distributed network composed of edge node server groups distributed in different regions on the bearer network. CDN shares the pressure of the source station, avoids network congestion, ensures the acceleration of the distribution of website content in different regions and different scenarios, and improves the speed of resource access. CDN and video fragmentation share the pressure of the source station, avoid network congestion, ensure the acceleration of the distribution of website content in different regions and different scenarios, and improve the speed of resource access.
本发明实施例提供的负载均衡方法,通过接收客户终端发送的业务请求;将业务请求发送至全局负载均衡服务器,以使全局负载均衡服务器根据本地DNS的地址信息判断客户终端的位置,确定目标本地负载均衡服务器的地址信息,其中,本地负载均衡服务器与客户终端之间的距离小于预设值;接收全局负载均衡服务器返回的目标本地负载均衡服务器的地址信息,并根据目标本地负载均衡服务器的地址信息,获取与业务请求对应的业务数据,实现CDN分担源站压力,避免网络拥塞,确保在不同区域、不同场景下加速网站内容的分发,提高资源访问速度。The load balancing method provided by the embodiment of the present invention receives a service request sent by a client terminal; sends the service request to a global load balancing server, so that the global load balancing server determines the location of the client terminal according to the address information of the local DNS, and determines the address information of the target local load balancing server, wherein the distance between the local load balancing server and the client terminal is less than a preset value; receives the address information of the target local load balancing server returned by the global load balancing server, and obtains the service data corresponding to the service request according to the address information of the target local load balancing server, so as to realize CDN sharing the pressure of the source station, avoid network congestion, ensure the acceleration of the distribution of website content in different regions and different scenarios, and improve the resource access speed.
本发明又一实施例对上述实施例提供的负载均衡方法做进一步补充说明。Another embodiment of the present invention further supplements the load balancing method provided in the above embodiment.
可选地,该方法还包括:Optionally, the method further comprises:
根据预设判断条件,判断本地负载均衡服务器中是否存在请求资源,预设判断条件至少包括健康程度、负载量或连接数中的一种或多种;According to preset judgment conditions, judging whether the requested resource exists in the local load balancing server, the preset judgment conditions at least including one or more of health, load or number of connections;
若本地负载均衡服务器满足预设判断条件,则确定本地负载均衡服务器为目标本地负载均衡服务器。If the local load balancing server meets the preset judgment condition, the local load balancing server is determined as the target local load balancing server.
CDN(Content Delivery Network,内容分发网络)将源站的内容发布到接近用户的网络“边缘”,用户可以就近获取所所需要的数据,比如客户终端请求的静态资源css,js等,不仅降低了网络的拥塞状况、提高请求的响应速度,也能够减少源站的负载压力。CDN (Content Delivery Network) publishes the content of the source site to the "edge" of the network close to the user, so that the user can obtain the required data nearby, such as static resources css, js, etc. requested by the client terminal. This not only reduces network congestion and improves the response speed of requests, but also reduces the load pressure on the source site.
如图2所示,如果要访问的网站名为:"baidu.com",客户端首先会在本机的hosts文件和hosts缓存中查找该域名对应的IP地址;如果本机中没有此信息,则会到本地DNS进行询问该域名对应的IP地址;如果本地DNS中仍然没有该域名的IP信息时,则会由本地DNS依次向根DNS、顶级域DNS、权威DNS进行询问,最终本地DNS将IP地址发送给客户端。客户端通过IP地址向远程的源站服务器发出HTTP请求并获取相应的数据内容。As shown in Figure 2, if the website to be accessed is called "baidu.com", the client will first look for the IP address corresponding to the domain name in the local hosts file and hosts cache; if the local host does not have this information, it will query the local DNS for the IP address corresponding to the domain name; if the local DNS still does not have the IP information of the domain name, the local DNS will query the root DNS, top-level domain DNS, and authoritative DNS in turn, and finally the local DNS will send the IP address to the client. The client sends an HTTP request to the remote source server through the IP address and obtains the corresponding data content.
如图3所示是通过CDN进行请求响应的过程图,GSLB是全局负载均衡,主要针对跨地域、跨机房的流量进行负载均衡分配;SLB是本地负载均衡,主要针对同一地域、同一机房内的服务器进行负载均衡分配。通过图中可以看出,在DNS解析域名时新增了一个全局负载均衡系统(GSLB),GSLB的主要功能是根据用户的本地DNS的IP地址判断用户的位置,筛选出距离用户最近的本地负载均衡系统(SLB),并将该SLB的IP地址作为结果返回给本地DNS。SLB主要负责判断缓存服务器集群中是否包含用户请求的资源数据,如果缓存服务器中存在请求的资源,则根据缓存服务器集群中节点的健康程度、负载量、连接数等因素筛选出最优的缓存节点,并将HTTP请求重定向到最优的缓存节点上。总的来说,GSLB和SLB都是应用系统中重要的负载均衡技术,GSLB解决跨地域、跨机房的负载均衡问题,SLB解决同一机房内的负载均衡问题。两者通常结合使用,共同保证应用系统的高可用性和高性能。As shown in Figure 3, it is a process diagram of request response through CDN. GSLB is a global load balancing system, which mainly performs load balancing distribution for traffic across regions and computer rooms; SLB is a local load balancing system, which mainly performs load balancing distribution for servers in the same region and computer room. As can be seen from the figure, a global load balancing system (GSLB) is added when DNS resolves the domain name. The main function of GSLB is to determine the user's location based on the IP address of the user's local DNS, select the local load balancing system (SLB) closest to the user, and return the IP address of the SLB as the result to the local DNS. SLB is mainly responsible for determining whether the cache server cluster contains the resource data requested by the user. If the requested resource exists in the cache server, the optimal cache node is selected based on the health, load, number of connections and other factors of the nodes in the cache server cluster, and the HTTP request is redirected to the optimal cache node. In general, GSLB and SLB are both important load balancing technologies in the application system. GSLB solves the load balancing problem across regions and computer rooms, and SLB solves the load balancing problem within the same computer room. The two are usually used in combination to jointly ensure the high availability and high performance of the application system.
可选地,本地负载均衡服务器中至少包括分片视频数据,分片视频数据是将第一视频头标识存放在第一文件头中,并将第一视频帧数据存放在第一数据文件中;或者分片视频数据是将多个流媒体数据进行封装得到的,每一个流媒体数据是将第二视频头标识存放在第二文件头中,并将第二视频帧数据存放在第二数据文件中。Optionally, the local load balancing server includes at least sliced video data, the sliced video data is obtained by storing a first video header identifier in a first file header, and storing the first video frame data in a first data file; or the sliced video data is obtained by encapsulating multiple streaming media data, each streaming media data is obtained by storing a second video header identifier in a second file header, and storing the second video frame data in a second data file.
可选地,业务请求至少包括流媒体访问信息,流媒体访问信息至少包括目标索引标识。Optionally, the service request at least includes streaming media access information, and the streaming media access information at least includes a target index identifier.
可选地,根据目标本地负载均衡服务器的地址信息,获取与业务请求对应的业务数据,包括:Optionally, obtaining service data corresponding to the service request according to the address information of the target local load balancing server includes:
根据预先设置的索引文件,获取与目标索引标识对应的目标分片视频数据。According to the preset index file, the target segmented video data corresponding to the target index identifier is obtained.
如图4-图6所示,1个M3U8文件对应多个ts文件,做到了每切换到对应的片段,只加载对应的片段,真正做到了开源节流,加上了cdn就近分配资源的能力,大大减小了网站的源压力,提高资源访问速度。As shown in Figure 4 to Figure 6, one M3U8 file corresponds to multiple ts files, so that each time the corresponding segment is switched to, only the corresponding segment is loaded, which truly achieves the goal of increasing revenue and reducing expenditure. In addition, the ability of CDN to allocate resources nearby greatly reduces the source pressure of the website and improves the speed of resource access.
对于视频格式解析M3U8,用UTF-8编码。"M3U"和"M3U8"文件都是用的HTTP LiveStreaming(HLS)协议格式的基础;是Unicode版本的M3U。M3U8文件是M3U文件的一种,只不过它的编码格式是UTF-8。M3U使用Latin-1字符集编码。M3U的全称是Moving PictureExperts Group Audio Layer 3Uniform Resource Locator,即mp3 URL。M3U是纯文本文件;所以UTF-8编码的M3U文件也简称为M3U8;HLS是基于HTTP的流媒体网络传输协议。HLS的工作原理是把整个流分成一个个小的基于HTTP的文件来下载,每次只下载一些。当媒体流正在播放时,客户端可以选择从许多不同的备用源中以不同的速率下载同样的资源,允许流媒体会话适应不同的数据速率。在开始一个流媒体会话时,客户端会下载一个包含元数据的extended M3U(m3u8)playlist文件,用于寻找可用的媒体流。HLS只请求基本的HTTP报文,与实时传输协议(RTP)不同,HLS可以穿过任何允许HTTP数据通过的防火墙或者代理服务器。它也很容易使用内容分发网络来传输媒体流。这是HLS应用在直播上的一大优势。该项目需要借助HLS格式播放器去接收CDN分发的视频分片。For video format parsing, M3U8 is encoded in UTF-8. Both "M3U" and "M3U8" files are based on the HTTP LiveStreaming (HLS) protocol format; it is the Unicode version of M3U. M3U8 files are a type of M3U file, but its encoding format is UTF-8. M3U is encoded using the Latin-1 character set. The full name of M3U is Moving Picture Experts Group Audio Layer 3 Uniform Resource Locator, which is mp3 URL. M3U is a plain text file; so the UTF-8 encoded M3U file is also referred to as M3U8; HLS is a streaming network transmission protocol based on HTTP. The working principle of HLS is to divide the entire stream into small HTTP-based files for download, and only download some at a time. When the media stream is playing, the client can choose to download the same resource at different rates from many different alternative sources, allowing the streaming session to adapt to different data rates. When starting a streaming session, the client downloads an extended M3U (m3u8) playlist file containing metadata to find available media streams. HLS only requests basic HTTP messages. Unlike the Real-time Transport Protocol (RTP), HLS can pass through any firewall or proxy server that allows HTTP data to pass. It is also easy to use a content distribution network to transmit media streams. This is a major advantage of HLS in live broadcasting. This project requires the use of an HLS format player to receive video segments distributed by CDN.
处理视频分片,将视频用FFMPEG进行分片,分片后批量上传给CDN服务器。MP4只是个封装格式而已。MP4可以有两种方式存在,一种是将Meta全部放在文件头,后面所有的媒体数据为一个整体。这样虽然在流化后也能做到边缓冲边播放,但由于MP4的Meta体积较大,所以在播放之前可能会出现较长缓冲时间(特别是视频时间很长的情况下)。Process the video segments, use FFMPEG to segment the video, and upload the segments to the CDN server in batches. MP4 is just a packaging format. MP4 can exist in two ways. One is to put all the Meta in the file header, and all the media data behind it is a whole. Although this can achieve buffering and playback after streaming, due to the large size of MP4 Meta, there may be a long buffering time before playback (especially when the video is very long).
另一种是在一个MP4内封装多段媒体数据,并且每一段媒体数据都有自己独立的Meta,这样就可实现渐进式下载+快速缓冲的效果,HLS一般不用于点播业务。因为m3u8只是一个索引文件,用户请求调用m3u8之后,流媒体服务器会向存储继续请求实体的TS文件,从而造成请求过于频繁,对存储压力是很大的,也无法让流媒体服务器实现大规模并发支撑。而几乎所有视频网站的点播业务都采用MP4分片,就是因为流媒体服务器无需频繁向存储请求数据,调用一次即可,甚至可以缓存至前端的Transfer或本地硬盘,这样的话效率远比使用HLS((HTTP Live streaming),是基于HTTP的流媒体传输协议)实现点播更高。对于视频分片技术,通过阿里云OSS文件上传(分片上传)方式处理。The other is to encapsulate multiple segments of media data in an MP4, and each segment of media data has its own independent Meta, so that the effect of progressive download + fast buffering can be achieved. HLS is generally not used for on-demand services. Because m3u8 is just an index file, after the user requests to call m3u8, the streaming media server will continue to request the physical TS file from the storage, resulting in too frequent requests, which puts a lot of pressure on the storage and cannot enable the streaming media server to achieve large-scale concurrent support. Almost all video websites use MP4 fragmentation for on-demand services because the streaming media server does not need to frequently request data from the storage, and can only call it once, and can even cache it to the front-end Transfer or local hard disk. This is much more efficient than using HLS (HTTP Live streaming, a streaming media transmission protocol based on HTTP) to achieve on-demand. For video fragmentation technology, it is processed through Alibaba Cloud OSS file upload (fragment upload).
如图7所示,用户通过客户端上传视频至OSS的CDN服务器,CDN同步MP4文件到ES服务器(用于视频分片处理),CDN利用内容分发网络,实现网站负载均衡,同时结合视频分片技术进行流量控制,减缓网站压力。CDN负载均衡属于阿里云CDN服务器就近分发资源,处理负载均衡问题。CDN系统能够实时地根据网络流量和各节点的连接、负载状况以及到用户的距离和响应时间等综合信息将用户的请求重新导向离用户最近的服务节点上。同时视频分片去处理视频加载慢的问题,减轻网站流量成本,减缓网站压力的问题,两者结合其目的是使用户可就近取得所需内容,解决Internet网络拥挤的状况,提高用户访问网站的响应速度,本申请实施例使用CDN进行分发将给用户提供良好的视频浏览体验。As shown in Figure 7, the user uploads the video to the CDN server of OSS through the client, and the CDN synchronizes the MP4 file to the ES server (for video segmentation processing). The CDN uses the content distribution network to achieve website load balancing, and combines the video segmentation technology to control the flow and relieve the pressure on the website. CDN load balancing belongs to the Alibaba Cloud CDN server to distribute resources nearby and handle load balancing problems. The CDN system can redirect the user's request to the service node closest to the user in real time based on comprehensive information such as network traffic and the connection and load status of each node, as well as the distance to the user and response time. At the same time, video segmentation handles the problem of slow video loading, reduces the website traffic cost, and relieves the problem of website pressure. The purpose of combining the two is to enable users to obtain the required content nearby, solve the congestion of the Internet network, and improve the response speed of users visiting the website. The use of CDN for distribution in the embodiment of the present application will provide users with a good video browsing experience.
需要说明的是,对于方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明实施例并不受所描述的动作顺序的限制,因为依据本发明实施例,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作并不一定是本发明实施例所必须的。It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the described action sequence, because according to the embodiments of the present invention, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
本发明实施例提供的负载均衡方法,通过接收客户终端发送的业务请求;将业务请求发送至全局负载均衡服务器,以使全局负载均衡服务器根据本地DNS的地址信息判断客户终端的位置,确定目标本地负载均衡服务器的地址信息,其中,本地负载均衡服务器与客户终端之间的距离小于预设值;接收全局负载均衡服务器返回的目标本地负载均衡服务器的地址信息,并根据目标本地负载均衡服务器的地址信息,获取与业务请求对应的业务数据,实现CDN分担源站压力,避免网络拥塞,确保在不同区域、不同场景下加速网站内容的分发,提高资源访问速度。The load balancing method provided by the embodiment of the present invention receives a service request sent by a client terminal; sends the service request to a global load balancing server, so that the global load balancing server determines the location of the client terminal according to the address information of the local DNS, and determines the address information of the target local load balancing server, wherein the distance between the local load balancing server and the client terminal is less than a preset value; receives the address information of the target local load balancing server returned by the global load balancing server, and obtains the service data corresponding to the service request according to the address information of the target local load balancing server, so as to realize CDN sharing the pressure of the source station, avoid network congestion, ensure the acceleration of the distribution of website content in different regions and different scenarios, and improve the resource access speed.
本发明另一实施例提供一种负载均衡装置,应用于本地DNS,用于执行上述实施例提供的负载均衡方法。Another embodiment of the present invention provides a load balancing device, which is applied to a local DNS and is used to execute the load balancing method provided in the above embodiment.
参照图8,示出了本发明的一种负载均衡装置实施例的结构框图,该装置具体可以包括如下模块:接收模块801、确定模块802和处理模块803,其中:8, a structural block diagram of an embodiment of a load balancing device of the present invention is shown. The device may specifically include the following modules: a receiving module 801, a determining module 802 and a processing module 803, wherein:
接收模块801用于接收客户终端发送的业务请求;The receiving module 801 is used to receive a service request sent by a client terminal;
确定模块802用于将业务请求发送至全局负载均衡服务器,以使全局负载均衡服务器根据本地DNS的地址信息判断客户终端的位置,确定目标本地负载均衡服务器的地址信息,其中,本地负载均衡服务器与客户终端之间的距离小于预设值;The determination module 802 is used to send the service request to the global load balancing server, so that the global load balancing server determines the location of the client terminal according to the address information of the local DNS, and determines the address information of the target local load balancing server, wherein the distance between the local load balancing server and the client terminal is less than a preset value;
处理模块803用于接收全局负载均衡服务器返回的目标本地负载均衡服务器的地址信息,并根据目标本地负载均衡服务器的地址信息,获取与业务请求对应的业务数据。The processing module 803 is used to receive the address information of the target local load balancing server returned by the global load balancing server, and obtain the service data corresponding to the service request according to the address information of the target local load balancing server.
本发明实施例提供的负载均衡装置,通过接收客户终端发送的业务请求;将业务请求发送至全局负载均衡服务器,以使全局负载均衡服务器根据本地DNS的地址信息判断客户终端的位置,确定目标本地负载均衡服务器的地址信息,其中,本地负载均衡服务器与客户终端之间的距离小于预设值;接收全局负载均衡服务器返回的目标本地负载均衡服务器的地址信息,并根据目标本地负载均衡服务器的地址信息,获取与业务请求对应的业务数据,实现CDN分担源站压力,避免网络拥塞,确保在不同区域、不同场景下加速网站内容的分发,提高资源访问速度。The load balancing device provided by the embodiment of the present invention receives a service request sent by a client terminal; sends the service request to a global load balancing server, so that the global load balancing server determines the location of the client terminal according to the address information of the local DNS, and determines the address information of the target local load balancing server, wherein the distance between the local load balancing server and the client terminal is less than a preset value; receives the address information of the target local load balancing server returned by the global load balancing server, and obtains the service data corresponding to the service request according to the address information of the target local load balancing server, so as to realize CDN sharing the pressure of the source station, avoid network congestion, ensure the acceleration of the distribution of website content in different regions and different scenarios, and improve the resource access speed.
本发明又一实施例对上述实施例提供的负载均衡装置做进一步补充说明。Another embodiment of the present invention further supplements the load balancing device provided in the above embodiment.
可选地,确定模块用于:Optionally, the determination module is used to:
根据预设判断条件,判断本地负载均衡服务器中是否存在请求资源,预设判断条件至少包括健康程度、负载量或连接数中的一种或多种;According to preset judgment conditions, judging whether the requested resource exists in the local load balancing server, the preset judgment conditions at least including one or more of health, load or number of connections;
若本地负载均衡服务器满足预设判断条件,则确定本地负载均衡服务器为目标本地负载均衡服务器。If the local load balancing server meets the preset judgment condition, the local load balancing server is determined as the target local load balancing server.
可选地,本地负载均衡服务器中至少包括分片视频数据,分片视频数据是将第一视频头标识存放在第一文件头中,并将第一视频帧数据存放在第一数据文件中;或者分片视频数据是将多个流媒体数据进行封装得到的,每一个流媒体数据是将第二视频头标识存放在第二文件头中,并将第二视频帧数据存放在第二数据文件中。Optionally, the local load balancing server includes at least sliced video data, the sliced video data is obtained by storing a first video header identifier in a first file header, and storing the first video frame data in a first data file; or the sliced video data is obtained by encapsulating multiple streaming media data, each streaming media data is obtained by storing a second video header identifier in a second file header, and storing the second video frame data in a second data file.
可选地,业务请求至少包括流媒体访问信息,流媒体访问信息至少包括目标索引标识。Optionally, the service request at least includes streaming media access information, and the streaming media access information at least includes a target index identifier.
可选地,处理模块用于:Optionally, the processing module is used to:
根据预先设置的索引文件,获取与目标索引标识对应的目标分片视频数据。According to the preset index file, the target segmented video data corresponding to the target index identifier is obtained.
需要说明的是,本实施例中各可实施的方式可以单独实施,也可以在不冲突的情况下以任意组合方式结合实施本申请不做限定。It should be noted that each implementable method in this embodiment may be implemented separately, or may be implemented in combination in any manner without conflict, and this application is not limited thereto.
对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
本发明实施例提供的负载均衡装置,通过接收客户终端发送的业务请求;将业务请求发送至全局负载均衡服务器,以使全局负载均衡服务器根据本地DNS的地址信息判断客户终端的位置,确定目标本地负载均衡服务器的地址信息,其中,本地负载均衡服务器与客户终端之间的距离小于预设值;接收全局负载均衡服务器返回的目标本地负载均衡服务器的地址信息,并根据目标本地负载均衡服务器的地址信息,获取与业务请求对应的业务数据,实现CDN分担源站压力,避免网络拥塞,确保在不同区域、不同场景下加速网站内容的分发,提高资源访问速度。The load balancing device provided by the embodiment of the present invention receives a service request sent by a client terminal; sends the service request to a global load balancing server, so that the global load balancing server determines the location of the client terminal according to the address information of the local DNS, and determines the address information of the target local load balancing server, wherein the distance between the local load balancing server and the client terminal is less than a preset value; receives the address information of the target local load balancing server returned by the global load balancing server, and obtains the service data corresponding to the service request according to the address information of the target local load balancing server, so as to realize CDN sharing the pressure of the source station, avoid network congestion, ensure the acceleration of the distribution of website content in different regions and different scenarios, and improve the resource access speed.
本发明再一实施例提供一种终端设备,用于执行上述实施例提供的负载均衡方法。Yet another embodiment of the present invention provides a terminal device for executing the load balancing method provided in the above embodiment.
图9是本发明的一种终端设备的结构示意图,如图9所示,该终端设备包括:至少一个处理器901和存储器902;FIG9 is a schematic diagram of the structure of a terminal device of the present invention. As shown in FIG9 , the terminal device includes: at least one processor 901 and a memory 902;
存储器存储计算机程序;至少一个处理器执行存储器存储的计算机程序,以实现上述实施例提供的负载均衡方法。The memory stores a computer program; and at least one processor executes the computer program stored in the memory to implement the load balancing method provided in the above embodiment.
本实施例提供的终端设备,通过接收客户终端发送的业务请求;将业务请求发送至全局负载均衡服务器,以使全局负载均衡服务器根据本地DNS的地址信息判断客户终端的位置,确定目标本地负载均衡服务器的地址信息,其中,本地负载均衡服务器与客户终端之间的距离小于预设值;接收全局负载均衡服务器返回的目标本地负载均衡服务器的地址信息,并根据目标本地负载均衡服务器的地址信息,获取与业务请求对应的业务数据,实现CDN分担源站压力,避免网络拥塞,确保在不同区域、不同场景下加速网站内容的分发,提高资源访问速度。The terminal device provided in this embodiment receives a service request sent by a client terminal; sends the service request to a global load balancing server, so that the global load balancing server determines the location of the client terminal according to the address information of the local DNS, and determines the address information of the target local load balancing server, wherein the distance between the local load balancing server and the client terminal is less than a preset value; receives the address information of the target local load balancing server returned by the global load balancing server, and obtains the service data corresponding to the service request according to the address information of the target local load balancing server, thereby realizing CDN sharing the pressure of the source station, avoiding network congestion, ensuring the acceleration of the distribution of website content in different regions and different scenarios, and improving the speed of resource access.
本申请又一实施例提供一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,计算机程序被执行时实现上述任一实施例提供的负载均衡方法。Yet another embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed, the load balancing method provided in any of the above embodiments is implemented.
根据本实施例的计算机可读存储介质,通过接收客户终端发送的业务请求;将业务请求发送至全局负载均衡服务器,以使全局负载均衡服务器根据本地DNS的地址信息判断客户终端的位置,确定目标本地负载均衡服务器的地址信息,其中,本地负载均衡服务器与客户终端之间的距离小于预设值;接收全局负载均衡服务器返回的目标本地负载均衡服务器的地址信息,并根据目标本地负载均衡服务器的地址信息,获取与业务请求对应的业务数据,实现CDN分担源站压力,避免网络拥塞,确保在不同区域、不同场景下加速网站内容的分发,提高资源访问速度。According to the computer-readable storage medium of this embodiment, a service request sent by a client terminal is received; the service request is sent to a global load balancing server, so that the global load balancing server determines the location of the client terminal according to the address information of the local DNS, and determines the address information of the target local load balancing server, wherein the distance between the local load balancing server and the client terminal is less than a preset value; the address information of the target local load balancing server returned by the global load balancing server is received, and the service data corresponding to the service request is obtained according to the address information of the target local load balancing server, so as to realize CDN sharing the pressure of the source station, avoid network congestion, ensure the acceleration of the distribution of website content in different regions and different scenarios, and improve the speed of resource access.
本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
本领域内的技术人员应明白,本发明实施例的实施例可提供为方法、装置、或计算机程序产品。因此,本发明实施例可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明实施例可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that the embodiments of the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
本发明实施例是参照根据本发明实施例的方法、电子设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理电子设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理电子设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The embodiments of the present invention are described with reference to the flowcharts and/or block diagrams of the methods, electronic devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and/or box in the flowchart and/or block diagram, as well as the combination of the processes and/or boxes in the flowchart and/or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing electronic device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing electronic device produce a device for implementing the functions specified in one process or multiple processes in the flowchart and/or one box or multiple boxes in the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理电子设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing electronic device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device that implements the functions specified in one or more processes in the flowchart and/or one or more boxes in the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理电子设备上,使得在计算机或其他可编程电子设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程电子设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions may also be loaded onto a computer or other programmable data processing electronic device so that a series of operating steps are executed on the computer or other programmable electronic device to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable electronic device provide steps for implementing the functions specified in one or more processes in the flowchart and/or one or more boxes in the block diagram.
尽管已描述了本发明实施例的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例做出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明实施例范围的所有变更和修改。Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.
最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者电子设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者电子设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括要素的过程、方法、物品或者电子设备中还存在另外的相同要素。Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or electronic device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or electronic device. In the absence of further restrictions, the elements defined by the sentence "comprises a..." do not exclude the presence of other identical elements in the process, method, article or electronic device including the elements.
以上对本发明所提供的一种负载均衡方法和一种负载均衡装置,进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The load balancing method and the load balancing device provided by the present invention are introduced in detail above. The principles and implementation methods of the present invention are explained in this article by using specific examples. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202410860068.0A CN118714086A (en) | 2024-06-28 | 2024-06-28 | Load balancing method, device, equipment and medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202410860068.0A CN118714086A (en) | 2024-06-28 | 2024-06-28 | Load balancing method, device, equipment and medium |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN118714086A true CN118714086A (en) | 2024-09-27 |
Family
ID=92812424
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202410860068.0A Pending CN118714086A (en) | 2024-06-28 | 2024-06-28 | Load balancing method, device, equipment and medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN118714086A (en) |
-
2024
- 2024-06-28 CN CN202410860068.0A patent/CN118714086A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP6944485B2 (en) | Requests for multiple chunks to a network node based on a single request message | |
| EP3446461B1 (en) | Just in time transcoding and packaging in ipv6 networks | |
| US9158769B2 (en) | Systems and methods for network content delivery | |
| CN104137564B (en) | The controlled streaming of piecemeal content | |
| EP2897340B1 (en) | Routing proxy for adaptive streaming | |
| US8880650B2 (en) | System and method for storing streaming media file | |
| CN102282825B (en) | Method and device for streaming media to request address mapping and cache nodes in content delivery network | |
| RU2647654C2 (en) | System and method of delivering audio-visual content to client device | |
| US20080016201A1 (en) | Methods and apparatus for transferring data | |
| WO2017071228A1 (en) | Hls protocol-based method and system for live broadcast and client | |
| CN102055718B (en) | Method, device and system for layering request content in http streaming system | |
| CA2840106A1 (en) | Offline download method, multimedia file download method and system thereof | |
| US20140074961A1 (en) | Efficiently Delivering Time-Shifted Media Content via Content Delivery Networks (CDNs) | |
| CN104320410A (en) | All-service CDN system based on HTTP and working method thereof | |
| WO2017096830A1 (en) | Content delivery method and scheduling proxy server for cdn platform | |
| WO2019128800A1 (en) | Content service implementation method and device, and content delivery network node | |
| CN106961630B (en) | A kind of P2P streaming media video playback method based on DASH optimization | |
| WO2013086707A1 (en) | Routing method, device, and system in content delivery network (cdn) | |
| WO2017161757A1 (en) | Method and system for distributing streaming media file | |
| CN107113332A (en) | Server-Side Prediction of Media Client Steady State | |
| CN110958279B (en) | Data processing method and device | |
| KR20040088868A (en) | Apparatus and method for deliverying digital contents | |
| Ramadha et al. | Design and implementation named data networking-based video streaming system | |
| CN118714086A (en) | Load balancing method, device, equipment and medium | |
| Riad et al. | A framework for cloud P2P VoD system based on user's behavior analysis |
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 |