CN106657259B - Routing server and routing service method for server cluster - Google Patents

Routing server and routing service method for server cluster Download PDF

Info

Publication number
CN106657259B
CN106657259B CN201610977464.7A CN201610977464A CN106657259B CN 106657259 B CN106657259 B CN 106657259B CN 201610977464 A CN201610977464 A CN 201610977464A CN 106657259 B CN106657259 B CN 106657259B
Authority
CN
China
Prior art keywords
server
connection request
service
providing
routing
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.)
Active
Application number
CN201610977464.7A
Other languages
Chinese (zh)
Other versions
CN106657259A (en
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.)
Guangdong Yiwangtong Technology Co., Ltd
Original Assignee
Guangdong Yiwangtong Technology 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 Guangdong Yiwangtong Technology Co Ltd filed Critical Guangdong Yiwangtong Technology Co Ltd
Priority to CN201610977464.7A priority Critical patent/CN106657259B/en
Publication of CN106657259A publication Critical patent/CN106657259A/en
Application granted granted Critical
Publication of CN106657259B publication Critical patent/CN106657259B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/566Grouping or aggregating service requests, e.g. for unified processing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • H04L67/1008Server selection for load balancing based on parameters of servers, e.g. available memory or workload

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Computer And Data Communications (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a routing server and a routing service method for a server cluster. The routing server includes: the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring information carried by a connection request after receiving the connection request of a client; the selecting unit is used for selecting the servers in the server cluster according to the information carried in the connection request; and the feedback unit is used for generating a routing list of the server and sending the routing list to the client so that the client can be connected with the corresponding server. The invention can effectively reduce the burden of the server, improve the processing efficiency of the server, simultaneously realize gray level distribution, improve the response speed of the client request and improve the use experience of a user.

Description

Routing server and routing service method for server cluster
Technical Field
The present invention relates to the technical field of servers, and in particular, to a routing server and a routing service method for a server cluster.
Background
In many systems or APPs today, there is functionality to use message push. By establishing a stable and reliable long connection between the cloud and the client, a service for pushing real-time messages to the client application is provided for developers, and the developers are helped to effectively pull users to be active. All message pushing can be realized only by relevant support of a background server, and the real-time performance of message sending and receiving can be realized only by keeping long link.
Since a long connection needs to be maintained between the client and the server, if the number of clients is large, the server needs to maintain a large number of long connections. However, the number of clients of a general APP system can reach dozens of millions, and if such many connections are connected to the same server, a great deal of pressure is applied to the server, which may result in unavailability, downtime or other problems of the server.
Currently, APP systems typically employ server clusters to provide services. A routing server is typically provided at the front end of the server cluster, and is accessed by the clients by providing an interface to obtain an accessible routing list. Then the client selects a routing address from the data access request to carry out real data access. However, the existing routing server usually adopts preconfigured routing information, so when the access amount is increased, it is difficult to ensure the balance of service access, and at the same time, the speed of client request response is slow, and the user experience is very poor.
Disclosure of Invention
The invention mainly aims to provide a routing server and a routing service method for a server cluster, which are used for solving the problem that the routing server in the technology is difficult to ensure the load balance of the server cluster.
In order to achieve the purpose, the invention adopts the following technical scheme:
according to an aspect of the present invention, there is provided a routing server for a server cluster, comprising:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring information carried by a connection request after receiving the connection request of a client;
a selecting unit, configured to select a server in the server cluster according to the information carried in the connection request;
and the feedback unit is used for generating a routing list of the server and sending the routing list to the client so that the client can be connected with the corresponding server.
Further, the obtaining unit is further configured to obtain verification information carried in the connection request, and determine whether the verification information meets a preset requirement;
and when the connection request is in accordance with the judgment, selecting the server in the server cluster according to the information carried in the connection request.
Further, the selecting unit is specifically configured to:
determining a server capable of providing service according to the application identifier carried in the connection request;
acquiring the operation parameters of the server capable of providing the service;
and calculating the load condition of the server according to the operation parameters, and selecting the server with the load condition meeting the preset condition.
Further, the selecting unit is further configured to:
before the operation parameters of the server capable of providing the service are acquired, whether the application version carried in the connection request is a new version or not is judged;
when the application version is an old version, acquiring the operating parameters of the server capable of providing the service;
and when the application version is a new version, directly selecting a server providing the new version service from the servers capable of providing the service.
Further, the selecting unit is further configured to obtain a unique identification code carried in the connection request before determining a server capable of providing a service according to the application identifier carried in the connection request;
judging whether the equipment needs to be upgraded or not according to the unique identification code;
when the equipment is judged to need to be upgraded, a server for providing equipment upgrading is selected from the server cluster; otherwise, determining the server capable of providing the service according to the application identification.
According to an aspect of the present invention, there is provided a routing service method for a server cluster, including:
after receiving a connection request of a client, acquiring information carried by the connection request;
selecting a server in the server cluster according to the information carried in the connection request;
and generating a routing list of the server, and sending the routing list to the client so that the client can be connected with the corresponding server.
Further, the acquiring information carried by the connection request includes:
acquiring verification information carried in the connection request, and judging whether the verification information meets a preset requirement;
and when the connection request is in accordance with the judgment, selecting the server in the server cluster according to the information carried in the connection request.
Further, the selecting a server in the server cluster according to the information carried in the connection request specifically includes:
determining a server capable of providing service according to the application identifier carried in the connection request;
acquiring the operation parameters of the server capable of providing the service;
and calculating the load condition of the server according to the operation parameters, and selecting the server with the load condition meeting the preset condition.
Further, before obtaining the operation parameters of the server capable of providing the service, the method further includes:
judging whether the application version carried in the connection request is a new version or not;
when the application version is an old version, acquiring the operating parameters of the server capable of providing the service;
and when the application version is a new version, directly selecting a server providing the new version service from the servers capable of providing the service.
Further, before determining a server capable of providing a service according to the application identifier carried in the connection request, the method further includes;
acquiring a unique identification code carried in the connection request;
judging whether the equipment needs to be upgraded or not according to the unique identification code;
when the equipment is judged to need to be upgraded, a server for providing equipment upgrading is selected from the server cluster; otherwise, determining the server capable of providing the service according to the application identification.
The invention provides a routing server and a routing service method for a server cluster, which select a corresponding routing strategy by acquiring information carried in a request; the corresponding server is selected according to the corresponding routing strategy, so that the load of the server can be effectively reduced, and the server can more effectively transmit messages; by configuring version information and unique identification code information of the equipment in the connection request, the client information using the gray-scale version is acquired in time, and the corresponding request is shunted at the first time, so that the response speed of the client request is improved, and the user experience is improved.
Drawings
FIG. 1 is a schematic block diagram of a routing server for a server cluster in an embodiment of the present invention;
FIG. 2 is a diagram of a deployment architecture of a routing server and a server cluster according to an embodiment of the present invention;
FIG. 3 is a flowchart of a routing service method for a server cluster according to an embodiment of the present invention;
FIG. 4 is a flowchart illustrating interaction between a client and a routing server according to an embodiment of the present invention;
fig. 5 is a sequence diagram of the processing of a connection request by a routing server according to an embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
A mobile terminal implementing various embodiments of the present invention will now be described with reference to the accompanying drawings. In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in themselves. Thus, "module" and "component" may be used in a mixture.
The embodiment of the invention provides a routing server for a server cluster. The routing server serves as a front-end service of the server cluster, the access server to be connected with the client side can be intelligently controlled, the processing efficiency of the server is improved, load balance of long connection is achieved, meanwhile, app can be isolated, mutual influence is prevented, and higher-level gray level drainage is achieved.
As shown in fig. 1, the routing server for accessing a server cluster provided in the embodiment of the present invention specifically includes:
the acquiring unit 11 is configured to acquire information carried by a connection request after receiving the connection request from the client;
a selecting unit 12, configured to select a server in the server cluster according to the information carried in the connection request;
and the feedback unit 13 is configured to generate a routing list of the server, and send the routing list to the client, so that the client connects to the corresponding server.
The routing server for the server cluster provided by the embodiment of the invention selects a corresponding routing strategy by acquiring the information carried in the request; and selecting the corresponding server according to the corresponding routing strategy. According to the invention, the corresponding routing strategy is selected according to the request information in the request, so that the load of the server is reduced, the server can be ensured to more effectively transmit the message, and the processing efficiency of the server is improved; meanwhile, the request of the client is quickly responded, and the user experience is improved.
As shown in fig. 1, an application architecture diagram of a routing server provided by an embodiment of the present invention is shown. The routing server in the embodiment of the invention can adopt a cluster form, and is convenient for processing the client high-concurrency request in time. Specifically, a plurality of application servers such as tomcat may be adopted to form a cluster. The server cluster in the embodiment comprises a Push central control access service cluster and an independent APP access service cluster. Some applications (such as system self-contained applications) of the terminal adopt centralized control and management, and a Push central control access service cluster provides services for the terminal according to the request of the applications. And for some independent applications, such as QQ, etc., services are provided through independent APP access service clusters. The Client side (Client SDK) and the routing server cluster are communicated by adopting an Http communication protocol, and are communicated by adopting an SSL communication protocol with the Push central control access service cluster and the independent APP access service cluster.
The following describes each unit of the routing server in the present invention in detail with reference to fig. 1.
The obtaining unit 11 is configured to obtain information carried in a connection request after receiving the connection request from the client.
The obtaining unit 11 is specifically configured to, after receiving a connection request of a client, first obtain verification information carried in the connection request; judging whether the check information meets the preset requirement set locally; if the request information is in accordance with the request information, further acquiring request information carried in the connection request; and when the judgment result is not in accordance, rejecting the request of the client and sending a rejection response to the client.
When the client sends the connection request, the http request is sent to the routing server. And the verification information carried in the request comprises one or more of user parameters, signatures and APP states.
Specifically, when the obtaining unit 11 checks the check information carried in the connection request, the method includes:
after the user parameters of the client are obtained, judging whether the user parameters are consistent with locally pre-stored equipment parameters, and if so, continuing subsequent processing; here, the user parameters include a user name and a password; and/or, authenticating the client by using the signature, and performing subsequent processing after the authentication is passed. The verification process using signatures is well known to those skilled in the art and will not be described in detail herein. And/or verifying the state information of the APP, when the APP processes the offline state, the connection request does not need to be processed, and only when the APP is online, the subsequent processing is carried out.
Further, the acquiring unit 11 acquires information carried in the connection request, including an application identifier, an application version, and a unique identification code (IMEI code) of the device. The application identification is the ID of the APP, the APPs can be isolated from each other according to the application identification, and meanwhile whether the service is provided by a Push central control access service cluster or an independent APP access service cluster can be distinguished according to the APP ID. The application version information refers to version information of an APP, two different versions of the APP exist in an APP system, one part of users use the new version, and one part of users use the old version. Both versions provide services simultaneously.
And the selecting unit 12 is configured to select a server in the server cluster according to the information carried in the connection request.
As mentioned above, the obtaining unit 11 obtains the information carried in the connection request, which includes the application identifier, the application version, and the unique identifier of the device, where the selecting unit 12 selects different routing policies according to different information, and further obtains the server to be served.
In an embodiment of the present invention, the selecting unit 12 firstly performs screening according to the unique identifier of the device, and then performs screening according to the application identifier and the application version.
Specifically, the selecting unit 12 determines whether the device needs to be upgraded according to the unique identifier of the device carried in the connection request; when the equipment needs to be upgraded, a server for providing equipment upgrading is selected from the server cluster; and when the equipment does not need to be upgraded, further screening according to the application condition.
Wherein, the selecting unit 12 determines the server capable of providing the service according to the application identifier only when further screening according to the application identifier. Specifically, whether the service is provided by the Push central control access service cluster or the independent APP access service cluster can be determined according to the application identifier.
Acquiring operation parameters of a server capable of providing services;
and calculating the load condition of the server according to the operation parameters, and selecting the server with the load condition meeting the preset condition.
Here, in an embodiment, the operation parameter information includes a current online user number and/or performance parameters such as a CPU utilization, a memory utilization, a bandwidth utilization, or a disk utilization of the server. And determining according to the performance parameters of the server and the number of users borne. Specifically, for example, it is first determined whether the performance parameter satisfies a preset threshold, and when so, no allocation is made. And if the number of the users is not met, acquiring the number of the online users of the server, and if the number of the users is greater than a preset threshold value, not performing distribution processing. It should be noted that the load judgment is only explained and illustrated herein, and is not intended to limit the present invention.
When the selecting unit 12 further filters according to the application identifier and the application version, a server capable of providing a service is determined according to the application identifier;
judging whether the application version carried in the connection request is a new version;
when the application version is an old version, acquiring the operating parameters of a server capable of providing the service; acquiring operation parameters of a server capable of providing services; calculating the load condition of the server according to the operation parameters, and selecting the server of which the load condition meets the preset conditions;
and when the application version is a new version, directly selecting a server providing the new version service from the servers providing the service.
It can be known that, the selection unit 12 can select a corresponding routing policy, and according to a specific routing policy, intelligently control an access server to which the client is to be connected, so as to implement isolation of the APP and avoid mutual influence. Meanwhile, through verifying version information, the gray drainage is realized, and the release and maintenance of the APP new version are facilitated.
And the feedback unit 13 is configured to generate a routing list of the server, and send the routing list to the client, so that the client is connected to the corresponding server.
Specifically, when generating the routing list of the server, the feedback unit 13 includes one or more pieces of routing list information in the list. The routing list information is generated in the form of domain names, each of which corresponds to a cluster of access services. The returned route list has two types of main and standby route lists, so that redundancy is realized after line faults are realized, and the success rate of connection is improved.
Further, in an embodiment of the present invention, the obtaining unit 11 is further configured to obtain a piece of token information from the cache while the selecting unit 12 selects the server. The token information defines time information for the client to access the server. And according to the token information, the client realizes information interaction with the specified server. The feedback unit 13 sends the token information and the routing list to the client together when feeding back the routing list of the server.
Further, in an embodiment of the present invention, the obtaining unit 11 is further configured to obtain the pre-stored access policy from the local while the selecting unit 12 selects the server. The access policy is for a policy for a client to access routing list information. Specifically, what is included is the number of polls per address per time; and/or after all the routing address access fails each time, the interface is accessed again at intervals; and/or what the maximum number of interface interval accesses is, and then accesses are performed at certain time intervals (for example, one day); non-fixed spacing may also be used. The access policy may be set by the user himself. The feedback unit 13 sends the access policy and the routing list to the client together when feeding back the routing list of the server.
Specifically, in an embodiment, the client locally executes a polling mechanism, and assembles request addresses from the local routing list one by one to perform a request operation. Each routing address carries out 3 times of request operation, and if the request fails, the request operation of the next routing address is carried out. And when all local routing addresses cannot be accessed after polling, the client waits for about 3 hours, requests the routing server again and acquires the routing list. If the access of the routing list obtained again fails in the above manner, and the number of failures exceeds 5 times, the request operation of the routing list is performed every 1 day.
Based on the above, by configuring the access policy of the client at the routing server, more diversified client access modes can be realized, and the access request of the client can be controlled by the server. In addition, the request of the client to the routing server is reduced to a certain extent by setting the access strategy, and the throughput of the routing server cluster is improved.
As shown in fig. 3, the routing service method for accessing a server cluster provided in the embodiment of the present invention specifically includes:
step 301, after receiving a connection request of a client, acquiring information carried by the connection request;
step 302, selecting a server in the server cluster according to the information carried in the connection request;
step 303, generating a routing list of the server, and sending the routing list to the client, so that the client can connect to the corresponding server.
The routing service method for the server cluster provided by the embodiment of the invention selects the corresponding routing strategy by acquiring the information carried in the request; and selecting the corresponding server according to the corresponding routing strategy. According to the invention, the corresponding routing strategy is selected according to the request information in the request, so that the load of the server is reduced, the server can be ensured to more effectively transmit the message, and the processing efficiency of the server is improved; meanwhile, the request of the client is quickly responded, and the user experience is improved.
The following fig. 4 and 5 illustrate the steps of the routing service method of the present invention in detail.
Step 301, configured to obtain information carried in a connection request after receiving the connection request of the client.
After receiving a connection request of a client, firstly acquiring verification information carried in the connection request; the routing control judges whether the check information meets the preset requirement set locally; if the request information is in accordance with the request information, further acquiring request information carried in the connection request; and when the judgment result is not in accordance, rejecting the request of the client and sending a rejection response to the client.
When the client sends the connection request, the http request is sent to the routing server. And the verification information carried in the request comprises one or more of user parameters, signatures and APP states.
Specifically, when the routing control checks the check information carried in the connection request, the method includes:
after the user parameters of the client are obtained, judging whether the user parameters are consistent with locally pre-stored equipment parameters, and if so, continuing subsequent processing; the user parameters comprise a user name and a password; and/or, authenticating the client by using the signature, and performing subsequent processing after the authentication is passed. The verification process using signatures is well known to those skilled in the art and will not be described in detail herein. And/or verifying the state information of the APP, when the APP processes the offline state, the connection request does not need to be processed, and only when the APP is online, the subsequent processing is carried out.
Further, the routing policy service provides a policy for routing. Specifically, the information carried in the connection request includes an application identifier and an application version. The application identification is the ID of the APP, the APPs can be isolated from each other according to the application identification, and meanwhile whether the service is provided by a Push central control access service cluster or an independent APP access service cluster can be distinguished according to the APP ID. The application version information refers to version information of an APP, two different versions of the APP exist in an APP system, one part of users use the new version, and one part of users use the old version. Both versions provide services simultaneously.
Step 302, selecting a server in the server cluster according to the information carried in the connection request.
And acquiring information carried in the connection request, wherein the information comprises an application identifier, an application version and a unique identifier of the equipment, and different routing strategies are selected according to different information so as to acquire the server to be provided with the service.
In one embodiment of the invention, the screening is performed according to the unique identification code of the equipment, and then the screening is performed according to the application identification and the application version.
Specifically, whether the equipment needs to be upgraded is judged according to a unique identification code of the equipment carried in the connection request; when the equipment needs to be upgraded, a server for providing equipment upgrading is selected from the server cluster; and when the equipment does not need to be upgraded, further screening according to the application condition.
When the application identifier is only used for further screening, the method comprises the following steps:
and determining a server capable of providing the service according to the application identification. Specifically, whether the service is provided by the Push central control access service cluster or the independent APP access service cluster can be determined according to the application identifier.
Acquiring operation parameters of a server capable of providing services;
and calculating the load condition of the server according to the operation parameters, and selecting the server with the load condition meeting the preset condition.
Here, in an embodiment, the operation parameter information includes a current online user number and/or performance parameters such as a CPU utilization, a memory utilization, a bandwidth utilization, or a disk utilization of the server. And determining according to the performance parameters of the server and the number of users borne. Specifically, for example, it is first determined whether the performance parameter satisfies a preset threshold, and when so, no allocation is made. And if the number of the users is not met, acquiring the number of the online users of the server, and if the number of the users is greater than a preset threshold value, not performing distribution processing. It should be noted that the load judgment is only explained and illustrated herein, and is not intended to limit the present invention.
When further screening is carried out according to the application identification and the application version, the method comprises the following steps:
determining a server capable of providing service according to the application identifier;
judging whether the application version carried in the connection request is a new version;
when the application version is an old version, acquiring the operating parameters of a server capable of providing the service; acquiring operation parameters of a server capable of providing services; calculating the load condition of the server according to the operation parameters, and selecting the server of which the load condition meets the preset conditions;
and when the application version is a new version, directly selecting a server providing the new version service from the servers providing the service.
Therefore, the method and the device realize the isolation of the APP and avoid the mutual influence by selecting the corresponding routing strategy and intelligently controlling the access server to which the client is connected according to the specific routing strategy. Meanwhile, through verifying version information, the gray drainage is realized, and the release and maintenance of the APP new version are facilitated.
Step 303, generating a routing list of the server, and sending the routing list to the client, so that the client can connect to the corresponding server.
The routing service provides the corresponding service. Specifically, when the route list of the server is generated, the list includes one or more pieces of route list information. The routing list information is generated in the form of domain names, each of which corresponds to a cluster of access services. The returned route list has two types of main and standby route lists, so that redundancy is realized after line faults are realized, and the success rate of connection is improved.
Further, in one embodiment, after the server is selected, a piece of token information is obtained from the cache. The token information defines time information for the client to access the server. And according to the token information, the client realizes information interaction with the specified server. When feeding back the routing list of the server, the token information needs to be sent to the client together with the routing list.
Further, in one embodiment, after selecting the server, the pre-stored access policy is obtained locally. The access policy is for a policy for a client to access routing list information. Specifically, what is included is the number of polls per address per time; and/or after all the routing address access fails each time, the interface is accessed again at intervals; and/or what the maximum number of interface interval accesses is, and then accesses are performed at certain time intervals (for example, one day); non-fixed spacing may also be used. The access policy may be set by the user himself. And when the routing list of the server is fed back, the access strategy and the routing list are sent to the client side together.
Based on the above, by configuring the access policy of the client at the routing server, more diversified client access modes can be realized, and the access request of the client can be controlled by the server. In addition, the request of the client to the routing server is reduced to a certain extent by setting the access strategy, and the throughput of the routing server cluster is improved.
The routing server and the routing service method for the server cluster provided by the embodiment of the invention select the corresponding routing strategy by acquiring the information carried in the request; the corresponding server is selected according to the corresponding routing strategy, so that the load of the server can be effectively reduced, and the server can more effectively transmit messages; by configuring version information and unique identification code information of the equipment in the connection request, the client using the gray-scale version is acquired in time, so that the corresponding request can be conveniently shunted at the first time, the response speed of the client request is improved, and the user experience is improved.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (2)

1. A routing server for a server cluster, comprising:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring information carried by a connection request after receiving the connection request of a client;
a selecting unit, configured to select a server in the server cluster according to the information carried in the connection request;
the feedback unit is used for generating a routing list of the server and sending the routing list to the client so that the client can be connected with the corresponding server conveniently;
the acquiring unit is further configured to acquire verification information carried in the connection request and determine whether the verification information meets a preset requirement;
when the judgment is in accordance with the judgment, selecting a server in the server cluster according to the information carried in the connection request;
the selecting unit is specifically configured to:
determining a server capable of providing service according to the application identifier carried in the connection request;
acquiring the operation parameters of the server capable of providing the service;
calculating the load condition of the server according to the operation parameters, and selecting the server of which the load condition meets the preset condition;
the selecting unit is further configured to:
before the operation parameters of the server capable of providing the service are acquired, whether the application version carried in the connection request is a new version or not is judged;
when the application version is an old version, acquiring the operating parameters of the server capable of providing the service;
when the application version is a new version, directly selecting a server providing the new version service from the servers capable of providing the service;
before determining a server capable of providing service according to an application identifier carried in the connection request, acquiring a unique identification code carried in the connection request;
judging whether the equipment needs to be upgraded or not according to the unique identification code;
when the equipment is judged to need to be upgraded, a server for providing equipment upgrading is selected from the server cluster; otherwise, determining the server capable of providing the service according to the application identification.
2. A routing service method for a server cluster, comprising:
after receiving a connection request of a client, acquiring information carried by the connection request;
selecting a server in the server cluster according to the information carried in the connection request;
generating a routing list of the server, and sending the routing list to the client so that the client can be connected with the corresponding server conveniently;
the acquiring the information carried by the connection request includes:
acquiring verification information carried in the connection request, and judging whether the verification information meets a preset requirement;
when the judgment is in accordance with the judgment, selecting a server in the server cluster according to the information carried in the connection request;
the selecting a server in the server cluster according to the information carried in the connection request specifically includes:
determining a server capable of providing service according to the application identifier carried in the connection request;
acquiring the operation parameters of the server capable of providing the service;
calculating the load condition of the server according to the operation parameters, and selecting the server of which the load condition meets the preset condition;
before the obtaining of the operation parameters of the server capable of providing the service, the method further includes:
judging whether the application version carried in the connection request is a new version or not;
when the application version is an old version, acquiring the operating parameters of the server capable of providing the service;
when the application version is a new version, directly selecting a server providing the new version service from the servers capable of providing the service;
before determining a server capable of providing service according to the application identifier carried in the connection request, the method further comprises;
acquiring a unique identification code carried in the connection request;
judging whether the equipment needs to be upgraded or not according to the unique identification code;
when the equipment is judged to need to be upgraded, a server for providing equipment upgrading is selected from the server cluster; otherwise, determining the server capable of providing the service according to the application identification.
CN201610977464.7A 2016-10-28 2016-10-28 Routing server and routing service method for server cluster Active CN106657259B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610977464.7A CN106657259B (en) 2016-10-28 2016-10-28 Routing server and routing service method for server cluster

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610977464.7A CN106657259B (en) 2016-10-28 2016-10-28 Routing server and routing service method for server cluster

Publications (2)

Publication Number Publication Date
CN106657259A CN106657259A (en) 2017-05-10
CN106657259B true CN106657259B (en) 2020-12-01

Family

ID=58806389

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610977464.7A Active CN106657259B (en) 2016-10-28 2016-10-28 Routing server and routing service method for server cluster

Country Status (1)

Country Link
CN (1) CN106657259B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107659473A (en) * 2017-09-28 2018-02-02 努比亚技术有限公司 Connection control method, system, routing server and computer-readable recording medium
CN109672790B (en) * 2018-09-20 2021-10-01 平安科技(深圳)有限公司 Traffic request drainage method, device, equipment and readable storage medium
CN109582684B (en) * 2018-11-30 2021-11-09 深圳市乐信信息服务有限公司 Local cache data updating method and device, server and storage medium
CN111464574B (en) * 2019-01-21 2022-10-21 阿里巴巴集团控股有限公司 Calling, loading, registering and managing method and route, server, node and medium
CN110750289B (en) * 2019-10-25 2022-05-31 中电福富信息科技有限公司 Gray switching state maintaining method for distributed system
CN113391759B (en) * 2020-03-13 2024-04-09 华为云计算技术有限公司 Communication method and equipment
CN112559013A (en) * 2020-12-24 2021-03-26 厦门亿联网络技术股份有限公司 Video conference service system and gray scale upgrading method and device thereof

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103118076A (en) * 2013-01-11 2013-05-22 烽火通信科技股份有限公司 Upgraded server cluster system and load balancing method thereof
CN103179217A (en) * 2013-04-19 2013-06-26 中国建设银行股份有限公司 Load balancing method and device applicable to WEB application server group
CN105808274A (en) * 2014-12-30 2016-07-27 航天信息股份有限公司 Software upgrading method and system as well as corresponding clients and servers
CN105978950A (en) * 2016-04-27 2016-09-28 努比亚技术有限公司 Server resource distribution method, apparatus and system thereof

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9614687B2 (en) * 2014-06-06 2017-04-04 Cisco Technology, Inc. Dynamic configuration of a conference system with distributed media agents

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103118076A (en) * 2013-01-11 2013-05-22 烽火通信科技股份有限公司 Upgraded server cluster system and load balancing method thereof
CN103179217A (en) * 2013-04-19 2013-06-26 中国建设银行股份有限公司 Load balancing method and device applicable to WEB application server group
CN105808274A (en) * 2014-12-30 2016-07-27 航天信息股份有限公司 Software upgrading method and system as well as corresponding clients and servers
CN105978950A (en) * 2016-04-27 2016-09-28 努比亚技术有限公司 Server resource distribution method, apparatus and system thereof

Also Published As

Publication number Publication date
CN106657259A (en) 2017-05-10

Similar Documents

Publication Publication Date Title
CN106657259B (en) Routing server and routing service method for server cluster
CN108833521B (en) Message pushing method, device, system, computer equipment and storage medium
US9781192B2 (en) Device management service
CN103955381A (en) Method and system for management server to perform batch software update on terminal equipment
HUE026413T2 (en) Method for terminal configuration and management and terminal device
US20150058834A1 (en) Distributing software for updating of client devices
US20150067667A1 (en) Validating availability of firmware updates for client devices
CN103649919A (en) Smartphone apps in a cloud
CN110445697B (en) Video big data cloud platform equipment access service method
CN113630266B (en) Method and device for instantiating edge application server
CN114338063B (en) Message queue system, service processing method and computer readable storage medium
CN111327650A (en) Data transmission method, device, equipment and storage medium
CN111638891A (en) Equipment upgrading method and device, terminal equipment and storage medium
CN111130902A (en) Switch management method, device and storage medium
KR20110131995A (en) Server and method for providing device management service and device to be provided the service
CN106411713B (en) State notification method and server
CN113645314B (en) Private cloud deployment method and server
CN115314571A (en) Cloud protocol gateway implementation method and system supporting heterogeneous device access
US20030149889A1 (en) Automatic communication and security reconfiguration for remote services
CN109413117B (en) Distributed data calculation method, device, server and computer storage medium
CN108900603A (en) A kind of server discovery methods, devices and systems
CN111901298A (en) Method and device for determining cloud short message platform during SSLVPN authentication and electronic equipment
CN113141390B (en) Netconf channel management method and device
CN114338383A (en) Simplified configuration method and system for video equipment
CN105808418B (en) Test machine register method, apparatus and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20201030

Address after: 519000 206-208, 2 floor, innovation world 2, jilda Jing Le Road, Xiangzhou District, Zhuhai, Guangdong.

Applicant after: Guangdong Yiwangtong Technology Co., Ltd

Address before: 518057 Guangdong Province, Shenzhen high tech Zone of Nanshan District City, No. 9018 North Central Avenue's innovation building A, 6-8 layer, 10-11 layer, B layer, C District 6-10 District 6 floor

Applicant before: NUBIA TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant