CN106302434A - Server adaptation method, device and system - Google Patents

Server adaptation method, device and system Download PDF

Info

Publication number
CN106302434A
CN106302434A CN201610657446.0A CN201610657446A CN106302434A CN 106302434 A CN106302434 A CN 106302434A CN 201610657446 A CN201610657446 A CN 201610657446A CN 106302434 A CN106302434 A CN 106302434A
Authority
CN
China
Prior art keywords
server
game
game client
time delay
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.)
Granted
Application number
CN201610657446.0A
Other languages
Chinese (zh)
Other versions
CN106302434B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201610657446.0A priority Critical patent/CN106302434B/en
Publication of CN106302434A publication Critical patent/CN106302434A/en
Application granted granted Critical
Publication of CN106302434B publication Critical patent/CN106302434B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/131Protocols for games, networked simulations or virtual reality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/80Actions related to the user profile or the type of traffic
    • H04L47/801Real time traffic
    • 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/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/61Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources taking into account QoS or priority requirements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

This application provides a kind of server adaptation method, device and system, the method includes, obtain the game enabled instruction that game client generates, it is that this game client starts target game business that this game enabled instruction is used for indicating game service system, and this game service system includes at least two for processing this target game business and being deployed in the server of different regions;Determine that this game client accesses the access time delay of this server;According to access time delay, determine from these at least two described servers and meet pre-conditioned destination server;This game client is indicated to start this target game business to destination server request.The scheme of the application can reduce exchanging game data situation not in time.

Description

Server adaptation method, device and system
Technical field
The application relates to communication technical field, particularly to a kind of server adaptation method, device and system.
Background technology
Global game with clothes refers to that the game player in the whole world plays based on same set of server architecture, same by the whole world Clothes game can realize the game sports between country variant and the game player in area.
But the game player in country variant and area is connected to the network condition diversity of this server architecture relatively greatly, this , for the game that some requirement of real-times are higher, the most often there is exchanging game data situation not in time in sample, thus Cause the game data between the game player of different regions, the whole world asynchronous or cause game player cannot be normally carried out trip Play.
Summary of the invention
This application provides a kind of server adaptation method and device, to reduce exchanging game data situation not in time, The situation that game is abnormal occurs reducing the game player of different regions, the whole world, and improve different regions, the whole world game player it Between data syn-chronization.
In order to solve the problems referred to above, on the one hand, this application provides a kind of server adaptation method, including:
Obtaining the game enabled instruction that game client generates, described game enabled instruction is used for indicating game service system Starting target game business for described game client, described game service system includes at least two for processing described target Game service and be deployed in the server of different regions;
Determine that described game client accesses the access time delay of described server;
According to described access time delay, determine from described at least two described servers and meet pre-conditioned destination service Device;
Described game client is indicated to start described target game business to the request of described destination server.
On the other hand, the embodiment of the present application additionally provides a kind of server adaptive device, including:
Instruction acquiring unit, for obtaining the game enabled instruction that game client generates, described game enabled instruction is used Being that described game client starts target game business in instruction game service system, described game service system includes at least two Platform is for processing described target game business and being deployed in the server of different regions;
Time delay determines unit, for determining that described game client accesses the access time delay of described server;
Server determines unit, for according to described access time delay, determines full from described at least two described servers The destination server that foot is pre-conditioned;
Start indicating member, be used for indicating described game client to start the trip of described target to the request of described destination server Play business.
A kind of server adaption system, including:
Game service system and at least one game client;
Wherein, described game service system includes: speed adapter and be connected with described speed adapter at least two Platform is for processing target game business and being deployed in the server of different regions;
Wherein, described game client, for sending game enabled instruction to described speed adapter, described game starts Instruction is used for asking to start target game business;
Described speed adapter, accesses the access time delay of every described server for obtaining described game client;Root According to described access time delay, determine from described at least two described servers and meet pre-conditioned destination server;Instruction institute State game client and start described target game business to the request of described destination server.
As known from the above, in the application, game service system includes at least two for the service processing target game business Device, and this at least two-server is deployed in different areas respectively, meanwhile, accesses these at least two clothes according to game client The access time delay of business device, determines the destination server asking to access needed for this target game business for this game client, thus Exchanging game data situation not in time can be reduced, improves during game client operational objective game service Game player carries out the game experiencing of target game business.It is also possible to reduce to go out between the game client of different regions The existing nonsynchronous situation of game data, improves the fairness of game.
Accompanying drawing explanation
For the technical scheme being illustrated more clearly that in the embodiment of the present application, in embodiment being described below required for make Accompanying drawing be briefly described, it should be apparent that, the accompanying drawing in describing below is only some embodiments of the application, for From the point of view of those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to obtain it according to these accompanying drawings His accompanying drawing.
Fig. 1 shows one embodiment of a kind of game service system that the application a kind of server adaptation method is suitable for Composition structural representation;
Fig. 2 shows the schematic flow sheet of the application a kind of server one embodiment of adaptation method;
Fig. 3 shows the schematic flow sheet of the application a kind of server another embodiment of adaptation method;
Fig. 4 shows the composition structural representation of the application a kind of server one embodiment of adaption system;
Fig. 5 shows the mutual schematic diagram of flow process of the application a kind of server another embodiment of adaptation method;
Fig. 6 shows the application a kind of server adaptation method mutual schematic diagram of flow process under PVP game service scene;
Fig. 7 a shows that game client request starts the possible schematic diagram of one at the interface of target game business;
Fig. 7 b shows that game client waits the possible schematic diagram of one at the interface entering PVP game room;
Fig. 7 c shows the possible schematic diagram of one at the interface behind game client entrance PVP game room;
Fig. 8 shows the schematic flow sheet of the application a kind of server another embodiment of adaptation method;
Fig. 9 shows the structural representation of the application a kind of server one embodiment of adaptive device;
Figure 10 shows the hardware structure schematic diagram of the application one embodiment of a kind of server.
Detailed description of the invention
The business scenario that the embodiment of the present invention describes is the technical scheme in order to the embodiment of the present invention is more clearly described, Being not intended that the restriction of the technical scheme provided for the embodiment of the present invention, those of ordinary skill in the art understand, along with network The differentiation of framework and the appearance of new business scene, the technical scheme that the embodiment of the present invention provides is for similar technical problem, same Sample is suitable for.
The server adaptation method of the application is applicable to start target trip at game client to game service system request During play business, from game service system in the multiple servers processing this target game business, determine as this game The scene of the server of this target game business of client terminal start-up.
In the embodiment of the present application, game client can run on the terminals such as mobile phone, notebook computer, desktop computer On.
The target game business that game client is asked can be the game service higher to requirement of real-time, such as this mesh Mark game service can be the game service of player and player's battle (PVP, Player VS Player);And for example, target game Business can also player and the game service of environment battle (PVE, Player VS Environment).Certainly, this target game Business can also is that other game services, is not any limitation as at this.
For a kind of target game business, this game service system deploys at least two for processing this target game industry The server of business, this at least two-server is respectively deployed in different regions.Wherein, different regions refer to different geographic region Territory.Optionally, in the embodiment of the present application, different regions can refer to the geographic area corresponding to country variant.Certainly, this service Which country implement body is deployed in and can set as required.As, as a example by PVP plays, dispose in this game service system Three for processing the servers of PVP game service, and this three platforms are for processing the server difference portion of PVP game service It is deployed in country A, country B and the country geographic area corresponding to C.
Meanwhile, the embodiment of the present application when get game client generate the game for request target game service open After dynamic instruction, the access of these at least two servers for processing this target game business can be accessed according to game client Time delay, selects the destination service for starting this target game business for this game client from this at least two-server Device, so, is conducive to selecting from game service system being suitably for this game client and processing the clothes of this target game business Business device, reducing game client access time delay in carrying out target game business, reduces exchanging game data not in time Situation.
In order to make it easy to understand, first the game service system of the embodiment of the present application is introduced.
Such as Fig. 1, it illustrates a kind of structure composed schematic diagram of the game server system of the embodiment of the present application, this enforcement The game server system of example may include that
At least two match servers 101 being used for processing this target game business, and these at least two match servers 101 are respectively deployed in different areas.
Every match server is respectively connected with at least one service server 102.
Wherein, the service server that every match server is connected with this match server actually constitutes an industry Business processing subsystem 10, as dotted line collimation mark each in Fig. 1 illustrates a service process subsystem 10.
Wherein, this match server be responsible for service server distribution process target game business task, so, this Join server for receive game client send for ask start target game business game start request after, and by Match server is the service server that this game client distribution processes this target game business.Accordingly, service server It can be this game client game data of processing that this target game business is relevant.In that case, the embodiment of the present application Mentioned can be this match server for processing the server of this target game business.Accordingly, game client exists The time delay situation of data during operational objective game service, can access the visit of match server by test game client Ask that time delay determines.
Certainly, Fig. 1 is to be respectively provided with as a example by match server by each service process subsystem to be introduced, but in reality In application, service process subsystem can only include one for the service server processing target game business, thus nothing Match server need to be disposed in service process subsystem and distribute the task of processing target game business.Or, business System only actually is deployed with a station server, and this server combines the merit of match server and multiple stage service server Can, say, that the internal processing resource of this server can be divided into multiple resource area, server can be as required by trip The target game traffic assignments of play client request processes to different resource area.In that case, the application is real Execute example and can only include that at least two are distributed in different regions and for processing the server of this target game business, this service Device may be used for game client and starts this target game business, and processes this game client and run this target game business Produced Business Processing.
It is understood that in current game service system with service process subsystem include match server and Multiple stage service server is as a kind of optimal way, as such, it is possible to business demand amount as required, increases in this service sub-system Add deduct few service server, to meet Business Processing demand.
In the embodiment of the present application, in each service process subsystem can be arranged at a machine room.
It is understood that in addition to service process subsystem is disposed respectively in multiple areas, this game service system is also Can include the global control system 11 being connected with the plurality of service process subsystem by network, this global control system is still Being the same clothes in the whole world, this global module can be deployed in a machine room.Can include that logic takes in this global control system 11 The business server such as device and account settlement server.As, the logging request that this logical server is responsible for sending game client is tested Card, to verify whether the username and password entrained by logging request mates;This account settlement server is for obtaining different game Client is produced game result during carrying out different game service.
In view of during game client operational objective game service, affect the server master of data real-time, interactive If the server of the business datum for processing this target game business, therefore, can only exist in the embodiment of the present application Multiple service sub-systems are disposed at least two different regions, and without all disposing logical server, clearing service in different regions Other servers such as device, to reduce resource cost.
As, as a example by target game business is for PVP game service, in this game service system, only can select at least two Individual key area disposes the real-time on PVP game service respectively affects bigger PVP server, certainly, comprises in each region In the case of multiple stage PVP server, in addition it is also necessary at the match server that each regional deployment is connected with this multiple stage PVP server.
In conjunction with Fig. 1, a kind of server adaptation method of the embodiment of the present application is introduced, as seen Fig. 2, it illustrates The schematic flow sheet of the application a kind of server one embodiment of adaptation method, the server adaptation method of the present embodiment can be answered For game client;The method can also be applied in the given server of game service system, e.g., is applied to game services The speed adapter disposed in intrasystem global control system;The method can also be applied to be erected at game client and trip In communication equipment between play service system.
The server adaptation method of this enforcement may include that
201, obtain the game enabled instruction that game client generates.
Wherein, this game enabled instruction is used for indicating game service system is that this game client starts target game industry Business.As, when the game player of game client wishes to start PVP game service, game client will generate request and start PVP The instruction of game service.
In the present embodiment, game service system includes at least two for processing this target game business and being deployed in difference The server in area.As, this server can be the match server of distribution target game business, and game service system can wrap Including at least two match servers being deployed in different regions, every match server connects has at least one to process target game The service server of the business datum of business;And for example, it has been not connected with coupling service when the service server in game service system In the case of device, may refer to process the business of this target game business for processing the server of this target game business herein The service server of data.
If do not illustrated in the application any embodiment, the server being previously mentioned refers both to for processing this target game The server of business.
202, determine that this game client accesses the access time delay of this server.
Wherein, the access time delay of game client access server refers to: send visit from game client to this server Ask and ask to game client to receive the duration between the response that this server returns for this access request.
In the embodiment of the present application, need to determine that game client accesses every for processing this target game business respectively The access time delay of server, so, this at least two-server correspond to the data of at least two access time delay.
Wherein, this game client accesses the access time delay of this server and can determine in several ways.As, one Plant in possible implementation, the Internet packets locator (PING, Packet can be carried out by game client Internet Groper) test determine that game client accesses the access time delay of this server, concrete, can be game Client sends the packet (or perhaps a ping order) of a detection to this server, and server is receiving this After the packet of detection, a response can be returned to game client, so, send the packet of this detection based on this With receive the time interval of response, just can determine that access time delay.It is, of course, also possible to have other modes to obtain this game The access time delay of this server of client-access, is not any limitation as at this.
It should be noted that when this server adaptation method is applied to game client, game visitor can be obtained respectively Family end carries out testing obtained access time delay for each server;When this server adaptation method is applied to game client Outside communication equipment or during server, the data of the access time delay that test can be obtained by game client are sent to Communication equipment or server.
203, according to access time delay, determine to meet from least two these servers that game service system includes and preset bar The destination server of part.
Wherein, this is pre-conditioned can multiple situation, and e.g., pre-conditioned can be that access time delay is in the access specified Reference time delay, the access time delay such as specified may range from 0-250ms, if during the access of client-access station server Prolong in the range of being in this access time delay specified, then can be using this station server as destination server.
Optionally, this pre-conditioned may include that access time delay sequence from high to low be in before specify in the range of.As, Meeting pre-conditioned destination server can be the server in the range of minimum first 5 of access time delay, and for example, meets and presets The destination server of condition can be that access time delay sequence from high to low is in deputy server.
It is understood that in the embodiment of the present application, enter for the ease of being unsatisfactory for pre-conditioned server with other Row is distinguished, will be from this at least two-server, and this game client request determined is visited needed for starting target game business The server asked is referred to as destination server.
It should be noted that in the embodiment of the present application, from meeting, pre-conditioned server can be selected one Server starts the destination server accessed needed for this target game business as the request of this game client;Can also be by full Sufficient pre-conditioned Servers-all is all as destination server, and is finally determined to which platform target clothes by game client Business device request starts this target game business.
Further, in order in target game business procedure, game client can obtain in time from server Game service data, in the embodiment of the present application, access time delay sequence from high to low is the most permissible in the range of specifying before being in For: access time delay is minimum.
204, instruction game client starts target game business to destination server request.
After determining destination server, may indicate that game client sends game service to this destination server and asks Ask, to start this target game business to the request of this destination server, thus be this game client by this destination server Start this target game business, and on game client, run this target game business.
It should be noted that when this server adaptation method is applied to game client, this step 204 can be to trigger Game client starts this target game business to the request of this destination server;When this server adaptation method is applied to game visitor When communication equipment outside the end of family or server, can send to this game client and access instruction, this access instruction is used This target game business is started to the request of this destination server in instruction game client.
In the embodiment of the present application, game service system includes at least two for the service processing target game business Device, and this at least two-server is respectively at different areas, meanwhile, accesses these at least two services according to game client The access time delay of device, processes the destination server accessed needed for this target game business for this game client distribution, thus can With during game client operational objective game service, reduce exchanging game data situation not in time, improve trip Play player carries out the game experiencing of target game business.It is also possible to avoid appearance between the game client of different regions The nonsynchronous situation of game data, improves the fairness of game.
Further, it is contemplated that the load state of server influences whether the stability of target game business, therefore, is entering In row target game business procedure, in order to ensure the promptness of data interaction between game client and game service system and steady Qualitative, in the embodiment of the present application, after getting the game enabled instruction that game client generates, it is also possible to obtain current For processing the load of every station server of this target game business in this game server system of moment.Accordingly, this is determined The pre-conditioned of destination server can also include: load is in default threshold range.It is to say, only according to when accessing When prolonging sequence from high to low, in the range of the access time delay that this server is corresponding is specified before being in and the load of this server is in In the threshold range preset, then this server can be defined as the target game of request needed for processing this game client The destination server of business.
Wherein, this threshold range preset can set as required, is typically in what this was preset with the load of server Time in threshold range, the performance condition of this server is preferably advisable.As, this threshold range preset can be less than specifying percentage Ratio.
As, see Fig. 3, it illustrates the schematic flow sheet of the application a kind of server another embodiment of adaptation method, The server adaptation method of the present embodiment can apply to game client;Certain clothes of game service system can also be applied to In business device, e.g., in the logical server of game service system;Can also be applied to be set up in game client and game services system In communication equipment between system.
The method of the present embodiment may include that
301, obtain the game enabled instruction that game client generates.
Wherein, this game enabled instruction is used for indicating game service system is that this game client starts target game industry Business.
In the present embodiment, game service system includes at least two for processing this target game business and being deployed in difference The server in area.
This step may refer to the related introduction of step 201 in Fig. 2 embodiment, does not repeats them here.
302, obtain in current time game service system for processing the negative of every station server of this target game business Carry.
Wherein, this load can reflect the performance of server, if this load can be processor, internal memory etc. in server The occupancy of resource.
Certainly, in the case of with room mode operational objective game service, ask when server receives game client When seeking this target game business, can distribute a room for game client, a room is actually configured with the hardware specified And the resource such as software, so, subsequent game client is run game service data produced by this target game business and is all Completing data based on the resource corresponding to this room to process, in that case, the load of server can also be by clothes The proportion of Zhan Zong room, the room quantity taken of business device embodies.
303, determine the server set that the server that load is in preset threshold range is formed.
Wherein, this server set includes at least one for the server processing this target game business.
304, obtain game client and access the access time delay of every station server in this server set.
It is understood that the quantity of the server of the access time delay of needs test is the most, the required consumption of test access time delay The Internet resources taken and duration also can be the longest, meanwhile, if the load of server is not in this preset threshold range, no matter How this game client accesses the access time delay of this server, is defined as destination server all without by server.Therefore, for Reduce test Internet resources spent by access time delay, and reduce the required duration expended of test access time delay, can be only The test of time delay that the server that is in preset threshold range of load is conducted interviews, thus obtain game client and access this clothes Access time delay needed for every station server in business device set.
Certainly, when obtaining access time delay, only obtain game client and access this load and be in preset threshold range Server needed for access time delay be one preferred embodiment.In actual applications, it is also possible to be to use Fig. 2 embodiment Mode obtain game client respectively and access the access time delay of every this server, in that case, can first obtain every The load of station server, then obtain the access time delay of the game client every station server of access;Can also be when obtaining current While carving the load of every station server, obtain game client and access the access time delay of every station server.
305, from this server set, determine the destination server that access time delay is minimum.
In order to improve the efficiency matching destination server, accordingly, as a kind of preferred implementation, determining load After the server set being in preset range, directly can select access time delay from this server set and meet default The destination server of condition.
It is of course also possible to be after the access time delay of the load and every station server of determining every station server, root According to the load of every this server in game service system and access time delay, determine and meet pre-conditioned server.
It is understood that in the present embodiment as a example by the destination server the determined server minimum for access time delay Illustrate, but be applied equally to the present embodiment in the case of in the range of specifying before the sequence of access time delay is in.
306, indicate this game client to start this target game business to the request of this destination server.
In the present embodiment, the access time delay of server and the load feelings that server is current are accessed according to game client Condition, returns for game client and starts the destination server accessed needed for this target game business, such that it is able to be game client End selects a destination server that access speed is more excellent and load is applicable, and then is conducive to running this mesh at game client During mark game service, reduce data interaction situation not in time, thus reduce the game picture card that game client occurs Or different game client between the nonsynchronous situation of game data, and then be conducive to improving this target game business Game experiencing, also improves the fairness of game.
Further, in one embodiment of the application any of the above, determine that request starts for game client every time After the required destination server accessed of target game business, it is also possible to this game client is currently logged in this game services system The agreement (IP, Internet Protocol) of interconnection between the network that the user account that used of system, this game client are current The corresponding relation of address and this destination server stores in history access record.So, game client life is being got After the game enabled instruction become, can first determine that this game client currently logs in the user that this game service system is used Account and IP address, and inquire about whether this history access record exists and currently log in this game services with this game client The information of the destination server that the current IP address of user account that system is used, game client is corresponding, if history is visited Ask the information that there is this destination server in record, then can directly indicate game client to start to the request of this destination server Target game business;If there is no this destination server, perform the most again to determine that game client accesses this game service system In the operation such as access time delay of every station server, finally to determine this destination server.
It is understood that the server adaption system that the server adaptation method of the embodiment of the present application is applicable to is permissible Game service system and at least one game client including embodiment illustrated in fig. 1.In order to make it easy to understand, see Fig. 4, its Show a kind of server another embodiment of adaption system that the server adaptation method of the embodiment of the present application is applicable to Composition structural representation.
Such as Fig. 4, this server adaption system may include that game service system 41, and this game server system includes entirely Office's control system 410 and be connected with this global control system and be deployed at least two service process subsystem of different regions 420。
Service process subsystem 420 can include match server 421 and be connected at least with match server 421 One service server 422.
This server adaption system also includes: at least one game client 42.
Optionally, this global control system 410 is also provided with speed adapter 411, this speed adapter 411 with Match server 421 is connected by this network.This speed adapter can obtain the load of match server.As, coupling service Device can be by the load active reporting of self to speed adapter, and such as, match server is in real time or according to the default cycle The load of self is reported once every fixing duration;Can also be to be sent load acquisition by speed adapter to match server to ask After asking, self load current is sent to rate matchers by match server.
It is understood that this speed adapter can exist as the equipment of a platform independent in the embodiment of the present application, Can also be to be built in the server that global control system is intrinsic, as this speed adapter is built into patrolling of global control system Collect in server.
Based on Fig. 4, seeing Fig. 5, the flow process that it illustrates the application a kind of server another embodiment of adaptation method is shown Being intended to, the method for the present embodiment may include that
501, game client speed adapter in game service system sends game enabled instruction.
Wherein, this game enabled instruction carries this game client and currently log in the use used by this game service system Family account and IP address.Certainly, this game enabled instruction can carry the address of this speed adapter, e.g., speed adaption Domain name corresponding to device.
This game enabled instruction is used for asking to start target game business.As, this target game business can be PVP game Business.
502, whether speed adapter, in response to this game enabled instruction, exists and this game in detection history access record Object matching server corresponding to the user account of client and IP address.
Wherein, this history access record records have: before current time, different user account and IP address are corresponding Game client request starts the match server that this target game business is accessed.
It is understood that in order to ensure the mesh corresponding with user account and IP address of record in history access record Mark match server is similarly this game client and currently carries out the match server that target game business is suitable for accessing, this speed Degree adapter can be with this history access record of regular update, e.g., before can also having recorded current time in history access record The historical juncture of this history match server is distributed, if this historical juncture distance is current for this user account and this IP address The duration in moment exceedes appointment duration (e.g., this appointment duration can be two hours), then by this user account and IP address with The corresponding relation of this object matching server is deleted from this history access record.Therefore, this history access record is only remembered Record specifies game client request corresponding to different user account in duration and IP address to start this mesh before having current time The match server that mark game service is accessed.
503, if history access record exists the mesh corresponding with the user account of this game client and IP address Mark match server, then speeds match server sends to this game client and accesses instruction, and this access instruction carries this mesh The mark of mark match server.
Wherein, this access instruction is used for indicating this game client to start the trip of this target to this object matching server request Play business.
Optionally, the mark of this object matching server can be the address information of object matching server, such as this mesh The domain name of mark match server.
It should be noted that step 502 and step 503 are optional step, can also directly perform speed in actual applications Degree adapter obtains the operation of the load of current time every match server.
504, if history access record not existing the user account with this game client and IP address is corresponding History match server, then speed adapter obtains the load of current time every match server.
It should be noted that obtain herein the load of match server mode can any-mode as previously mentioned, As speed adapter instruction match server reports load, or match server can report the negative of self in real time or periodically Carry, so that speed adapter can inquire the load of every match server.
In the embodiment of the present application, this match server is for the target game traffic assignments asked by game client To service server.Owing to match server is responsible for safeguarding the load condition of the service server that this match server connects, and Being the task that service server distribution processes target game business according to load condition, therefore, the load of this match server is real The load of at least one service server that this match server is connected is can be understood as on border.
It is understood that the embodiment of the present application is to include being introduced as a example by match server, then by service sub-system The match server for distributing this target game business is can be understood as processing the server of this target game business.Special Other, when service sub-system only includes a service server, in other words, service server is with match server actually When being a station server, then the server being used for processing this target game business can be understood as starting target game industry Business, and the service server of this target game business resource requirement is processed for game client distribution.
505, speed adapter, from these at least two match servers, determines the load coupling clothes less than predetermined threshold value The match server set that business device is formed.
506, speed adapter carries this coupling to the test instruction of game client transmission delay, the instruction of this delay testing The mark of every match server in server set.
Wherein, the mark of this match server may be used for uniquely identifying match server.As, the name of this match server , the mark of this match server can be called the address of match server.
507, game client is according to the mark of every match server in match server set, and test game is objective respectively Family end accesses the access time delay of every match server in this match server set.
As, the match server in match server set is defined as needing the delay testing that conducts interviews by game client Match server, and according to the mark of match server, send test packet to this match server, then according to sending Between the moment of the response data packet that the moment of this test packet and this match server return for this test packet Duration, determines access time delay.Such as, game client can use ping testing to determine access time delay.
It is, of course, also possible to have other modes to determine that game client accesses the mode of the access time delay of match server, It is not any limitation as at this.
It is understood that generally, game client tests the access of this game client and match server Time time delay, this game client is it needs to be determined that the address of match server.And game client determines the address of match server Mode can have multiple situation, in the case of one, in game client can the address of each match server preset, this Sample, when game client receives delay testing instruction, the mark of match server in can indicating according to this delay testing, Obtain the address of this preset match server, then according to the address of this match server, this match server is visited Ask, to determine access time delay.
Optionally, in order to reduce the data volume of storage in game client, the delay testing that this speed adapter sends refers to The mark of the match server carried in showing can be the address of match server, and so, game client can be with direct basis The address of this match server, test game client accesses the access time delay needed for this match server.Wherein, this coupling clothes The address of business device can be the domain name of match server.
508, speed adapter receives the access time delay data that game client sends, and these access time delay data include test Access time delay needed for every match server in this match server set of client-access.
509, speed adapter determines that from match server set access time delay is minimum and load is less than predetermined threshold value Object matching server.
Further, it is contemplated that game client test access time delay can exist certain time delay, in order to avoid in game Client test access time delay during, the loading condition of match server changes, in the embodiment of the present application, from After this match server set is determined the match server that access time delay is minimum, it is also possible to obtain this access time delay minimum The load of match server current time, if the load of the minimum match server of this access time delay of current time still less than This predetermined threshold value, then be defined as object matching server by this match server;Otherwise, then need from match server set Present load, less than in the match server of predetermined threshold value, chooses the object matching server that access time delay is minimum again.
Certainly, the present embodiment is the object matching server selected be that the minimum match server of access time delay is Example is introduced, but in actual applications, it is also possible to sort from small to large according to access time delay, be in front finger from access time delay Location and load choose a station server as match server less than in the match server of predetermined threshold value.
510, speed adapter sends to game client and accesses instruction, and this access instruction carries this object matching service The mark of device.
Optionally, the mark of this object matching server can be the address information of this object matching server, such as target The domain name of match server.
511, game client is according to the mark accessing the object matching server carried in instruction received, to this mesh Mark match server sends game and starts request.
The request of this game access is for starting this target game business to object matching server request.
Optionally, after object matching server receives the request of this game access, object matching server can be from this Object matching server connect service server in determine target service server, with by this target service server for trip Play client returns the data run needed for this target game business, so that game client starts this target game business, Meanwhile, this target service server can process this game client and run produced business number in this target game business procedure According to.
512, speed adapter by the user account of this game client and IP address and this object matching server it Between corresponding relation store in history access record.
Wherein, this step 512 is optional step.
It is understood that Fig. 5 embodiment is in order to reduce the data volume expended needed for game client test access time delay, And it is time-consuming to reduce test, only load is sent less than the mark of the match server of predetermined threshold value and give game client.But It is that the mark of all match servers possessing and processing this target game business is all sent to game client by speed adapter Mode be applied equally to the present embodiment, e.g., speed adapter by the address of all match servers all be sent to game visitor Family end, after game client tests the access time delay that this game client accesses every match server successively, speed is fitted Orchestration is again according to load and the access time delay of every match server of every match server current time, when determining access Prolong minimum and the present load object matching server less than predetermined threshold value.
It should be noted that the present embodiment is to connect with every match server in game service system to have at least one industry Situation as a example by business server is introduced, when game service system does not include that match server only includes business service Device, or when service server and match server are same station server, then required for the object matching service determined Device can be target service server or include match server and the destination server of service server function, and it is concrete Process is similar to Fig. 5, does not repeats them here.
It addition, the embodiment of the present application is as a example by a game service request of a game client, real to the application The server adaptation method executing example is introduced, but it is understood that, for any game client initiate for please The game service seeking this target game business is asked, and the server adaptation method that all can use the embodiment of the present application is game visitor Family end determines that this starts the required object matching server accessed of game service request.
For the ease of understanding the scheme of Fig. 5 embodiment, it is introduced below in conjunction with an example, it is contemplated that PVP plays industry Business needs to carry out between the game player of at least two game client data interaction, therefore to the real-time of data interaction and Synchronicity requires higher, therefore, asks the target game business run for being situated between as a example by PVP game service by game client Continue.Accordingly, match server is the game startup request processing game client request this PVP game service of startup, and Joining the service server that server connected is PVP server.As, see Fig. 6, it illustrates the application one server adaptive Schematic flow sheet under a kind of application scenarios of method, the server adaptation method of the present embodiment may include that
601, game client speed adapter in game service system sends PVP game enabled instruction.
This PVP game address that destination address is this speed adapter entrained by enabled instruction, and this PVP game startup Instruction carries this game client and currently logs in the user account used by this game service system and IP address.
It illustrates a kind of interface schematic diagram of the startup PVP game that game client presents as seen Fig. 7 a, work as game Client detects when characterizing in this interface starts " FIGHT " button fought, then trigger game client generation and carry this The game enabled instruction of the address of speed adapter, and send this game enabled instruction, so that the speed in game service system Degree adapter receives this game enabled instruction.
602, speed adapter query history access record in whether exist the user account with this game client and The record of the object matching server that IP address is corresponding.
As, this history access record can record in specifying duration before current time, different user account and IP Address requests starts the address of the match server that PVP game service is accessed, and so, can comprise in this history access record There is a plurality of record, have recorded different user account in different records respectively, between IP address and the address of match server Corresponding relation.
603, speed adapter inquires the record of the object matching server corresponding with this user account and IP address Time, sending to game client and access instruction, this access instruction carries the address of this object matching server.
Wherein, the instruction of this delay testing is for indicating game client test game client to access the visit of described server Ask time delay.
604, speed adapter inquiry is less than the note of the object matching server corresponding with this user account and IP address During record, speed adapter obtains the load of current time every match server.
The concrete mode of the load obtaining match server may refer to the related introduction of preceding embodiment, the most superfluous at this State.
In PVP game service, the service server that the load of match server can be connected by this match server The game room sum that can be provided by and the game room quantity of current idle determine.
605, speed adapter determines the match server set that load is formed less than predetermined threshold value match server.
606, speed adapter carries coupling clothes to the test instruction of game client transmission delay, the instruction of this delay testing The address of every match server in business device set.
607, game client indicates in response to this delay testing, according to every match server in match server set Address, successively to match server send test packet.
608, match server is returned for the response data packet of this test packet to game client.
609, game client is according to delivery time and the service of this coupling sending test packet to match server Device returns the time of reception of response data packet, determines that game client accesses the access time delay needed for this match server.
It is understood that Fig. 6 illustrate only a match server, with this match server for this in Fig. 6 As a example by joining the match server in server set, it is shown that game client and this match server conduct interviews the survey of time delay Examination process, but the test process of the access time delay of this step 607 to 609 is applicable to game client to match server set In any one match server conduct interviews the test of time delay.
610, game client sends access time delay data to speed adapter, and these access time delay data include: this game Access time delay needed for every match server in this match server set of client-access.
611, speed adapter determines the object matching server that access time delay is minimum from match server set.
612, speed adapter sends to game client and accesses instruction, and this access instruction carries this object matching service The address of device.
Optionally, after this step 612, speed adapter can also be by the user account of this game client and IP Corresponding relation between address and this object matching server stores in history access record.
613, game client, according to the address of this object matching server, sends PVP trip to this object matching server Play starts request.
614, object matching server is in response to this PVP game request, the PVP service connected from this object matching server Device determines PVP room exists clear position and the minimum target PVP room of clear position.
It is understood that it is mutual, by Fig. 6 for the ease of describe between game client and object matching server The match server illustrated is as object matching server.
Certainly, step 614 be only a kind of determine run this target game business target PVP server and from this mesh Mark PVP server determines a kind of mode in target PVP room, but determines target PVP server and this game for other The mode in the required target PVP room entered of client is applied equally to the present embodiment.
615, object matching server is by the address of the target PVP server belonging to this target room and this target room Mark be sent to game client.
616, game client sends room to this target PVP server and enters request, and this room enters request and carries The mark in this PVP room.
It is after this game client is assigned with target PVP server and target PVP room at object matching server, mesh Mark match server completes PVP game and starts the process of request, and succeeding target match server can be with this target PVP server Interact, to realize the operation of this PVP game.
It is this game client distribution target PVP clothes as Fig. 7 b shows that game client shows object matching server Business device and a kind of schematic diagram in target PVP room, from Fig. 7 b, be the distribution of this game client at object matching server After target PVP server and target PVP room, this game client can be set up with this target PVP server and be connected, And after waiting that in this target PVP room, the number of game player meets default number, this game client just can enter this Target PVP room, to run this PVP game service, so that in the game player of this game client and this target PVP room Other game players carry out PVP game.As, see Fig. 7 c, after it illustrates game client entrance target PVP room A kind of interface schematic diagram.
By the method for the present embodiment, can work as according to the access time delay of game client access server and server Front loading condition, returns for game client and starts the destination server accessed needed for this target game business, such that it is able to A destination server that access speed is more excellent and load is applicable is selected, so so that based on same for game client Join server and service server to carry out the difference of the access time delay of game player of PVP game and stability less, from And the synchronicity of the game data between the game player in same PVP room can be improved, improve the fairness of game, and Improve game experiencing.
See Fig. 8, it illustrates the schematic flow sheet of the application a kind of server another embodiment of adaptation method, this reality The method executing example may include that
801, game client intercepts and captures the game enabled instruction generated.
Wherein, this game enabled instruction is for starting target game business to game service system request.As, this target is swum Play business can be PVP game service.
As, when the triggering request that there is triggering startup target game business in game client being detected, game client End generates game enabled instruction.Such as, for triggering the icon starting target game business in user clicks on game client Time, game client generates game enabled instruction.
802, game client determines and currently logs in the user account used by game service system and IP address.
803, game client detection history access record in whether exist the user account with this game client and The object matching server that IP address is corresponding.
Wherein, this history access record records have: before current time, different user account and IP address are corresponding Game client request starts the match server that this target game business is accessed.
Optionally, different user account and IP ground in duration is specified before this history access record record has current time Game client request corresponding to location starts the match server that accessed of this target game business.
804, if this history access record exists the object matching service corresponding with this user account and IP address Device, this game client sends game to this object matching server and starts request.
This game starts request for starting target game business to object matching server request.
Wherein, this game starts request can carry the mark of object matching server, e.g., object matching server Address, certainly, this game starts request and can also carry in user account corresponding to this game client, IP address etc. One or more.
It should be noted that step 802 to step 804 is optional step, game client can also in actual applications Directly perform to obtain the operation of the load of current time every match server.
805, if history access record does not exist the history match service corresponding with this user account and IP address Device, then game client load of these at least two match servers in speed adapter request game service system.
806, the load of current time every match server is sent to game client by speed adapter.
Wherein, speed adapter determines that the mode of load of match server may refer to relevant Jie of preceding embodiment Continue, do not repeat them here.
In the present embodiment, the load of this match server can essentially be interpreted as this match server connected to The load of a few service server, such as the load total amount of all service servers that match server connects.
It should be noted that step 805 and 806 is only the side of the load of a kind of preferred acquisition match server Formula, in actual applications, it is also possible to directly fed back this match server to match server request by game client current Load.As, can be with the address of match servers all in preset game service system in game client, according to every coupling clothes The address of business device, game client can send request to match server, to ask match server to feed back current load. It is, of course, also possible to there is game client can also determine the load of every match server by other means, it is not added with at this To limit.
807, game client, from these at least two match servers, determines the load coupling clothes less than predetermined threshold value The match server set that business device is formed.
It is understood that this step 807 is a kind of preferred implementation, it is also possible to be to be determined institute by speed adapter After having the load of match server, the match server collection only load constituted less than the match server of predetermined threshold value The information closed is sent to game client.
808, game client determines that game client accesses in this match server set needed for every match server Access time delay.
Game client determines that game client accesses before the mode of the access time delay needed for match server may refer to The related introduction of face embodiment, does not repeats them here.
During it is understood that game client tests the access time delay of this game client and match server, this trip Play client is it needs to be determined that the mark of match server, and such as the address of match server, this address can be match server Domain name.And the mode of address that game client determines match server can have multiple situation, in the case of one, game client Can the address of each match server preset in end;In another case, rate service device is to game client transmission When joining the load of server, the address of this match server can be carried.
809, game client determines that from match server set access time delay is minimum and load is less than predetermined threshold value Object matching server.
Further, it is contemplated that game client test access time delay can exist certain time delay, in order to avoid in game Client test access time delay during, the loading condition of match server changes, in the embodiment of the present application, from After this match server set is determined the match server that access time delay is minimum, it is also possible to obtain this access time delay minimum The load of match server current time, if the load of the minimum match server of this access time delay of current time still less than This predetermined threshold value, then be defined as object matching server by this match server;Otherwise, then need from match server set Present load, less than in the match server of predetermined threshold value, chooses the object matching server that access time delay is minimum again.
Certainly, the present embodiment is the object matching server to select is for the match server that access time delay is minimum Example is introduced, but in actual applications, it is also possible to adopt according to access time delay and choose object matching server in other ways, As, it is also possible to sort from small to large according to access time delay, be in front specific bit and load less than predetermined threshold value from access time delay Match server is chosen a match server as object matching server.
810, game client sends game to this object matching server and starts request.
The request of this game access is for starting this target game business to object matching server request.
Optionally, after object matching server receives the request of this game access, object matching server can be from this Object matching server connect service server in determine target service server, with by this target service server for trip Play client returns the data run needed for this target game business, so that game client starts this target game business, Meanwhile, this target service server can process this game client and run produced business number in this target game business procedure According to.
811, game client is by the corresponding relation between this user account and IP address and this object matching server Store in history access record.
It is understood that Fig. 8 embodiment is in order to reduce the data volume expended needed for game client test access time delay, And it is time-consuming to reduce test, only determine the load access time delay less than the match server of predetermined threshold value.But game client Determine the load of all match servers, select from all match servers the most again access time delay minimum (or according to Access time delay sequence from big to small is in front specific bit) and load less than presetting the mode of preset destination server too It is applicable to the present embodiment.
It should be noted that the present embodiment is to connect with every match server in game service system to have at least one industry Situation as a example by business server is introduced, when game service system does not include that match server only includes business service Device, or when service server and match server are same station server, then required for the object matching service determined Device can be target service server or include match server and the destination server of service server function, and it is concrete Process is similar to Fig. 8, does not repeats them here.
The embodiment of the present application is as a example by a game service request of a game client, to the embodiment of the present application Server adaptation method is introduced.But it is understood that, for any game client initiate for asking this mesh The game service request of mark game service, the server adaptation method that all can use the embodiment of the present application is that game client divides Join this and start the required object matching server accessed of game service request.
See Fig. 9, it illustrates the structural representation of the application a kind of server one embodiment of adaptive device, this enforcement The device of example can apply in the server of game service system, or is applied to game client;Or it is applied to game In communication equipment between service system and game client, the device of the present embodiment may include that
Instruction acquiring unit 901, for obtaining the game enabled instruction that game client generates, described game enabled instruction For indicating game service system to be, described game client starts target game business, and described game service system includes at least Two for processing described target game business and being deployed in the server of different regions;
Time delay determines unit 902, for determining that described game client accesses the access time delay of described server;
Server determines unit 903, for according to described access time delay, determines from described at least two described servers Meet pre-conditioned destination server;
Start indicating member 904, be used for indicating described game client to start described mesh to the request of described destination server Mark game service.
Optionally, described pre-conditioned include: in the range of access time delay sequence from high to low is specified before being in.
Optionally, the device of the present embodiment can also include:
Load acquiring unit 905, after obtaining described game enabled instruction at described instruction acquiring unit, obtains and works as The load of described server of front moment every;
What described server determined in unit described pre-conditioned also includes: load is in default threshold range.
Optionally, the device of the present embodiment, also include:
Set determines unit, for determining that unit determines that described game client accesses described server in described time delay Before access time delay, determine load be in the server set in default threshold range, described server set include to A few station server;
The most described time delay determine unit specifically for, determine that described game client accesses in described server set every The access time delay of server.
Optionally, server determines unit, including:
Server determines subelement, for determining from described server set at access time delay sequence from high to low Destination server in the range of front appointment.
Optionally, described device can also include:
Log-on message determines unit, after obtaining described game enabled instruction at described instruction acquiring unit, determines Described game client currently logs in user account that described game service system used and described game client is current IP address;
Whether record detector unit, access in record for detection history and exist and described user account and IP address pair The information of the destination server answered, in described history access record, record has: different user account and IP before current time Game client request corresponding to address starts the information of server that described target game business is accessed;
Start trigger element, for if there is the destination server corresponding with described user account and IP address, refer to Show that described game client starts the trip of described target to the destination server request corresponding with described user account and IP address Play business;
Described time delay determines unit, specifically for if there is no the target corresponding with described user account and IP address Server, then perform the described access time delay determining that described game client accesses described server.
Optionally, the most described instruction acquiring unit, may include that
Command reception subelement, for receiving the game enabled instruction that game client sends;
Described time delay determines unit, including:
Time delay request unit, for the test instruction of described game client transmission delay, the instruction of described delay testing is used The access time delay of described server is accessed in indicating described game client to test described game client;
Time delay acquiring unit, for obtaining the access time delay for described server that described game client tests out.
Further, described startup indicating member, including:
Instruction sends subelement, accesses instruction for sending to described game client, and described access instruction is used for indicating Described test client starts described target game business to the request of described destination server.
Optionally, in another kind of implementation, described instruction acquiring unit may include that
Unit is intercepted and captured in instruction, the game enabled instruction generated for intercepting and capturing game client to be triggered;
Described startup indicating member, including:
Starting request trigger element, being used for triggering described game client please to the transmission game startup of described destination server Asking, described game startup request is used for asking to start described target game business.
The embodiment of the present invention additionally provides a kind of server, and this server can include another kind of server described above Adaptive device.
Figure 10 shows the hardware block diagram of server, and with reference to Figure 10, server 1000 may include that processor 1001, communication interface 1002, memorizer 1003 and communication bus 1004;
Wherein processor 1001, communication interface 1002, memorizer 1003 complete mutual leading to by communication bus 1004 Letter;
Optionally, communication interface 1002 can be the interface of communication module, such as the interface of gsm module;
Processor 1001, is used for performing program;
Memorizer 1003, is used for depositing program;
Program can include that program code, described program code include computer-managed instruction.
Processor 1001 is probably a central processor CPU, or specific integrated circuit ASIC (Application Specific Integrated Circuit), or it is configured to implement the one or more integrated electricity of the embodiment of the present invention Road.
Memorizer 1003 may comprise high-speed RAM memorizer, it is also possible to also includes nonvolatile memory (non- Volatile memory), for example, at least one disk memory.
Wherein, program can be specifically for:
Obtaining the game enabled instruction that game client generates, described game enabled instruction is used for indicating game service system Starting target game business for described game client, described game service system includes at least two for processing described target Game service and be deployed in the server of different regions;
Determine that described game client accesses the access time delay of described server;
According to described access time delay, determine from described at least two described servers and meet pre-conditioned destination service Device;
Described game client is indicated to start described target game business to the request of described destination server.
It addition, the embodiment of the present application additionally provides a kind of terminal, the composition structure of this terminal can be with the group of this server Become structure similar, do not repeat them here.
In this specification, each embodiment uses the mode gone forward one by one to describe, and what each embodiment stressed is and other The difference of embodiment, between each embodiment, identical similar portion sees mutually.For device disclosed in embodiment For, owing to it corresponds to the method disclosed in Example, so describe is fairly simple, relevant part sees method part and says Bright.
Professional further appreciates that, in conjunction with the unit of each example that the embodiments described herein describes And algorithm steps, it is possible to electronic hardware, computer software or the two be implemented in combination in, in order to clearly demonstrate hardware and The interchangeability of software, the most generally describes composition and the step of each example according to function.These Function performs with hardware or software mode actually, depends on application-specific and the design constraint of technical scheme.Specialty Technical staff specifically should can be used for using different methods to realize described function to each, but this realization should not Think beyond the scope of this invention.
The method described in conjunction with the embodiments described herein or the step of algorithm can direct hardware, processor be held The software module of row, or the combination of the two implements.Software module can be placed in random access memory (RAM), internal memory, read-only deposit Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, depositor, hard disk, moveable magnetic disc, CD-ROM or technology In any other form of storage medium well known in field.
Described above to the disclosed embodiments, makes professional and technical personnel in the field be capable of or uses the present invention. Multiple amendment to these embodiments will be apparent from for those skilled in the art, as defined herein General Principle can realize without departing from the spirit or scope of the present invention in other embodiments.Therefore, the present invention It is not intended to be limited to the embodiments shown herein, and is to fit to and principles disclosed herein and features of novelty phase one The widest scope caused.

