CN115633039A - Communication establishing method, load balancing device, equipment and storage medium - Google Patents

Communication establishing method, load balancing device, equipment and storage medium Download PDF

Info

Publication number
CN115633039A
CN115633039A CN202211191446.8A CN202211191446A CN115633039A CN 115633039 A CN115633039 A CN 115633039A CN 202211191446 A CN202211191446 A CN 202211191446A CN 115633039 A CN115633039 A CN 115633039A
Authority
CN
China
Prior art keywords
server
load balancing
communication
target
client
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
CN202211191446.8A
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.)
OneConnect Financial Technology Co Ltd Shanghai
Original Assignee
OneConnect Financial Technology Co Ltd Shanghai
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 OneConnect Financial Technology Co Ltd Shanghai filed Critical OneConnect Financial Technology Co Ltd Shanghai
Priority to CN202211191446.8A priority Critical patent/CN115633039A/en
Publication of CN115633039A publication Critical patent/CN115633039A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/22Procedures used during a speech recognition process, e.g. man-machine dialogue
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/28Constructional details of speech recognition systems
    • G10L15/30Distributed recognition, e.g. in client-server systems, for mobile phones or network applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • H04L67/101Server selection for load balancing based on network conditions

Abstract

The application provides a communication establishing method based on load balancing, a load balancing device, computer equipment and a computer readable storage medium, wherein the communication establishing method comprises the following steps: receiving a request message of a client, and acquiring at least one server with an idle load state in a server cluster; predicting communication quality information corresponding to each server with the load state being an idle state based on the communication quality prediction model; determining a target server according to the predicted multiple communication quality information and a load balancing strategy, wherein the target load balancing strategy at least comprises a response priority strategy and a resource capacity priority strategy; and sending the identity information of the target server to the client so that the client establishes communication with the target server. The method and the device aim at comprehensively determining the target server based on the load balancing strategy and the communication quality information, reasonably distributing server resources while realizing communication establishment, and improving the utilization rate of the server resources.

Description

Communication establishing method, load balancing device, equipment and storage medium
Technical Field
The present application relates to the field of network communication technologies, and in particular, to a communication establishing method based on load balancing, a load balancing apparatus, a computer device, and a storage medium.
Background
Session maintenance refers to a mechanism on a load balancer to balance load and ensure that access requests associated with the same user are distributed to the same server. Load balancing is a server cluster technology, which is a technology that distributes a large number of requests of a client to a plurality of servers for processing according to a certain strategy, so that the processing capacity of the whole system reaches or approaches to the sum of the processing capacities of all the servers.
Under the condition of load balancing of a plurality of servers, each session creation only occurs on one current server, and other servers do not exist. Therefore, the load balancing device must identify the session in the client request and dispatch the request to the server that originally created the session, and if dispatch to other servers, the session cannot persist, and finally the session request fails.
In the prior art, F5 generally achieves the effect of server load balancing, however, F5 cannot reasonably allocate server resources, which may cause a situation that one server is allocated with more sessions and other servers are idle, and therefore, it is necessary to provide a method for reasonably allocating server resources.
Disclosure of Invention
The application provides a communication establishing method based on load balancing, a load balancing device, computer equipment and a computer readable storage medium, which can comprehensively determine a target server based on a load balancing strategy and communication quality information, reasonably distribute server resources while realizing communication establishment and improve the utilization rate of the server resources.
In a first aspect, the present application provides a communication establishment method based on load balancing, where the method includes:
receiving a request message of a client, and acquiring at least one server with an idle load state in a server cluster;
predicting communication quality information corresponding to each server with the load state being an idle state based on the communication quality prediction model;
determining a target server according to a plurality of predicted communication quality information and a load balancing strategy, wherein the target load balancing strategy at least comprises a response priority strategy and a resource capacity priority strategy;
and sending the identity information of the target server to the client so that the client establishes communication with the target server.
In a second aspect, the present application further provides a load balancing apparatus, including:
the receiving unit is used for receiving a request message of a client and acquiring at least one server with an idle load state in a server cluster;
the prediction unit is used for predicting the communication quality information corresponding to each server with the load state being the idle state based on the communication quality prediction model;
the system comprises a determining unit, a judging unit and a processing unit, wherein the determining unit is used for determining a target server according to a plurality of predicted communication quality information and a load balancing strategy, and the target load balancing strategy at least comprises a response priority strategy and a resource capacity priority strategy;
and the sending unit is used for sending the identity information of the target server to the client so as to enable the client to establish communication with the target server.
In a third aspect, the present application further provides a computer device, including:
a memory and a processor;
wherein the memory is connected with the processor and used for storing programs;
the processor is configured to implement the steps of the communication establishment method according to any one of the above by executing a program stored in the memory.
In a fourth aspect, the present application also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, causes the processor to carry out the steps of the communication establishment method as defined in any one of the preceding claims.
According to the communication establishment method based on load balancing, the load balancing device, the computer equipment and the computer readable storage medium, the target server is comprehensively determined based on the load balancing strategy and the communication quality information, the server resources are reasonably distributed while the communication establishment is realized, and the utilization rate of the server resources is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic view of a related art communication establishment method based on load balancing;
fig. 2 is a schematic step diagram of a communication establishment method based on load balancing according to an embodiment of the present application;
fig. 3 is a schematic diagram of a first scenario of a communication establishment method based on load balancing according to an embodiment of the present application;
fig. 4 is a schematic diagram of a second scenario of a communication establishment method based on load balancing according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a load balancing apparatus provided in an embodiment of the present application;
FIG. 6 is a schematic block diagram of a computer device provided by an embodiment of the present application;
fig. 7 is a schematic structural diagram of a computer-readable storage medium provided in the present application.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, of the embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The flow diagrams depicted in the figures are merely illustrative and do not necessarily include all of the elements and operations/steps, nor do they necessarily have to be performed in the order depicted. For example, some operations/steps may be decomposed, combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
It is to be understood that the terminology used in the description of the present application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in the specification of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be understood that, for the convenience of clearly describing the technical solutions of the embodiments of the present application, the words "first", "second", and the like are used in the embodiments of the present application to distinguish the same items or similar items with basically the same functions and actions. For example, the first recognition model and the second recognition model are only used for distinguishing different callback functions, and the sequence of the callback functions is not limited. Those skilled in the art will appreciate that the terms "first," "second," etc. do not denote any order or quantity, nor do the terms "first," "second," etc. denote any order or importance.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
For the understanding of the embodiments of the present application, the background of the embodiments of the present application will be described with reference to the accompanying drawings.
At present, in the electric marketing industry, the intelligent seat assistant is widely used due to the excellent artificial intelligence performance. The intelligent seat assistant can provide functions of business knowledge, dialect, sales strategy, product recommendation and prompt, business process navigation and the like in real time, and can monitor and early warn key service indexes, business process clients and the emotion of staff in real time, so that the high quality and controllability of staff service are ensured. In addition, the intelligent agent assistant can also construct an insight center based on enterprise data, service data, intelligent identification data, intelligent analysis data and other omnibearing data, deeply analyze customer demands and business trends, provide service optimization promotion directions for enterprises, screen high-value customers and promote customer acquisition conversion rate.
Referring to fig. 1, fig. 1 is a schematic view of a related art communication establishment method based on load balancing. As shown in fig. 1, the intelligent agent assistant may send voice stream packets by: the data packet is transmitted from the client of the voice stream component to the packet receiving server through the load device F5, and finally transmitted to the voice engine, thereby realizing functions such as ASR (Automatic Speech Recognition).
In order to improve the presentation timeliness of the voice recognition result in front of the seat, all the packet receiving servers use a scheme of locally caching the voice packet, that is, the voice packet of the person in the same session must be sent to the same packet receiving server. Therefore, F5 needs to provide a session holding function while serving a load balancing function. However, in the prior art, F5 cannot simultaneously implement the above two functions, and therefore, there is a need to provide a communication establishing method based on load balancing, a load balancing apparatus, a computer device, and a computer readable storage medium, which can determine the load status of each server in a server cluster while implementing session maintenance, and reasonably allocate server resources based on a load balancing policy, so as to implement improvement of the utilization rate of server resources.
Some embodiments of the present application will be described in detail below with reference to the accompanying drawings. The embodiments described below and the features of the embodiments can be combined with each other without conflict.
Referring to fig. 2, fig. 2 is a schematic diagram illustrating steps of a communication establishment method based on load balancing according to an embodiment of the present application. The method can be applied to a load balancing device, and can reasonably distribute the server resources based on a load balancing strategy on the basis of realizing session maintenance, namely communication establishment, so as to improve the utilization rate of the server resources. As shown in fig. 1, the communication establishment method based on load balancing includes steps S11 to S14.
Step S11: and receiving a request message of the client, and acquiring at least one server with an idle load state in the server cluster.
When the telephone is connected, that is, when the intelligent agent assistant needs to send a voice stream data packet to interact with the user, the client of the voice stream component can send a request message to the server cluster, so that the load balancing device can receive the request message of the client and transmit the request message to the server in the server cluster. The request message is a message requesting to send a voice stream data packet, and further, the request message can reach any server in the server cluster.
It should be noted that, a server cluster refers to a collection of servers that perform the same service together, and appears to a client as if there is only one server. The server cluster can utilize a plurality of computers to perform parallel computation so as to obtain high computation speed, and also can use a plurality of computers to perform backup so that the normal operation of the whole system cannot be influenced by the damage of a single server.
Optionally, the obtaining at least one server in which a load state is an idle state in the server cluster may include: acquiring load information of each server in a server cluster, wherein the load information comprises the number of sessions processed by the corresponding server; and determining the load state of the corresponding server based on the number of the sessions processed by the server, wherein the load state comprises the idle state and the congestion state.
It can be understood that when the number of sessions processed by the server reaches the preset threshold, it indicates that the number of sessions processed by the server is large, and the load state of the server is a congestion state at this time; when the number of the sessions processed by the server does not reach the preset threshold value, the number of the sessions processed by the server is small, and the load state of the server is an idle state.
It should be noted that, the specific number of the preset threshold values is not limited in the present application, and may be set according to actual situations.
Step S12: and predicting the communication quality information corresponding to each server with the load state being the idle state based on the communication quality prediction model.
After at least one server with an idle load state in the server cluster is obtained, the communication quality information corresponding to each server with the idle load state can be predicted based on the communication quality prediction model. The communication quality prediction Model may be obtained by training network load history data collected from the base station, and in specific implementation, a machine learning algorithm, such as ARIMA (Autoregressive Integrated Moving Average Model), support vector machine, LSTM (Long Short-Term Memory network), and the like, may be used to train the communication quality prediction Model, so as to obtain corresponding Model parameters.
Optionally, the load information may further include a media access control rate of the server, a carrier MAC rate, a user MAC rate, and the like. Therefore, the load information corresponding to each server with the load state being the idle state can be obtained, and the plurality of load information are input into the communication quality prediction model, so that the corresponding communication quality information is obtained. It is understood that the communication quality information includes at least communication quality.
In the embodiment of the present application, the load information of each server whose load state is an idle state may be input to the communication quality prediction model, so as to predict and obtain the corresponding communication quality information.
Step S13: and determining a target server according to the predicted plurality of communication quality information and a load balancing strategy, wherein the target load balancing strategy at least comprises a response priority strategy and a resource capacity priority strategy.
After obtaining the plurality of predicted communication quality information, a target server may be determined according to the communication quality information and the load balancing policy. The target load balancing strategy at least comprises a response priority strategy and a resource capacity priority strategy.
Optionally, before determining the target server according to the predicted plurality of communication quality information and the load balancing policy, the method may include: acquiring response priority information and resource capacity priority information of a server cluster; and weighting the response priority information and the resource capacity priority information according to a preset weight to obtain a load balancing strategy. In this way, a specific load balancing policy can be determined, and thus a target disk server can be determined.
Specifically, the response priority information and the resource capacity priority information of the server cluster may be obtained first, and the information is weighted according to a preset weight, so as to obtain a load balancing policy.
It should be noted that the above-mentioned response priority information at least includes the response time sequence of each server in the server cluster, where the smaller the response time is, the higher the processing performance of the server is; the resource capacity priority information at least comprises the processing session number sequence of each server in the server cluster, wherein the more the number of the processed sessions is, the less the resource capacity of the server is. In addition, the application does not limit the specific value of the preset weight, and in the specific implementation, the high value can be adjusted, so that the optimal load balancing strategy is obtained.
Further, the determining the target server according to the plurality of predicted communication quality information and the load balancing policy may include: determining an initial server according to a load balancing strategy, and sequencing the plurality of predicted communication quality information to form a priority queue; judging whether the initial server is the server with the highest priority in the priority queue; and if so, determining the initial server as the target server.
Specifically, the initial server may be determined according to the obtained load balancing policy. The initial server is an optimal server determined based on a load balancing strategy; further, the predicted communication quality information is sequenced to form a priority queue, wherein the highest priority in the priority queue is the predicted optimal server. Therefore, whether the initial server is the server with the highest priority in the priority queue can be judged; if so, the initial server may be determined to be the target server.
Optionally, if the initial server is not the server with the highest priority in the priority queue, testing the communication quality of the server with the highest priority in the priority queue and the communication quality of the initial server respectively; and selecting the server with the highest priority in the priority queue and the server with the highest communication instruction in the initial server as the target server. In this manner, a target server may be further determined.
In the embodiment of the application, the target server can be determined based on the plurality of predicted communication quality information and the load balancing strategy, and the communication quality information and the load balancing strategy are referred to at the same time, so that the obtained target server result is more accurate.
Step S14: and sending the identity information of the target server to the client so that the client establishes communication with the target server.
After the target server is selected, the identity information of the target server can be sent to the client, so that the client and the target server establish communication, namely the client sends a voice stream data packet to the target server.
Alternatively, the identity information of the target server may be obtained first. The identity information of the server may be IP (internet Protocol) address information, port information, and the like of the server, which is not limited in the present application. Furthermore, an access response of the target server can be generated according to the identity information of the target server, and the access response of the target server is sent to the client, so that the client establishes communication with the target server based on the identity information of the target server, namely, the transmission of the voice stream data packet is realized.
In the embodiment of the application, the load balancing device can determine the load state of each server in the server cluster, and determine the target server based on the load balancing strategy, so as to realize the communication establishment between the target server and the client. The imbalance of the use of the server resources in the server cluster is avoided, the utilization rate of the server resources is improved, and the waste of hardware resources is reduced.
Optionally, sending the identity information of the target server to the client, so that after the client establishes communication with the target server, the method includes: and receiving data information sent by a client, and sending the data information to the target server.
Specifically, the load device may receive data information sent by the client, where the data information is a voice stream data packet sent by the client. Further, the load device may send the voice stream data packet to the target server, thereby completing the whole communication process between the target server and the client.
Optionally, the data information at least includes a first instruction and a second instruction, and after the load device sends the data information to the target server, the method may further include: and when the target server receives the first instruction or the second instruction, sending the data information to the storage server so that the storage server caches the data information.
It should be noted that the first instruction and the second instruction may be a start instruction or an end instruction, respectively, and when the target server receives the start instruction or the end instruction, the target server may send the received data information, that is, the voice stream information, to the storage server, so that the storage server caches the voice stream information.
Optionally, when the target server receives the first instruction or the second instruction, the load device may further update load information of the target server, so that the load balancing device may repeat the above steps in subsequent communication establishment to select a better target server.
In this embodiment, the load device may further send the data information to the storage server and update the load information of the target server when the target server receives the first instruction and the second instruction, so that the storage server can cache the data information, and the load balancing device may repeat the above steps in subsequent communication establishment to select a better target server.
Referring to fig. 3 and fig. 4, fig. 3 is a schematic view of a first scenario of a communication establishment method based on load balancing according to an embodiment of the present application; fig. 4 is a schematic diagram of a second scenario of a communication establishment method based on load balancing according to an embodiment of the present application. As shown in fig. 3 and 4, the client can send a voice stream packet to each server in the server cluster, and the load device can determine a target server based on the load balancing policy and the predicted communication quality information according to the load information of the servers, and send the identity information of the target server to the client, so that the client can establish communication with the target server, that is, send the voice stream packet. Further, the voice stream packet includes a start command, a progress command, and an end command. When the target server receives the starting instruction, the number of the sessions processed by the target server is added with 1; when the target server receives the ending instruction, the number of the processed sessions is reduced by 1; when the server receives the execution instruction, the explanation is made. The load device may transmit the data information to the storage server and update the load information of the target server when the target server receives the start instruction and the end instruction, so that the storage server can cache the data information. Meanwhile, the load balancing device can repeat the steps in the subsequent communication establishment process so as to select a better target server. Further, the target server can deliver the received voice stream data packet to the voice engine to realize voice recognition.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a load balancing apparatus according to an embodiment of the present disclosure. As shown in fig. 5, the load balancing apparatus 200 includes: receiving unit 10, prediction unit 20, determination unit 30, and transmitting unit 40.
A receiving unit 10, configured to receive a request message from a client, and acquire at least one server in a server cluster whose load state is an idle state;
a prediction unit 20, configured to predict, based on a communication quality prediction model, communication quality information corresponding to each server whose load state is an idle state;
a determining unit 30, configured to determine a target server according to a plurality of predicted communication quality information and a load balancing policy, where the target load balancing policy at least includes a response priority policy and a resource capacity priority policy;
and the sending unit is used for sending the identity information of the target server to the client so as to enable the client to establish communication with the target server.
It should be noted that, as will be clear to those skilled in the art, for convenience and brevity of description, the specific working processes of the apparatus, the modules and the units described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The methods, apparatus, and devices of the present application are operational with numerous general purpose or special purpose computing system environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet-type devices, multiprocessor systems, microprocessor-based systems, set top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like.
For example, the method and apparatus described above may be implemented in the form of a computer program that can be run on a computer device as shown in fig. 6.
Referring to fig. 6, fig. 6 is a schematic structural diagram of an embodiment of a computer device provided in the present application. The problem generating device 6 includes a processor 61, a memory 62, and a program (not shown), where the program is stored on the memory 62, and when the processor 61 executes the program, the processor implements a communication establishment method based on load balancing according to any of the above embodiments.
The processor 61 may also be referred to as a Central Processing Unit (CPU). The processor 61 may be an integrated circuit chip having the processing capability for signaling. The processor 61 may also be a general purpose processor, a Digital Signaling Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Wherein, in some embodiments, the processor is configured to execute the computer program stored in the memory to perform the steps of: receiving a request message of a client, and acquiring at least one server with an idle load state in a server cluster; predicting communication quality information corresponding to each server with the load state being an idle state based on the communication quality prediction model; determining a target server according to a plurality of predicted communication quality information and a load balancing strategy, wherein the target load balancing strategy at least comprises a response priority strategy and a resource capacity priority strategy; and sending the identity information of the target server to the client so that the client establishes communication with the target server.
In some embodiments, the processor is further configured to obtain load information of each server of a server cluster, where the load information includes a number of sessions processed by the server; and determining the load state of the corresponding server based on the number of the sessions processed by the server, wherein the load state comprises the idle state and the congestion state.
In some embodiments, the processor is further configured to obtain response priority information and resource capacity priority information for the server cluster; and weighting the response priority information and the resource capacity priority information according to a preset weight to obtain a load balancing strategy.
In some embodiments, the processor is further configured to determine an initial server according to a load balancing policy, and to order the predicted plurality of communication quality information to form a priority queue; judging whether the initial server is the server with the highest priority in the priority queue; and if so, determining the initial server as a target server.
In some embodiments, the processor is further configured to test communication quality of a highest priority server in the priority queue and the initial server, respectively; and selecting the server with the highest priority in the priority queue and the server with the highest communication instruction in the initial server as a target server.
In some embodiments, the processor is further configured to obtain identity information of the target server; generating an access response of the target server according to the identity information of the target server; and sending the access response of the target server to the client so that the client establishes communication with the target server based on the identity information of the target server.
In some embodiments, the processor is further configured to receive data information sent by the client; and sending the data information to the target server.
The storage 62 may be a memory bank, a TF card, etc., and may store all information in the problem generating apparatus 6, including the input raw data, the computer program, the intermediate operation result, and the final operation result, which are stored in the storage 62. It stores and retrieves information based on the location specified by the controller. With the memory 62, the terminal device 6 has a memory function, and normal operation can be guaranteed. The storage 62 of the problem generating apparatus 6 can be classified into a main storage (internal storage) and an auxiliary storage (external storage) according to the use of the storage 62, and there is also a classification method into an external storage and an internal storage. The external memory is usually a magnetic medium, an optical disk, or the like, and can store information for a long period of time. The memory is a storage unit on the motherboard, which is used for storing data and programs currently being executed, but is only used for temporarily storing the programs and the data, and the data is lost when the power is turned off or the power is cut off.
In the several embodiments provided in the present application, it should be understood that the disclosed method and apparatus may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of a module or a unit is merely a logical division, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a system server, a network device, or the like) or a processor (processor) to execute all or part of the steps of the method of the embodiments of the present application.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a storage medium provided in the present application. The storage medium 5 of the present application stores a computer program 51 capable of implementing all the problem-based generation methods described above, where the computer program 51 may be stored in the storage medium 5 in the form of a software product, and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to execute all or part of the steps of the methods according to the embodiments of the present application. And the aforementioned storage medium 5 includes: various media capable of storing program codes, such as a usb disk, a portable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk, or a terminal device, such as a computer, a server, a mobile phone, or a tablet.
The above embodiments are merely examples and are not intended to limit the scope of the present disclosure, and all modifications, equivalents, and flow charts using the contents of the specification and drawings of the present disclosure or those directly or indirectly applied to other related technical fields are intended to be included in the scope of the present disclosure.

