[go: up one dir, main page]

CN113440858A - Data processing method and device - Google Patents

Data processing method and device Download PDF

Info

Publication number
CN113440858A
CN113440858A CN202110753232.4A CN202110753232A CN113440858A CN 113440858 A CN113440858 A CN 113440858A CN 202110753232 A CN202110753232 A CN 202110753232A CN 113440858 A CN113440858 A CN 113440858A
Authority
CN
China
Prior art keywords
data
server
merging
game
information
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
CN202110753232.4A
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.)
Zhuhai Kingsoft Online Game Technology Co Ltd
Original Assignee
Zhuhai Kingsoft Online Game Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhuhai Kingsoft Online Game Technology Co Ltd filed Critical Zhuhai Kingsoft Online Game Technology Co Ltd
Priority to CN202110753232.4A priority Critical patent/CN113440858A/en
Publication of CN113440858A publication Critical patent/CN113440858A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/70Game security or game management aspects
    • A63F13/77Game security or game management aspects involving data related to game devices or game servers, e.g. configuration data, software version or amount of memory
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/30Interconnection arrangements between game servers and game devices; Interconnection arrangements between game devices; Interconnection arrangements between game servers
    • A63F13/35Details of game servers
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/60Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/25Integrating or interfacing systems involving database management systems
    • G06F16/252Integrating or interfacing systems involving database management systems between a Database Management System and a front-end application
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/20Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterised by details of the game platform
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/50Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by details of game servers
    • A63F2300/53Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by details of game servers details of basic data processing
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/50Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by details of game servers
    • A63F2300/55Details of game data or player data management
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/50Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by details of game servers
    • A63F2300/57Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game characterized by details of game servers details of game services offered to the player
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F2300/00Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
    • A63F2300/60Methods for processing data by generating or executing the game program
    • A63F2300/6009Methods for processing data by generating or executing the game program for importing or creating game content, e.g. authoring tools during game development, adapting content to different platforms, use of a scripting language to create content

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Databases & Information Systems (AREA)
  • Quality & Reliability (AREA)
  • Business, Economics & Management (AREA)
  • Computer Security & Cryptography (AREA)
  • General Business, Economics & Management (AREA)
  • Data Mining & Analysis (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application provides a data processing method and a device, wherein the data processing method comprises the following steps: receiving a merge request submitted by at least two servers in a target game; reading a preset data information configuration table according to the merging request to obtain server merging information corresponding to the target game; determining a master server and a slave server in the at least two servers, and respectively determining databases corresponding to the master server and the slave server; and merging the data in the databases respectively corresponding to the master server and the slave server based on the server merging information.

Description

Data processing method and device
Technical Field
The present application relates to the field of computer technologies, and in particular, to a data processing method and apparatus.
Background
With the development of internet technology, games become an integral part of users, and game service parties can provide high-quality game services for users; in general, a plurality of uniforms are provided in a game so as to facilitate the compliance processing of players related to the game; with the improvement of the performance of the server, the calculation amount of the load of the server corresponding to various types of games is higher and higher; in order to reduce the text for maintaining the server, the merge processing is involved, namely at least two zone uniforms in the same game are merged together, which involves the merge processing operation of the data corresponding to different zone uniforms; in the prior art, when games are combined, a combination tool is separately arranged for one game, the reusability of the combination tool is low, maintenance personnel is required to participate, and the combination processing period is greatly increased, so that the experience of a player is influenced, and meanwhile, because the data types, character string types or binary data related to different games are not consistent, when different games are combined, one combination tool needs to be separately compiled for each game, the tool can only be used for combining a server related to one single game, and the reusability of the combination tool is low; meanwhile, because the writing of the compliance tool is realized by the C code, if the compliance tool needs to be updated, the C code needs to be rewritten, which consumes more manpower and material resources in the process, and thus an effective solution is needed to solve the above problems.
Disclosure of Invention
In view of this, embodiments of the present application provide a data processing method to solve technical defects in the prior art. The embodiment of the application also provides a data processing device, a computing device and a computer readable storage medium.
According to a first aspect of embodiments of the present application, there is provided a data processing method, including:
receiving a merge request submitted by at least two servers in a target game;
reading a preset data information configuration table according to the merging request to obtain server merging information corresponding to the target game;
determining a master server and a slave server in the at least two servers, and respectively determining databases corresponding to the master server and the slave server;
and merging the data in the databases respectively corresponding to the master server and the slave server based on the server merging information.
Optionally, the reading a preset data information configuration table according to the merge request to obtain server merge information corresponding to the target game includes:
analyzing the merging request to obtain a game identifier corresponding to the target game;
reading the preset data information configuration table according to the game identifier to obtain data information corresponding to the target game;
and integrating the data information, and acquiring the server merging information corresponding to the target game according to an integration result.
Optionally, the determining a master server and a slave server in the at least two servers includes:
determining server merging paths corresponding to the at least two servers according to the merging request;
selecting a server corresponding to an end node in the server merging path as the main server;
and selecting the servers respectively corresponding to the intermediate node and the starting node in the server merging path as the slave servers.
Optionally, before the step of performing the merging processing on the data in the databases respectively corresponding to the master server and the slave server based on the server merging information is executed, the method further includes:
judging whether a conflict processing strategy corresponding to the target game exists in the server merging information;
and if not, executing the step of merging the data in the databases respectively corresponding to the master server and the slave server based on the server merging information.
Optionally, if the determination result of determining whether the conflict processing policy corresponding to the target game exists in the server merge information is yes, the following steps are performed:
reading game data in a database corresponding to the slave server;
determining initial game data in the game data according to the conflict processing strategy, and converting the initial game data into target game data;
updating a database corresponding to the slave server based on the target game data;
correspondingly, the merging the data in the databases respectively corresponding to the master server and the slave server based on the server merging information includes:
and merging the game data in the database corresponding to the master server and the game data in the database updated by the slave server based on the server merging information.
Optionally, the determining initial game data in the game data according to the conflict handling policy includes:
determining a conflict data type according to the conflict processing strategy, and determining intermediate game data corresponding to the conflict data type in the game data;
and comparing the intermediate game data with the game data in the database corresponding to the main server, and determining the initial game data according to the comparison result.
Optionally, the converting the initial game data into the target game data includes:
converting character type data in the initial game data into target character type data, and converting binary data in the initial game data into target binary data;
composing the target game data based on the target character type data and the target binary data.
Optionally, converting the binary data in the initial game data into target binary data, comprising:
extracting first binary data and second binary data from the initial game data, and displaying the first binary data to a user;
receiving an adjusting instruction submitted by the user aiming at the first binary data, and converting the first binary data into third binary data according to the adjusting instruction;
converting the second binary data into fourth binary data according to the conflict processing strategy;
composing the target binary data based on the third binary data and the fourth binary data.
Optionally, before the step of performing the merging processing on the data in the databases respectively corresponding to the master server and the slave server based on the server merging information is executed, the method further includes:
extracting first data in a database corresponding to the master server and second data in a database corresponding to the slave server;
and respectively writing the first data and the second data into a backup database.
Optionally, after the step of performing merging processing on the data in the databases respectively corresponding to the master server and the slave server based on the server merging information is executed, the method further includes:
reading a service log corresponding to the merging processing operation under the condition that the merging processing result is merging failure;
determining merging failure information according to the service log, and extracting the first data and the second data from the backup database based on the merging failure information;
and writing the first data into a database corresponding to the master server, and writing the second data into a database corresponding to the slave server.
Optionally, the merging, based on the server merging information, data in the databases respectively corresponding to the master server and the slave server, includes:
and merging the data in the database corresponding to the slave server into the database corresponding to the master server based on the server merging information.
According to a second aspect of embodiments of the present application, there is provided a data processing apparatus including:
a receiving module configured to receive a merge request submitted for at least two servers in a target game;
the reading module is configured to read a preset data information configuration table according to the merging request to obtain server merging information corresponding to the target game;
the determining module is configured to determine a master server and a slave server in the at least two servers, and respectively determine databases corresponding to the master server and the slave server;
and the merging module is configured to merge data in the databases respectively corresponding to the master server and the slave server based on the server merging information.
According to a third aspect of embodiments herein, there is provided a computing device comprising:
a memory and a processor;
the memory is for storing computer-executable instructions that when executed by the processor implement the steps of the data processing method.
According to a fourth aspect of embodiments herein, there is provided a computer-readable storage medium storing computer-executable instructions that, when executed by a processor, implement the steps of the data processing method.
According to the data processing method, after the merging requests submitted by at least two servers in the target game are received, the preset data information configuration table can be read according to the merging requests so as to obtain the server merging information corresponding to the target game, the server merging information of a large number of games is stored through the data information configuration table, high multiplexing efficiency is achieved, and extra operation of operation and maintenance personnel is saved; after the server merging information is determined, the main server and the slave server can be determined in the at least two servers, the databases corresponding to the main server and the slave server are determined respectively, and finally, the data in the databases corresponding to the main server and the slave server are merged according to the server merging information.
Drawings
Fig. 1 is a flowchart of a data processing method according to an embodiment of the present application;
fig. 2 is a flowchart illustrating a conflict handling operation in a data processing method according to an embodiment of the present application;
FIG. 3 is a flowchart illustrating a data processing method applied to a scene of a game zone service merge according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present application;
fig. 5 is a block diagram of a computing device according to an embodiment of the present application.
Detailed Description
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. This application is capable of implementation in many different ways than those herein set forth and of similar import by those skilled in the art without departing from the spirit of this application and is therefore not limited to the specific implementations disclosed below.
The terminology used in the one or more embodiments of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the one or more embodiments of the present application. As used in one or more embodiments of the present application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used in one or more embodiments of the present application refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It will be understood that, although the terms first, second, etc. may be used herein in one or more embodiments of the present application to describe various information, these information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, a first aspect may be termed a second aspect, and, similarly, a second aspect may be termed a first aspect, without departing from the scope of one or more embodiments of the present application.
First, the noun terms to which one or more embodiments of the present invention relate are explained.
RPG (Role-playing Game): role-playing games, where players play one or more roles in the game, have a complete story line.
Act (action game): an action game. The player controls the game character to eliminate enemies or save the game which is passed by the player in various modes, does not pursue the story line intentionally, and is designed aiming at common players and aiming at purely entertainment and leisure.
Avg (advance game): an adventure game, wherein a player controls a game character to play a virtual adventure game.
FPS (first Personal Shooting Game): the first-person perspective shooting game is played at the subjective perspective of the player.
TPS (third Personal smoothening Game): the third person shooter game is different from the first person shooter game in that only the view of the leading role is displayed on the screen in the first person shooter game, and the third person shooter game emphasizes the sense of action, the leading role being visible on the game screen.
In the present application, a data processing method is provided. The present application relates to a data processing apparatus, a computing device, and a computer-readable storage medium, which are described in detail in the following embodiments one by one.
In the data processing method provided by this embodiment, after receiving the merge request submitted by at least two servers in the target game, the preset data information configuration table may be read according to the merge request to obtain server merge information corresponding to the target game, so that a large amount of server merge information of the game is stored in the data information configuration table, high multiplexing efficiency is achieved, and additional operations of operation and maintenance personnel are saved; after the server merging information is determined, the main server and the slave server can be determined in the at least two servers, the databases corresponding to the main server and the slave server are determined respectively, and finally, the data in the databases corresponding to the main server and the slave server are merged according to the server merging information.
Fig. 1 shows a flowchart of a data processing method according to an embodiment of the present application, which specifically includes the following steps:
step S102, receiving a merging request submitted by at least two servers in the target game.
Specifically, the target game specifically refers to a game that needs to be subjected to compliance processing, and the target game may be an RPG type game, an ACT type game, an AVG type game, an FPS type game, a TPS type game, or the like; in practical applications, the game for performing the compliance process may be selected according to requirements, and the embodiment is not limited herein. Correspondingly, the at least two servers specifically refer to at least two districts corresponding to the target game. For example, in the network game J, which includes 100 suits, after a player logs in the game, the player needs to select different suits to play the game; that is, different suits correspond to different player clusters, and the player clusters do not affect each other (except for cross-suit activities set by a game mechanism). Further, the merge request specifically refers to a request for performing a merge service for the at least two servers; correspondingly, the uniform combination processing specifically means that one or more uniform are combined into another uniform, and the player data and the game data in the multiple uniform are combined, so that players who are in different uniform before can play games in the same uniform.
Based on this, the merging request can be submitted by a developer of the target game, and when the game developer needs to reduce the maintenance cost of the target game, the merging request can be used for starting the merging processing operation, so that the merging processing of at least two servers in the target game is realized; or the merging request can be submitted by an agent of the target game, and when the game agent monitors that the number of players is reduced, the merging request can be used for starting the merging processing operation, so that the merging processing of at least two servers in the target game is realized.
In specific implementation, the target game may be a mobile-end type game or a PC-end type game, and as long as a plurality of servers are involved, the data processing method provided in this embodiment may be used to complete the compliance processing operation, which is not limited in this embodiment.
And step S104, reading a preset data information configuration table according to the merging request, and acquiring server merging information corresponding to the target game.
Specifically, after receiving the merge request, further, in order to enable a merge processing operation for supporting multiple games, a data information configuration table may be stored in advance, where table type information, field type information, character string type information, data type information, binary data information, and/or conflict processing policy information and the like related to different games are recorded in the data information configuration table, and are used for supporting the merge processing operation for different games. That is, after receiving the merge request, the preset data information configuration table may be read according to the request, so as to determine server merge information corresponding to the target game, so as to facilitate subsequent completion of a service processing operation based on the server merge information; the preset data information configuration table stores server merging information respectively corresponding to different games; correspondingly, the server merging information specifically refers to relevant information for merging various types of data when the server merging information is used for performing the merging processing operation on the game, and relevant information for avoiding conflict processing strategies caused by conflict of various types of data; the information related to the merging process performed on the various types of data refers to data type information, character string information, numerical information, and the like that need to be merged.
Further, since the data information configuration table stores server merge information corresponding to different games, if a traversal mode is adopted, a large amount of computing resources will be consumed, and therefore, in order to improve determination of the server merge information corresponding to the target game, the determination may be completed by reading a game identifier, in this embodiment, a specific implementation manner is as follows:
analyzing the merging request to obtain a game identifier corresponding to the target game;
reading the preset data information configuration table according to the game identifier to obtain data information corresponding to the target game;
and integrating the data information, and acquiring the server merging information corresponding to the target game according to an integration result.
Specifically, the game identifier is a unique identifier corresponding to the target game, and the game identifier has uniqueness; correspondingly, the data information specifically refers to information recorded in the data information configuration table, and the data information includes, but is not limited to, field information, character string information, data type information, byte information, conflict processing policy information, and the like related to the target game, and is used for supporting subsequent compliance processing operations.
Based on this, after the merge request is received, the merge request may be analyzed to obtain a game identifier corresponding to the target game, and then the preset data information configuration table is read based on the game identifier to quickly determine the data information corresponding to the target game, at this time, information related to merge data that needs to be involved when at least two servers in the target game perform merge processing is determined, and then the data information is integrated, and the server merge information corresponding to the target game may be obtained according to an integration result, so that when server merge processing is performed subsequently, completion may be performed based on the server merge information to avoid a problem of data collision.
For example, when a game developer needs to perform a uniform for a uniform (server) a, a uniform b and a uniform c in a flag J game, the game developer will submit a uniform request for the uniform a, the uniform b and the uniform c in the J game; after receiving the service closing request, analyzing the service closing request to obtain a game identifier ID _ J corresponding to the J game, at this time, reading a preset data information configuration table according to the game identifier ID _ J, wherein the data information configuration table is shown in the following table 1, obtaining data information corresponding to the J game according to a reading result, wherein the data information comprises a Script path Script, a field name Key, a data Type and a conflict handling strategy IsCallScript, and taking the part of data information as service closing merging information corresponding to the J game for subsequently finishing service closing processing operations of a service closing a, a service closing b and a service closing c; wherein, table 1 is as follows:
Script Key Type IsCallScript ……
ID_J S_J K_J T_J I_J ……
ID_S S_S K_S T_S I_S ……
…… …… …… …… …… ……
in summary, by writing the game identifier in the data information configuration table, the service area merging information corresponding to the target game can be quickly determined, so as to improve the merge processing efficiency, and the server merging information corresponding to a plurality of games is recorded through the data information configuration table, so as to support the operation of merge processing of any game, thereby realizing better reusability.
Step S106, determining a master server and a slave server in the at least two servers, and respectively determining databases corresponding to the master server and the slave server.
Specifically, on the basis of determining the server merging information corresponding to the target game, further, since the merging of servers generally has a master-slave relationship, that is, one server needs to be merged with another server, if the zone suit 2 in the J game is merged to the zone suit 1, the reserved zone suit after the completion of the merging is the zone suit 1, and the merged zone suit 1 contains all players of the zone suit 2; therefore, when the merging process is performed on at least two servers in the target game, it is necessary to determine the master server and the slave server among the at least two servers. The master server specifically refers to a server which can be reserved finally, and the slave server specifically refers to a server which needs to be merged to the master server, namely, the slave server is merged into the master server finally; in practical application, in the process of one service agreement process, only one master server exists, while a plurality of slave servers may exist, that is, a plurality of servers may be simultaneously merged into the same master server.
Based on this, the databases corresponding to the master server and the slave servers are databases storing game data related to the servers, and the databases store player data, game data, logs and other contents, when the master server and the slave servers are merged, the data in the databases corresponding to the servers are merged, so that the database corresponding to the master server can accommodate the contents in the databases corresponding to the plurality of slave servers, and finally, the game data related to the players in the slave servers are migrated to the master server, and the players related to the master server and the slave servers are merged into one server to play the game.
Further, when determining the master server and the slave server from at least two servers, since the last merge processing operation is controlled based on the merge request, the master/slave server may be determined by determining a merge path through the merge request, and in this embodiment, a specific implementation manner is as follows:
determining server merging paths corresponding to the at least two servers according to the merging request;
selecting a server corresponding to an end node in the server merging path as the main server;
and selecting the servers respectively corresponding to the intermediate node and the starting node in the server merging path as the slave servers.
Specifically, the server merging path specifically refers to a merging path corresponding to merging one server into another server when the servers perform merging processing. Correspondingly, the end node specifically refers to a node located in the last link in the server merge path, and the server corresponding to the node is the main server; correspondingly, the starting node is specifically a node located in a first link in the server merging path, the intermediate node is specifically a node located between the starting stage and the end node in the server merging path, and when only two servers needing to be subjected to the unification processing are provided, the intermediate node can be an empty set; and the servers corresponding to the intermediate node and the starting node are the slave servers which need to be merged with the master server.
Based on this, after the compliance request is received, a server merging path corresponding to the at least two servers can be determined according to the compliance request, a start node, an intermediate node and an end node in the server merging path are determined, at this time, a server corresponding to the start node and the intermediate node is selected as the slave server, and a server corresponding to the end node is selected as the master server, so that the server can be used for completing compliance processing based on the master/slave servers.
According to the above example, when it is determined that the uniform processing needs to be performed on the uniform a, the uniform b and the uniform c according to the uniform request, the path of the uniform c and the uniform b which needs to be combined by the game developer is determined to be uniform c < uniform b < uniform a, that is, the game developer needs to combine the uniform c and the uniform b into the uniform a, the uniform c corresponding to the starting node, the uniform b corresponding to the middle node and the uniform a corresponding to the end node are determined according to the path, the uniform c is determined to be the main uniform according to the uniform information corresponding to each node, and the uniform b and the uniform a are the slave uniform, so as to facilitate the subsequent combining processing between the uniform.
To sum up, the determination of the master server and the slave server is completed by analyzing the merging path of the server, so that the accuracy of the merging path can be ensured, and the participation of operation and maintenance personnel can be reduced, thereby further improving the service-meeting processing efficiency and achieving the purpose of saving manpower and material resources.
And step S108, merging the data in the databases respectively corresponding to the master server and the slave server based on the server merging information.
Specifically, after the determination of the master server and the slave server and the determination of the databases corresponding to the master server and the slave server are completed, the data in the databases may be further merged according to the server merging information. That is, in the merging process, the data in the database corresponding to the slave server is merged to the database corresponding to the master server based on the server merging information; the method and the system achieve the purpose that game data corresponding to the slave server are migrated to the database corresponding to the master server, so that the compliance processing of the master server and the slave server is completed, and subsequently, when a game is played, a player related to the master server and a player related to the slave server can play the game in one server, so that the purpose of saving and maintaining server resources is achieved, and the player can be conveniently subjected to compliance processing.
In practical application, although different players may be in different servers during the compliance process, the participating game data is the same game, so that the data corresponding to the servers are merged together during the compliance process, and the game content is not changed. Meanwhile, because the data in the database corresponding to each server are generally stored separately, the data do not interfere with each other, and overlapping parts may exist, besides the data related to the game body, the overlapping data may be the ID, login name or game role name corresponding to the player; such as zone suit a and zone suit b, may have a character with a game character name of 123. However, when performing the merge processing, if the data that are partially overlapped are not processed, a merge error will be caused, and at the same time, a large number of duplicate IDs, login names, or game character names will be generated in the same server, and it is easy to confuse the player, so in order to avoid the influence of this problem, the determination of the conflict processing policy may be performed first during the data merge processing, and in this embodiment, the specific implementation manner is as follows:
judging whether a conflict processing strategy corresponding to the target game exists in the server merging information;
if not, executing step S108, and merging the data in the databases respectively corresponding to the master server and the slave server based on the server merging information.
Specifically, when the conflict processing policy corresponding to the target game does not exist in the server merge information, it is described that the target game does not involve overlapping data when performing the merge processing of the master/slave servers, and at this time, the merge processing is directly performed. Namely, the data in the database corresponding to the slave server is merged into the database corresponding to the master server, so as to achieve the purpose of compliance.
If yes, executing step S1082 to step S1088; fig. 2 is a flowchart illustrating a conflict handling operation in a data processing method according to an embodiment of the present application; specifically, the method includes steps S1082 through S1088:
and step S1082, the game data in the database corresponding to the slave server is read.
Specifically, when a conflict processing policy corresponding to the target game exists in the server consolidated information, it is described that the target game will involve overlapping data when performing the consolidation processing of the master/slave servers, and when the same game performs different consolidation processing for a plurality of times, most of the types of conflict data that can be involved are the same, so that when the conflict processing policy corresponding to the target game exists in the server consolidated information, the adjustment can be performed according to the conflict processing policy to solve the conflict problem and then perform the consolidation processing.
Therefore, under the condition that a conflict processing strategy is determined to exist, the possibility that data related to a server of a target game conflicts is described, and in order to avoid data confusion, data in a database corresponding to a slave server can be converted, namely game data in the database corresponding to the slave server is read, so that the purpose that the data which do not conflict with data in a database corresponding to a master server can be converted in combination with the conflict processing strategy and merged is achieved, and the purpose of compliance is achieved.
Step S1084, determining initial game data in the game data according to the conflict processing strategy, and converting the initial game data into target game data.
Specifically, the conflict processing policy specifically refers to a policy for converting game data in a database corresponding to a slave server of the target game, and the converted game data is data that may conflict with data in the database corresponding to the master server; correspondingly, the initial game data is game data which may occur in a database corresponding to the server, and the target game data is specifically game data obtained after conversion according to the conflict processing strategy.
Based on this, under the condition that the conflict processing strategy is determined to exist, the initial game data can be determined in the game data in the database corresponding to the slave server according to the conflict processing strategy, and the initial game data is converted, so that the target game data can be obtained, and the problem that the server fails to be conformed due to conflict during subsequent merging is avoided.
Further, when the initial game data is determined according to the conflict processing policy, because there are many game data in the database corresponding to the slave server, if each piece of data is converted to avoid a conflict, a large amount of computing resources are wasted, and therefore, in order to save the waste of computing resources, data overlapping with the game data in the database corresponding to the master server may be selected as the initial game data, and in this embodiment, a specific implementation manner is as follows:
determining a conflict data type according to the conflict processing strategy, and determining intermediate game data corresponding to the conflict data type in the game data;
and comparing the intermediate game data with the game data in the database corresponding to the main server, and determining the initial game data according to the comparison result.
Specifically, the conflict data type is a type determined according to the conflict processing policy and in which a data conflict may exist, in order to avoid a failure in compliance due to a data conflict, a more comprehensive conflict data type is recorded in the conflict processing policy, so that game data in which a conflict may occur in the game data can be extracted, that is, the data is the intermediate game data; furthermore, although the possibility of conflict between the intermediate game data and the data in the database corresponding to the main server is high, if the intermediate game data and the data in the database corresponding to the main server are screened out in a non-aligned manner, the direct conversion calculation amount is also large, so that the intermediate game data source and the game data in the database corresponding to the main server can be compared under the condition that the intermediate game data are obtained, so as to screen out the initial game data, and facilitate the subsequent conversion processing.
On the basis, when the conflict data type is determined according to the conflict processing strategy, the intermediate game data can be screened from the game data according to the conflict data type, and in order to further reduce consumption of calculation amount, the intermediate game data can be compared with the game data in the database corresponding to the main server, so that the initial game data can be determined in a finer granularity, subsequent conversion processing can be completed, only data which can conflict is determined, not only can computing resources be saved, but also the compliance processing efficiency is effectively improved.
Further, in the process of converting the initial game data into the target game data, considering that there are many data types that may conflict with each other, in order to sufficiently avoid the conflict problem, different processing operations may be performed for different data types, and in this embodiment, a specific implementation manner is as follows:
converting character type data in the initial game data into target character type data, and converting binary data in the initial game data into target binary data;
composing the target game data based on the target character type data and the target binary data.
Specifically, the character type data specifically refers to data corresponding to a number and a character string type in the initial game data, and the data is mapped to a game, and may be data corresponding to an ID of a player, data corresponding to a name, or data corresponding to a game character; correspondingly, the binary data specifically refers to data corresponding to the type of the binary data in the initial game data, and the part of data is mapped into the game, and may be a name corresponding to a building created by a player, a name corresponding to a virtual animal, and the like.
The target character type data obtained after conversion specifically refers to data added with other fields which do not influence game contents on the basis of original character type data; accordingly, the target binary data specifically refers to binary data obtained after each field is re-determined on the basis of the binary data.
Based on the above, after the initial game data is determined, the character type data in the initial game data can be selected for conversion, and the target character type data is obtained; and meanwhile, binary data in the initial game data are converted to obtain target binary data, and finally the target game data can be formed based on the target character type data and the target binary data and used for subsequently updating a database corresponding to a slave server and performing uniform processing operation.
Furthermore, in the process of converting the binary data into the target binary data, considering that an individual field in the binary data needs to be redefined, in order to ensure that the defined binary data does not conflict with each other due to compliant processing, the redefined binary data may be presented to a user, and in this embodiment, the specific implementation manner is as follows:
extracting first binary data and second binary data from the initial game data, and displaying the first binary data to a user;
receiving an adjusting instruction submitted by the user aiming at the first binary data, and converting the first binary data into third binary data according to the adjusting instruction;
converting the second binary data into fourth binary data according to the conflict processing strategy;
composing the target binary data based on the third binary data and the fourth binary data.
Specifically, the first binary data is binary data that needs to be redefined according to a game strategy in the initial game data, and the binary data cannot be converted according to the conflict handling strategy; the second binary data is binary data which needs to be redefined according to the game strategy in the initial game data, and the part of data can be converted according to the conflict processing strategy; correspondingly, the third binary data is binary data obtained after the game plan is redefined; and the fourth binary data is the binary data obtained after redefining according to the conflict processing strategy.
Based on this, the first binary data and the second binary data can be firstly extracted from the initial game data, and the first binary data is displayed to the user; because the first binary data and the second binary data are data of which fields need to be redefined, an adjusting instruction submitted by the user for the first binary data can be received, and at this time, the first binary data can be converted according to the adjusting instruction to obtain the third binary data; meanwhile, if all binary data are handed to a user for adjustment, excessive manpower is wasted, so that the second binary data can be selected and directly converted according to the conflict processing strategy to obtain the fourth binary data, and finally the target binary data can be formed based on the third binary data and the fourth binary data.
In conclusion, different binary data are adjusted by adopting different processing strategies, so that manpower and material resources can be saved, the influence caused by the conflict problem can be reduced, and the uniform processing operation of the server is further improved.
Step S1086, updating the database corresponding to the slave server based on the target game data.
Step S1088, merging the game data in the database corresponding to the master server and the game data in the database updated by the slave server based on the server merging information.
Specifically, after the initial game data is converted into the target game data, the database corresponding to the slave server may be updated according to the converted target game data, so as to avoid a problem of a failure in compliance due to data collision when a subsequent compliance process is performed.
Based on this, after the updating of the database corresponding to the slave server is completed, the data in the updated database can be merged into the database corresponding to the master server according to the server merging information, so as to achieve the merging processing operation of the at least two servers.
Along the above example, when determining that the zone suit b and the zone suit c are slave zone suits and the zone suit a is a master zone suit, further, the zone suit merging information corresponding to the J game can be detected, and if the condition that the zone suit merging information corresponding to the J game contains the conflict processing strategy is detected, the conflict processing operation can be performed; reading game data in databases corresponding to the zone uniform c and the zone uniform b respectively, and determining types of data conflicts which may occur according to conflict processing strategies, wherein the types of data conflicts comprise account ID data, game role name data and game role pet name data; at this time, the data may be extracted from the game data in the databases corresponding to the zone suit c and the zone suit b as intermediate data, account ID data, game character name data, and game character pet name data corresponding to the zone suit c and the zone suit b are compared with the game data in the database corresponding to the zone suit a, and it is determined from the comparison result that the zone suit c and the zone suit a have data with the same game role name "a" (both the zone suit a and the zone suit c have a game character with the name "a"), and it is also determined that the zone suit b and the zone suit a have data with the same account ID "789" (both the zone suit b and the zone suit c have a game ID with the account number of 789), and then the data is used as initial game data.
Further, in order to avoid the problem that the game character name and the account ID are duplicated when the zone uniform b and the zone uniform c are combined to the zone uniform a, the character type data in the initial game data may be selected: converting the game role name data, wherein the conversion mode specifically means adding a new field into the data corresponding to the game role name 'A' in the district uniform c, so that the game role name in the district uniform c is changed into 'A1'; simultaneously selecting binary data in the initial game data: the account ID data is converted, specifically, the conversion mode is that binary data corresponding to the account ID of "789" in the uniform b is displayed to the game plan, and after an adjustment instruction submitted by the game plan for the binary data corresponding to the account ID of "789" is received, the binary data corresponding to the account ID of "789" in the uniform b may be converted at this time, so that the account ID of "789" in the uniform b is changed into: "7890"; after the conversion from the initial game data to the target game data is completed according to the conflict adjustment strategy, updating databases corresponding to the zone service b and the zone service c according to the converted data, and finally merging the game data in the databases corresponding to the updated zone service b and the updated zone service c into the database corresponding to the zone service a so as to achieve the purpose of merging the zone service c, the zone service b and the zone service a; and completing the uniform processing operation in the J game.
In conclusion, by adopting the conflict processing strategy to convert the data of different types, the problem of server merging failure caused by data conflict can be avoided, and the success rate of the service can be improved, so that the service processing efficiency is further improved.
Meanwhile, as the conflict processing strategy is pre-written in the data information configuration table, when the strategy needs to be updated, the conflict processing strategy can be updated only by adopting a writing condition mode without updating a bottom layer code, so that the time for re-editing the conformity processing tool is saved to a great extent, and the reusability of conformity processing is further improved.
In addition, when merging processing of at least two servers is performed, since merging processing of data is required at all, if merging fails, data loss is likely to be caused, and normal operation of a target game cannot be supported, so that in order to avoid an influence caused by a data loss problem, data persistence can be performed in a backup manner, and in this embodiment, a specific implementation manner is as follows:
extracting first data in a database corresponding to the master server and second data in a database corresponding to the slave server;
and respectively writing the first data and the second data into a backup database.
Specifically, the first data specifically refers to game data in a database corresponding to the master server, and the second data specifically refers to game data in a database corresponding to the slave server; therefore, when the service agreement is required, the first data in the database corresponding to the master server and the second data in the database corresponding to the slave server can be written into the backup database respectively, so that the data can be restored when the service agreement fails.
Furthermore, when the service agreement fails, the first data and the second data may be extracted from the backup database for restoration, and the service log may also be read to determine the reason of the service agreement failure and make adjustments in time, in this embodiment, the specific implementation manner is as follows:
reading a service log corresponding to the merging processing operation under the condition that the merging processing result is merging failure;
determining merging failure information according to the service log, and extracting the first data and the second data from the backup database based on the merging failure information;
and writing the first data into a database corresponding to the master server, and writing the second data into a database corresponding to the slave server.
Specifically, the service log is a log for recording information such as data intersection, service operation and the like generated during service matching; correspondingly, the combination failure information specifically refers to relevant information causing the failure of the service-meeting processing operation, the recovery processing of the data can be triggered through the service-meeting failure information, and meanwhile, operation and maintenance personnel can analyze the reason of the service-meeting failure conveniently.
Based on this, when the merging result of the merged data is failure, the service log corresponding to the merging processing operation may be read to determine the merging failure information, and at this time, data restoration processing is triggered based on the merging failure information, that is, the first data and the second data in the backup database are extracted according to the merging failure information, and the first data is written into the database corresponding to the master server, and the second data is written into the database corresponding to the slave server, so that the purpose of data restoration is achieved, and data loss is avoided.
To sum up, through carrying out backup processing on data, the problem of data loss under the condition of merging failure can be effectively avoided, and meanwhile, the merging failure information is determined through analyzing the service log, so that the reason of merging failure can be conveniently and quickly determined by a user, therefore, the correspondence can be made in time, and the gap expansion is avoided.
In the data processing method provided by this embodiment, after receiving the merge request submitted by at least two servers in the target game, the preset data information configuration table may be read according to the merge request to obtain server merge information corresponding to the target game, so that a large amount of server merge information of the game is stored in the data information configuration table, high multiplexing efficiency is achieved, and additional operations of operation and maintenance personnel are saved; after the server merging information is determined, the main server and the slave server can be determined in the at least two servers, the databases corresponding to the main server and the slave server are determined respectively, and finally, the data in the databases corresponding to the main server and the slave server are merged according to the server merging information.
The following describes the data processing method further by taking the processing application of the data processing method provided by the present application to the game area service integration as an example, with reference to fig. 3. Fig. 3 shows a processing flow chart of a data processing method applied to a game zone service merging scenario according to an embodiment of the present application, which specifically includes the following steps:
step S302, a joint service request submitted by a game developer for a first zone service and a second zone service in a target game is received.
And step S304, analyzing the service request to obtain a game identifier corresponding to the target game.
And step S306, reading a preset data information configuration table according to the game identifier, and obtaining the region service merging information corresponding to the target game.
And step S308, selecting the first zone clothes as the master zone clothes and the second zone clothes as the slave zone clothes according to the merging request.
In step S310, when the conflict handling policy is included in the server merge information, the game data in the database corresponding to the slave servers is read.
Step S312, determining initial game data in the game data according to the conflict handling policy, and converting the initial game data into target game data.
In step S314, the database corresponding to the slave servers is updated based on the target game data.
And step S316, merging the game data in the updated database corresponding to the slave region clothing into the database corresponding to the master region clothing based on the region clothing merging information.
Step S318, completing the operation of merging the first region service into the second region service according to the data merging result.
In the data processing method provided by this embodiment, after receiving the merge request submitted by at least two servers in the target game, the preset data information configuration table may be read according to the merge request to obtain server merge information corresponding to the target game, so that a large amount of server merge information of the game is stored in the data information configuration table, high multiplexing efficiency is achieved, and additional operations of operation and maintenance personnel are saved; after the server merging information is determined, the main server and the slave server can be determined in the at least two servers, the databases corresponding to the main server and the slave server are determined respectively, and finally, the data in the databases corresponding to the main server and the slave server are merged according to the server merging information.
Corresponding to the above method embodiment, the present application further provides an embodiment of a data processing apparatus, and fig. 4 shows a schematic structural diagram of a data processing apparatus provided in an embodiment of the present application. As shown in fig. 4, the apparatus includes:
a receiving module 402 configured to receive a merge request submitted for at least two servers in a target game;
a reading module 404, configured to read a preset data information configuration table according to the merge request, and obtain server merge information corresponding to the target game;
a determining module 406, configured to determine a master server and a slave server among the at least two servers, and determine databases corresponding to the master server and the slave server, respectively;
a merging module 408 configured to merge data in the databases respectively corresponding to the master server and the slave server based on the server merging information.
In an optional embodiment, the reading module 404 is further configured to:
analyzing the merging request to obtain a game identifier corresponding to the target game; reading the preset data information configuration table according to the game identifier to obtain data information corresponding to the target game; and integrating the data information, and acquiring the server merging information corresponding to the target game according to an integration result.
In an optional embodiment, the determining module 406 is further configured to:
determining server merging paths corresponding to the at least two servers according to the merging request; selecting a server corresponding to an end node in the server merging path as the main server; and selecting the servers respectively corresponding to the intermediate node and the starting node in the server merging path as the slave servers.
In an optional embodiment, the data processing apparatus includes:
the judging module is configured to judge whether a conflict processing strategy corresponding to the target game exists in the server merging information;
if not, the merge module 408 is run.
In an optional embodiment, if the judgment result of the judgment module is yes, the following modules are operated:
the updating module is configured to read the game data in the database corresponding to the slave server; determining initial game data in the game data according to the conflict processing strategy, and converting the initial game data into target game data; updating a database corresponding to the slave server based on the target game data;
accordingly, the merge module 408 is further configured to:
and merging the game data in the database corresponding to the master server and the game data in the database updated by the slave server based on the server merging information.
In an optional embodiment, the update module is further configured to:
determining a conflict data type according to the conflict processing strategy, and determining intermediate game data corresponding to the conflict data type in the game data; and comparing the intermediate game data with the game data in the database corresponding to the main server, and determining the initial game data according to the comparison result.
In an optional embodiment, the update module is further configured to:
converting character type data in the initial game data into target character type data, and converting binary data in the initial game data into target binary data; composing the target game data based on the target character type data and the target binary data.
In an optional embodiment, the update module is further configured to:
extracting first binary data and second binary data from the initial game data, and displaying the first binary data to a user; receiving an adjusting instruction submitted by the user aiming at the first binary data, and converting the first binary data into third binary data according to the adjusting instruction; converting the second binary data into fourth binary data according to the conflict processing strategy; composing the target binary data based on the third binary data and the fourth binary data.
In an optional embodiment, the data processing apparatus further includes:
the backup module is configured to extract first data in a database corresponding to the master server and second data in a database corresponding to the slave server; and respectively writing the first data and the second data into a backup database.
In an optional embodiment, the data processing apparatus further includes:
the recovery module is configured to read a service log corresponding to the merging processing operation when the merging processing result is that merging fails; determining merging failure information according to the service log, and extracting the first data and the second data from the backup database based on the merging failure information; and writing the first data into a database corresponding to the master server, and writing the second data into a database corresponding to the slave server.
In an optional embodiment, the merge module 408 is further configured to:
and merging the data in the database corresponding to the slave server into the database corresponding to the master server based on the server merging information.
After receiving the merge request submitted by at least two servers in the target game, the data processing apparatus provided in this embodiment may read a preset data information configuration table according to the merge request to obtain server merge information corresponding to the target game, so as to store a large amount of server merge information of the game through the data information configuration table, achieve high multiplexing efficiency, and save additional operations of the operation and maintenance staff; after the server merging information is determined, the main server and the slave server can be determined in the at least two servers, the databases corresponding to the main server and the slave server are determined respectively, and finally, the data in the databases corresponding to the main server and the slave server are merged according to the server merging information.
The above is a schematic configuration of a data processing apparatus of the present embodiment. It should be noted that the technical solution of the data processing apparatus and the technical solution of the data processing method belong to the same concept, and details that are not described in detail in the technical solution of the data processing apparatus can be referred to the description of the technical solution of the data processing method. Further, the components in the device embodiment should be understood as functional blocks that must be created to implement the steps of the program flow or the steps of the method, and each functional block is not actually divided or separately defined. The device claims defined by such a set of functional modules are to be understood as a functional module framework for implementing the solution mainly by means of a computer program as described in the specification, and not as a physical device for implementing the solution mainly by means of hardware.
Fig. 5 illustrates a block diagram of a computing device 500 provided according to an embodiment of the present application. The components of the computing device 500 include, but are not limited to, a memory 510 and a processor 520. Processor 520 is coupled to memory 510 via bus 530, and database 550 is used to store data.
Computing device 500 also includes access device 540, access device 540 enabling computing device 500 to communicate via one or more networks 560. Examples of such networks include the Public Switched Telephone Network (PSTN), a Local Area Network (LAN), a Wide Area Network (WAN), a Personal Area Network (PAN), or a combination of communication networks such as the internet. The access device 540 may include one or more of any type of network interface, e.g., a Network Interface Card (NIC), wired or wireless, such as an IEEE802.11 Wireless Local Area Network (WLAN) wireless interface, a worldwide interoperability for microwave access (Wi-MAX) interface, an ethernet interface, a Universal Serial Bus (USB) interface, a cellular network interface, a bluetooth interface, a Near Field Communication (NFC) interface, and so forth.
In one embodiment of the application, the above-described components of computing device 500 and other components not shown in FIG. 5 may also be connected to each other, such as by a bus. It should be understood that the block diagram of the computing device architecture shown in FIG. 5 is for purposes of example only and is not limiting as to the scope of the present application. Those skilled in the art may add or replace other components as desired.
Computing device 500 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., tablet, personal digital assistant, laptop, notebook, netbook, etc.), mobile phone (e.g., smartphone), wearable computing device (e.g., smartwatch, smartglasses, etc.), or other type of mobile device, or a stationary computing device such as a desktop computer or PC. Computing device 500 may also be a mobile or stationary server.
Wherein processor 520 is configured to execute the following computer-executable instructions:
receiving a merge request submitted by at least two servers in a target game;
reading a preset data information configuration table according to the merging request to obtain server merging information corresponding to the target game;
determining a master server and a slave server in the at least two servers, and respectively determining databases corresponding to the master server and the slave server;
and merging the data in the databases respectively corresponding to the master server and the slave server based on the server merging information.
The above is an illustrative scheme of a computing device of the present embodiment. It should be noted that the technical solution of the computing device and the technical solution of the data processing method belong to the same concept, and details that are not described in detail in the technical solution of the computing device can be referred to the description of the technical solution of the data processing method.
An embodiment of the present application further provides a computer-readable storage medium storing computer instructions that, when executed by a processor, are configured to:
receiving a merge request submitted by at least two servers in a target game;
reading a preset data information configuration table according to the merging request to obtain server merging information corresponding to the target game;
determining a master server and a slave server in the at least two servers, and respectively determining databases corresponding to the master server and the slave server;
and merging the data in the databases respectively corresponding to the master server and the slave server based on the server merging information.
The above is an illustrative scheme of a computer-readable storage medium of the present embodiment. It should be noted that the technical solution of the storage medium belongs to the same concept as the technical solution of the data processing method, and details that are not described in detail in the technical solution of the storage medium can be referred to the description of the technical solution of the data processing method.
The foregoing description of specific embodiments of the present application has been presented. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The computer instructions comprise computer program code which may be in the form of source code, object code, an executable file or some intermediate form, or the like. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
It should be noted that, for the sake of simplicity, the above-mentioned method embodiments are described as a series of acts or combinations, but those skilled in the art should understand that the present application is not limited by the described order of acts, as some steps may be performed in other orders or simultaneously according to the present application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
The preferred embodiments of the present application disclosed above are intended only to aid in the explanation of the application. Alternative embodiments are not exhaustive and do not limit the invention to the precise embodiments described. Obviously, many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles of the application and its practical applications, to thereby enable others skilled in the art to best understand and utilize the application. The application is limited only by the claims and their full scope and equivalents.

