CN113082723A - Game server rolling updating method, device, electronic equipment and medium - Google Patents

Game server rolling updating method, device, electronic equipment and medium Download PDF

Info

Publication number
CN113082723A
CN113082723A CN202110313516.1A CN202110313516A CN113082723A CN 113082723 A CN113082723 A CN 113082723A CN 202110313516 A CN202110313516 A CN 202110313516A CN 113082723 A CN113082723 A CN 113082723A
Authority
CN
China
Prior art keywords
server
group
groups
server group
ratio
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
CN202110313516.1A
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.)
Hangzhou Electronic Soul Network Technology Co Ltd
Original Assignee
Hangzhou Electronic Soul Network 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 Hangzhou Electronic Soul Network Technology Co Ltd filed Critical Hangzhou Electronic Soul Network Technology Co Ltd
Priority to CN202110313516.1A priority Critical patent/CN113082723A/en
Publication of CN113082723A publication Critical patent/CN113082723A/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
    • A63F13/352Details of game servers involving special game server arrangements, e.g. regional servers connected to a national server or a plurality of servers managing partitions of the game world
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5061Partitioning or combining of resources
    • 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
    • A63F2300/531Server assignment
    • 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
    • A63F2300/552Details of game data or player data management for downloading to client devices, e.g. using OS version, hardware or software profile of the client device

Landscapes

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

Abstract

The invention discloses a rolling updating method, a rolling updating device, electronic equipment and a rolling updating medium for a game server, relates to the technical field of server management, and is used for solving the problem that the game server cannot provide game service due to halt in an updating period in the related technology. The method comprises the following steps: acquiring the occupation ratio of the surplus of the server group on the group operation memory, and recording the occupation ratio as the group surplus; grouping the server groups based on the group margin ratio to obtain more than two groups of server groups, wherein the ratio of the group operation memory of each server group to the ratio of the server groups on the group operation memory is less than or equal to the group margin ratio; and traversing the server groups to execute an updating step, wherein for any server group, the updating step comprises the following steps: the player is prohibited from being assigned to the server group, the update is performed in a case where all players of the server group are offline, and the player is permitted to be assigned to the server group after the update is completed. The present invention has an advantage of continuously providing game services for an update period.

Description

Game server rolling updating method, device, electronic equipment and medium
Technical Field
The present invention relates to the field of server management technologies, and in particular, to a method and an apparatus for rolling update of a game server, an electronic device, and a medium.
Background
The online game, also called "online game", refers to an online game using the internet as a transmission medium, a game server and a user computer as processing terminals, and game client software as an information interaction window. In order to improve the game experience of the player, the game server needs to be updated from time to time, that is, the corresponding game service needs to be updated.
In the related art, the update of the game server is generally performed in a service-off manner, and specifically may include the following: the game server pushes a message to the client to notify the player that maintenance is to be performed down, and accordingly, the game server stops providing game services and performs an update during the update period.
At present, no effective solution is provided for the problem that the game server cannot provide the game service due to the shutdown in the update period in the related art.
Disclosure of Invention
In order to overcome the disadvantages of the related art, an object of the present invention is to provide a method, an apparatus, an electronic device, and a medium for rolling update of a game server, which have the advantage of continuously providing game services during an update period, thereby improving player experience.
One of the purposes of the invention is realized by adopting the following technical scheme:
a game server rolling update method, the method comprising:
acquiring the occupation ratio of the surplus of the server group on the group operation memory, and recording the occupation ratio as the group surplus;
grouping the server groups based on the group margin proportion to obtain more than two groups of server groups, wherein the proportion of the group operation memory of each server group to the group operation memory of the server group is less than or equal to the group margin proportion;
traversing the server groups to perform an updating step, the updating step comprising, for any of the server groups: prohibiting players from being assigned to the server group, updating if players of the server group are all offline, and allowing players to be assigned to the server group after updating is complete.
In some of these embodiments, the updating step further comprises:
receiving a timing signal;
and responding to the timing signal to judge whether all the players of the server group are offline, if so, updating each server in the server group respectively, prohibiting receiving or responding to the next timing signal, and if not, waiting for the next timing signal.
In some embodiments, updating any server in the server group includes:
closing the program of the server;
replacing the corresponding file in the server by a hot update file in a preset database in a matching manner;
and starting the program of the server.
In some embodiments, before obtaining the margin of the server farm on the farm operating memory, the method further includes:
and judging whether the server group is updated for the first time, if so, allowing the acquisition of the margin ratio of the server group on the group operation memory, if not, forbidding the acquisition of the margin ratio of the server group on the group operation memory, and grouping the server group based on historical data to obtain more than two groups of server groups.
In some embodiments, before the traversing the server group performs the updating step, the method further comprises:
inquiring the surplus of each server group relative to the occupation ratio of the server group on a group operation memory, and recording the surplus of each server group as the group surplus occupation ratio;
and ranking the server group based on the group margin ratio, wherein the ranking sequence is a traversal route, and the group margin ratio and the ranking are set in a positive feedback mode.
In some of these embodiments, the priority of the server group on player allocation is set in positive feedback with the group balance.
In some of these embodiments, each of the server groups has a current state, the current state including: updated and non-updated, wherein the updated server group has a higher priority on the player allocation than the non-updated server group.
The second purpose of the invention is realized by adopting the following technical scheme:
a game server rolling update apparatus, the apparatus comprising:
the acquisition module is used for acquiring the percentage of the margin of the server group on the group operating memory and recording the percentage as the percentage of the margin of the group;
the grouping module is used for grouping the server groups based on the group margin ratio to obtain more than two groups of server groups, wherein the ratio of the group operation memory of each server group to the server group on the group operation memory is less than or equal to the group margin ratio;
an update module configured to traverse the server groups to perform an update step, for any of the server groups, the update step including: prohibiting players from being assigned to the server group, updating if players of the server group are all offline, and allowing players to be assigned to the server group after updating is complete.
It is a further object of the invention to provide an electronic device performing one of the objects of the invention, comprising a memory in which a computer program is stored and a processor arranged to carry out the method described above when executing the computer program.
It is a fourth object of the present invention to provide a computer readable storage medium storing one of the objects of the invention, having stored thereon a computer program which, when executed by a processor, implements the method described above.
Compared with the related technology, the invention has the beneficial effects that: the server groups are grouped to obtain more than two groups of server groups, and the occupation ratio of the group running memory of each server group relative to the group running memory of the server groups is less than or equal to the group margin occupation ratio, so that the rest server groups can jointly maintain and provide normal game service under the condition that any server group executes the updating step, and the player experience is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
FIG. 1 is a flow chart of a method for rolling update of a game server according to an embodiment of the present application;
FIG. 2 is a flow chart illustrating the update step according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a method for scrolling update of a game server according to an embodiment of the present application;
FIG. 4 is a block diagram illustrating a configuration of a rolling update apparatus of a game server according to an embodiment of the present application;
fig. 5 is a block diagram of an electronic device according to an embodiment of the present application.
Description of reference numerals: 41. an acquisition module; 42. a grouping module; 43. and updating the module.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be described and illustrated below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments provided in the present application without any inventive step are within the scope of protection of the present application.
It will be appreciated that such a development effort might be complex and tedious, but would nevertheless be a routine undertaking of design, fabrication, and manufacture for those of ordinary skill having the benefit of this disclosure, and is not intended to limit the scope of this disclosure.
Example one
The embodiment provides a rolling updating method for a game server, and aims to solve the problem that the game server cannot provide game service due to halt in an updating period in the related art.
Fig. 1 is a flowchart of a method for updating a game server by scrolling according to an embodiment of the present application, and referring to fig. 1, the method may include steps S101 to S103.
And S101, acquiring the occupation ratio of the surplus of the server group on the group running memory, and recording the occupation ratio as the group surplus occupation ratio. It will be appreciated that the server farm includes more than one server, and that any server needs to perform the same update step. It should be noted that, the ratio of the processes of the server group in the group running memory may be recorded as a group process ratio, wherein the sum of the ratios of the margins of the servers in the group running memory is equal to the group margin ratio, the sum of the ratios of the processes of the servers in the group running memory is equal to the group process ratio, and the group margin ratio is complementary to the group process ratio.
And S102, grouping the server groups based on the group margin ratio to obtain more than two groups of server groups. For any group of servers, it satisfies the following formula:
Figure BDA0002990891700000051
a is less than or equal to B, wherein n represents the total number of servers in the server group, DiThe process of the ith server is represented by the ratio of the processes of the ith server to the server group on the group running memory, a is represented by the ratio of the processes of the server group to the server group on the running memory and can be recorded as the ratio of the group processes, and B is represented by the ratio of the group margin.
And step S103, traversing the server group to execute the updating step. It will be appreciated that only one server group performs the update step at any one time. It should be noted that the traversal route in step S103 may be generated randomly, or may be generated according to a specific rule, and is not limited herein.
For any group of servers, the updating step may include: the player is prohibited from being assigned to the server group, the update is performed in a case where all players of the server group are offline, and the player is permitted to be assigned to the server group after the update is completed.
It is worth mentioning that the steps of the method may be performed on the basis of an execution device. The executing device may be a cloud server, a supervisory server, any server in a server farm, etc., but the executing device is not limited to the above type.
In summary, the server groups are grouped to obtain two or more server groups, and the percentage of the group operating memory of each server group to the group operating memory of the server group is less than or equal to the group margin percentage, so that when any server group performs the update procedure, the remaining server groups can jointly maintain and provide normal game services, thereby improving the player experience.
As an alternative embodiment, in step S101, the group margin ratio may be an actual instantaneous quantity corresponding to the starting time, an actual average quantity corresponding to the starting time period, an estimated instantaneous quantity obtained from historical data, an estimated average quantity obtained from historical data, or even a preset value, and is not limited herein.
Here, to explain the actual instantaneous quantity, the step S101 may specifically include: the method comprises the steps that execution equipment sends a starting signal to each server at a starting moment, wherein each server receives the starting signal, responds to the starting signal to generate feedback information and sends the feedback information to the execution equipment, and the feedback information comprises the memory amount occupied by a process on an operation memory of the corresponding server at the starting moment; and the execution equipment receives the feedback information and calculates to obtain an actual instantaneous quantity, namely the group margin ratio. The technical scheme has the advantages of simple operation and high efficiency.
Here, the description is made on the estimated instantaneous amount, where each server stores a running table, and the running table establishes a relationship between a historical time and an amount of memory occupied by a process on its running memory, and accordingly, the step S101 may include: the execution equipment determines historical relevant time according to the starting time, then inquires the operation table of each server based on the historical relevant time, summarizes the obtained data based on the historical relevant time, calculates a plurality of first instantaneous quantities, and calculates the average value of the plurality of first instantaneous quantities to obtain the presumed instantaneous quantity, namely the group margin ratio. It will be appreciated that there are a plurality of historical relevant times, and that the time is the same as the start time, but on a different date, for example: at 1 point of Monday, the historical relevant time comprises: point 1 on the upper tuesday, point 1 on the upper wednesday, point 1 on the upper thursday, etc. By the technical scheme, the accuracy of the group margin ratio can be improved, and the full load condition in the updating process can be better avoided.
Here, the group balance ratio, which is a preset value, is described, i.e., the group balance ratio is fixed and set by a worker, and it should be noted that the group balance ratio is usually 25% to 35%, and preferably 30%. So that the next step can be entered as soon as possible without affecting the update.
It will be appreciated that the steps illustrated in the flowcharts described above or in the flowcharts of the figures may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowcharts, in some cases, the steps illustrated or described may be performed in an order different than here.
Example two
The second embodiment provides a method for updating the rolling of the game server, and the second embodiment is performed on the basis of the first embodiment. FIG. 2 is a flow chart illustrating the update step according to an embodiment of the present application; fig. 3 is a schematic diagram illustrating a method for scrolling and updating a game server according to an embodiment of the present application.
As shown with reference to fig. 1 to 3, the updating step may include steps S201 to S207. For ease of understanding of the distinction, the server group that is performing the update step is hereinafter referred to as the first server group.
Step S201, prohibiting the player from being assigned to the first server group. Specifically, the execution device sends an allocation stop signal to the first server group, the servers in the first server group all receive the allocation stop signal, automatically turn off the allocation of the assignable switch in response to the allocation stop signal, and can feed back the execution result to the execution device, so that the player is not allocated to the first server group.
Step S202, receiving a timing signal. The timing signal may be generated by the execution device at regular time, for example, with a frequency of 10 min/time.
Step S203, responding to the timing signal to judge whether all the players of the first server group are offline, if yes, executing step S204 to step S207; if not, the next timing signal is waited, and the step S202 and subsequent steps are continued. It can be understood that the executing device may directly access the relevant data of the server in the first server group to obtain the online number of the player, or may obtain the online number of the player through the server in the first server group in cooperation with the feedback player information, and the specific manner is not limited herein.
Step S204, a server shutdown procedure in the first server group may specifically refer to the prior art, which is not limited herein.
And S205, replacing the corresponding file in the server with a hot update file in a preset database in a matching manner. It should be noted that the execution device establishes the preset database, and the staff only needs to store the hot upgrade file in the preset database according to the preset format, and the server in the first server group can automatically obtain the hot upgrade file through the execution device and replace the hot upgrade file, so that the update difficulty is reduced, and the update efficiency is improved.
And step S206, starting a program by the server in the first server group. Reference is made in particular to the prior art, without being restricted thereto. It is understood that, in the first server group, all the servers complete the above steps S204 to S206.
Step S207, allow the player to be assigned to the server group. Specifically, the execution device sends an allocation start signal to the first server group, the servers in the first server group all receive the allocation start signal, and automatically start the 'allocable' switch configuration corresponding to the allocation start signal, and the execution result can be fed back to the execution device, so that the player can be allocated to the first server group.
By this technique, it is possible to realize the update of the first server group, which has the advantage of simple operation and realizes the requirements relating to the allocation. Accordingly, for step S103, after the traverse route is acquired, the update step is performed on the first server group according to the traverse route first, and after the update step is completed on the server group, the update step is performed on the next server along the traverse route, so that the update step is completed on all the server groups.
As an optional implementation manner, when all server groups complete the updating step, the execution device may notify the relevant personnel in a short message, staple, or mail manner, so that the relevant personnel can perform relevant operations in time.
EXAMPLE III
The third embodiment provides a game server rolling updating method, and the third embodiment is performed on the basis of the first embodiment and/or the second embodiment. Referring to fig. 1 to 3, before step S101, the method further includes a splitting step, specifically, the splitting step includes the following steps.
Judging whether the server group is updated for the first time, if so, executing the step S101 to the step S103; if not, a second grouping step is executed, and then step S103 is executed. It is understood that if the number of servers in a server farm changes or any server is replaced, the server farm is considered to be a new server farm.
A second grouping step: the server groups are grouped based on the historical data to obtain more than two groups of server groups. It should be noted that the history data is packet data when the server farm is updated for the first time, and the server group obtained in the second grouping step is the traversal object in step S103.
According to the technical scheme, the fluctuation of the group margin ratio of the server group is small in a time period, so that the server group which is updated for the first time is grouped based on the group margin ratio, other historical data which are updated for the first time are used, full load can be effectively avoided, the step S103 can be started as soon as possible, and the operation efficiency is improved.
As an optional technical solution, the above embodiment with the second grouping step is preferably used in combination with an embodiment with a group margin ratio being a preset value, and the group margin ratio may be regarded as fixed. It should be noted that, the staff may 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 may be regarded as a new server group.
As an alternative embodiment, step S102 may include the following steps.
The occupation ratios of the processes of each server relative to the server group on the group operating memory are all recorded as the branch occupation ratios, and the sum of the branch occupation ratios is equal to the group process occupation ratio, which can refer to the relevant description of step S101.
And the servers are sorted according to the branch occupation ratios, and can be from large to small or from small to large.
Determining a group number based on a grouping formula, wherein the grouping formula is; w is 1/B, B represents a group margin ratio, and W represents the number of groups. It is understood that W is rounded up from 1/B.
The server farms are grouped in rank order. I.e., for any group of servers, the servers are ranked adjacently in terms of priority. Here, by way of example: if B is 30%, W is 4, and if the server group has 11 servers, the 1 st to 3 rd servers may be grouped together, the 4 th to 6 th servers may be grouped together, the 7 th to 9 th servers may be grouped together, and the 10 th to 11 th servers may be grouped together in accordance with the component ratio, so as to obtain a 4-group server group.
By the technical scheme, grouping operation can be realized, and the memory occupation ratio of each group process is large. It is worth noting here that this embodiment is preferably combined with the above-described embodiment relating to the estimation of the momentary quantity, in order to adapt to the actual situation.
As an optional implementation manner, 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.
And inquiring the occupation ratio of the surplus of each server group relative to the group operation memory of the server group, and recording the occupation ratios as the group surplus occupation ratio. The sum of the group margin ratios is equal to the group margin ratio.
And ranking the server group based on the group margin ratio, wherein the ranking sequence is a traversal route, and the group margin ratio and the ranking are set in a positive feedback mode. It should be noted that the larger the group margin ratio is, the earlier the rank is, the earlier the update step is performed.
By the technical scheme, the larger the group margin ratio is, the shorter the time consumed by all the players to get off the line is possibly, and the traversing route is determined based on the group margin ratio, so that the efficiency of the step S103 can be improved.
It is worth mentioning here that this embodiment is preferably combined with the above-described related embodiment of grouping server farms in rank order. Since the above-mentioned related embodiments that group the server groups according to the ranking order are combined in the grouping process, the traversal route related to the group quantity ratio can be directly obtained, and the group quantity ratio difference between the server groups is large, so as to further improve the efficiency of step S103.
Further, the priority of the server group in player allocation and the group margin ratio are set in a positive feedback mode, namely the smaller the group margin ratio is, the easier the server group is allocated to the player, so that the server group with the larger group margin ratio can realize that the player is completely offline as soon as possible.
As an optional implementation, each server group has a current state, and the current state includes: updated and non-updated, wherein the updated server group has a higher priority on the player allocation than the non-updated server group. Through the technical scheme, the players are distributed to the updated server groups, so that the overall efficiency is improved.
Example four
The fourth embodiment provides a game server rolling update device, which is the virtual device structure of the foregoing embodiments. Fig. 4 is a block diagram showing a configuration of a game server scroll updating apparatus according to the fourth embodiment of the present application, and referring to fig. 4, the apparatus includes: an acquisition module 41, a grouping module 42, and an update module 43.
An obtaining module 41, configured to obtain a percentage of a margin of the server group in a group operating memory, and record the percentage as a group margin percentage;
the grouping module 42 is configured to group the server groups based on the group margin proportion to obtain two or more groups of server groups, where a group operating memory of each server group accounts for less than or equal to the group margin proportion relative to a group operating memory of the server group;
an update module 43, configured to traverse the server group to perform an update step, where the update step includes: the player is prohibited from being assigned to the server group, the update is performed in a case where all players of the server group are offline, and the player is permitted to be assigned to the server group after the update is completed.
The above modules may be functional modules or program modules, and may be implemented by software or hardware. For a module implemented by hardware, the modules may be located in the same processor; or the modules can be respectively positioned in different processors in any combination.
EXAMPLE five
In a fifth embodiment, an electronic device is provided, fig. 5 is a block diagram of a structure of the electronic device shown in the fifth embodiment of the present application, and as shown in fig. 5, the electronic device includes a memory and a processor, where the memory stores a computer program, and the processor is configured to run the computer program to execute a method for implementing any one of the game server scroll update methods in the foregoing embodiments.
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.
In addition, in combination with the game server rolling update method in the foregoing embodiment, a fifth embodiment of the present application may provide a storage medium to implement. The storage medium having stored thereon a computer program; the computer program, when executed by a processor, implements any of the above embodiments of a game server rolling update method, the method comprising:
acquiring the occupation ratio of the surplus of the server group on the group operation memory, and recording the occupation ratio as the group surplus;
grouping the server groups based on the group margin ratio to obtain more than two groups of server groups, wherein the ratio of the group operation memory of each server group to the server group on the group operation memory is less than or equal to the group margin ratio;
the traversal server group executes an updating step, wherein the updating step comprises the following steps: the player is prohibited from being assigned to the server group, the update is performed in a case where all players of the server group are offline, and the player is permitted to be assigned to the server group after the update is completed.
As shown in fig. 5, taking a processor as an example, the processor, the memory, the input device and the output device in the electronic device may be connected by a bus or other means, and fig. 5 takes the connection by a bus as an example.
The memory, which is a computer-readable storage medium, may include a high-speed random access memory, a non-volatile memory, and the like, and may be used to store an operating system, a software program, a computer-executable program, and a database, such as program instructions/modules corresponding to the game server rolling update method according to the embodiment of the present invention, and may further include a memory, which may be used to provide an operating environment for the operating system and the computer program. In some examples, the memory may further include memory located remotely from the processor, and these remote memories may be connected to the electronic device through a network.
The processor, which is used to provide computing and control capabilities, may include a Central Processing Unit (CPU), or A Specific Integrated Circuit (ASIC), or may be configured to implement one or more Integrated circuits of embodiments of the present Application. The processor executes various functional applications and data processing of the electronic device by running the computer-executable program, software program, instructions and modules stored in the memory, that is, the game server rolling update method of the first embodiment is implemented.
The output device of the electronic equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on a shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
The electronic device may further include a network interface/communication interface, the network interface of the electronic device being for communicating with an external terminal through a network connection. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
Those skilled in the art will appreciate that the structure shown in fig. 5 is a block diagram of only a portion of the structure relevant to the present disclosure, and does not constitute a limitation on the electronic device to which the present disclosure applies, and that a particular electronic device may include more or less components than those shown in the drawings, or may combine certain components, or have a different arrangement of components.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. 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. By way of illustration and not limitation, RAM is available in a variety of 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), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
It should be noted that, in the embodiment of the game server rolling update method, the included units and modules are only divided according to the function logic, but are not limited to the above division as long as the corresponding functions can be realized; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
Unless defined otherwise, technical or scientific terms referred to herein shall have the ordinary meaning as understood by those of ordinary skill in the art to which this application belongs. Reference to "a," "an," "the," and similar words throughout this application are not to be construed as limiting in number, and may refer to the singular or the plural. The terms "comprises," "comprising," "including," "has," "having," and any variations thereof, as referred to herein, are intended to cover a non-exclusive inclusion. Reference to "connected," "coupled," and the like in this application is not intended to be limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The term "plurality" as referred to herein means two or more. "and/or" describe the association relationship of the associated objects, meaning that three relationships may exist. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. Reference herein to the terms "first," "second," "third," and the like, are merely to distinguish similar objects and do not denote a particular ordering for the objects.
The above examples only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A game server scroll update method, the method comprising:
acquiring the occupation ratio of the surplus of the server group on the group operation memory, and recording the occupation ratio as the group surplus;
grouping the server groups based on the group margin proportion to obtain more than two groups of server groups, wherein the proportion of the group operation memory of each server group to the group operation memory of the server group is less than or equal to the group margin proportion;
traversing the server groups to perform an updating step, the updating step comprising, for any of the server groups: prohibiting players from being assigned to the server group, updating if players of the server group are all offline, and allowing players to be assigned to the server group after updating is complete.
2. The method of claim 1, wherein the updating step further comprises:
receiving a timing signal;
and responding to the timing signal to judge whether all the players of the server group are offline, if so, updating each server in the server group respectively, prohibiting receiving or responding to the next timing signal, and if not, waiting for the next timing signal.
3. The method of claim 1, wherein updating any server within the server group comprises:
closing the program of the server;
replacing the corresponding file in the server by a hot update file in a preset database in a matching manner;
and starting the program of the server.
4. The method of claim 1, wherein prior to obtaining the percentage of the server farm's remaining on the farm's operating memory, the method further comprises:
and judging whether the server group is updated for the first time, if so, allowing the acquisition of the margin ratio of the server group on the group operation memory, if not, forbidding the acquisition of the margin ratio of the server group on the group operation memory, and grouping the server group based on historical data to obtain more than two groups of server groups.
5. The method of any of claims 1 to 4, wherein prior to said traversing the server group to perform the updating step, the method further comprises:
inquiring the occupation ratio of the margin of each server group relative to the group operation memory of the server group, and recording the occupation ratios as group margin occupation ratios;
and ranking the server group based on the group margin ratio, wherein the ranking sequence is a traversal route, and the group margin ratio and the ranking are set in a positive feedback mode.
6. The method of claim 5, wherein the priority of the server group on player allocation is set in positive feedback with respect to the group balance.
7. The method of any one of claims 1 to 4, wherein each of the server groups has a current state, the current state comprising: updated and non-updated, wherein the updated server group has a higher priority on the player allocation than the non-updated server group.
8. A game server rolling update apparatus, the apparatus comprising:
the acquisition module is used for acquiring the percentage of the margin of the server group on the group operating memory and recording the percentage as the percentage of the margin of the group;
the grouping module is used for grouping the server groups based on the group margin ratio to obtain more than two groups of server groups, wherein the ratio of the group operation memory of each server group to the server group on the group operation memory is less than or equal to the group margin ratio;
an update module configured to traverse the server groups to perform an update step, for any of the server groups, the update step including: prohibiting players from being assigned to the server group, updating if players of the server group are all offline, and allowing players to be assigned to the server group after updating is complete.
9. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is arranged to carry out the method of any one of claims 1 to 7 when the computer program is executed.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method of any one of claims 1 to 7.
CN202110313516.1A 2021-03-24 2021-03-24 Game server rolling updating method, device, electronic equipment and medium Pending CN113082723A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110313516.1A CN113082723A (en) 2021-03-24 2021-03-24 Game server rolling updating method, device, electronic equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110313516.1A CN113082723A (en) 2021-03-24 2021-03-24 Game server rolling updating method, device, electronic equipment and medium

Publications (1)

Publication Number Publication Date
CN113082723A true CN113082723A (en) 2021-07-09

Family

ID=76669517

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110313516.1A Pending CN113082723A (en) 2021-03-24 2021-03-24 Game server rolling updating method, device, electronic equipment and medium

Country Status (1)

Country Link
CN (1) CN113082723A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008104221A1 (en) * 2007-02-27 2008-09-04 Telefonaktiebolaget Lm Ericsson (Publ) Method and apparatus for use in multiplayer server-based gaming
CN101753534A (en) * 2008-12-10 2010-06-23 徐文祥 Zoning adaptive network system based on cluster server and building method
CN105897744A (en) * 2016-05-26 2016-08-24 广州多益网络股份有限公司 Game server updating method and system thereof
CN109771939A (en) * 2019-01-15 2019-05-21 网易(杭州)网络有限公司 Game server method of adjustment and device, storage medium, electronic equipment
CN112169310A (en) * 2020-10-13 2021-01-05 网易(杭州)网络有限公司 Game resource loading method and device, computer equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008104221A1 (en) * 2007-02-27 2008-09-04 Telefonaktiebolaget Lm Ericsson (Publ) Method and apparatus for use in multiplayer server-based gaming
CN101753534A (en) * 2008-12-10 2010-06-23 徐文祥 Zoning adaptive network system based on cluster server and building method
CN105897744A (en) * 2016-05-26 2016-08-24 广州多益网络股份有限公司 Game server updating method and system thereof
CN109771939A (en) * 2019-01-15 2019-05-21 网易(杭州)网络有限公司 Game server method of adjustment and device, storage medium, electronic equipment
CN112169310A (en) * 2020-10-13 2021-01-05 网易(杭州)网络有限公司 Game resource loading method and device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN108632365B (en) Service resource adjusting method, related device and equipment
CN108776934B (en) Distributed data calculation method and device, computer equipment and readable storage medium
CN110597858A (en) Task data processing method and device, computer equipment and storage medium
CN112269641B (en) Scheduling method, scheduling device, electronic equipment and storage medium
CN113434253B (en) Cluster resource scheduling method, device, equipment and storage medium
CN103366022B (en) Information handling system and disposal route thereof
CN112612607A (en) Data processing method, device, computer equipment and medium based on message queue
CN110266514A (en) Journal obtaining method, device, terminal and storage medium
CN111240824A (en) CPU resource scheduling method and electronic equipment
CN112751892B (en) Information distribution method, device, equipment and storage medium
CN113082723A (en) Game server rolling updating method, device, electronic equipment and medium
CN114844791B (en) Cloud service automatic management and distribution method and system based on big data and storage medium
CN110019481A (en) Memory database access method, device, equipment and medium
CN114744686B (en) Generator set identification method, device, equipment and storage medium
CN111813524A (en) Task execution method and device, electronic equipment and storage medium
CN111324459A (en) Calendar-based resource scheduling method and device, electronic equipment and storage medium
CN113302593A (en) Task processing method, device and system, electronic equipment and storage medium
CN112054926B (en) Cluster management method and device, electronic equipment and storage medium
CN112669091B (en) Data processing method, device and storage medium
CN109525675B (en) Northbound server file downloading method and device, computer equipment and storage medium
CN114138453A (en) Resource optimization allocation method and system suitable for edge computing environment
CN116780534B (en) Virtual power plant load management method, device, equipment and storage medium
CN109241053B (en) Identification code allocation method, device and server
EP4184325A1 (en) Method and system for high-throughput distributed computing of computational jobs
CN117591382B (en) Intelligent monitoring method, device, equipment and medium for server faults

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