[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN107798015A - Game services end offline operation method - Google Patents

Game services end offline operation method Download PDF

Info

Publication number
CN107798015A
CN107798015A CN201610803781.7A CN201610803781A CN107798015A CN 107798015 A CN107798015 A CN 107798015A CN 201610803781 A CN201610803781 A CN 201610803781A CN 107798015 A CN107798015 A CN 107798015A
Authority
CN
China
Prior art keywords
server
game
operation method
database
services end
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610803781.7A
Other languages
Chinese (zh)
Inventor
徐金良
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SHENGQU INFORMATION TECHNOLOGY (SHANGHAI) Co Ltd
Original Assignee
SHENGQU INFORMATION TECHNOLOGY (SHANGHAI) 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 SHENGQU INFORMATION TECHNOLOGY (SHANGHAI) Co Ltd filed Critical SHENGQU INFORMATION TECHNOLOGY (SHANGHAI) Co Ltd
Priority to CN201610803781.7A priority Critical patent/CN107798015A/en
Publication of CN107798015A publication Critical patent/CN107798015A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • G06F16/275Synchronous replication

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Computing Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of game services end offline operation method, it is characterized in that, including game server, caching server, database server, one buffer queue is set wherein on the game server, for monitoring the caching server temporary increment or variance data for needing to update to the caching server or database when either database server connection is abnormal, realizing that game server is that online player provides lasting normal service in the case of data storage layer access exception.

Description

Game services end offline operation method
Technical field
The present invention relates to field of play, more particularly to a kind of game services end offline operation method.
Background technology
MMORPG type games provide real-time online interaction platform to the player of magnanimity.And this generally require it is complex Server cluster supports, and typically can simply be divided into the gateway (Gate) for externally maintaining connection, processing according to framework layering The game server (GameServer) and database server (DataBase) MMORPG type games of game logic are universal Or using lasting storage of the relevant database as landing data, in addition between game server and database server The component (DBServer) of layer data caching is also had, is mainly responsible for providing internal storage data acceleration to game server and leads to Cross caching server read-write database mode and reach game server and the purpose of database server decoupling, such game services Device could save more CPU and memory source, improve whole efficiency so as to be absorbed in processing business logic, brought to player More smooth game experiencing.
But game server group is in addition to providing the Flow Experience that timely responds to, before also one very important Carry:Stability.In order to reach the purpose of acceleration, most of way is between the game server layer and database of processing logic Layer data caching is introduced, this improves the disposal ability of server device group really to a certain extent, and this is a little.But It has also been introduced more risks:Caching server delays machine because unknown exception is caused or O&M need maintenance restart etc. because Element so that game server can not normally obtain or data storage, so as to cause integrity service interruption during this period.Thus we Giving the scheme of game server offline operation by research, (off line here refers to departing from data buffer storage or database Server can also maintain to be functioning normally until that caching server or database server are again extensive within a certain period of time after supporting Service ability is provided again).
The content of the invention
In order to solve problems of the prior art, the present invention provides a kind of game services end offline operation method, its It is characterised by, including game server, caching server, database server, wherein setting one on the game server Individual buffer queue, for the temporary needs when monitoring that the caching server or database server connection are abnormal Update the increment or variance data of the caching server either database.
The increment SQL entries of difference need to be directly generated preferably for the game server of the direct-connected database, Directly batch performs increment SQL in sequence after recovering to connect with the database.
Preferably for by the way that the game server of the database needs to formulate in succession between the caching server Single messaging protocol is to ensure that the variance data being buffered on the game server internal memory or disk can be in institute Caching server is stated to recover to be synchronized on the caching server further to operate during offer service.
Preferably, variance data is sent using batch packing communication data packet mode.
Preferably, the data cached entry sets processing progress label to ensure its consistency.
Preferably, by mode the judges game server such as heartbeat or crawl be abnormal and the caching server it Between connection status.
Preferably, when detecting and backstage storage connection exception occurs, the game server walks to record difference number According to the logic of entry, normal communication logic is otherwise walked.
Preferably, when monitoring and backstage storage connection recovers normal, the game server is synchronous by variance data To background storage server, proper communication logic state is switched to afterwards.
Preferably, the game server is in off-line state and forbids newly accessing login, otherwise allows to log in.
Beneficial effect:
1. by temporary queue mode when normally carrying occur in data cache server or database server For under service state, continual service being provided to online player, so as to bring more preferable game experiencing;
2. brought convenience to heat renewal caching server and possible;
3. data final consistency is realized by way of difference increment.
Brief description of the drawings
Fig. 1 is the network topology structure figure of the embodiment of the present invention;
Fig. 2 is the business process map of the embodiment of the present invention.
Embodiment
The present invention is described in further detail below in conjunction with the drawings and specific embodiments.Will according to following explanation and right Book is sought, advantages and features of the invention will become apparent from.It should be noted that accompanying drawing is using very simplified form and using non- Accurately ratio, only for the purpose of facilitating and clarifying the purpose of the embodiments of the invention.
The network topology structure figure of the present invention is as shown in figure 1, including game server, caching server, database service Device a, wherein buffer queue is set on the game server, for monitoring the caching server or described Database server connection is temporary when abnormal to need to update increment or difference to the caching server either database Data.
In the present embodiment, the increment SQL of difference need to be directly generated for the game server of the direct-connected database Entry, directly batch performs increment SQL in sequence after recovering to connect with the database.For passing through the buffer service To need to formulate single messaging protocol described to ensure to be buffered in for the game server of the database in succession between device Variance data on game server internal memory or disk can be synchronized to institute when the caching server recovers offer service State on caching server further to operate.
Variance data is wherein sent using batch packing communication data packet mode.The data cached entry setting handle into Scale label are to ensure its consistency.
As shown in Fig. 2 the game server and the buffer service are judged by the mode such as heartbeat or crawl exception Connection status between device.When detecting and backstage storage connection exception occurs, the game server walks to record difference number According to the logic of entry, normal communication logic is otherwise walked.When monitoring and backstage storage connection recovers normal, the game garment Variance data is synchronized to background storage server by business device, is switched to proper communication logic state afterwards.The game server Forbid new access to log in off-line state, otherwise allow to log in.
Obviously, those skilled in the art can carry out the spirit of various changes and modification without departing from the present invention to invention And scope.So, if these modifications and variations of the present invention belong to the claims in the present invention and its equivalent technologies scope it Interior, then the present invention is also intended to including these changes and modification.

Claims (9)

  1. A kind of 1. game services end offline operation method, it is characterised in that including game server, caching server, database Server, wherein on the game server set a buffer queue, for monitor the caching server or When database server connection is abnormal it is temporary need to update to the caching server either the increment of database or Variance data.
  2. 2. game services end offline operation method as claimed in claim 1, it is characterised in that for the direct-connected database The game server need to directly generate difference incremental data entry, after recovering to connect with the database direct batch according to Order achieves to incremental data entry.
  3. 3. game services end offline operation method as claimed in claim 1, it is characterised in that for passing through the buffer service To need to formulate single messaging protocol described to ensure to be buffered in for the game server of the database in succession between device Variance data on game server internal memory or disk can be synchronized to institute when the caching server recovers offer service State on caching server further to operate.
  4. 4. game services end offline operation method as claimed in claim 1, it is characterised in that using batch packing communication data Packet mode sends difference incremental data.
  5. 5. game services end offline operation method as claimed in claim 2, it is characterised in that the variance data of described pair of caching Entry sets processing progress label to ensure its consistency.
  6. 6. game services end offline operation method as claimed in claim 1, it is characterised in that abnormal by heartbeat or crawl Judge connection status between the game server and the caching server etc. mode.
  7. 7. game services end offline operation method as claimed in claim 6, it is characterised in that stored when detecting with backstage When connection exception occurs, the game server walks to record the logic of difference incremental data entry, otherwise walks normal communication and patrols Volume.
  8. 8. game services end offline operation method as claimed in claim 6, it is characterised in that connect when monitoring to store with backstage Connect recover it is normal when, variance data is synchronized to background storage server by the game server, is switched to proper communication afterwards Logic state.
  9. 9. game services end offline operation method as claimed in claim 1, it is characterised in that the game server is in de- Machine Status Disable newly accesses login, otherwise allows to log in.
CN201610803781.7A 2016-09-06 2016-09-06 Game services end offline operation method Pending CN107798015A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610803781.7A CN107798015A (en) 2016-09-06 2016-09-06 Game services end offline operation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610803781.7A CN107798015A (en) 2016-09-06 2016-09-06 Game services end offline operation method

Publications (1)

Publication Number Publication Date
CN107798015A true CN107798015A (en) 2018-03-13

Family

ID=61530414

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610803781.7A Pending CN107798015A (en) 2016-09-06 2016-09-06 Game services end offline operation method

Country Status (1)

Country Link
CN (1) CN107798015A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109621409A (en) * 2018-12-14 2019-04-16 网易(杭州)网络有限公司 Method, apparatus, storage medium and the electronic equipment of game interrupt line reconnection
CN110597909A (en) * 2019-09-12 2019-12-20 广州南翼信息科技有限公司 Method for keeping state consistency of client and multi-terminal equipment
CN112597163A (en) * 2020-12-25 2021-04-02 珠海金山网络游戏科技有限公司 Data processing system, method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110320401A1 (en) * 2009-09-30 2011-12-29 Zynga Game Network, Inc. System and method for remote updates
CN103023863A (en) * 2011-09-27 2013-04-03 广州明朝网络科技有限公司 Server cluster and server system
JP2013200747A (en) * 2012-03-26 2013-10-03 Nec Corp Groupware system, and cache method and cache program in the same
CN103401712A (en) * 2013-07-31 2013-11-20 北京华易互动科技有限公司 Content distribution based intelligent high-availability task processing method and system
CN103559198A (en) * 2013-09-27 2014-02-05 杭州意能软件有限公司 Data synchronizing method and equipment
CN104580294A (en) * 2013-10-16 2015-04-29 博雅网络游戏开发(深圳)有限公司 Method and device for displaying server information
CN105045789A (en) * 2015-02-15 2015-11-11 北京乐动卓越信息技术有限公司 Game server database buffer memory method and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110320401A1 (en) * 2009-09-30 2011-12-29 Zynga Game Network, Inc. System and method for remote updates
CN103023863A (en) * 2011-09-27 2013-04-03 广州明朝网络科技有限公司 Server cluster and server system
JP2013200747A (en) * 2012-03-26 2013-10-03 Nec Corp Groupware system, and cache method and cache program in the same
CN103401712A (en) * 2013-07-31 2013-11-20 北京华易互动科技有限公司 Content distribution based intelligent high-availability task processing method and system
CN103559198A (en) * 2013-09-27 2014-02-05 杭州意能软件有限公司 Data synchronizing method and equipment
CN104580294A (en) * 2013-10-16 2015-04-29 博雅网络游戏开发(深圳)有限公司 Method and device for displaying server information
CN105045789A (en) * 2015-02-15 2015-11-11 北京乐动卓越信息技术有限公司 Game server database buffer memory method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张育军 等: "《上海证券交易所联合研究报告2011》", 30 November 2012, 上海人民出版社 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109621409A (en) * 2018-12-14 2019-04-16 网易(杭州)网络有限公司 Method, apparatus, storage medium and the electronic equipment of game interrupt line reconnection
CN110597909A (en) * 2019-09-12 2019-12-20 广州南翼信息科技有限公司 Method for keeping state consistency of client and multi-terminal equipment
CN110597909B (en) * 2019-09-12 2023-03-14 广州南翼信息科技有限公司 Method for keeping state consistency of client and multi-terminal equipment
CN112597163A (en) * 2020-12-25 2021-04-02 珠海金山网络游戏科技有限公司 Data processing system, method and device
CN112597163B (en) * 2020-12-25 2024-05-28 珠海金山数字网络科技有限公司 Data processing system, method and device

Similar Documents

Publication Publication Date Title
CN106603319B (en) Fault processing method, management server and logic server
CN104050249B (en) Distributed query engine system and method and meta data server
US11513863B2 (en) Game server architecture
EP2824893B1 (en) Data storage method and device
CN104506625A (en) Method for improving reliability of metadata nodes of cloud databases
US20140317206A1 (en) Switched direct attached shared storage architecture
CN107798015A (en) Game services end offline operation method
WO2017097011A1 (en) Session synchronization method based on instant copy between cluster nodes
CN104731727B (en) A kind of dual control storage system monitoring management system and method
CN106980625A (en) A kind of method of data synchronization, apparatus and system
CN103944993A (en) Million-level user simultaneous online mobile platform server architecture
CN104025066B (en) The isomery memory chips calculated for energy efficient stack
CN102710763B (en) The method and system of a kind of distributed caching pond, burst and Failure Transfer
CN103870393B (en) cache management method and system
CN103023863A (en) Server cluster and server system
CN108540556A (en) A kind of fining Session clusters shared system and method based on cache
US20170262214A1 (en) Aggregating memory to create a network addressible storage volume for storing virtual machine files
CN103634411A (en) Real-time market data broadcasting system and real-time market data broadcasting method with state consistency
CN104410531B (en) The system architecture method of redundancy
CN103475659A (en) Fighting method and system based on real-time strategy game
CN114363350A (en) Service management system and method
US10067841B2 (en) Facilitating n-way high availability storage services
CN102820994A (en) Data exchange device and data exchange method for network isolation environment
CN104468722B (en) A kind of method of training data classification storage in aviation management training system
CN107800741B (en) MMORPG server architecture

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination