Game server rolling update method, device, electronic device and medium

Through grouping and update management, the problem of being unable to provide services during game server updates is solved, ensuring the continuity of game services and the improvement of player experience.

CN113082723BActive Publication Date: 2024-09-20HANGZHOU ELECTRONICS SOUL NETWORK TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110313516.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-24
Publication Date
2024-09-20
Estimated Expiration
2041-03-24

AI Technical Summary

Technical Problem

In the existing technology, the game server cannot provide game services during the update period, causing player experience to be affected.

Method used

By obtaining the running memory ratio of the server group, grouping it into groups and updating the server group after all players go offline, ensuring that game services can still be provided during the update period.

Benefits of technology

This enables continuous provision of game services during game server updates, improving player experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113082723B
    Figure CN113082723B
Patent Text Reader

Abstract

The present invention discloses a rolling update method, device, electronic device and medium for a game server, which relates to the field of server management technology and is used to solve the problem in the related art that the game server cannot provide game services due to downtime during the update period. The method includes: obtaining the proportion of the balance of the server group in the group running memory, and recording it as the group balance proportion; grouping the server group based on the group balance proportion to obtain more than two groups of server groups, and the proportion of the group running memory of each server group relative to the server group in the group running memory is less than or equal to the group balance proportion; traversing the server group to perform the update step, for any server group, the update step includes: prohibiting players from being assigned to the server group, updating when all players in the server group are offline, and allowing players to be assigned to the server group after the update is completed. The present invention has the advantage of continuously providing game services during the update period.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of server management, and in particular to a rolling update method, device, electronic equipment and medium for a game server. Background Art

[0002] Network games, also known as "online games", refer to online games that use the Internet as a transmission medium, game servers and user computers as processing terminals, and game client software as an information exchange window. In order to continuously improve the game experience of players, it is necessary to update the game server from time to time, that is, to update the corresponding game services.

[0003] In the related art, game servers are generally updated by stopping services, which may specifically include the following: the game server pushes messages to clients to notify players that the server will be shut down for maintenance. Accordingly, during the update period, the game server stops providing game services and performs updates.

[0004] Currently, no effective solution has been proposed for the problem in the related art that the game server cannot provide game services due to downtime during the update period. Summary of the invention

[0005] In order to overcome the deficiencies of the related art, the purpose of the present invention is to provide a game server rolling update method, device, electronic device and medium, which have the advantage of continuously providing game services during the update period, thereby improving the player experience.

[0006] One of the purposes of the present invention is achieved by the following technical solution:

[0007] A rolling update method for a game server, the method comprising:

[0008] Get the ratio of the server group's margin to the group's running memory, and record it as the group margin ratio;

[0009] The server group is grouped based on the group surplus ratio to obtain two or more server groups, wherein the ratio of the group running memory of each of the server groups to the group running memory of the server group is less than or equal to the group surplus ratio;

[0010] Traversing the server groups to perform an update step, for any of the server groups, the update step includes: prohibiting players from being assigned to the server group, updating when all players in the server group are offline, and allowing players to be assigned to the server group after the update is completed.

[0011] In some embodiments, the updating step further comprises:

[0012] receiving a timing signal;

[0013] In response to the timing signal, it is determined whether all the players of the server group are offline. If so, each server in the server group is updated respectively and is prohibited from receiving or responding to the next timing signal. If not, wait for the next timing signal.

[0014] In some embodiments, updating any server in the server group includes:

[0015] a procedure for shutting down said server;

[0016] Replacing the corresponding files in the server with the hot-change files in the preset database;

[0017] A program that starts the server.

[0018] In some embodiments, before obtaining the remaining memory ratio of the server group in the group running memory, the method further includes:

[0019] Determine whether the server group is updated for the first time. If so, allow the execution of obtaining the remaining percentage of the server group in the group running memory. If not, prohibit the execution of obtaining the remaining percentage of the server group in the group running memory, and group the server group based on historical data to obtain more than two server groups.

[0020] In some embodiments, before the step of traversing the server group to perform the update, the method further includes:

[0021] Query the proportion of the surplus of each server group relative to the group running memory of the server group, and record them as the group surplus proportion;

[0022] The server groups are ranked based on the group surplus ratio, and the ranking order is a traversal route, wherein the group surplus ratio and the ranking are set in positive feedback.

[0023] In some of the embodiments, the priority of the server group in player allocation is set in positive feedback with the group's balance ratio.

[0024] In some of the embodiments, each of the server groups has a current status, which includes: updated and not updated, wherein the priority of the updated server group in player allocation is higher than the priority of the not updated server group in player allocation.

[0025] The second object of the present invention is achieved by adopting the following technical solution:

[0026] A rolling update device for a game server, the device comprising:

[0027] The acquisition module is used to obtain the ratio of the server group's margin to the group's running memory and record it as the group margin ratio;

[0028] A grouping module, configured to group the server group based on the group surplus ratio to obtain two or more server groups, wherein the ratio of the group running memory of each of the server groups to the group running memory of the server group is less than or equal to the group surplus ratio;

[0029] An update module is used to traverse the server groups to perform update steps. For any of the server groups, the update steps include: prohibiting players from being assigned to the server group, updating when all players in the server group are offline, and allowing players to be assigned to the server group after the update is completed.

[0030] A third object of the present invention is to provide an electronic device for performing one of the objects of the invention, which includes a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to implement the above method when executing the computer program.

[0031] A fourth object of the present invention is to provide a computer-readable storage medium storing one of the objects of the invention, on which a computer program is stored, and when the computer program is executed by a processor, the above method is implemented.

[0032] Compared with the related art, the beneficial effect of the present invention is that the server groups are grouped to obtain more than two server groups, and the proportion of the group running memory of each server group relative to the group running memory of the server group is less than or equal to the group surplus proportion. Therefore, when any server group executes the update step, the remaining server groups can jointly maintain and provide normal game services to improve the player experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0034] Figure 1 is a flowchart of a rolling update method for a game server shown in an embodiment of the present application;

[0035] Figure 2 is a flow chart of the updating steps shown in the embodiment of the present application;

[0036] Figure 3 It is a schematic diagram of the rolling update method of the game server shown in the embodiment of the present application;

[0037] Figure 4It is a structural block diagram of a rolling update device for a game server shown in an embodiment of the present application;

[0038] Figure 5 It is a structural block diagram of the electronic device shown in the embodiment of the present application.

[0039] Explanation of the accompanying drawings: 41, acquisition module; 42, grouping module; 43, update module. DETAILED DESCRIPTION

[0040] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is described and illustrated below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments provided in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.

[0041] It is understandable that although the efforts made in this development process may be complex and lengthy, for ordinary technicians in the field related to the contents disclosed in this application, some design, manufacturing or production changes based on the technical contents disclosed in this application are just routine technical means and should not be construed as insufficient content disclosed in this application.

[0042] Embodiment 1

[0043] The first embodiment of the present invention provides a rolling update method for a game server, which aims to solve the problem in the related art that the game server cannot provide game services due to downtime during the update period.

[0044] Figure 1 is a flowchart of the game server rolling update method shown in Example 1 of the present application, referring to Figure 1 As shown, the method may include steps S101 to S103.

[0045] Step S101, obtain the proportion of the server group's surplus in the group's running memory, and record it as the group surplus proportion. It can be understood that the server group includes more than one server, and any server needs to perform the same update step. It is worth noting that the proportion of the server group's processes in the group's running memory can be recorded as the group process proportion, wherein the sum of the proportions of the surplus of each server in the group's running memory is equal to the group surplus proportion, the sum of the proportions of the processes of each server in the group's running memory is equal to the group process proportion, and the group surplus proportion is complementary to the group process proportion.

[0046] Step S102: group the server group based on the group surplus ratio to obtain two or more server groups. For any server group, it satisfies the following formula: A≤B, where n represents the total number of servers in the server group, D i It represents the proportion of the process of the i-th server in the group running memory relative to the server group. A represents the proportion of the process of the server group in the running memory relative to the server group, which can be recorded as the group process proportion. B represents the group margin proportion.

[0047] Step S103, traversing the server group to perform the update step. It can be understood that at any time, only one server group performs the update step. It is worth noting that the traversal route of step S103 can be generated randomly or according to a specific rule, and there is no specific limitation here.

[0048] For any server group, the update step may include: prohibiting players from being assigned to the server group, updating when all players in the server group are offline, and allowing players to be assigned to the server group after the update is completed.

[0049] It is worth noting that the steps of the method can be completed based on an execution device, which can be a cloud server, a supervision server, any server in a server group, etc., but the execution device is not limited to the above types.

[0050] In summary, the server groups are grouped to obtain more than two server groups, and the proportion of the group running memory of each server group relative to the group running memory of the server group is less than or equal to the group surplus proportion. Therefore, when any server group performs the update step, the remaining server groups can jointly maintain and provide normal game services to improve the player experience.

[0051] As an optional implementation, in step S101, the group balance ratio can be an actual instantaneous quantity corresponding to the start time, or an actual average quantity corresponding to the start time period, or an estimated instantaneous quantity obtained based on historical data, or an estimated average quantity obtained based on historical data, or even a preset value, and there is no specific limitation here.

[0052] Here, the actual instantaneous amount is explained, and the step S101 can specifically include: the execution device sends a start signal to each server at the start time, wherein each server receives the start signal, generates feedback information in response to the start signal and sends it to the execution device, and the feedback information includes the amount of memory occupied by the process on the corresponding server at the start time on its running memory; the execution device receives the feedback information and calculates the actual instantaneous amount, that is, the group surplus ratio. This technical solution has the advantages of simple operation and high efficiency.

[0053] Here, the inferred instantaneous quantity is explained, wherein each server stores a running table, and the running table establishes an association between historical moments and the amount of memory occupied by the process on its running memory. Accordingly, step S101 may include: the execution device determines the historical relevant moment according to the start moment, and then queries the running table of each server based on the historical relevant moment, and summarizes the obtained data based on the historical relevant moment, and calculates multiple first instantaneous quantities. The average value of multiple first instantaneous quantities can be calculated to obtain the inferred instantaneous quantity, that is, the group surplus ratio. It can be understood that there are multiple historical relevant moments, and the moments are the same as the start moment, but the dates are different. For example: when the start moment is 1 o'clock on Monday, the historical relevant moments include: 1 o'clock last Tuesday, 1 o'clock last Wednesday, 1 o'clock last Thursday, etc. Through this technical solution, the accuracy of the group surplus ratio can be improved, and the full load situation during the update process can be better avoided.

[0054] Here, the preset group surplus ratio is explained, that is, the group surplus ratio is fixed and set by the staff. It is worth noting that the group surplus ratio is usually 25% to 35%, preferably 30%, so as to enter the next step as soon as possible without affecting the update.

[0055] It will be understood that the steps shown in the above process or the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that although a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in an order different from that shown here.

[0056] Embodiment 2

[0057] The second embodiment provides a rolling update method for a game server, and the second embodiment is performed on the basis of the first embodiment. Figure 2 is a flow chart of the updating steps shown in the embodiment of the present application; Figure 3 It is a schematic diagram of the rolling update method of the game server shown in the embodiment of the present application.

[0058] Reference Figures 1 to 3 As shown, the updating step may include steps S201 to S207. For ease of understanding and distinction, the server group that is executing the updating step is hereinafter referred to as the first server group.

[0059] Step S201, prohibiting the player from being assigned to the first server group. Specifically, the execution device sends an assignment stop signal to the first server group, and the servers in the first server group all receive the assignment stop signal, and automatically turn off the "assignable" switch configuration in response to the assignment stop signal, and the execution result can be fed back to the execution device, so that the player will not be assigned to the first server group.

[0060] Step S202: Receive a timing signal. The timing signal may be generated regularly by the execution device, for example, with a generation frequency of 10 minutes / time.

[0061] Step S203, respond to the timing signal to determine whether all players in the first server group are offline, if so, execute steps S204 to S207; if not, wait for the next timing signal, and continue to execute step S202 and subsequent steps. It can be understood that the execution device can directly access the relevant data of the server in the first server group to know the number of online players, or can obtain the number of online players through the player information fed back by the server in the first server group, and the specific method is not limited here.

[0062] Step S204, the server shutdown procedure in the first server group may be specifically referred to the prior art and is not limited here.