Claims (14)

1. A data processing method, comprising:
receiving a merge request submitted by at least two servers in a target game;
reading a preset data information configuration table according to the merging request to obtain server merging information corresponding to the target game;
determining a master server and a slave server in the at least two servers, and respectively determining databases corresponding to the master server and the slave server;
and merging the data in the databases respectively corresponding to the master server and the slave server based on the server merging information.
2. The method according to claim 1, wherein the reading a preset data information configuration table according to the merge request to obtain server merge information corresponding to the target game includes:
analyzing the merging request to obtain a game identifier corresponding to the target game;
reading the preset data information configuration table according to the game identifier to obtain data information corresponding to the target game;
and integrating the data information, and acquiring the server merging information corresponding to the target game according to an integration result.
3. The method of claim 1, wherein determining the master server and the slave server from the at least two servers comprises:
determining server merging paths corresponding to the at least two servers according to the merging request;
selecting a server corresponding to an end node in the server merging path as the main server;
and selecting the servers respectively corresponding to the intermediate node and the starting node in the server merging path as the slave servers.
4. The method according to claim 1, wherein before the step of performing the merging processing on the data in the databases respectively corresponding to the master server and the slave server based on the server merging information is performed, the method further comprises:
judging whether a conflict processing strategy corresponding to the target game exists in the server merging information;
and if not, executing the step of merging the data in the databases respectively corresponding to the master server and the slave server based on the server merging information.
5. The method according to claim 4, wherein if the determination result of determining whether the conflict handling policy corresponding to the target game exists in the server consolidated information is yes, the following steps are performed:
reading game data in a database corresponding to the slave server;
determining initial game data in the game data according to the conflict processing strategy, and converting the initial game data into target game data;
updating a database corresponding to the slave server based on the target game data;
correspondingly, the merging the data in the databases respectively corresponding to the master server and the slave server based on the server merging information includes:
and merging the game data in the database corresponding to the master server and the game data in the database updated by the slave server based on the server merging information.
6. The method of claim 5, wherein determining initial game data in the game data according to the conflict handling policy comprises:
determining a conflict data type according to the conflict processing strategy, and determining intermediate game data corresponding to the conflict data type in the game data;
and comparing the intermediate game data with the game data in the database corresponding to the main server, and determining the initial game data according to the comparison result.
7. The method of claim 5, wherein converting the initial game data into target game data comprises:
converting character type data in the initial game data into target character type data, and converting binary data in the initial game data into target binary data;
composing the target game data based on the target character type data and the target binary data.
8. The method of claim 7, wherein converting binary data in the initial game data into target binary data comprises:
extracting first binary data and second binary data from the initial game data, and displaying the first binary data to a user;
receiving an adjusting instruction submitted by the user aiming at the first binary data, and converting the first binary data into third binary data according to the adjusting instruction;
converting the second binary data into fourth binary data according to the conflict processing strategy;
composing the target binary data based on the third binary data and the fourth binary data.
9. The method according to any one of claims 1 to 8, wherein before the step of performing the merging processing on the data in the databases respectively corresponding to the master server and the slave server based on the server merging information is performed, the method further includes:
extracting first data in a database corresponding to the master server and second data in a database corresponding to the slave server;
and respectively writing the first data and the second data into a backup database.
10. The method according to claim 9, wherein after the step of performing the merging processing on the data in the databases respectively corresponding to the master server and the slave server based on the server merging information is performed, the method further comprises:
reading a service log corresponding to the merging processing operation under the condition that the merging processing result is merging failure;
determining merging failure information according to the service log, and extracting the first data and the second data from the backup database based on the merging failure information;
and writing the first data into a database corresponding to the master server, and writing the second data into a database corresponding to the slave server.
11. The method according to any one of claims 1 to 8, wherein the merging the data in the databases respectively corresponding to the master server and the slave server based on the server merging information includes:
and merging the data in the database corresponding to the slave server into the database corresponding to the master server based on the server merging information.
12. A data processing apparatus, comprising:
a receiving module configured to receive a merge request submitted for at least two servers in a target game;
the reading module is configured to read a preset data information configuration table according to the merging request to obtain server merging information corresponding to the target game;
the determining module is configured to determine a master server and a slave server in the at least two servers, and respectively determine databases corresponding to the master server and the slave server;
and the merging module is configured to merge data in the databases respectively corresponding to the master server and the slave server based on the server merging information.
13. A computing device, comprising:
a memory and a processor;
the memory is configured to store computer-executable instructions, and the processor is configured to execute the computer-executable instructions to implement the steps of the method of any one of claims 1 to 11.
14. A computer-readable storage medium storing computer instructions, which when executed by a processor, perform the steps of the method of any one of claims 1 to 11.
CN202110753232.4A 2021-07-02 2021-07-02 Data processing method and device Pending CN113440858A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110753232.4A CN113440858A (en) 2021-07-02 2021-07-02 Data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110753232.4A CN113440858A (en) 2021-07-02 2021-07-02 Data processing method and device

Publications (1)

Publication Number Publication Date
CN113440858A true CN113440858A (en) 2021-09-28

Family

ID=77814933

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110753232.4A Pending CN113440858A (en) 2021-07-02 2021-07-02 Data processing method and device

Country Status (1)

Country Link
CN (1) CN113440858A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114238722A (en) * 2021-12-15 2022-03-25 北京百度网讯科技有限公司 Data display method, device, equipment and storage medium
CN115964076A (en) * 2023-01-03 2023-04-14 厦门极致互动网络技术股份有限公司 A method to reduce SVN conflicts in game configuration table

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1534514A (en) * 2003-03-28 2004-10-06 Frame structure and system suitable for position sensing
US20190134511A1 (en) * 2017-11-08 2019-05-09 Take-Two Interactive Software, Inc. System and method for session management in a multiplayer network gaming environment
CN112231104A (en) * 2020-10-19 2021-01-15 珠海金山网络游戏科技有限公司 Game data processing method and device
CN112274913A (en) * 2020-10-27 2021-01-29 完美世界(重庆)互动科技有限公司 Game server merging method and device, storage medium and electronic device
CN112604270A (en) * 2020-12-29 2021-04-06 北京冰封互娱科技有限公司 Cross-server method, device and equipment for online game

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1534514A (en) * 2003-03-28 2004-10-06 Frame structure and system suitable for position sensing
US20190134511A1 (en) * 2017-11-08 2019-05-09 Take-Two Interactive Software, Inc. System and method for session management in a multiplayer network gaming environment
CN112231104A (en) * 2020-10-19 2021-01-15 珠海金山网络游戏科技有限公司 Game data processing method and device
CN112274913A (en) * 2020-10-27 2021-01-29 完美世界(重庆)互动科技有限公司 Game server merging method and device, storage medium and electronic device
CN112604270A (en) * 2020-12-29 2021-04-06 北京冰封互娱科技有限公司 Cross-server method, device and equipment for online game

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
朱强军等: "岩心数据异地同构数据库合并的研究和实现", 《微计算机信息》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114238722A (en) * 2021-12-15 2022-03-25 北京百度网讯科技有限公司 Data display method, device, equipment and storage medium
CN115964076A (en) * 2023-01-03 2023-04-14 厦门极致互动网络技术股份有限公司 A method to reduce SVN conflicts in game configuration table

Similar Documents

Publication Publication Date Title
CN113440858A (en) Data processing method and device
CN107193607B (en) Method and apparatus for updating code file, storage medium, processor, and terminal
CN112988377B (en) Resource allocation method, system and medium for cloud service
CN114138740B (en) Game data migration method and device, storage medium, and computer equipment
CN112138372A (en) Data synchronization method in distributed system and related equipment
CN103390003A (en) Method and device for combining user data information among servers
CN100428972C (en) Game device and control method for game device
CN110180177A (en) Maintaining method, device, medium and the electronic equipment of online game
CN105045651B (en) Transaction processing system and method
CN112206531B (en) Game creation method and device
CN103581197A (en) Method and system for processing team data among servers
CN109964218A (en) A kind of method for processing business and system
US20140304481A1 (en) Information processing system, control method, program, and recording medium
CN112328498A (en) Service testing method and device, storage medium and electronic device
CN114159797B (en) A text processing method, device, computer equipment and storage medium
CN111124582B (en) Icon calling method and device
CN113209621A (en) Virtual role control method and device, computing equipment and storage medium
US10140271B2 (en) Dynamic adaptation of a narrative across different types of digital media
CN113413586A (en) Virtual object transmission method, device, equipment and storage medium
CN112221119A (en) Game prop processing system, method and device
CN111158821A (en) Task processing method and device
CN112691382A (en) Resource processing method, device and computer readable storage medium
CN112426722A (en) Node map hot updating method and device, storage medium and computer equipment
CN110333974A (en) A kind of switching method and equipment of cloud storage service
EP3918485A1 (en) Computing cross products using map reduce

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
CB02 Change of applicant information

Address after: 519000 Room 102, 202, 302 and 402, No. 325, Qiandao Ring Road, Tangjiawan Town, high tech Zone, Zhuhai City, Guangdong Province, Room 102 and 202, No. 327 and Room 302, No. 329

Applicant after: Zhuhai Jinshan Digital Network Technology Co.,Ltd.

Address before: 519000 Room 102, 202, 302 and 402, No. 325, Qiandao Ring Road, Tangjiawan Town, high tech Zone, Zhuhai City, Guangdong Province, Room 102 and 202, No. 327 and Room 302, No. 329

Applicant before: ZHUHAI KINGSOFT ONLINE GAME TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
RJ01 Rejection of invention patent application after publication

Application publication date: 20210928

RJ01 Rejection of invention patent application after publication