CN105376332A - Load migration method for mobile phone game servers - Google Patents
Load migration method for mobile phone game servers Download PDFInfo
- Publication number
- CN105376332A CN105376332A CN201510921503.7A CN201510921503A CN105376332A CN 105376332 A CN105376332 A CN 105376332A CN 201510921503 A CN201510921503 A CN 201510921503A CN 105376332 A CN105376332 A CN 105376332A
- Authority
- CN
- China
- Prior art keywords
- server
- game server
- mobile phone
- load
- clients
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
- H04L67/1004—Server selection for load balancing
- H04L67/1021—Server selection for load balancing based on client or server locations
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
- H04L67/1004—Server selection for load balancing
- H04L67/1012—Server selection for load balancing based on compliance of requirements or conditions with available server resources
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a load migration method for mobile game servers. The method includes the following steps that: 1) a connection threshold value of a single game server is set; 2) the single game server monitors the number of clients which login the game server in real time; 3) whether the number of the clients is greater than the connection threshold value is judged according to the monitored number of the clients, if the number of the clients is greater than the connection threshold value, step 4) is executed, otherwise, the method returns to step 2); 4) excess clients are put in a waiting queue, and a server list is looked up, so that an idle game server which is closest to the single game server can be found out; and (5) the connections of the clients are transferred to the idle game server, and the clients can login the idle game server. According to the load migration method of the invention, a load migration module is utilized to limit the resources of the single server, and therefore, a situation that a large number of users login the single server at the same time can be avoided, and the exhaustion of the resources of the server can be prevented, and the normal operation of a mobile phone game can be ensured. The load migration method has a bright application prospect.
Description
Technical field
The present invention relates to a kind of load for mobile phone games server and migrate method, belong to mobile phone games development technique field.
Background technology
A few days ago, along with the continuous lifting of mobile phone soft hardware performance, mobile phone games have also been obtained fast development.The capacity of mobile phone games is also increasing, and, the user logged in also gets more and more, thus cause mobile phone games server can bear maximum resource load, when a large number of users logs in same game server simultaneously, the resource of moment this server a large amount of can be taken, cause the exhaustion of server resource, thus affect user's login, even there is the phenomenon of servers go down.
Summary of the invention
The present invention seeks in order to overcome existing amount user log in same game server time, the resource of this server a large amount of can be taken, cause the exhaustion of server resource, even occur the phenomenon of servers go down.Load for mobile phone games server of the present invention migrates method, adopt load to migrate the resource of module to individual server to limit, a large number of users can be solved and log in single server simultaneously, prevent the exhaustion of server resource, ensure the normal operation of mobile phone games, have a good application prospect.
In order to achieve the above object, the technical solution adopted in the present invention is:
Load for mobile phone games server migrates a method, it is characterized in that: comprise the following steps,
Step (1), arranges the connect threshold of single game server;
Step (2), single game server real-time listening logs in the client terminal quantity of this game server;
Step (3), according to the client terminal quantity listened to, judges whether to be greater than connection connect threshold; If be greater than, then perform step (4); Otherwise, return step (2);
Step (4), puts into the client exceeding client terminal quantity and puts waiting list, and search server list, finds the idle game server near single game server;
Step (5), by the handoff of client to idle game server, carries out client logs.
The aforementioned load for mobile phone games server migrates method, it is characterized in that: the quantity of described connect threshold is between 1-255.
The aforementioned load for mobile phone games server migrates method, it is characterized in that: step (2), single game server real-time listening be spaced apart 2-4s.
The aforementioned load for mobile phone games server migrates method, it is characterized in that: step (2), single game server real-time listening be spaced apart 3s.
The aforesaid load for mobile phone games server migrates method, it is characterized in that: step (4) searches server list, the idle game server method near single game server is found to be, looked-up sequence be same subnet to same local area network (LAN) to the Internet, and increase one by one according to IP address and search.
The aforesaid load for mobile phone games server migrates method, it is characterized in that: the client terminal quantity that described idle game server connects is less than the half of connect threshold.
The invention has the beneficial effects as follows: the load for mobile phone games server of the present invention migrates method, adopt load to migrate the resource of module to individual server to limit, a large number of users can be solved and log in single server simultaneously, prevent the exhaustion of server resource, ensure the normal operation of mobile phone games, have a good application prospect.
Accompanying drawing explanation
Fig. 1 is the flow chart that the load for mobile phone games server of the present invention migrates method.
Embodiment
Below in conjunction with Figure of description, the present invention will be further described.Following examples only for technical scheme of the present invention is clearly described, and can not limit the scope of the invention with this.
Load for mobile phone games server of the present invention migrates method, adopt load to migrate the resource of module to individual server to limit, a large number of users can be solved and log in single server simultaneously, prevent the exhaustion of server resource, ensure the normal operation of mobile phone games, as shown in Figure 1, comprise the following steps
Step (1), arranges the connect threshold of single game server, and the quantity of connect threshold is between 1-255;
Step (2), single game server real-time listening logs in the client terminal quantity of this game server, real-time listening be spaced apart 2-4s, preferred 3s;
Step (3), according to the client terminal quantity listened to, judges whether to be greater than connection connect threshold; If be greater than, then perform step (4); Otherwise, return step (2);
Step (4), the client exceeding client terminal quantity is put into and puts waiting list, and search server list, find the idle game server near single game server, looked-up sequence is that same subnet is to same local area network (LAN) to the Internet, and increase one by one according to IP address and search, such guarantee finds the idle game server near single game server, and the client terminal quantity that described idle game server connects is less than the half of connect threshold;
Step (5), by the handoff of client to idle game server, carries out client logs.
More than show and describe general principle of the present invention, principal character and advantage.The technical staff of the industry should understand; the present invention is not restricted to the described embodiments; what describe in above-described embodiment and specification just illustrates principle of the present invention; without departing from the spirit and scope of the present invention; the present invention also has various changes and modifications, and these changes and improvements all fall in the claimed scope of the invention.Application claims protection range is defined by appending claims and equivalent thereof.
Claims (6)
1. the load for mobile phone games server migrates a method, it is characterized in that: comprise the following steps,
Step (1), arranges the connect threshold of single game server;
Step (2), single game server real-time listening logs in the client terminal quantity of this game server;
Step (3), according to the client terminal quantity listened to, judges whether to be greater than connection connect threshold; If be greater than, then perform step (4); Otherwise, return step (2);
Step (4), puts into the client exceeding client terminal quantity and puts waiting list, and search server list, finds the idle game server near single game server;
Step (5), by the handoff of client to idle game server, carries out client logs.
2. the load for mobile phone games server according to claim 1 migrates method, it is characterized in that: the quantity of described connect threshold is between 1-255.
3. the load for mobile phone games server according to claim 1 migrates method, it is characterized in that: step (2), single game server real-time listening be spaced apart 2-4s.
4. the load for mobile phone games server according to claim 2 migrates method, it is characterized in that: step (2), single game server real-time listening be spaced apart 3s.
5. the load for mobile phone games server according to claim 1 migrates method, it is characterized in that: step (4) searches server list, the idle game server method near single game server is found to be, looked-up sequence be same subnet to same local area network (LAN) to the Internet, and increase one by one according to IP address and search.
6. the load for mobile phone games server according to claim 1 migrates method, it is characterized in that: the client terminal quantity that described idle game server connects is less than the half of connect threshold.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510921503.7A CN105376332A (en) | 2015-12-14 | 2015-12-14 | Load migration method for mobile phone game servers |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510921503.7A CN105376332A (en) | 2015-12-14 | 2015-12-14 | Load migration method for mobile phone game servers |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105376332A true CN105376332A (en) | 2016-03-02 |
Family
ID=55378127
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510921503.7A Pending CN105376332A (en) | 2015-12-14 | 2015-12-14 | Load migration method for mobile phone game servers |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105376332A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10348836B2 (en) | 2017-02-22 | 2019-07-09 | Microsoft Technology Licensing, Llc | Migrating clients between servers |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020026560A1 (en) * | 1998-10-09 | 2002-02-28 | Kevin Michael Jordan | Load balancing cooperating cache servers by shifting forwarded request |
CN102970379A (en) * | 2012-12-19 | 2013-03-13 | 中国电子科技集团公司第十五研究所 | Method for realizing load balance among multiple servers |
CN103873457A (en) * | 2012-12-17 | 2014-06-18 | 人人游戏网络科技发展(上海)有限公司 | Method and equipment for balancing loads among game servers |
CN104142862A (en) * | 2013-12-16 | 2014-11-12 | 腾讯科技(深圳)有限公司 | Overload protection method and device for server |
-
2015
- 2015-12-14 CN CN201510921503.7A patent/CN105376332A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020026560A1 (en) * | 1998-10-09 | 2002-02-28 | Kevin Michael Jordan | Load balancing cooperating cache servers by shifting forwarded request |
CN103873457A (en) * | 2012-12-17 | 2014-06-18 | 人人游戏网络科技发展(上海)有限公司 | Method and equipment for balancing loads among game servers |
CN102970379A (en) * | 2012-12-19 | 2013-03-13 | 中国电子科技集团公司第十五研究所 | Method for realizing load balance among multiple servers |
CN104142862A (en) * | 2013-12-16 | 2014-11-12 | 腾讯科技(深圳)有限公司 | Overload protection method and device for server |
Non-Patent Citations (1)
Title |
---|
苏志同等: "手机游戏开发架构的研究", 《计算机工程与设计》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10348836B2 (en) | 2017-02-22 | 2019-07-09 | Microsoft Technology Licensing, Llc | Migrating clients between servers |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10951733B2 (en) | Route selection method and system, network acceleration node, and network acceleration system | |
US11463511B2 (en) | Model-based load balancing for network data plane | |
US9674279B2 (en) | Methods, devices, and systems for allocating service nodes in a network | |
CN109951347B (en) | Service identification method, device and network equipment | |
US20150312155A1 (en) | System and method for efectuating packet distribution among servers in a network | |
CN109040243B (en) | Message processing method and device | |
US11003516B2 (en) | Geographical redundancy and dynamic scaling for virtual network functions | |
CA2796445A1 (en) | Cloud computing call centers | |
CN113037869A (en) | Method and apparatus for back-sourcing of content distribution network system | |
US20210185083A1 (en) | Packet fingerprinting for enhanced distributed denial of service protection | |
CN112910793B (en) | Method for connection multiplexing in seven-layer load balancing and load balancer | |
CN109756584B (en) | Domain name resolution method, domain name resolution device and computer readable storage medium | |
WO2015014176A1 (en) | Method, device, scheduling server and system for network allocation | |
CN104079668B (en) | A kind of DNS load balancing adjusting method and system | |
Mijumbi | On the energy efficiency prospects of network function virtualization | |
WO2020190656A8 (en) | Server load prediction and advanced performance measures | |
CN107864189A (en) | A kind of application layer traffic load-balancing method based on DPI | |
CN103763206A (en) | Network scheduling method and gateway | |
CN104918258A (en) | Communication method in high-speed railway operation | |
CN105376332A (en) | Load migration method for mobile phone game servers | |
WO2021023141A1 (en) | Method and apparatus for obtaining routing table entry, and device | |
WO2017149355A1 (en) | Content distribution and delivery optimization in a content delivery network (cdn) | |
CN107301092B (en) | Energy-saving method, device and system for cloud computing resource pool system | |
CN114827159B (en) | Network request path optimization method, device, equipment and storage medium | |
CN114244850B (en) | Data packet processing method and device, computer equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160302 |