CN110113399A - Load balancing management method and relevant apparatus - Google Patents

Load balancing management method and relevant apparatus Download PDF

Info

Publication number
CN110113399A
CN110113399A CN201910336511.3A CN201910336511A CN110113399A CN 110113399 A CN110113399 A CN 110113399A CN 201910336511 A CN201910336511 A CN 201910336511A CN 110113399 A CN110113399 A CN 110113399A
Authority
CN
China
Prior art keywords
node
load balancing
end services
configuration file
services node
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
CN201910336511.3A
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.)
Huawei Cloud Computing Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201910336511.3A priority Critical patent/CN110113399A/en
Publication of CN110113399A publication Critical patent/CN110113399A/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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles

Abstract

The embodiment of the invention discloses load balancing management methods, it include: multiple nodal informations that load balancing management node receives multiple back-end services nodes, the each of multiple nodal information includes the application service type of the network information of place back-end services node and the application service of place back-end services node offer, the application service type that the multiple nodal information includes is identical, and then generate the first configuration file, it include load balancing and multiple nodal informations in this document, first configuration file is further sent to load balancing node, load balancing is carried out to multiple back-end services nodes according to load balancing convenient for load balancing node.Using the embodiment of the present invention, be able to solve existing for the existing configuration file by manual configuration load balancing node it is cumbersome, easily there is the problems such as maloperation.

Description

Load balancing management method and relevant apparatus
Technical field
The present invention relates to Internet technical fields more particularly to load balancing management method, related system and computer to deposit Storage media.
Background technique
Increasingly developed with Internet technology, service content provided by internet is also more and more.For some clothes For content of being engaged in, multiple back-end services nodes need to be usually set and come while application service being provided, to carry out load balancing (load Balance, LB).The case where avoiding single back-end services node from not providing application service in time simultaneously for multiple user equipmenies, Promote service quality.
For the service quality and performance for guaranteeing application service, load balancing node is generallyd use to alleviate network flow pressure Power.The load balancing node requests the application service of each client equal for being managed to multiple back-end services nodes It weighs into multiple back-end services nodes.In practical applications, application service can be varied, thousands ofly, and support Distributed deployment.The configuration file of load balancing node in this way becomes increasingly complex, and the maintenance of configuration file is more difficult, error-prone.
Currently, working as, the application service that back-end server node provides needs to change or the flow of back-end services node needs When being limited, the configuration file of the load balancing node need to be reconfigured manually by user, it is cumbersome, and match by hand It sets and is easy to appear maloperation.In addition, the load balancing node need to be restarted after the configuration file of the load balancing node reconfigures, The configuration file after the load balancing node reconfigures is loaded, to be normally carried out service communication.In the reboot process, it will cause and answer With service disruption, it is also possible to which the application service request for causing the performance issue of load balancing node user equipment occur is lost or meaning The situations such as outer interruption, affect the service quality and service performance of application service.
Summary of the invention
The embodiment of the invention discloses load balancing management method, related system and computer storage mediums, are able to solve It is cumbersome existing for the existing configuration file by manual configuration load balancing node, easy the problems such as maloperation occur.
In a first aspect, the embodiment of the present invention, which discloses, provides a kind of load balancing management method, which comprises load Balanced management node receives multiple nodal informations that multiple back-end services nodes are sent, and each of multiple nodal information is wrapped The application service for the application service that the network information of back-end services node where including and the back-end services node at place provide Type, the application service type that the multiple nodal information includes are identical.Load balancing management node is believed according to multiple node Breath generates the first configuration file, includes load balancing and multiple nodal informations in first configuration file, further First configuration file can be sent to load balancing node by load balancing management node.Convenient for load balancing node according to first Load balancing in configuration file carries out load balancing to multiple back-end services nodes.
It, being capable of matching by load balancing management node dynamic configuration load balancing node by implementing the embodiment of the present invention File is set, no longer needs to avoid cumbersome, easy existing for traditional technology miss by user's manual configuration using traditional technology The problems such as service quality and service performance of configuration operation and influence application service.
With reference to first aspect, in some possible embodiments, load balancing management node is detecting multiple rear ends clothes When the first back-end services node is offline in business node, the first back-end services node is recorded in the first configuration file and is in lower threadiness State, and generate the second configuration file.Second configuration file is sent to load balancing node by further load balancing management node. Convenient for load balancing node according to the load balancing in the second configuration file in multiple back-end servers remove the first rear end Back-end services node outside service node carries out equally loaded.
By implementing this step, load balancing management node can dynamically reduce the rear end clothes communicated with load balancing node The quantity of business node, and synchronized update or the configuration file for configuring the load balancing node are not necessarily to manual intervention manual configuration, section Save setup time.
With reference to first aspect, in some possible embodiments, load balancing management node receives the second back-end server The second node information of transmission, the second node information are used to indicate the second back-end server and equally provide identical application clothes Business.Correspondingly, load balancing management node records the second back-end services node in the first configuration file and is in online state, and Generate third configuration file.Third configuration file can be sent to load balancing node by further load balancing management node, just In load balancing node according to the load balancing in third configuration file to multiple back-end services nodes and the second rear end Service node carries out load balancing.
By implementing this step, load balancing management node can dynamically increase the rear end clothes communicated with load balancing node Be engaged in the quantity of node, and synchronized update or the configuration file for configuring the load balancing node, without being increased by hand by artificial and Configuration, it is convenient to operate, and also saves configuration flow and setup time.
It with reference to first aspect, include the rear end in the nodal information of back-end services node in some possible embodiments The application service type information and the network information of service node.The application service type information is used to indicate the back-end services node The type of the application service of offer, such as mail service, web service, instant messaging service etc..The network information include but It is not limited to address, media access control Internet protocol (internet protocol address, IP) of back-end services node The letter that the address (media access control address, MAC), port or other supports are communicated with the back-end services node Breath etc..
With reference to first aspect, in some possible embodiments, load balancing management node provide user's interactive interface with The load balancing that user inputs is obtained from user's interactive interface.
By implementing this step, load balancing management node can provide user's interactive interface and realize human-computer interaction, Yong Hutong Crossing the interface can input for the customized load balancing of the application service, control the load balancing of load balancing node, Improve user's participation.
Second aspect, the embodiment of the present invention, which discloses, provides a kind of load-balancing method, which comprises load balancing Node can receive and record the first configuration file of load balancing management node transmission, include load in first configuration file Balance policy and multiple nodal informations, multiple nodal information are sent to load balancing management section by multiple back-end services nodes Point, each of multiple nodal information include the network information of the back-end services node at place and the back-end services at place The application service type for the application service that node provides, the application service type that the multiple nodal information includes are identical.In reality In the application of border, load balancing node can receive the first access request for the application service that client is sent.Receive first After access request, load balancing node can be according to the first configuration file (concretely load balancing plan in the first configuration file First object back-end services node slightly) is selected from multiple back-end services nodes, and first access request is sent to first Target back-end services node.Convenient for the first back-end services node processing first access request, the first access request institute is returned The access result that need to be accessed.
By implementing the embodiment of the present invention, load balancing node can be according to the first of load balancing management node dynamic configuration Configuration file realizes load balancing, by the first access request load balancing of client to first object back-end services node Middle processing avoids the flow congestion of single back-end services node, and fining, the precision for realizing same application service are balanced, has Conducive to the service quality and service performance for ensureing application service.
In conjunction with second aspect, in some possible embodiments, load balancing node balancing received load management node hair The second configuration file sent, second configuration file are that load balanced management node records multiple rear ends in the first configuration file The first back-end services node down status in service node and generate.Further load balancing node can use the second configuration text Part replaces the first configuration file.In practical applications, what the receivable client of load balancing node was sent is directed to application service The second access request, according to its from multiple back-end services nodes in addition to the first back-end services node of the second configuration file The second target back-end services node is selected in his back-end services node, and the second access request is sent to the second target rear end clothes Business node.
By implementing this step, load balancing management node is dynamically deleting any one in multiple back-end services nodes Or after multiple back-end services nodes, can synchronized update or replace load balancing node configuration file.Correspondingly, load balancing section Point realizes load balancing according to replaced configuration file, to guarantee the service quality and service performance of application service.
In conjunction with second aspect, in some possible embodiments, load balancing node balancing received load management node hair The third configuration file sent, the third configuration file are that load balancing management node records the second rear end in the first configuration file Service node is in online state and generates, which provides similarly application service.Load balancing section Point will replace the first configuration file with third configuration file, realize load balancing convenient for subsequent the first configuration file of foundation.In reality In the application of border, load balancing node can receive the third access request for application service that client is sent, load balancing section Point can select third target rear end to take according to third configuration file from multiple back-end services nodes and the second back-end services node Business node, and the third access request is sent to third target back-end services node.
By implementing this step, load balancing management node can dynamically increase the back-end services communicated with load balancing node newly Node, and synchronized update or the configuration file for replacing load balancing node.Correspondingly, load balancing node is matched according to replaced File is set to realize load balancing, to guarantee the service quality and service performance of application service.
In conjunction with second aspect, in some possible embodiments, the nodal information of back-end services node includes rear end clothes The application service type information and the network information of business node.The application service type information is used to indicate the back-end services node and mentions The type of the application service of confession, such as mail service, web service, instant messaging service etc..The network information includes but not It is limited to the information etc. that IP address, MAC Address, port or other supports of back-end services node are communicated with the back-end services node, The network information for identifying back-end services node in a network.
The third aspect, the embodiment of the invention provides a kind of load balancing management node, which includes for executing such as The functional module or unit of method described in any possible embodiment of upper first aspect or first aspect.
Fourth aspect, the embodiment of the invention provides a kind of load balancing node, which includes for executing as above The functional module or unit of method described in any possible embodiment of two aspects or second aspect.
5th aspect, the embodiment of the invention provides another load balancing management nodes, comprising: processor, memory, Communication interface and bus;Processor, communication interface, memory are in communication with each other by bus;Communication interface, for sending and receiving Data;Memory, for storing instruction;Processor executes above-mentioned first aspect or first for calling the instruction in memory Method described in any possible embodiment of aspect.
6th aspect, the embodiment of the invention provides another load balancing nodes, comprising: processor, memory, communication Interface and bus;Processor, communication interface, memory are in communication with each other by bus;Communication interface, for sending and receiving number According to;Memory, for storing instruction;Processor executes above-mentioned second aspect or second party for calling the instruction in memory Method described in any possible embodiment in face.
7th aspect, the embodiment of the invention provides a kind of communication systems, including load balancing management node, load balancing Node and multiple back-end services nodes, wherein the load balancing management node is for executing above-mentioned first aspect or first party Method described in any possible embodiment in face.The load balancing node is for executing above-mentioned second aspect or second Method described in any possible embodiment of aspect.
Eighth aspect, provides a kind of non-transient (non-transitory) storage medium of computer, and the computer is non- Transient state storage medium stores the program code for load balancing management.Said program code includes for executing above-mentioned first The instruction of method described in any possible embodiment of aspect or first aspect.
9th aspect, provides a kind of non-transient (non-transitory) storage medium of computer, the computer is non- Transient state storage medium stores the program code for load balancing.Said program code includes for executing above-mentioned second aspect Or the instruction of method described in any possible embodiment of second aspect.
Tenth aspect, provides a kind of chip product, to execute any possible of above-mentioned first aspect or first aspect Method in embodiment.
On the one hand tenth, provides a kind of chip product, to execute any possibility of above-mentioned second aspect or second aspect Embodiment in method.
The present invention can also be further combined on the basis of the implementation that above-mentioned various aspects provide to provide more More implementations.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described.
Fig. 1 is a kind of structural schematic diagram of communication system provided in an embodiment of the present invention;
Fig. 2 is the structural schematic diagram of another data communication system provided in an embodiment of the present invention;
Fig. 3 is a kind of flow diagram of load balancing management method provided in an embodiment of the present invention;
Fig. 4 is the flow diagram of another load balancing management method provided in an embodiment of the present invention;
Fig. 5 is the flow diagram of another load balancing management method provided in an embodiment of the present invention;
Fig. 6 is a kind of structural schematic diagram of communication system provided in an embodiment of the present invention;
Fig. 7 is the structural schematic diagram of another communication system provided in an embodiment of the present invention.
Specific embodiment
With reference to the accompanying drawing, the embodiment of the present invention is described.
Applicant has found during proposing the application: due to back-end services node provide application service can be it is more Kind various, thousands ofly, and supports distributed deployment, this will lead to the load balancing node for managing the back-end services node Configuration file is increasingly complex, safeguards that the configuration file of the load balancing node is also more difficult, error-prone.When it come to change rear end clothes The application service that business node provides, or the communication flows of limitation back-end services node, user need manual modification or configuration load equal The configuration file of weighing apparatus node.Then load balancing node and back-end services node are restarted one by one, and load the load balancing node Configuration file.This will cause application service to interrupt, it is also possible to which the performance issue for causing load balancing node causes user to request Loss or accidental interruption etc. are unsuitable for providing continuously, without the ground application service that stops.
Multiple back-end services nodes load in addition, existing load balancing node generallys use load balancing principle Weighing apparatus.It (is asked for the access of application service specifically, load balancing node receives the application service request that any client is sent Ask) after, application service request can be assigned to back-end services section most lightly loaded according to the load capacity of each back-end services node It is handled in point.However for some application service requests for having particular/special requirement, if load balancing node is still using load Homeostatic principle is handled, and be will be unable to the actual demand for meeting application service, is influenced the service quality and service performance of application service.
To solve the above problems, the application proposes the applicable relevant device of a kind of load balancing management method, the method And system.It referring to Figure 1, is a kind of structural schematic diagram of communication system provided in an embodiment of the present invention.Communication as shown in Figure 1 System includes back-end services node 202, load balancing node 204 and load balancing management node 206.Optionally, the communication system It may also include client 208 in system.Wherein, the quantity of back-end services node 202 is at least 2, illustrates with multiple back-end services sections Point 202 is to exemplify.When the quantity of the back-end services node 202 is multiple, back-end services cluster can be described as.In network flow In biggish situation, load balancing node 204 and load balancing management node 206 can all be disposed by way of cluster, at this time Load balancing node 204 can be realized by multiple nodes, can also be realized by a node, similarly, load balancing management section Point 206 can be realized by multiple nodes, can also be realized by a node.The number of nodes for including in same cluster does not limit It is fixed, it can be arranged according to actual needs.
In practical applications, load balancing node 204 can be used for being responsible in seven layer networks the load balancing of data traffic and Forwarding, the load balancing node 204 can be by softwares such as such as nginx, OpenResty, Tengine and haproxy at this time It is realized by physical server, virtual machine or container.Optionally, which can also be used for being responsible for four-layer network network The load balancing and forwarding of middle data traffic, the load balancing node 204 can be by such as linux virtual server (linux at this time Virtual server, LVS) etc. software realizations.Fig. 2 is referred to, is disposed with load balancing node 204 by trunking mode, net It include for two load balancing clusters in network, they can be respectively LVS cluster and nginx cluster, wherein include in LVS cluster At least one LVS service node (alternatively referred to as LVS server) includes at least one nginx service node in nginx cluster (alternatively referred to as nginx server).Number of nodes respectively included is without limitation in LVS cluster and nginx cluster.For convenience Description, the application is by the LVS service node for including in cluster or nginx service node, collectively termed as load balancing node.In reality In the communication of border, any LVS service node in LVS cluster, can after receiving access request of the client 208 for application service The access request is sent to some nginx service node in nginx cluster according to the forwarding strategy prestored, and then by this The access request, is specifically forwarded at the back-end services cluster communicated with nginx service node by the forwarding of nginx service node Reason.
Multiple back-end services nodes 202 in same back-end services cluster are for providing corresponding to same application service type Application service, the application service type be, for example, social category application service, the application service of mail class, instant messaging class application clothes Business etc..For the equally concretely system customized setting of application service corresponding to every kind of application service type, with when For communication class application service, which may include but be not limited to wechat application service, QQ application service or other supports The application service etc. of network communication;Again by taking mail class application service as an example, it may include but be not limited to Google's goole mail applications Service, the service of foxmail mail applications and Tencent's mail applications service etc..Optionally, for ensure application service provide can By property and accuracy, multiple back-end services nodes 202 in same back-end services cluster can also be used for providing same application service. By taking mail applications service as an example, each back-end services node 202 in back-end services cluster is disposed or supports to provide mail class Application service.Back-end services node 202 each in back-end services cluster is carried out finely convenient for subsequent load balancing node 204 Change, accuracy ground load balancing, specifically, client 208 can be directed to the visit of the mail applications service by load balancing node 204 It asks some back-end services node 202 processing that request is more forwarded to fining in back-end services cluster, avoids single rear end There is situations such as service congestion, blocking in service node, is unable to satisfy the demand for services and service quality of application service.
Load balancing management node 206 is for being managed back-end services node 202 each in back-end services cluster, also Load balancing node 204 can be managed, can specifically manage the configuration file of load balancing node 204.Load balancing node 204 configuration file is used to indicate the configuration and operation of load balancing node 204, such as the stream of control load balancing node 204 Amount forwarding, can specifically below relate to load balancing node 204 according to itself configuration file such as the application and how realize client 208 Access request forwarding.
Load balancing management node 206 is described below to multiple back-end services nodes 202 (after i.e. in back-end services cluster End service node 202) related embodiment that is managed.In practical applications, load balancing management node 206 is in communication system It can individually be disposed in 100, i.e. deployment and load balancing node 204 and back-end services node 202 is different.Back-end services node 202 can be deployed with agent entity (agent, not shown go out), which can pass through the agent of own node will The nodal information of the back-end services node 202 reports to load balancing management node 206, so as to load balancing management node 206 Back-end services node 202 in back-end services cluster is managed.
Specifically, after the nodal information of the reception back-end services node 202 of load balancing management node 206, if load is equal The registered nodal information for having the back-end services node 202 in the management node 206 that weighs, then can terminate process.If load balancing Nodal information that is unregistered or storing the back-end services node 202 in management node 206, then load balancing management node 206 can The nodal information of the back-end services node 202 is registered in own node.If the nodal information of the back-end services node 202 It is used to indicate the back-end services node 202 to break down, normal application service can not be provided, then load balancing management node 206 can delete the nodal information of the back-end services node 202, record the back-end services node 206 and are in offline or down status, The back-end services node 202 to be rejected from back-end services cluster.
Optionally, the multiple back-end services nodes 202 in back-end services cluster of load balancing management node 206 carry out pipe When reason, the nodal information of own node can be uniformly sent to mesh by the agent of respective node by multiple back-end services nodes 202 The agent of back-end services node is marked, which is one in multiple back-end services nodes.Then, the mesh The respective nodal information of multiple back-end services nodes 202 is registered to negative by mark back-end services node by the agent of own node Balanced management node 206 is carried, to realize management of the load balancing node 206 to multiple back-end services node 202.
Below by taking any back-end services node 202 in the service cluster of rear end as an example, how it is described in detail by the back-end services section The nodal information of point 202 is registered in load balancing management node 206, to realize the management of the back-end services node 202.Specifically , back-end services node 202 sends registration request to load balancing management node 206 by the agent entity agent of its deployment, The nodal information of the back-end services node 202 is carried in the registration request.Load balancing management node 206 receives and responds the note Volume request, the nodal information of the back-end services node 202 is registered and is stored in load balancing management node 206.
In practical applications, the nodal information of back-end services node 202 can be carried on the symbol of the unified resource in registration request In (uniform resource locator, URL) field, the identification field that can also be carried in registration request, the identifier word Section is system customized setting in advance.The nodal information of back-end services node includes but is not limited to that back-end services node support is answered With the type (referred to as application service type information) of service, the network information of the back-end services node, policy information, attribute letter Breath or other information relevant to the back-end services node etc..
Wherein, the network information of back-end services node refers to the information for supporting to communicate with the back-end services node, can wrap Include but be not limited to address, media interviews Internet protocol (internet protocol address, IP) of back-end services node It controls the address (media access control address, MAC), port or other is related to the back-end services node communication Information etc..The attribute information of back-end services node refers to the information for describing the back-end services nodal community, may include But be not limited to node identification (such as title, identity ID etc.), the back-end services node support application service service processes, Communication port, operating status of the back-end services node (such as normal operation or failure etc.) etc..Back-end services node Policy information concretely customized setting, such as be arranged according to consumer taste or actual demand, it is equal for limiting load The node that weighs is forwarded to the flow of the back-end services node, such as the access request for application service that below relates to of the application Forwarding.The policy information includes but is not limited to service quality (quality of needed for back-end services node supports application service Service, QOS) index or back-end services node support the information such as the grade of service needed for providing application service.The QOS index Including but not limited to network delay, handling capacity, Loss Rate, priority or other be used to influence the index of application service quality Deng.The grade of service includes but is not limited to service quality (quality of service, QOS) grade and type service (class Of service, COS) grade, it can be also simply referred to as the QOS grade of service and the COS grade of service.
Wherein, the grade of service that the QOS grade of service is mainly divided according to bandwidth or transmission time, such as back-end services section Bandwidth needed for point supports application service is bigger, then the QOS grade of service of the back-end services node is higher;Conversely, back-end services Bandwidth needed for node supports application service is smaller, then the corresponding QOS grade of service of the back-end services node is lower.COS service Grade typically refers to the transmission priority of flow, and the COS grade of service of back-end services node is here: back-end services node branch Hold the priority of the required transmission data of application service.
Optionally, back-end services node 202 can provide user's interactive interface.User can be to this by user's interactive interface The policy information of back-end services node 202 is custom-configured.The rear end is received convenient for subsequent load balancing management node 206 The nodal information (including policy information) of service node 202 obtains the load balancing of load balancing node 202, to rear end Back-end services node 202 in service cluster carries out load balancing, is specifically detailed below in the application.
Optionally, load balancing management node 206 also can be reserved for multiple back-end services nodes 202 in back-end services cluster Grouping information.The specific packet mode of the grouping information is without limitation.For example, load balancing management node 206 can be according to rear end The nodal information of each back-end services node 202 in service cluster, according to default rule of classification to the institute in back-end services cluster Have or portion rear end service node 202 is grouped point for obtaining multiple back-end services node 202 (i.e. back-end services cluster) Group information, the default rule of classification can be the customized setting of system.For another example, load balancing management node 206 can provide user Interactive interface or user's interactive interface are to user, and user is according to actual needs or personal preference is to multiple back-end services nodes 202 It is grouped the grouping information for obtaining multiple back-end services node 202.It include at least one set of back-end services in the grouping information Node includes at least one back-end services node 202, the rule of classification of every group of back-end services node in every group of back-end services node Can be for the customized setting of system, such as the back-end services node of same alike result information can be will be provided with and be divided into one group, or will branch The back-end services node for holding the same QOS/COS grade of service is divided into one group etc..Optionally, may also include in the grouping information every The other information of each back-end services node in group back-end services node, such as back-end services node support the application clothes provided The information such as business, service processes.
Optionally, load balancing management node 206 can provide user's interactive interface to user.User passes through user interaction Interface can according to actual needs or personal preference carrys out the load balancing of configuration load equilibrium node, is convenient for load balancing node Load balancing is carried out to the back-end services node 202 in back-end services cluster according to the load balancing.Optionally, load is equal The grouping information of back-end services cluster can be sent to load balancing node by user's interactive interface by the management node 206 that weighs 204, it is negative to the back-end services node 202 in back-end services cluster according to the grouping information convenient for load balancing node 204 It carries balanced.
Load balancing management node 206 can be (specific according to the nodal information of back-end services node 202 in back-end services cluster May include policy information and grouping information etc.) generate load balancing node 204 configuration file.Optionally, load balancing management Node 206 can be reserved for the configuration file of the load balancing node 204.Include in the configuration file load balancing and after Hold the nodal information of each back-end services node in service cluster.Optionally, which may also include load balancing node The other configurations information such as 204 network connection, communication port, the application is without limitation.The network connection of the load balancing node, It can be such as the load balancing node be supported or does not support to be in communication with each other with back-end services cluster 104.
In practical applications, when load balancing node 204 is disposed using trunking mode, each load balancing node 204 There is corresponding configuration file, include the load balancing of the load balancing node 204 in the configuration file, this is negative Carry balance policy be used to indicate load balancing node 204 to the multiple back-end services nodes 202 for including in back-end services cluster into Row load balancing is specifically detailed below in the application.
In addition, the configuration file of load balancing node 204 supports dynamic to modify.Specifically, load balancing management node 206 Can the configuration file according to actual needs to load balancing node 204 be updated and replace.For example, load balancing management node It, can be according to change when 206 application services for detecting that any back-end services node support provides in back-end services cluster change The nodal information of the back-end services node after change is updated and replaces to the configuration file of load balancing node 204.Alternatively, Load balancing management node 206, which detects, increases or deletes one or more back-end services nodes newly in back-end services cluster, change sentence When talking about new online or offline one or more back-end services nodes in the back-end services cluster, load balancing management node 206 can be newly-increased according to this or the back-end services node after deleting nodal information to the configuration file of load balancing node 204 into Row updates and replacement, on how to realize the update and replacement of configuration file, is specifically detailed below in the application.
Load balancing node 204 is supported with multiple back-end services nodes 202 (after multiple in i.e. same back-end services cluster End service node 202) and load balancing management node 206 be in communication with each other.In actual moving process, the load balancing node 204 can obtain the configuration file of the load balancing node 204 from load balancing management node 206, according to the configuration file It realizes and load balancing is carried out to the multiple back-end services nodes 202 communicated with the load balancing node 204.Specifically, load is equal Weighing node 204 can be by the communication interface (such as user's interactive interface) that load balancing management node 206 provides to load balancing Management node 206 sends Asynchronous Request, to obtain the load balancing node 204 stored in load balancing management node 206 Configuration file.It optionally, can matching the load balancing node 204 after the configuration file of the acquisition of load balancing node 204 itself It sets file to store into spatial cache, the corresponding storage equipment of the spatial cache can be nonvolatile memory, such as the load The shared drive etc. of balanced node, and without limitation.Further, load balancing node 204 can be realized according to the configuration file The configuration and operation of node itself, such as according to the load balancing in configuration file to after multiple in back-end services cluster Service node 202 is held to carry out load balancing etc..
Based on the above embodiment, the stream that Fig. 3 is a kind of load balancing management method provided in an embodiment of the present invention is referred to Journey schematic diagram.This method is applied in communication system shown in fig. 1 or fig. 2 as above, and method as shown in Figure 3 may include following reality Apply step:
Step S302, back-end services node 202 sends the back-end services node 202 to load balancing management node 206 Nodal information.Correspondingly, load balancing management node 206 receives the nodal information of the back-end services node 202.
In the application, any back-end services node 202 in back-end services cluster can be somebody's turn to do to load balancing management node 206 Load balancing management node is registered or be saved in the nodal information of back-end services node by the nodal information of back-end services node In 206.The application carries out the detailed description of related content by taking a back-end services node 202 as an example here.Same back-end services cluster In back-end services node support provide same type application service.The quantity of the back-end services node and without limitation, It can be one or more.The application hereafter by taking multiple back-end services nodes as an example, carries out the elaboration of related content.It is taken about rear end For details, reference can be made to the correlations in previous embodiment to illustrate for the nodal information of business node 1, is not repeating here.
Step S304, load balancing management node 206 generates the first configuration file, includes load in first configuration file Multiple respective nodal informations of back-end services node in balance policy and back-end services cluster.
Load balancing management node 206 receives the respective nodal information of multiple back-end services nodes 202 (i.e. multiple node letters Breath) after, the first configuration file is produced, includes multiple nodal informations and load balancing in first configuration file.Into one First configuration file is sent to load balancing node 204 by step, load balancing management node 206, is convenient for load balancing node 206 carry out load balancing to multiple back-end services nodes according to the first configuration file.
Any node letter in the application, in multiple respective nodal informations of back-end services node (i.e. multiple nodal informations) It include the application that the network information of back-end services node and the back-end services node where any node information provide in breath The application service type of service, and application service type included by multiple nodal information is identical.In other words, after multiple Service node is held to provide the application service of same application service type.
Optionally, which can load balanced management node 206 and be obtained ahead of time, such as load balancing pipe Reason node 206 can provide user's interactive interface to user, and user is according to actual needs or personal preference can pass through user interaction Interface input load balance policy.The load balancing is used to control the flow forwarding of load balancing node 206, specific to control Load balancing of the load balancing node 206 processed to multiple back-end services nodes.About load balancing, for details, reference can be made to hereafter It is described in detail.
Step S306, the first configuration file is sent to load balancing node 204 by load balancing management node 206.Accordingly Ground, load balancing node 204 receive and record first configuration file.
Step S308, client 208 sends the first access request for being directed to application service to load balancing node 204.Phase Ying Di, load balancing node 204 receive the first access request that client 208 is sent.
In the application, when client 208 need to access for application service provided by back-end services cluster, client End 208 can send the first access request for being directed to application service to load balancing node 204, which is negative The node in balancing cluster is carried, such as first access request can be sent to load balancing according to rule is prestored by client 208 Some load balancing node processing in cluster, this prestores the regular concretely customized setting of system, for determining forwarding The load balancing node 204 of first access request, such as client 208 can be according to nearby principle (such as practical deployed position distances Client is nearest) it chooses with the load balancing node of client communication etc..
Optionally, which can carry the attribute information of client 208, which is for describing visitor The information of 208 attribute of family end may include but be not limited to client identification, client supports the type of access application service, visitor The QOS grade of service, the COS grade of service or the other information at family end etc..Unification specifically can be used in the attribute information of the client 208 Resource Locator (uniform resource locator, URL) mode is carried in the first access request, such as is carried on Url field or identification field of one access request etc., the application is without limitation.
In practical applications, client 208 can specifically pass through software program or hardware realization.When it is realized by software program When, client can specifically be deployed in the calculating equipment such as server, computer and run.When it is by hardware realization, client It specifically can refer to chip, smart phone (such as Android phone, IOS mobile phone), PC, tablet computer, palm electricity The equipment such as brain, mobile internet device (mobile internet devices, MID) or wearable intelligent equipment, the present invention are real Example is applied to be not construed as limiting.
Step S310, load balancing node 204 selects first from multiple back-end services nodes according to the first configuration file Target back-end services node 210.
Load balancing node 204 receive client 208 send the first access request after, can according to the first configuration file from The first object back-end services node 210 for handling first access request is chosen in multiple back-end services nodes.In turn, it bears First access request is sent to first object back-end services node 210 and handled by the balanced node 204 of load.
When the first access request carries the attribute information of client 208, load balancing node 204 can match according to first It sets in file from multiple back-end services nodes, chooses the back-end services node to match with the attribute information of the client 204, As the first object back-end services node 210 for handling first access request.It is exemplary below to illustrate several first mesh Mark the specific embodiment that back-end services node 210 is chosen.
The first embodiment, when the attribute information of client 208 is client identification, the first configuration file (tool Body can be the load balancing in the first configuration file) it include each back-end services node support in multiple back-end services nodes Source device end (alternatively referred to as source device) corresponding to application service is provided.Correspondingly, load balancing node 204 receives the After one access request, the source device end that can be supported according to back-end services node each in the first configuration file, from multiple rear ends Source device end is chosen in service node and is identified as back-end services node corresponding to client identification, using as first object Back-end services node 210, for handling first access request.
In practical applications, the quantity at the corresponding source device end for supporting communication of same back-end services node does not limit It is fixed, it can be one or more.In other words, same back-end services node can be supported to handle one or more source device ends each From access request.The quantity of first object back-end services node 210 and without limitation, the application is carried out for one here The elaboration of related content.
Second of embodiment, when the attribute information of client 208 is the COS grade of service, the first configuration file (tool Body can be the load balancing in file) include in multiple back-end services nodes the support of each back-end services node application is provided Service the met COS grade of service.Correspondingly, load balancing node 204 is according to each rear end in multiple back-end services nodes Service node provides the COS grade of service that is met of application service, from chosen in multiple back-end services nodes in attribute information The identical back-end services node of the COS grade of service, as first object back-end services node 210.
The third embodiment, when the attribute information of client 208 is the QOS grade of service, the first configuration file (tool Body can be the load balancing in file) include in multiple back-end services nodes the support of each back-end services node application is provided Service the met QOS grade of service.Correspondingly, load balancing node 204 is according to each rear end in multiple back-end services nodes Service node provides the QOS grade of service that is met of application service, from chosen in multiple back-end services nodes in attribute information The identical back-end services node of the QOS grade of service, as first object back-end services node 210.
In the application, about the QOS grade of service and the COS grade of service, for details, reference can be made to the correlations in previous embodiment to explain It states, which is not described herein again.For example, by taking the QOS grade of service is network delay grade as an example, after multiple in back-end services cluster End service node, which provides the network delay grade that application service is met, following three grades: grade 1 (0-50s), grade 2 (50-100s) and grade 3 (100-150s).Assuming that carrying network delay 80s in the first access request of client, that is, require the The network delay of one access request processing is no more than 80s, in grade 2 (50-100s).Correspondingly, load balancing node 204 connects After receiving first access request, can from multiple back-end services nodes network delay grade be grade 2 one or more rear ends In service node, first object back-end services node 210 is chosen.On how to be selected from the one or more back-end services node The mode of first object back-end services node 210 is taken, and without limitation.For example, the first object back-end services node 210 can be Any one or load capacity in the one or more back-end services node it is the smallest one or with load balancing node Communication path shortest one etc..
4th kind of embodiment, when the attribute information of client 208 is service quality QOS index, the first configuration text Part (the concretely load balancing in file) include in multiple back-end services nodes the offer of each back-end services node answer With the met QOS index of service.The QOS index include but is not limited to network delay, handling capacity, Loss Rate, priority or its He is used to influence the index etc. of application service quality.Correspondingly, load balancing node 204 is according to every in multiple back-end services nodes A back-end services node provides the QOS index that application service is met, selection and attribute information from multiple back-end services nodes The back-end services node that middle QOS index matches, as first object back-end services node 210.
For example, above-mentioned network delay grade example is quoted, by taking QOS index is network delay as an example.Wherein, rear end takes The quantity for the back-end services node that multiple back-end services nodes meet network delay grade 1 in business cluster has 5, when meeting network The quantity for prolonging the back-end services node of grade 2 has 3, and the quantity for meeting the back-end services node of network delay grade 3 has 2. Network delay is carried in first access request of client to require to be less than 100s.Correspondingly, load balancing node 204 receives first After access request, it can support to provide 8 back-end services nodes for being no more than 100s network delay from multiple back-end services nodes Middle selection first object back-end services node 210.About the selection mode and quantity of the first object back-end services node, no It limits.
It should be noted that the above several embodiments can individually be implemented, implementation can also be cooperated.For example, working as client When 208 attribute information includes client identification and the QOS grade of service, load balancing node 204 should consider to support processing should The back-end services node of client identification considers the back-end services node for meeting QOS service class requirements as the first mesh again Mark back-end services node 210.In other words, the first object back-end services node 210 that load balancing node finally determines need to be It supports to handle the client identification in multiple back-end services nodes, and meets the back-end services node of the QOS grade of service, here not It repeats.
Step S312, the first access request is sent to first object back-end services node 210 by load balancing node 204. Correspondingly, first object back-end services node 210 receives first access request.
Step S314, first object back-end services node 210 responds first access request, returns to the to client 208 One access response carries the access result of first access request in first access response.
After first object back-end services node 210 receives the first access request, the first access request can be handled, with Obtain the access result of the first access request for the application service.Further, first object back-end services node 210 can incite somebody to action The access result, which is carried in the first access response, returns to client, and specific first object back-end services node 210 can lead to First access response is sent to client 208 by overload equilibrium node 204.Wherein, for different access requests, Accessing result can not also be identical.For example, when the first access request for the information in request application service, (such as answer by mail With certain envelope mail in service), then the access result of first access request can be the information in application service.When the first access Request opens application service for requesting, then the access result of first access request can be whether to open the application service etc..
It for example, can be clear for website for the first access request of the application service using application service as website service Look at request.First object back-end services node receive the website browsing request after, can obtain the website browsing request it is clear The information such as all webpage informations, such as text, image, voice of the website look at.Correspondingly, first object back-end services node can The webpage information is carried in the first access response and is back to client, so that client is checked and is shown.
For a better understanding of the invention, it is described in detail below with an example.Assuming that client wants application access application clothes Be engaged in A, and client can send the first access request for being directed to application service A to load balancing node, which uses In requesting access to application service A.Load balancing node can obtain the first configuration file from load balancing management node in advance, should It include the nodal information of load balancing and multiple back-end services nodes, multiple back-end services in first configuration file Application service A is all disposed or be provided with to node.The load balancing is used to indicate the scheduling of the first access request, realizes multiple The equally loaded of back-end services node.For example, the multiple back-end services nodes for providing application service A share 8, wherein after 4 Holding service node to provide the version of application service A is V1.0, and the version that another 4 back-end services nodes provide application service A is V2.0.Correspondingly, after load balancing node receives the first access request, if the first access request or the first configuration file do not have Other particular/special requirements, then load balancing node can arbitrarily choose a first object back-end services from 8 back-end services nodes First access request is forwarded to the first object back-end services node processing by node.If first access request is taken With V2.0 version, that is, the back-end services node for providing the application service of V2.0 version is required to handle, then load balancing node can It is provided from 4 and chooses a first object back-end services node in the back-end services node of V2.0 version application service to handle.
It, being capable of matching by load balancing management node dynamic configuration load balancing node by implementing the embodiment of the present invention File is set, no longer needs to avoid cumbersome, easy existing for traditional technology miss by user's manual configuration using traditional technology The problems such as service quality and service performance of configuration operation and influence application service.
Be described below this application involves some alternative embodiments.Fig. 4 is referred to, is provided in an embodiment of the present invention another The flow diagram of kind load balancing management method.Method as shown in Figure 4 may include that step is implemented as follows:
Step S402, the first back-end services section in detecting multiple back-end services nodes of load balancing management node 206 When point 212 is offline, the first back-end services node 212 is recorded in the first configuration file and is in down status, matched with generating second Set file.
It, can the direct relation back-end services section when any back-end services node in multiple back-end services nodes needs offline Point or the operation process (such as agent process) for stopping the back-end services node.The application is here with the first back-end services node For 212, after the first back-end services node 212 is offline, the first back-end services node 212 is without normal direction load balancing management section Point 206 sends the nodal information of the first back-end services node 212.Correspondingly, load balancing management node 206 is detecting After one back-end services node 212 is offline, the first back-end services node 212 can be recorded in the first configuration file and is in lower threadiness State, to generate the second configuration file.Second configuration file includes at least load balancing and multiple back-end services nodes In back-end services node in addition to the first back-end services node nodal information.
Wherein, load balancing management node 206 records the specific implementation that the first back-end services node 212 is in down status Mode, and without limitation.For example, load balancing management node 206 can directly delete the first rear end clothes in the first configuration file The relevant information of business node 212, such as delete the nodal information etc. of the first back-end services node 212;Alternatively, load balancing management The operating status of first back-end services node 212 can be recorded as offline/off-line state in the first configuration file by node 206, Or the first back-end services node 212 is labeled as deletion of node, convenient for subsequent load balancing node 206 can not with this after first It holds service node 212 to communicate, realizes that node is offline.
Load balancing management node 206 detects the offline specific embodiment of the first back-end services node 212, does not also limit It is fixed.For example, heartbeat machine contracting system can be used between load balancing management node 206 and the first back-end services node 212, specific One back-end services node 212 periodically can send heartbeat packet, load balancing management node to load balancing management node 206 After 206 receive the heartbeat packet, 212 normal operation of the first back-end services node is indicated;When load balancing management node 206 is at some In cycle duration, the heartbeat packet of the first back-end services node 212 is not received, it is believed that the first back-end services node 212 goes out Existing failure, node are offline.
Step S404, the second configuration file is sent to load balancing node 204 by load balancing management node 206.This Two configuration files take multiple rear ends according to the load balancing in the second configuration file for controlling load balancing node 204 The back-end services node being engaged in node in addition to the first back-end services node carries out load balancing.Correspondingly, load balancing node 204 Receive second configuration file.
Step S406, load balancing node 204 replaces the first configuration file with the second configuration file.
Step S408, client 208 sends the second access request for being directed to the application service to load balancing node 204, Second access request accesses to the application service for requesting.Correspondingly, load balancing node 204 receives second access Request.
Step S410, load balancing node 204 is according to the second configuration file, after removing first in multiple back-end services nodes The second target back-end services node 214 is chosen in back-end services node outside the service node of end.
Step S412, the second access request is sent to the second target back-end services node 214 by load balancing node 204. Correspondingly, the second target back-end services node 214 receives second access request.
Step S414, the second target back-end services node 214 responds second access request, returns to the to client 208 Two access responses carry the access result of the second access request in second access response.
In the application, after load balancing management node 206 obtains the second configuration file, which can be sent To load balancing node 204.To take multiple rear ends according to the second configuration file regenerated convenient for load balancing node 204 The back-end services node being engaged in node in addition to the first back-end services node realizes load balancing.
Specifically, after load balancing node 204 receives client for the second access request of application service, it can be according to the Two configuration files (the concretely load balancing in the second configuration file), after removing first in multiple back-end services nodes The second target back-end services node is chosen in other back-end services nodes except the service node of end.Further, load balancing section Second access request can be sent to the second target back-end services node processing 214 by point 204.About above-mentioned steps S404- S414 can specifically be corresponded to reference to the related elaboration in earlier figures 3 in step S306-S314, and which is not described herein again.
By implementing the embodiment of the present invention, load balancing management node supports dynamic to delete rear end in back-end services cluster and take The quantity of business node, and synchronized update configuration file, are not necessarily to manual intervention, save configuration flow and setup time.
Fig. 5 is referred to, is the flow diagram of another load balancing management method provided in an embodiment of the present invention.Such as figure Method shown in 5 includes that step is implemented as follows:
Step S502, the second back-end services node 216 sends the second back-end services node to load balancing management node 206 216 nodal information, the nodal information of the second back-end services node 216 be used to indicate the second back-end services node provide and it is more The application service of a back-end services node same application service type.Correspondingly, after load balancing management node 206 receives second Hold the nodal information of service node 216.
In the application, when there is new back-end services node entrance/online in back-end services cluster, the new back-end services Node is supported to provide application service identical with back-end services cluster.The application is the second rear end clothes with new back-end services node It is engaged in for node 216, carries out related content elaboration.In the second back-end services node 216 it is mountable and be configured with agent entity Agent, such as the load for configuring the nodal information of the second back-end services node 216, managing the second back-end services node 216 Network information (such as IP address and port) of balanced management node etc..Further, which enters It, can be by the agent of own node to load balancing management node after multiple back-end services node (i.e. back-end services cluster) The nodal information of the second back-end services node 216 is registered and is protected by the nodal information for sending the second back-end services node 216 It is stored in load balancing management node.
Step S504, load balancing management node 206 is recorded in the first configuration file at the second back-end services node 216 In online state, to generate third configuration file.
Load balancing management node 206 records the specific embodiment that the second back-end services node 216 is in online state, And without limitation.For example, load balancing management node 206 can increase the second back-end services node 216 newly in the first configuration file Nodal information, to obtain third configuration file;Alternatively, load balancing management node 206 increases the newly in the first configuration file The operating status of two back-end services nodes 216 is online or presence, or by the second back-end services node 206 labeled as newly-increased Node carries out load balancing to multiple back-end services nodes and the second back-end services node convenient for load balancing node 204, realizes Node is online.
Optionally, third configuration file may also include second other than it may include the content information in the first configuration file Relevant information of service node, such as the nodal information of second service node etc..
Step S506, third configuration file is sent to load balancing node 204 by load balancing management node 206.This Three configuration files are for controlling load balancing node 204 according to load balancing to multiple back-end services nodes and the second rear end Service node carries out load balancing.Correspondingly, load balancing node 204 receives third configuration file.
Step S508, load balancing node 204 replaces the first configuration file with third configuration file.
Step S510, client 208 sends the third access request for being directed to application service to load balancing node 204.Phase Ying Di, load balancing node 204 receive the third access request.
Step S512, load balancing node 204 is according to third configuration file, from multiple back-end services nodes and the second rear end Third target back-end services node 218 is selected in service node.
Step S514, third access request is sent to third target back-end services node 218 by load balancing node 204. Correspondingly, third target back-end services node 218 receives the third access request.
Step S516, third target back-end services node 218 responds the third access request, returns to the to client 208 Three access responses, the third access response carry the access result of third access request.
In the application, after load balancing management node 206 obtains third configuration file, which can be sent To load balancing node 204.Convenient for load balancing node 204 using newest third configuration file to multiple back-end services nodes Load balancing is carried out with the second back-end services node.
Specifically, after load balancing node 204 receives client 208 for the third access request of application service, it can root According to third configuration file (the concretely load balancing in file) from multiple back-end services nodes and the second back-end services Third target back-end services node 218 is chosen in node.Further, load balancing node 204 can send out the third access request Give the processing of third target back-end services node 218.It illustrates about the correlation in above-mentioned steps S506-S516, can specifically correspond to Illustrate which is not described herein again with reference to the correlation in step S306-S314 in earlier figures 3.
By implementing the embodiment of the present invention, load balancing management node supports dynamic to increase rear end clothes in back-end services cluster newly The quantity of business node, and synchronized update configuration file, are not necessarily to manual intervention, save configuration flow and setup time.
Related in the embodiment in conjunction with described in earlier figures 1- Fig. 5 illustrate, be described below relevant apparatus of the present invention with And system.Refer to the structural schematic diagram that Fig. 6 is a kind of communication system provided in an embodiment of the present invention.Communication as shown in FIG. 6 System 60 includes load balancing node 204 and load balancing management node 206.Wherein, load balancing node 204 includes receiving mould Block 2042, processing module 2044 and sending module 2046, load balancing management node 206 include receiving module 2062, processing mould Block 2064 and sending module 2066.Specifically,
Receiving module 2062 is used to receive multiple nodal informations that multiple back-end services nodes are sent, wherein the multiple section Point information is used to indicate the multiple back-end services node and provides identical application service;
Processing module 2064 is for generating the first configuration file, wherein first configuration file includes load balancing And the multiple nodal information;
Sending module 2066 is for sending first configuration file to load balancing node 204, wherein described first matches Set file for control the load balancing node 204 according to the load balancing to the multiple back-end services node into Row load balancing.
Correspondingly 204 side of load balancing node, receiving module 2042 sent for balancing received load management node the One configuration file, wherein first configuration file includes load balancing and multiple nodal informations, the multiple node Information is sent to the load balancing management node by multiple back-end services nodes, and the multiple nodal information is used to indicate described Multiple back-end services nodes provide identical application service;The receiving module 2042 be also used to receive client transmission for institute State the first access request of application service;Processing module 2044 is matched for recording first configuration file according to described first It sets file and selects first object back-end services node from the multiple back-end services node;The sending module 2046 is used for institute It states the first access request and is sent to the first object back-end services node.
In some possible embodiments, processing module 2064 is also used in detecting the multiple back-end services node The first back-end services node it is offline when, recorded in first configuration file the first back-end services node be in it is offline State, to generate the second configuration file;The sending module 2066 is also used to send second configuration file to the load Balanced node, wherein second configuration file is for controlling the load balancing node according to the load balancing to institute It states the back-end services node in multiple back-end services nodes in addition to the first back-end services node and carries out load balancing.
Correspondingly 204 side of load balancing node, the receiving module 2042 are also used to balancing received load management node hair The second configuration file sent, wherein the second configuration file is that load balancing management node records in first configuration file The first back-end services node in the multiple back-end services node is in down status and generates;The processing module 2044 It is also used to replace first configuration file with second configuration file;The receiving module 2042 is also used to receive client The second access request for the application service sent;The processing module 2044 is also used to according to the second configuration text Part selects the second mesh from the back-end services node in the multiple back-end services node in addition to the first back-end services node Mark back-end services node;The sending module 2046 is also used to second access request being sent to second target rear end Service node.
In some possible embodiments, 206 side of load balancing management node, the receiving module 2062 is also used to receive The second node information that second back-end services node is sent, the second node information are used to indicate the second back-end services section Point provides the application service;The processing module 2064 is also used to record second rear end in first configuration file Service node is in online state, to generate third configuration file;The sending module 2066 is also used to send the third and matches File is set to the load balancing node, wherein the third configuration file is for controlling the load balancing node according to Load balancing carries out load balancing to the multiple back-end services node and the second back-end services node.
Correspondingly 204 side of load balancing node, the receiving module 2042 are also used to balancing received load management node hair The third configuration file sent, wherein third configuration file is that load balancing management node records in first configuration file Second back-end services node is in online state and generates, wherein the second back-end services node provides the application clothes Business;The processing module 2044 is also used to replace first configuration file with the third configuration file;The receiving module 2042 are also used to receive the third access request for the application service of client transmission;The processing module 2044 is also used In is selected from the multiple back-end services node and the second back-end services node according to the third configuration file Three target back-end services nodes;The sending module 2046 is also used to the third access request being sent to the third target Back-end services node.
In some possible embodiments, including the application of the back-end services node in the nodal information of back-end services node Service type information and the network information.
In some possible embodiments, load balancing management node 206 provides user's interactive interface also to hand over from user The load balancing of mutual interface captures user input.
In practical applications, each module or unit that each node is related in the embodiment of the present invention can specifically pass through software program Or hardware realization.When being realized by software program, each module or unit involved in node are software module or software unit, When by hardware realization, each module or unit that node is related to can be by specific integrated circuit (application- Specific integrated circuit, ASIC) realize or programmable logic device (programmable logic Device, PLD) it realizes, above-mentioned PLD can be complicated process logical device (complex programmable logical Device, CPLD), field programmable gate array (field-programmable gate array, FPGA), general array is patrolled (generic array logic, GAL) or any combination thereof is collected, the present invention is without limitation.
It should be noted that Fig. 6 is only a kind of possible implementation of the embodiment of the present application, and in practical application, load Balanced management node or load balancing node can also include more or fewer components, here with no restriction.About the present invention The content for being not shown in embodiment or not describing, reference can be made to the related elaboration in preceding method embodiment, which is not described herein again.
By implementing the embodiment of the present invention, it is capable of the additions and deletions of dynamic implement back-end services node, dynamic updates load balancing The configuration file of node is not necessarily to manual intervention, saves configuration flow and setup time.It no longer needs to pass through user using traditional technology Manual configuration avoids Service Quality that is cumbersome, that misconfiguration operation and influence application service easily occur existing for traditional technology The problems such as amount and service performance.
Fig. 7 is referred to, is the structural schematic diagram of another communication system provided in an embodiment of the present invention.As shown in Figure 7 It include load balancing management node 206 and load balancing node 204 in communication system 70.Wherein, load balancing management node 206 In include at least one network equipment (alternatively referred to as calculating equipment), each network equipment includes one or more processors 2061, communication interface 2062 and memory 2063, processor 2061, communication interface 2062 and memory 2063 can be by bus sides Formula connection can also realize communication by other means such as wireless transmissions.The embodiment of the present invention by bus 2064 for being connected Wherein, for storing instruction, which is used to execute the instruction of the memory 2063 storage to the memory 2063.This is deposited Reservoir 2063 stores program code, and processor 2061 can call the program code stored in memory 2063 to realize Fig. 1- Described in all or part of implementation steps and/or text in Fig. 4 with load balancing management node 206 for executing subject its His content, the present invention repeat here.
Optionally, processor 2061 can be made of one or more general processors, such as central processing unit (central processing unit, CPU).Processor 2061 can be used for running following functions mould in relevant program code The program of block, the functional module specifically may include but be not limited to the receiving module of load balancing management node above side, processing mould Any one of block and sending module or multinomial combination.About each functional module described herein, for details, reference can be made to aforementioned Related elaboration in embodiment, which is not described herein again.
Load balancing node 204 includes one or more processors 2041, communication interface 2042 and memory 2043, processing Device 2041, communication interface 2042 and memory 2043 can be connected by bus mode, can also pass through other means such as wireless transmission Realize communication.The embodiment of the present invention for being connected by bus 2044 wherein, the memory 2043 for storing instruction, at this Reason device 2041 is used to execute the instruction of the memory 2043 storage.The memory 2043 stores program code, and processor 2041 The program code stored in memory 2043 can be called to realize in Fig. 1-Fig. 4 with load balancing node 204 as executing subject All or part of implementation steps and/or text described in other content, the present invention repeats here.
Optionally, processor 2041 can be made of one or more general processors, such as central processing unit (central processing unit, CPU).Processor 2041 can be used for running following functions mould in relevant program code The program of block, the functional module specifically may include but be not limited to the receiving module of load balancing node above side, processing module with And any one of sending module or multinomial combination.About each functional module described herein, for details, reference can be made to aforementioned implementations Related elaboration in example, which is not described herein again.
It is to be understood that communication interface (concretely communication interface 2062 or 2042) can be wireline interface (such as ether Network interface) or wireless interface (such as cellular network interface or use wireless lan interfaces), it is used for and other modules or device Equipment is communicated.For example, communication interface 2062 is particularly used in the node for receiving back-end services node in the embodiment of the present application Information, or configuration file etc. is sent to load balancing node.
Memory (concretely memory 2063 or 2043) may include volatile memory (Volatile ), such as random access memory (Random Access Memory, RAM) Memory;Memory also may include non-volatile Memory (Non-Volatile Memory), such as read-only memory (Read-Only Memory, ROM), flash memory (Flash Memory), hard disk (Hard Disk Drive, HDD) or solid state hard disk (Solid-State Drive, SSD);It deposits Reservoir can also include the combination of the memory of mentioned kind.Memory can be used for storing batch processing code, in order to handle Device calls the program code stored in memory to realize the function of above-mentioned each functional module involved in the embodiment of the present invention.
It should be noted that Fig. 7 is only a kind of possible implementation of the embodiment of the present application, and in practical application, communication Each node in system can also include more or fewer components, here with no restriction.Do not show about in the embodiment of the present invention The content not described out or, reference can be made to the related elaboration in preceding method embodiment, which is not described herein again.
The embodiment of the present invention also provides a kind of computer non-transitory storage media, in the computer non-transitory storage media It is stored with instruction, when it runs on a processor, Fig. 1 method flow shown in any embodiment into Fig. 5 is achieved.
The embodiment of the present invention also provides a kind of computer program product, when the computer program product is transported on a processor When row, Fig. 1 method flow shown in any embodiment into Fig. 5 is achieved.
The step of method in conjunction with described in disclosure of the embodiment of the present invention or algorithm, can be come real in a manner of hardware It is existing, it is also possible to execute the mode of software instruction by processor to realize.Software instruction can be made of corresponding software module, Software module can be stored on random access memory (Random Access Memory, RAM), flash memory, read-only memory (Read Only Memory, ROM), Erasable Programmable Read Only Memory EPROM (Erasable Programmable ROM, EPROM), Electrically Erasable Programmable Read-Only Memory (Electrically EPROM, EEPROM), register, hard disk, movement are hard In the storage medium of disk, CD-ROM (CD-ROM) or any other form well known in the art.A kind of illustrative storage Medium couples to enable a processor to from the read information, and can be written to the storage medium and believe to processor Breath.Certainly, storage medium is also possible to the component part of processor.Pocessor and storage media can be located in ASIC.In addition, The ASIC, which can be located at, to be calculated in equipment.Certainly, pocessor and storage media, which can also be used as discrete assembly and be present in calculating, sets In standby.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in computer-readable storage medium In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.And storage medium above-mentioned include: ROM, The various media that can store program code such as RAM, magnetic or disk.

Claims (22)

1. a kind of load balancing management method characterized by comprising
Load balancing management node receives multiple nodal informations that multiple back-end services nodes are sent, wherein the multiple node is believed The each of breath includes the network information of the back-end services node at place and the application that the back-end services node at place provides The application service type of service, the application service type that the multiple nodal information includes are identical;
The load balancing management node generates the first configuration file, wherein first configuration file includes load balancing And the multiple nodal information;
The load balancing management node sends first configuration file to load balancing node, wherein the first configuration text Part loads the multiple back-end services node according to the load balancing for controlling the load balancing node It is balanced.
2. the method according to claim 1, wherein the method also includes:
The load balancing management node is detecting that the first back-end services node in the multiple back-end services node is offline When, the first back-end services node is recorded in first configuration file and is in down status, to generate the second configuration text Part;
The load balancing management node sends second configuration file to the load balancing node, wherein described second matches File is set for controlling the load balancing node according to the load balancing to removing in the multiple back-end services node Back-end services node outside the first back-end services node carries out load balancing.
3. the method according to claim 1, wherein the method also includes:
The load balancing management node receives the node for the second back-end services node that the second back-end services node is sent Information, the nodal information of the second back-end services node are used to indicate the second back-end services node and provide the application clothes Business;
The load balancing management node records the second back-end services node in first configuration file and is in online State, to generate third configuration file;
The load balancing management node sends the third configuration file to the load balancing node, wherein the third is matched Set file for control the load balancing node according to the load balancing to the multiple back-end services node and The second back-end services node carries out load balancing.
4. method according to any one of claims 1 to 3, which is characterized in that the network information includes IP address and end Mouthful.
5. method according to any one of claims 1 to 4, which is characterized in that the load balancing management node provides use Family interactive interface is to obtain the load balancing that user inputs from user's interactive interface.
6. a kind of load-balancing method characterized by comprising
Load balancing node receives and records the first configuration file of load balancing management node transmission, wherein first configuration File includes load balancing and multiple nodal informations, and the multiple nodal information is sent to by multiple back-end services nodes The load balancing management node, each of the multiple nodal information include the network letter of the back-end services node at place The application service type for the application service that breath and the back-end services node at place provide, what the multiple nodal information included answers It is identical with service type;
The load balancing node receives the first access request for the application service that client is sent;
The load balancing node is according to the load balancing of first configuration file from the multiple back-end services Node selects first object back-end services node, and first access request is sent to the first object back-end services section Point.
7. according to the method described in claim 6, it is characterized in that, the method also includes:
The second configuration file that the load balancing node balancing received load management node is sent, wherein the second configuration file It is that the first rear end that load balancing management node is recorded in first configuration file in the multiple back-end services node takes Business node is in down status and generates;
The load balancing node replaces first configuration file with second configuration file;
The load balancing node receives the second access request for the application service that client is sent;
The load balancing node is according to second configuration file after removing described first in the multiple back-end services node The second target back-end services node is selected in back-end services node outside the service node of end, and second access request is sent To the second target back-end services node.
8. according to the method described in claim 6, it is characterized in that, the method also includes:
The third configuration file that the load balancing node balancing received load management node is sent, wherein third configuration file It is that load balancing management node records the second back-end services node in first configuration file and is in online state and generates , wherein the second back-end services node provides the application service;
The load balancing node replaces first configuration file with the third configuration file;
The load balancing node receives the third access request for the application service that client is sent;
The load balancing node is according to the third configuration file after the multiple back-end services node and described second It holds and selects third target back-end services node in service node, and after the third access request is sent to the third target Hold service node.
9. according to the described in any item methods of claim 6 to 8, which is characterized in that the network information includes IP address and end Mouthful.
10. a kind of load balancing management node, which is characterized in that including receiving module, processing module and sending module, wherein
The receiving module, the multiple nodal informations sent for receiving multiple back-end services nodes, wherein the multiple node The each of information include where back-end services node the network information and place back-end services node provide answer With the application service type of service, the application service type that the multiple nodal information includes is identical;
The processing module, for generating the first configuration file, wherein first configuration file include load balancing with And the multiple nodal information;
The sending module, for sending first configuration file to load balancing node, wherein first configuration file The multiple back-end services node load according to the load balancing for controlling the load balancing node Weighing apparatus.
11. node according to claim 10, which is characterized in that
The processing module is also used to detecting that the first back-end services node in the multiple back-end services node is offline When, the first back-end services node is recorded in first configuration file and is in down status, to generate the second configuration text Part;
The sending module is also used to send second configuration file to the load balancing node, wherein described second matches File is set for controlling the load balancing node according to the load balancing to removing in the multiple back-end services node Back-end services node outside the first back-end services node carries out load balancing.
12. node according to claim 10, which is characterized in that
The receiving module is also used to receive the second node information of the second back-end services node transmission, the second node letter Breath is used to indicate the second back-end services node and provides the application service;
The processing module is also used to record the second back-end services node in first configuration file and is in upper threadiness State, to generate third configuration file;
The sending module is also used to send the third configuration file to the load balancing node, wherein the third is matched Set file for control the load balancing node according to the load balancing to the multiple back-end services node and The second back-end services node carries out load balancing.
13. node described in any one of 0-12 according to claim 1, which is characterized in that the network information includes IP address The port and.
14. node described in any one of 0-13 according to claim 1, which is characterized in that the load balancing management node mentions For user's interactive interface to obtain the load balancing that user inputs from user's interactive interface.
15. a kind of load balancing node, which is characterized in that including receiving module, processing module and sending module, wherein
The receiving module, for the first configuration file that balancing received load management node is sent, wherein first configuration File includes load balancing and multiple nodal informations, and the multiple nodal information is sent to by multiple back-end services nodes The load balancing management node, each of the multiple nodal information include the network letter of the back-end services node at place The application service type for the application service that breath and the back-end services node at place provide, what the multiple nodal information included answers It is identical with service type;
The receiving module is also used to receive the first access request for the application service of client transmission;
The processing module, for recording first configuration file, according to the load balancing of first configuration file Strategy selects first object back-end services node from the multiple back-end services node;
The sending module, for first access request to be sent to the first object back-end services node.
16. node according to claim 15, which is characterized in that
The receiving module is also used to the second configuration file of balancing received load management node transmission, wherein the second configuration text Part is that load balancing management node records the first rear end in the multiple back-end services node in first configuration file Service node is in down status and generates;
The processing module is also used to replace first configuration file with second configuration file;
The receiving module is also used to receive the second access request for the application service of client transmission;
The processing module is also used to remove described first from the multiple back-end services node according to second configuration file The second target back-end services node is selected in back-end services node outside back-end services node;
The sending module is also used to for second access request to be sent to the second target back-end services node.
17. node according to claim 15, which is characterized in that
The receiving module is also used to the third configuration file of balancing received load management node transmission, wherein third configuration text Part is that load balancing management node records the second back-end services node in first configuration file and is in online state and produces Raw, wherein the second back-end services node provides the application service;
The processing module is also used to replace first configuration file with the third configuration file;
The receiving module is also used to receive the third access request for the application service of client transmission;
The processing module is also used to according to the third configuration file from the multiple back-end services node and described second Third target back-end services node is selected in back-end services node;
The sending module is also used to for the third access request to be sent to the third target back-end services node.
18. node described in any one of 5-17 according to claim 1, which is characterized in that the network information includes IP address The port and.
19. a kind of load balancing management node, which is characterized in that including at least one network equipment, each network equipment includes Processor, memory and bus, the processor and the memory are connected by the bus, and the memory is for depositing Storage instruction, the processor are any in claim 1-5 as above for executing for calling the instruction stored in the memory Method described in.
20. a kind of load balancing node, which is characterized in that including processor, memory and bus, the processor and described Memory is connected by the bus, and for storing instruction, the processor is for calling in the memory for the memory The instruction of storage, for executing method described in any one of claim 6-9 as above.
21. a kind of computer non-transitory storage media, the computer non-transitory storage media is stored with computer program, special Sign is that the computer program, which is supported, realizes the side as described in any one of claim 1 to 5 when balanced management node executes Method.
22. a kind of computer non-transitory storage media, the computer non-transitory storage media is stored with computer program, special Sign is that the computer program is supported when balanced node executes and realizes such as any one of claim 6 to 9 the method.
CN201910336511.3A 2019-04-24 2019-04-24 Load balancing management method and relevant apparatus Pending CN110113399A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910336511.3A CN110113399A (en) 2019-04-24 2019-04-24 Load balancing management method and relevant apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910336511.3A CN110113399A (en) 2019-04-24 2019-04-24 Load balancing management method and relevant apparatus

Publications (1)

Publication Number Publication Date
CN110113399A true CN110113399A (en) 2019-08-09

Family

ID=67486667

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910336511.3A Pending CN110113399A (en) 2019-04-24 2019-04-24 Load balancing management method and relevant apparatus

Country Status (1)

Country Link
CN (1) CN110113399A (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110417921A (en) * 2019-09-06 2019-11-05 广州华多网络科技有限公司 A kind of method and load balancing service device of load balancing
CN111221651A (en) * 2020-01-02 2020-06-02 广州虎牙科技有限公司 Load balancing configuration method and device, server and readable storage medium
CN111277631A (en) * 2020-01-13 2020-06-12 广州虎牙科技有限公司 Load balancing configuration method, device, system, equipment and storage medium
CN111367662A (en) * 2020-02-26 2020-07-03 普信恒业科技发展(北京)有限公司 Load balancing method, device and system
CN111597058A (en) * 2020-04-17 2020-08-28 微梦创科网络科技(中国)有限公司 Data stream processing method and system
CN112788076A (en) * 2019-11-07 2021-05-11 北京京东尚科信息技术有限公司 Method and device for deploying multi-service load
CN113259428A (en) * 2021-05-11 2021-08-13 鸬鹚科技(深圳)有限公司 Data access request processing method and device, computer equipment and medium
CN113285972A (en) * 2021-03-03 2021-08-20 六所智达(北京)科技有限公司 Encryption and decryption equipment, system and method based on embedded cluster architecture
CN114817339A (en) * 2022-06-30 2022-07-29 广东盈峰科技有限公司 Water quality monitoring method and system for multiple water areas, storage medium and electronic equipment
CN115134227A (en) * 2022-06-17 2022-09-30 京东科技信息技术有限公司 Method and apparatus for maintaining server
WO2023155550A1 (en) * 2022-02-18 2023-08-24 中兴通讯股份有限公司 Message sending methods, message sending apparatus and storage medium
CN117014375A (en) * 2023-10-07 2023-11-07 联通在线信息科技有限公司 CDN device self-adaptive flow control and quick online and offline method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104168332A (en) * 2014-09-01 2014-11-26 广东电网公司信息中心 Load balance and node state monitoring method in high performance computing
US20180183866A1 (en) * 2016-12-22 2018-06-28 Nicira, Inc. Performing context-rich attribute-based load balancing on a host
CN109218355A (en) * 2017-06-30 2019-01-15 华为技术有限公司 Load equalizing engine, client, distributed computing system and load-balancing method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104168332A (en) * 2014-09-01 2014-11-26 广东电网公司信息中心 Load balance and node state monitoring method in high performance computing
US20180183866A1 (en) * 2016-12-22 2018-06-28 Nicira, Inc. Performing context-rich attribute-based load balancing on a host
CN109218355A (en) * 2017-06-30 2019-01-15 华为技术有限公司 Load equalizing engine, client, distributed computing system and load-balancing method

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110417921B (en) * 2019-09-06 2020-11-06 广州华多网络科技有限公司 Load balancing method and load balancing service device
CN110417921A (en) * 2019-09-06 2019-11-05 广州华多网络科技有限公司 A kind of method and load balancing service device of load balancing
CN112788076A (en) * 2019-11-07 2021-05-11 北京京东尚科信息技术有限公司 Method and device for deploying multi-service load
CN111221651A (en) * 2020-01-02 2020-06-02 广州虎牙科技有限公司 Load balancing configuration method and device, server and readable storage medium
CN111277631A (en) * 2020-01-13 2020-06-12 广州虎牙科技有限公司 Load balancing configuration method, device, system, equipment and storage medium
CN111367662A (en) * 2020-02-26 2020-07-03 普信恒业科技发展(北京)有限公司 Load balancing method, device and system
CN111597058A (en) * 2020-04-17 2020-08-28 微梦创科网络科技(中国)有限公司 Data stream processing method and system
CN111597058B (en) * 2020-04-17 2023-10-17 微梦创科网络科技(中国)有限公司 Data stream processing method and system
CN113285972A (en) * 2021-03-03 2021-08-20 六所智达(北京)科技有限公司 Encryption and decryption equipment, system and method based on embedded cluster architecture
CN113259428A (en) * 2021-05-11 2021-08-13 鸬鹚科技(深圳)有限公司 Data access request processing method and device, computer equipment and medium
WO2023155550A1 (en) * 2022-02-18 2023-08-24 中兴通讯股份有限公司 Message sending methods, message sending apparatus and storage medium
CN115134227A (en) * 2022-06-17 2022-09-30 京东科技信息技术有限公司 Method and apparatus for maintaining server
CN114817339A (en) * 2022-06-30 2022-07-29 广东盈峰科技有限公司 Water quality monitoring method and system for multiple water areas, storage medium and electronic equipment
CN117014375A (en) * 2023-10-07 2023-11-07 联通在线信息科技有限公司 CDN device self-adaptive flow control and quick online and offline method and device
CN117014375B (en) * 2023-10-07 2024-02-09 联通在线信息科技有限公司 CDN device self-adaptive flow control and quick online and offline method and device

Similar Documents

Publication Publication Date Title
CN110113399A (en) Load balancing management method and relevant apparatus
US10545914B2 (en) Distributed object storage
US9489443B1 (en) Scheduling of splits and moves of database partitions
JP6563936B2 (en) Method, system, and computer-readable medium for cloud-based virtual orchestrator
CN112640371B (en) Method and system for performing data operations on a distributed storage environment
EP3353952B1 (en) Managing groups of servers
CN106161610A (en) A kind of method and system of distributed storage
CN106209402B (en) A kind of telescopic method and equipment of virtual network function
Liu et al. An economical and SLO-guaranteed cloud storage service across multiple cloud service providers
US10346367B1 (en) Load shedding techniques for distributed services with persistent client connections to ensure quality of service
US11645582B2 (en) Parameter sharing in federated learning
CN104468401A (en) Message processing method and device
CN107888666A (en) A kind of cross-region data-storage system and method for data synchronization and device
Khan et al. Big data processing using internet of software defined things in smart cities
Koulouzis et al. SDN-aware federation of distributed data
CN115176227A (en) Master data placement in distributed storage systems
CN107667352A (en) File cache and synchronous technology for predictability
CN105681413A (en) Method and device for cooperative processing of data between CDN (Content Delivery Network) and ISP (Internet Service Provider)
US20200272335A1 (en) Data storage system with separate interfaces for bulk data ingestion and data access
CN104205730B (en) Network element data access method, Virtual NE, network management server and NMS
CN111935306A (en) Node scheduling method and device
US11108854B2 (en) Peer-to-peer network for internet of things resource allocation operation
Hbaieb et al. A survey and taxonomy on virtual data center embedding
CN108696559A (en) Method for stream processing and device
Kang et al. A conceptual device-rank based resource sharing and collaboration of smart things

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
TA01 Transfer of patent application right

Effective date of registration: 20220209

Address after: 550025 Huawei cloud data center, jiaoxinggong Road, Qianzhong Avenue, Gui'an New District, Guiyang City, Guizhou Province

Applicant after: Huawei Cloud Computing Technology Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Applicant before: HUAWEI TECHNOLOGIES Co.,Ltd.

TA01 Transfer of patent application right
RJ01 Rejection of invention patent application after publication

Application publication date: 20190809

RJ01 Rejection of invention patent application after publication