Claims (10)

1. A communication establishment method based on load balancing is applied to a load balancing device, and the method comprises the following steps:
receiving a request message of a client, and acquiring at least one server with an idle load state in a server cluster;
predicting communication quality information corresponding to each server with the load state being an idle state based on the communication quality prediction model;
determining a target server according to a plurality of predicted communication quality information and a load balancing strategy, wherein the target load balancing strategy at least comprises a response priority strategy and a resource capacity priority strategy;
and sending the identity information of the target server to the client so that the client establishes communication with the target server.
2. The communication establishing method according to claim 1, wherein the obtaining at least one server in the server cluster whose load status is idle status comprises:
acquiring load information of each server of a server cluster, wherein the load information comprises the number of sessions processed by the server;
and determining the load state of the corresponding server based on the number of the sessions processed by the server, wherein the load state comprises the idle state and the congestion state.
3. The communication establishment method according to claim 1, wherein before determining the target server according to the predicted communication quality information and the target load balancing policy, the method comprises:
acquiring response priority information and resource capacity priority information of the server cluster;
and weighting the response priority information and the resource capacity priority information according to a preset weight to obtain a load balancing strategy.
4. The method of claim 1, wherein the determining a target server according to the predicted plurality of communication quality information and the load balancing policy comprises:
determining an initial server according to a load balancing strategy, and sequencing a plurality of predicted communication quality information to form a priority queue;
judging whether the initial server is the server with the highest priority in the priority queue;
and if so, determining the initial server as a target server.
5. The communication establishing method according to claim 4, wherein after the determining whether the initial server is the highest priority server in the priority queue, the method further comprises:
if not, respectively testing the communication quality of the server with the highest priority in the priority queue and the communication quality of the initial server;
and selecting the server with the highest priority in the priority queue and the server with the highest communication instruction in the initial server as a target server.
6. The communication establishing method according to claim 1, wherein the sending the identity information of the target server to the client to enable the client to establish communication with the target server comprises:
acquiring identity information of the target server;
generating an access response of the target server according to the identity information of the target server;
and sending the access response of the target server to the client so that the client establishes communication with the target server based on the identity information of the target server.
7. The communication establishing method according to claim 1, wherein after sending the identity information of the target server to the client so that the client establishes communication with the target server, the method comprises:
receiving data information sent by the client;
and sending the data information to the target server.
8. A load balancing apparatus, comprising:
the receiving unit is used for receiving a request message of a client and acquiring at least one server with an idle load state in a server cluster;
the prediction unit is used for predicting the communication quality information corresponding to each server with the load state being the idle state based on the communication quality prediction model;
the system comprises a determining unit, a judging unit and a processing unit, wherein the determining unit is used for determining a target server according to a plurality of predicted communication quality information and a load balancing strategy, and the target load balancing strategy at least comprises a response priority strategy and a resource capacity priority strategy;
and the sending unit is used for sending the identity information of the target server to the client so as to enable the client to establish communication with the target server.
9. A computer device, characterized in that the computer device comprises:
a memory and a processor;
wherein the memory is connected with the processor and used for storing programs;
the processor is adapted to carry out the steps of the communication establishing method according to any one of claims 1 to 7 by executing a program stored in the memory.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by a processor, causes the processor to carry out the steps of the communication establishment method according to any one of claims 1-7.
CN202211191446.8A 2022-09-28 2022-09-28 Communication establishing method, load balancing device, equipment and storage medium Pending CN115633039A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211191446.8A CN115633039A (en) 2022-09-28 2022-09-28 Communication establishing method, load balancing device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211191446.8A CN115633039A (en) 2022-09-28 2022-09-28 Communication establishing method, load balancing device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115633039A true CN115633039A (en) 2023-01-20