[0063] Step S205: Replace the corresponding files in the server with the hot-change files in the preset database. It is worth noting that the execution device has a preset database, and the staff only needs to store the hot-change files in the preset database according to the preset format, and the servers in the first server group can automatically obtain the hot-change files through the execution device and replace them, thereby reducing the difficulty of updating and improving the efficiency of updating.

[0064] Step S206: The servers in the first server group start the program. For details, reference may be made to the prior art and no limitation is made here. It is understood that in the first server group, as long as all the servers complete the above steps S204 to S206, it will be sufficient.

[0065] Step S207: Allow the player to be assigned to a server group. Specifically, the execution device sends an assignment start signal to the first server group, and the servers in the first server group all receive the assignment start signal and automatically turn on the "assignable" switch configuration in response to the assignment start signal, and the execution result can be fed back to the execution device, so that the player can be assigned to the first server group.

[0066] By using this technology, the update of the first server group can be realized, which has the advantage of simple operation and realizes the requirements related to allocation. Accordingly, in step S103, after obtaining the traversal route, the update step is first performed on the first server group according to the traversal route, and after the server group completes the update step, the update step is performed on the next server along the traversal route, and so on until all server groups complete the update step.

[0067] As an optional implementation, when all server groups have completed the update steps, the execution device can notify relevant personnel via SMS, DingTalk, or email so that the relevant personnel can perform relevant operations in a timely manner.

[0068] Embodiment 3

[0069] This embodiment 3 provides a method for rolling update of a game server, and this embodiment 3 is performed on the basis of the embodiment 1 and / or the embodiment 2. Figures 1 to 3 As shown, before step S101, the method further includes a diversion step. Specifically, the diversion step includes the following steps.

[0070] Determine whether the server group is updated for the first time, if yes, execute steps S101 to S103; if no, execute the second grouping step, and then execute step S103. It can be understood that if the number of servers in the server group changes or any server is replaced, it is regarded as a new server group.

[0071] Second grouping step: grouping the server group based on historical data to obtain more than two server groups. It is worth noting that the historical data is the grouping data when the server group is first updated, and the server group obtained by the second grouping step is the traversal object in step S103.

[0072] Through this technical solution, since the group surplus ratio of the server group fluctuates slightly within a period of time, only the server group updated for the first time is grouped based on the group surplus ratio, and the others use the historical data of the first update. This can not only effectively avoid full load, but also enter step S103 as soon as possible, thereby improving operating efficiency.

[0073] As an optional technical solution, the above embodiment with the second grouping step is preferably used in combination with the embodiment in which the group margin ratio is a preset value, and the group margin ratio can be regarded as fixed. It is worth noting that the staff can adjust the preset value of the group margin ratio, and accordingly, after the preset value of the group margin ratio is adjusted, the corresponding server group can be regarded as a new server group.

[0074] As an optional implementation, step S102 may include the following steps.

[0075] The proportion of each server process in the group running memory relative to the server group is recorded as the sub-process proportion, and the sum of the sub-process proportions is equal to the group process proportion. Please refer to the relevant description of step S101.

[0076] Each server is sorted according to the proportion of sub-processes, either from large to small or from small to large.

[0077] The number of groups is determined based on a grouping formula, where the grouping formula is: W = 1 / B, B represents the group surplus ratio, and W represents the number of groups. It can be understood that W is obtained by rounding up 1 / B.

[0078] The server cluster is grouped in order of arrangement. That is, for any server group, the servers are adjacent in ranking in terms of process percentage. Here is an example: if B = 30%, then W = 4. In the case of a server cluster with 11 servers, the servers ranked 1 to 3 can be grouped together according to the process percentage, the servers ranked 4 to 6 can be grouped together, the servers ranked 7 to 9 can be grouped together, and the servers ranked 10 to 11 can be grouped together to obtain 4 server groups.

[0079] By means of this technical solution, grouping operation can be realized, and the memory proportions of each group process can be greatly different. It is worth noting that this embodiment is preferably combined with the above-mentioned embodiment of estimating instantaneous amount to adapt to the actual situation.

[0080] As an optional implementation, after step S102 and before step S103, the method may further include a step of generating a traversal route, which may specifically include the following steps.

[0081] Query the percentage of each server group's margin relative to the server group's operating memory, and record them as group margin percentage. The sum of each group's margin percentage is equal to the above group margin percentage.

[0082] The server groups are ranked based on the group surplus ratio, and the ranking order is the traversal route, wherein the group surplus ratio and the ranking are set in positive feedback. It is worth noting that the larger the group surplus ratio, the higher the ranking, and the earlier the update step is executed.

[0083] Through this technical solution, since the larger the group balance ratio is, the shorter the time it may take for all players to log off, the efficiency of step S103 can be improved by determining the traversal route based on the group balance ratio.

[0084] It is worth noting that this embodiment is preferably combined with the above-mentioned embodiment of grouping the server groups according to the arrangement order. Since the above-mentioned embodiment of grouping the server groups according to the arrangement order is combined in the grouping process, the traversal route related to the group weight ratio can be directly obtained, and the difference in the group weight ratio between the server groups is relatively large, so as to further improve the efficiency of step S103.

[0085] Furthermore, the priority of the server group in player allocation is set in positive feedback with the group surplus ratio, that is, the smaller the group surplus ratio, the easier it is to be allocated to players, so that the server group with a larger group surplus ratio can realize the offline of all players as soon as possible.

[0086] As an optional implementation, each server group has a current status, which includes: updated and not updated, wherein the priority of the updated server group in player allocation is higher than the priority of the not updated server group in player allocation. Through this technical solution, players can be allocated to the updated server group, thereby improving the overall efficiency.

[0087] Embodiment 4

[0088] The fourth embodiment provides a rolling update device for a game server, which is a virtual device structure of the above embodiment. Figure 4 This is a structural block diagram of the game server rolling update device shown in the fourth embodiment of the present application, referring to Figure 4 As shown, the device includes: an acquisition module 41, a grouping module 42, and an updating module 43.

[0089] The acquisition module 41 is used to obtain the proportion of the server group's margin in the group's running memory, and record it as the group margin proportion;

[0090] A grouping module 42, configured to group the server group based on the group margin ratio to obtain two or more server groups, wherein the ratio of the group running memory of each server group to the group running memory of the server group is less than or equal to the group margin ratio;

[0091] The update module 43 is used to traverse the server group to perform the update steps, which include: prohibiting players from being assigned to the server group, updating when all players in the server group are offline, and allowing players to be assigned to the server group after the update is completed.

[0092] It should be noted that the above modules can be functional modules or program modules, and can be implemented by software or hardware. For modules implemented by hardware, the above modules can be located in the same processor; or the above modules can be located in different processors in any combination.

[0093] Embodiment 5

[0094] This fifth embodiment provides an electronic device, Figure 5 is a structural block diagram of the electronic device shown in the fifth embodiment of the present application, referring to Figure 5 As shown, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor is configured to run the computer program to execute any one of the game server rolling update methods in the above embodiments. Specific examples can refer to the examples described in the above embodiments and optional implementation methods, and this embodiment will not be repeated here.

[0095] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0096] In addition, in combination with the game server rolling update method in the above embodiment, the fifth embodiment of the present application can provide a storage medium for implementation. The storage medium stores a computer program; when the computer program is executed by the processor, any one of the game server rolling update methods in the above embodiment is implemented, and the method includes:

[0097] Get the ratio of the server group's margin to the group's running memory, and record it as the group margin ratio;

[0098] The server group is grouped based on the group surplus ratio to obtain two or more server groups, wherein the ratio of the group running memory of each server group to the group running memory of the server group is less than or equal to the group surplus ratio;

[0099] The server group is traversed to perform an update step, the update step including: prohibiting players from being assigned to the server group, updating when all players in the server group are offline, and allowing players to be assigned to the server group after the update is completed.

[0100] like Figure 5 As shown, taking a processor as an example, the processor, memory, input device and output device in the electronic device can be connected through a bus or other means. Figure 5 The example of connecting through bus is taken in the following.

[0101] As a computer-readable storage medium, the memory may include a high-speed random access memory, a non-volatile memory, etc., and may be used to store operating systems, software programs, computer executable programs, and databases, such as program instructions / modules corresponding to the rolling update method of the game server in the first embodiment of the present invention, and may also include a memory, which may be used to provide an operating environment for the operating system and computer programs. In some instances, the memory may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the electronic device via a network.