Claims (21)

1. a server adaptation method, it is characterised in that including:
Obtaining the game enabled instruction that game client generates, it is institute that described game enabled instruction is used for indicating game service system Stating game client and start target game business, described game service system includes at least two for processing described target game Business and be deployed in the server of different regions;
Determine that described game client accesses the access time delay of described server;
According to described access time delay, determine from described at least two described servers and meet pre-conditioned destination server;
Described game client is indicated to start described target game business to the request of described destination server.
Server adaptation method the most according to claim 1, it is characterised in that described pre-conditioned include: access time delay In the range of sequence from high to low is specified before being in.
Server adaptation method the most according to claim 2, it is characterised in that generate at described acquisition game client After game enabled instruction, also include:
Obtain the load of the described server of current time every;
Described pre-conditioned also include: load is in default threshold range.
Server adaptation method the most according to claim 3, it is characterised in that determine that described game client is visited described Before asking the access time delay of described server, also include:
Determining that load is in the server set in default threshold range, described server set includes at least one service Device;
The most described access time delay determining that described game client accesses described server, including:
Determine that described game client accesses the access time delay of every station server in described server set.
Server adaptation method the most according to claim 4, it is characterised in that from described at least two described servers Determine and meet pre-conditioned destination server, including:
Determine from described server set access time delay sequence from high to low be in before specify in the range of destination service Device.
Server adaptation method the most according to claim 2, it is characterised in that described access time delay sequence from high to low In the range of specifying before being in, including:
Access time delay is minimum.
Server adaptation method the most according to claim 1, it is characterised in that generate at described acquisition game client After game enabled instruction, also include:
Determine that described game client currently logs in user account and the described game visitor that described game service system is used The IP address that family end is current;
Detection history accesses the information that whether there is the destination server corresponding with described user account and IP address in record, In described history access record, record has: before current time, game client corresponding to different user account and IP address please Seek the information starting the server that described target game business is accessed;
If there is the destination server corresponding with described user account and IP address, indicate described game client to institute State user account and IP address corresponding destination server request start described target game business;
If there is no the destination server corresponding with described user account and IP address, then perform described to determine described game The access time delay of server described in client-access.
Server adaptation method the most according to claim 7, it is characterised in that the described game client of described instruction to After the request of described destination server starts described target game business, also include:
Corresponding relation between described user account and IP address and described destination server is stored described history access In record.
9. according to the server adaptation method described in any one of claim 1 to 8, it is characterised in that described acquisition game client The game enabled instruction that end generates, including:
Receive the game enabled instruction that game client sends;
The described access time delay determining that described game client accesses described server, including:
To the test instruction of described game client transmission delay, the instruction of described delay testing is used for indicating described game client to survey Try described game client and access the access time delay of described server;
Obtain the access time delay for described server that described game client tests out.
Server adaptation method the most according to claim 9, it is characterised in that carry in the instruction of described delay testing The address of described server, so that game client tests described game client according to the address of described server accesses institute State the access time delay of server.
11. server adaptation methods according to claim 9, it is characterised in that the described game client of described instruction to The request of described destination server starts described target game business, including:
Sending to described game client and access instruction, described access instruction is used for indicating described test client to described target Server request starts described target game business.
12. according to the server adaptation method described in any one of claim 1 to 8, it is characterised in that described acquisition game client The game enabled instruction that end generates, including:
Intercept and capture game client be triggered generate game enabled instruction;
The described game client of described instruction starts described target game business to the request of described destination server, including:
Triggering described game client to ask to the transmission game startup of described destination server, described game startup request is used for asking Seek the described target game business of startup.
13. 1 kinds of server adaptive devices, it is characterised in that including:
Instruction acquiring unit, for obtaining the game enabled instruction that game client generates, described game enabled instruction is used for referring to Show game service system be described game client start target game business, described game service system include at least two with In processing described target game business and being deployed in the server of different regions;
Time delay determines unit, for determining that described game client accesses the access time delay of described server;
Server determines unit, for according to described access time delay, determines and meet in advance from described at least two described servers If the destination server of condition;
Start indicating member, be used for indicating described game client to start described target game industry to the request of described destination server Business.
14. server adaptive devices according to claim 13, it is characterised in that described server determines the institute in unit State pre-conditioned including:
In the range of access time delay sequence from high to low is specified before being in.
15. server adaptive devices according to claim 14, it is characterised in that also include:
Load acquiring unit, after obtaining described game enabled instruction at described instruction acquiring unit, obtains current time The load of every described server;
What described server determined in unit described pre-conditioned also includes: load is in default threshold range.
16. server adaptive devices according to claim 15, it is characterised in that also include:
Set determines unit, for determining that unit determines that described game client accesses the access of described server in described time delay Before time delay, determining that load is in the server set in default threshold range, described server set includes at least one Station server;
The most described time delay determine unit specifically for, determine that described game client accesses every service in described server set The access time delay of device.
17. server adaptive devices according to claim 16, it is characterised in that server determines unit, including:
Server determines subelement, before determining that from described server set access time delay sequence from high to low is in Destination server in the range of appointment.
18. server adaptive devices according to claim 13, it is characterised in that also include:
Log-on message determines unit, after obtaining described game enabled instruction at described instruction acquiring unit, determines described Game client currently logs in user account that described game service system used and the current IP of described game client Address;
Whether record detector unit, exist corresponding with described user account and IP address in detection history access record The information of destination server, in described history access record, record has: different user account and IP address before current time Corresponding game client request starts the information of the server that described target game business is accessed;
Start trigger element, for if there is the destination server corresponding with described user account and IP address, indicate institute State game client and start described target game industry to the destination server request corresponding with described user account and IP address Business;
Described time delay determines unit, specifically for if there is no the destination service corresponding with described user account and IP address Device, then perform the described access time delay determining that described game client accesses described server.
19. according to the server adaptive device described in any one of claim 13 to 18, it is characterised in that described instruction obtains single Unit, including:
Command reception subelement, for receiving the game enabled instruction that game client sends;
Described time delay determines unit, including:
Time delay request unit, for the test instruction of described game client transmission delay, the instruction of described delay testing is used for referring to Show that described game client is tested described game client and accessed the access time delay of described server;
Time delay acquiring unit, for obtaining the access time delay for described server that described game client tests out.
20. according to the server adaptive device described in any one of claim 13 to 18, it is characterised in that described instruction obtains single Unit, including:
Unit is intercepted and captured in instruction, the game enabled instruction generated for intercepting and capturing game client to be triggered;
Described startup indicating member, including:
Start request trigger element, be used for triggering described game client and send game startup request to described destination server, Described game startup request is used for asking to start described target game business.
21. 1 kinds of server adaption systems, it is characterised in that including:
Game service system and at least one game client;
Wherein, described game service system includes: speed adapter and be connected with described speed adapter at least two with In processing target game business and being deployed in the server of different regions;
Wherein, described game client, for sending game enabled instruction, described game enabled instruction to described speed adapter For asking startup target game business;
Described speed adapter, accesses the access time delay of every described server for obtaining described game client;According to institute State access time delay, determine from described at least two described servers and meet pre-conditioned destination server;Indicate described trip Play client starts described target game business to the request of described destination server.
CN201610657446.0A 2016-08-11 2016-08-11 Server adaptation method, device and system Active CN106302434B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610657446.0A CN106302434B (en) 2016-08-11 2016-08-11 Server adaptation method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610657446.0A CN106302434B (en) 2016-08-11 2016-08-11 Server adaptation method, device and system

Publications (2)

Publication Number Publication Date
CN106302434A true CN106302434A (en) 2017-01-04
CN106302434B CN106302434B (en) 2022-01-14

Family

ID=57668533

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610657446.0A Active CN106302434B (en) 2016-08-11 2016-08-11 Server adaptation method, device and system

Country Status (1)

Country Link
CN (1) CN106302434B (en)

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106888277A (en) * 2017-03-07 2017-06-23 腾讯科技(深圳)有限公司 A kind of domain name inquiry method and device
CN108156247A (en) * 2017-12-27 2018-06-12 北京金山安全软件有限公司 Data communication method, device, system, terminal and readable storage medium
CN108696400A (en) * 2017-04-12 2018-10-23 北京京东尚科信息技术有限公司 network monitoring method and device
CN108717363A (en) * 2018-05-25 2018-10-30 广州博冠信息科技有限公司 Start method, apparatus, storage medium and the electronic device of engine
CN109547515A (en) * 2017-09-22 2019-03-29 阿里巴巴集团控股有限公司 A kind of service calling method and relevant device
CN110327621A (en) * 2019-04-24 2019-10-15 上海恺英网络科技有限公司 For the matched method and apparatus of network game client
CN110354493A (en) * 2019-08-22 2019-10-22 腾讯科技(深圳)有限公司 Connection control method, device, server and storage medium
CN110460632A (en) * 2019-06-26 2019-11-15 杨涛 A kind of preferred method and system of order
CN110933160A (en) * 2019-11-27 2020-03-27 北京字节跳动网络技术有限公司 Data access method, server, terminal and storage medium
CN110990288A (en) * 2019-12-12 2020-04-10 北京首汽智行科技有限公司 Project deployment method
CN111314165A (en) * 2019-12-18 2020-06-19 上海米哈游天命科技有限公司 Game server determination method, device, server and medium
CN112044079A (en) * 2020-10-14 2020-12-08 腾讯科技(深圳)有限公司 Game running method and device, storage medium and electronic equipment
CN112104756A (en) * 2020-11-20 2020-12-18 翱捷科技(深圳)有限公司 Internet of things data reporting method and system
CN112104682A (en) * 2019-06-18 2020-12-18 上海达龙信息科技有限公司 Intelligent distribution method and system for cloud desktop server, storage medium and central control server
CN112152828A (en) * 2019-06-27 2020-12-29 腾讯科技(深圳)有限公司 Game acceleration method and device, VPN terminal and storage medium
CN112272580A (en) * 2018-04-06 2021-01-26 诺维数字娱乐私人有限公司 Synchronization of an online gaming environment with video streaming of a live event
WO2021031064A1 (en) * 2019-08-19 2021-02-25 北京小米移动软件有限公司 Data processing method and apparatus, electronic device and computer-readable storage medium
CN112437137A (en) * 2020-11-12 2021-03-02 翱捷科技(深圳)有限公司 Internet of things data connection method and system
CN113094128A (en) * 2021-03-01 2021-07-09 北京健康之家科技有限公司 Network information interaction method and electronic equipment
WO2023061392A1 (en) * 2021-10-13 2023-04-20 上海莉莉丝互娱网络科技有限公司 Global interaction server cluster, and communication method and communication system based on same, and computer-readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1903404A (en) * 2006-07-28 2007-01-31 华为技术有限公司 Wireless network game system and method for exchanging game data
CN103957208A (en) * 2014-04-29 2014-07-30 北京奇虎科技有限公司 Acceleration method and system for online game and online game acceleration server
CN103957209A (en) * 2014-04-29 2014-07-30 北京奇虎科技有限公司 Optimizer and optimizing method and system for online game
CN104023089A (en) * 2014-06-30 2014-09-03 北京奇虎科技有限公司 Acceleration method of application as well as selection method and device of application accelerator
CN104486361A (en) * 2014-12-31 2015-04-01 北京奇虎科技有限公司 Online game connection building method, game terminal and system
CN104954321A (en) * 2014-03-25 2015-09-30 北京奇虎科技有限公司 Connection switching method, device and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1903404A (en) * 2006-07-28 2007-01-31 华为技术有限公司 Wireless network game system and method for exchanging game data
CN104954321A (en) * 2014-03-25 2015-09-30 北京奇虎科技有限公司 Connection switching method, device and system
CN103957208A (en) * 2014-04-29 2014-07-30 北京奇虎科技有限公司 Acceleration method and system for online game and online game acceleration server
CN103957209A (en) * 2014-04-29 2014-07-30 北京奇虎科技有限公司 Optimizer and optimizing method and system for online game
CN104023089A (en) * 2014-06-30 2014-09-03 北京奇虎科技有限公司 Acceleration method of application as well as selection method and device of application accelerator
CN104486361A (en) * 2014-12-31 2015-04-01 北京奇虎科技有限公司 Online game connection building method, game terminal and system