Family

ID=84904525

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211191446.8A Pending CN115633039A (en) 2022-09-28 2022-09-28 Communication establishing method, load balancing device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115633039A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116112493A (en) * 2023-02-09 2023-05-12 网易(杭州)网络有限公司 Communication method, device, electronic equipment and storage medium
CN116233137A (en) * 2023-02-17 2023-06-06 通明智云(北京)科技有限公司 Cluster-based load sharing and backup method and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116112493A (en) * 2023-02-09 2023-05-12 网易(杭州)网络有限公司 Communication method, device, electronic equipment and storage medium
CN116233137A (en) * 2023-02-17 2023-06-06 通明智云(北京)科技有限公司 Cluster-based load sharing and backup method and device
CN116233137B (en) * 2023-02-17 2023-11-17 通明智云(北京)科技有限公司 Cluster-based load sharing and backup method and device

Similar Documents

Publication Publication Date Title
CN112162865B (en) Scheduling method and device of server and server
CN115633039A (en) Communication establishing method, load balancing device, equipment and storage medium
CN108499100B (en) Cloud game error recovery method and system based on edge calculation
US20160191343A1 (en) Maintain a service on a cloud network based on a scale rule
CN110020061B (en) Smart city space-time information cloud platform service engine
CN108933829A (en) A kind of load-balancing method and device
CN111506434B (en) Task processing method and device and computer readable storage medium
CN106713168A (en) Flow control method and system
CN108847981A (en) Distributed computer cloud computing processing method
CN110147277B (en) Dynamic resource deployment method and device, server and storage medium
CN111178781A (en) Response resource allocation method, device, equipment and medium of online response system
CN112866394B (en) Load balancing method, device, system, computer equipment and storage medium
CN117311973A (en) Computing device scheduling method and device, nonvolatile storage medium and electronic device
CN114490100A (en) Message queue telemetry transmission load balancing method and device and server
CN115334001B (en) Data resource scheduling method and device based on priority relation
CN116743836A (en) Long connection communication link establishment method and device, electronic equipment and storage medium
CN108829516B (en) Resource virtualization scheduling method for graphic processor
CN116546028A (en) Service request processing method and device, storage medium and electronic equipment
CN111522664A (en) Service resource management and control method and device based on distributed service
CN115580618A (en) Load balancing method, device, equipment and medium
CN111782688B (en) Request processing method, device, equipment and storage medium based on big data analysis
CN114640681A (en) Data processing method and system
CN113904940A (en) Resource adjusting method and device, electronic equipment and computer readable storage medium
CN108737223B (en) Health consultation method, device, platform and storage medium based on load balancing
US10877800B2 (en) Method, apparatus and computer-readable medium for application scheduling

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