[0102] The processor is used to provide computing and control capabilities, and may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application. The processor executes various functional applications and data processing of the electronic device by running computer executable programs, software programs, instructions, and modules stored in the memory, that is, implementing the game server rolling update method of the first embodiment.

[0103] The output device of the electronic device can be a liquid crystal display or an electronic ink display, and the input device of the electronic device can be a touch layer covering the display, or a key, trackball or touchpad provided on the housing of a computer device, or an external keyboard, touchpad or mouse.

[0104] The electronic device may also include a network interface / communication interface, and the network interface of the electronic device is used to communicate with an external terminal via a network connection. Examples of the above network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network and a combination thereof.

[0105] Those skilled in the art will understand that Figure 5 The structure shown in the figure is only a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0106] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink), DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0107] It is worth noting that in the embodiment of the game server rolling update method, the various units and modules included are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.

[0108] Unless otherwise defined, the technical terms or scientific terms involved in this application should be understood by people with ordinary skills in the technical field to which this application belongs. The words "one", "a", "a", "the" and the like involved in this application do not indicate a quantitative limitation and may represent the singular or plural. The terms "include", "comprise", "have" and any of their variations involved in this application are intended to cover non-exclusive inclusions. The words "connect", "connected", "coupled" and the like involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The "multiple" involved in this application refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there may be three relationships. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. The terms "first", "second", "third" and the like involved in this application are merely to distinguish similar objects and do not represent a specific ordering of objects.

[0109] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A rolling update method for a game server, characterized in that: The method comprises: Get the ratio of the server group's margin to the group's running memory, and record it as the group margin ratio; The server group is grouped based on the group surplus ratio to obtain two or more server groups, wherein the ratio of the group running memory of each of the server groups to the group running memory of the server group is less than or equal to the group surplus ratio; Query the proportion of the surplus of each server group relative to the server group in the group running memory, and record them as the group surplus proportion; The server groups are ranked based on the group surplus ratio, the ranking order is a traversal route, wherein the group surplus ratio and the ranking are set in positive feedback; Traversing the server groups to perform an update step, for any of the server groups, the update step includes: prohibiting players from being assigned to the server group, updating when all players in the server group are offline, and allowing players to be assigned to the server group after the update is completed.

2. The method according to claim 1, characterized in that The updating step further comprises: receiving a timing signal; In response to the timing signal, it is determined whether all the players of the server group are offline. If so, each server in the server group is updated respectively and is prohibited from receiving or responding to the next timing signal. If not, wait for the next timing signal.

3. The method according to claim 1, characterized in that Updating any server in the server group includes: a procedure for shutting down said server; Replacing the corresponding files in the server with the hot-change files in the preset database; A program that starts the server.

4. The method according to claim 1, characterized in that: Before obtaining the remaining memory ratio of the server group in the group running memory, the method further includes: Determine whether the server group is updated for the first time. If so, allow the execution of obtaining the remaining percentage of the server group in the group running memory. If not, prohibit the execution of obtaining the remaining percentage of the server group in the group running memory, and group the server group based on historical data to obtain more than two server groups.

5. The method according to claim 1, characterized in that The priority of the server group in player allocation and the balance ratio of the group are set in positive feedback.

6. The method according to any one of claims 1 to 4, characterized in that Each of the server groups has a current status, which includes: updated and not updated, wherein the priority of the updated server group in player allocation is higher than the priority of the not updated server group in player allocation.

7. A rolling update device for a game server, characterized in that: The device comprises: The acquisition module is used to obtain the ratio of the server group's margin to the group's running memory and record it as the group margin ratio; A grouping module is used to group the server group based on the group surplus ratio to obtain more than two server groups, wherein the ratio of the group running memory of each server group relative to the group running memory of the server group is less than or equal to the group surplus ratio; query the ratio of the surplus of each server group relative to the group running memory of the server group, and record them as the group surplus ratio; rank the server groups based on the group surplus ratio, and the ranking order is a traversal route, wherein the group surplus ratio and the ranking are set in positive feedback; An update module is used to traverse the server groups to perform update steps. For any of the server groups, the update steps include: prohibiting players from being assigned to the server group, updating when all players in the server group are offline, and allowing players to be assigned to the server group after the update is completed.

8. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to implement the method according to any one of claims 1 to 6 when executing the computer program.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.