Cited By (28)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106888277A (en) * 2017-03-07 2017-06-23 腾讯科技(深圳)有限公司 A kind of domain name inquiry method and device
CN108696400A (en) * 2017-04-12 2018-10-23 北京京东尚科信息技术有限公司 network monitoring method and device
CN109547515A (en) * 2017-09-22 2019-03-29 阿里巴巴集团控股有限公司 A kind of service calling method and relevant device
CN108156247A (en) * 2017-12-27 2018-06-12 北京金山安全软件有限公司 Data communication method, device, system, terminal and readable storage medium
CN108156247B (en) * 2017-12-27 2021-05-28 北京金山安全软件有限公司 Data communication method, device, system, terminal and readable storage medium
CN112272580A (en) * 2018-04-06 2021-01-26 诺维数字娱乐私人有限公司 Synchronization of an online gaming environment with video streaming of a live event
CN108717363A (en) * 2018-05-25 2018-10-30 广州博冠信息科技有限公司 Start method, apparatus, storage medium and the electronic device of engine
CN108717363B (en) * 2018-05-25 2021-07-27 广州博冠信息科技有限公司 Method and device for starting engine, storage medium and electronic device
CN110327621A (en) * 2019-04-24 2019-10-15 上海恺英网络科技有限公司 For the matched method and apparatus of network game client
CN112104682A (en) * 2019-06-18 2020-12-18 上海达龙信息科技有限公司 Intelligent distribution method and system for cloud desktop server, storage medium and central control server
CN110460632B (en) * 2019-06-26 2022-06-24 杨涛 Order optimization method and system
CN110460632A (en) * 2019-06-26 2019-11-15 杨涛 A kind of preferred method and system of order
CN112152828A (en) * 2019-06-27 2020-12-29 腾讯科技(深圳)有限公司 Game acceleration method and device, VPN terminal and storage medium
US11949574B2 (en) 2019-08-19 2024-04-02 Beijing Xiaomi Mobile Software Co., Ltd. Data processing method and apparatus, electronic device and computer-readable storage medium
WO2021031064A1 (en) * 2019-08-19 2021-02-25 北京小米移动软件有限公司 Data processing method and apparatus, electronic device and computer-readable storage medium
CN110354493A (en) * 2019-08-22 2019-10-22 腾讯科技(深圳)有限公司 Connection control method, device, server and storage medium
CN110354493B (en) * 2019-08-22 2022-03-01 腾讯科技(深圳)有限公司 Access control method, device, server and storage medium
CN110933160A (en) * 2019-11-27 2020-03-27 北京字节跳动网络技术有限公司 Data access method, server, terminal and storage medium
CN110990288A (en) * 2019-12-12 2020-04-10 北京首汽智行科技有限公司 Project deployment method
CN111314165B (en) * 2019-12-18 2022-02-01 上海米哈游天命科技有限公司 Game server determination method, device, server and medium
CN111314165A (en) * 2019-12-18 2020-06-19 上海米哈游天命科技有限公司 Game server determination method, device, server and medium
CN112044079A (en) * 2020-10-14 2020-12-08 腾讯科技(深圳)有限公司 Game running method and device, storage medium and electronic equipment
CN112437137B (en) * 2020-11-12 2021-09-28 翱捷科技(深圳)有限公司 Internet of things data connection method and system
CN112437137A (en) * 2020-11-12 2021-03-02 翱捷科技(深圳)有限公司 Internet of things data connection method and system
CN112104756A (en) * 2020-11-20 2020-12-18 翱捷科技(深圳)有限公司 Internet of things data reporting method and system
CN113094128A (en) * 2021-03-01 2021-07-09 北京健康之家科技有限公司 Network information interaction method and electronic equipment
CN113094128B (en) * 2021-03-01 2024-01-30 北京水滴科技集团有限公司 Network information interaction method and electronic equipment
WO2023061392A1 (en) * 2021-10-13 2023-04-20 上海莉莉丝互娱网络科技有限公司 Global interaction server cluster, and communication method and communication system based on same, and computer-readable storage medium

Also Published As

Publication number Publication date
CN106302434B (en) 2022-01-14

Similar Documents

Publication Publication Date Title
CN106302434A (en) Server adaptation method, device and system
Zhang et al. Proactive workload management in hybrid cloud computing
US9444718B2 (en) Distributed platform test network
CN103329113B (en) Configuration is accelerated and custom object and relevant method for proxy server and the Dynamic Website of hierarchical cache
US6317786B1 (en) Web service
US20110320870A1 (en) Collecting network-level packets into a data structure in response to an abnormal condition
US20110191223A1 (en) Internet Control Management and Accounting in a Utility Computing Environment
KR100910426B1 (en) Method for mapping an iscsi target name to a storage resource based on an initiator hardware class identifier
CN106161519B (en) A kind of information acquisition method and device
CN109561054A (en) A kind of data transmission method, controller and access device
CN103607476A (en) System and method for distributed multi-stage persistence of huge number of messages
CN109639796A (en) A kind of implementation of load balancing, device, equipment and readable storage medium storing program for executing
US7908355B2 (en) Method for improving network server load balancing
CN111130936B (en) Method and device for testing load balancing algorithm
CN106301897A (en) A kind of (SuSE) Linux OS installs collocation method and device
CN110247812A (en) A kind of more cluster management methods, device, system and associated component
CN102420863A (en) Rapid file distribution system, method thereof and apparatus thereof
CN104426881A (en) Method and device for detecting malicious behavior
CN110245020A (en) Handset content evidence collecting method and system based on multiple evidence taking equipments
RU2427032C2 (en) Next site for distributed service connections
US7711780B1 (en) Method for distributed end-to-end dynamic horizontal scalability
CN111600929B (en) Transmission line detection method, routing strategy generation method and proxy server
CN116781564B (en) Network detection method, system, medium and electronic equipment of container cloud platform
CN106470193A (en) A kind of anti-DoS of DNS recursion server, the method and device of ddos attack
CN105991791A (en) Message forwarding method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant