CN109771939A - Game server method of adjustment and device, storage medium, electronic equipment - Google Patents

Game server method of adjustment and device, storage medium, electronic equipment Download PDF

Info

Publication number
CN109771939A
CN109771939A CN201910037349.5A CN201910037349A CN109771939A CN 109771939 A CN109771939 A CN 109771939A CN 201910037349 A CN201910037349 A CN 201910037349A CN 109771939 A CN109771939 A CN 109771939A
Authority
CN
China
Prior art keywords
server
game
game server
closed
idle
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910037349.5A
Other languages
Chinese (zh)
Other versions
CN109771939B (en
Inventor
吴泽祥
冯志铨
刘强
杜俊超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network 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 Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN201910037349.5A priority Critical patent/CN109771939B/en
Publication of CN109771939A publication Critical patent/CN109771939A/en
Application granted granted Critical
Publication of CN109771939B publication Critical patent/CN109771939B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The disclosure belongs to server admin technical field, is related to a kind of game server method of adjustment and device, computer readable storage medium, electronic equipment.This method comprises: using preset time as the game process total quantity on the multiple game servers of interval acquiring, wherein game process total quantity includes the quantity of in operating status or idle state game process;The quantity for calculating the game process being in idle condition accounts for the idle ratio of game process total quantity;If idle ratio meets the first preset condition, the game server of the first quantity being in close state is opened;If idle ratio meets the second preset condition, the game server in the open state of the second quantity is closed.The disclosure is adjusted automatically at runtime by server, has been reduced or remitted the inconvenience for withdrawing maintenance, has been reduced the risk manually adjusted;Also, dynamic regulation server according to the actual situation avoids and estimates the wrong bring wasting of resources or carry insufficient problem, and reliability is higher.

Description

Game server method of adjustment and device, storage medium, electronic equipment
Technical field
This disclosure relates to server admin technical field more particularly to a kind of game server method of adjustment and game services Device adjusts device, computer readable storage medium and electronic equipment.
Background technique
Matching meter is carried out by being responsible for matched server generally according to the rule of planning setting for class game of renting a room in a hotel It calculates, after successful match, the player matched is put into corresponding room and carries out game.Number is more, correspondingly, required Server resource is more.In general, overseas game is run on the server that cloud manufacturer provides, such as AWS (Amazon cloud computing Service, Amazon Web Services).AWS can provide the resources such as CPU, memory, disk, by user's on-demand application.But It is a change curve according to the online number curve of player it is found that player's number in different time periods is non-constant.
In the related art, internal pressure survey can be carried out to solve problems, determines the carrying upper limit of each service node, And according to number is estimated, corresponding server resource is bought in AWS.During operation, if discovery number with estimate it is inconsistent, one As take the mode of shutdown adjustment server resource size to be safeguarded.But since prediction is inaccurate, it may cause purchase Server is on the low side, can not carry the number upper limit;Or purchase server is on the high side, results in waste of resources, and increases cost.Also, manually The process of adjustresources is complicated, and risk is larger, and disagrees with operation target.
In consideration of it, this field needs to develop a kind of new game server method of adjustment and device.
It should be noted that information is only used for reinforcing the reason to the background of the disclosure disclosed in above-mentioned background technology part Solution, therefore may include the information not constituted to the prior art known to persons of ordinary skill in the art.
Summary of the invention
The disclosure is designed to provide a kind of game server method of adjustment, game server adjustment device, computer Readable storage medium storing program for executing and electronic equipment, and then overcome caused by the limitation due to the relevant technologies at least to a certain extent manually The problems such as regulation server resource bring risk is high and reliability is low.
Other characteristics and advantages of the disclosure will be apparent from by the following detailed description, or partially by the disclosure Practice and acquistion.
According to one aspect of the disclosure, a kind of game server method of adjustment is provided, which comprises when presetting Between for the game process total quantity on the multiple game servers of interval acquiring;Wherein, the game process total quantity includes The quantity of in operating status or idle state game process;The quantity for the game process being in idle condition described in calculating accounts for The idle ratio of the game process total quantity;If the free time ratio meets the first preset condition, the first quantity is opened The game server being in close state;If the free time ratio meets the second preset condition, being in for the second quantity is closed The game server of open state.
In a kind of exemplary embodiment of the disclosure, the game services being in close state for opening the first quantity Device, comprising: obtain for recording the game server list of the status information of each game server, and will be in close state Game server as server to be opened;The server to be opened of the first quantity is opened, and updates the game garment Business device list.
In a kind of exemplary embodiment of the disclosure, the game services in the open state for closing the second quantity Device, comprising: obtain the game server list for recording the status information of each game server, and will be in the open state Game server be used as server to be closed;The server to be closed of the second quantity is closed, and updates the game garment Business device list.
In a kind of exemplary embodiment of the disclosure, the server to be closed for closing the second quantity, comprising: Obtain each game process usage amount wait close on server, and according to the game process usage amount to described wait close Server is closed to be ranked up;Server to be closed described in the second quantity is closed according to ranking results.
It is described to close described in the second quantity according to ranking results wait close in a kind of exemplary embodiment of the disclosure Server, comprising: monitor the operation shape described in the second quantity wait close each game process on server according to ranking results State information;When described when closing all game process end of runs on server, the server to be closed is closed.
In a kind of exemplary embodiment of the disclosure, first preset condition includes the idle ratio less than first Preset ratio;Second preset condition includes that the idle ratio is greater than the second preset ratio;Wherein, the described first default ratio Example is less than second preset ratio.
In a kind of exemplary embodiment of the disclosure, the game services being in close state for opening the first quantity Device, comprising: first quantity is calculated according to the idle ratio and first preset ratio;Open first number The game server of amount being in close state.
In a kind of exemplary embodiment of the disclosure, the game services in the open state for closing the second quantity Device, comprising: second quantity is calculated according to the idle ratio and second preset ratio;Close second number The game server in the open state of amount.
According to one aspect of the disclosure, a kind of game server adjustment device is provided, described device includes: acquisition mould Block is configured as using preset time as the game process total quantity on the multiple game servers of interval acquiring;Wherein, described Game process total quantity includes the quantity of in operating status or idle state game process;Computing module is configured as counting The quantity for the game process being in idle condition described in calculation accounts for the idle ratio of the game process total quantity;Opening module, quilt If being configured to the idle ratio meets the first preset condition, the game garment of the first quantity being in close state is opened Business device;Closedown module is closed being in for the second quantity and is opened if being configured as the idle ratio meets the second preset condition The game server of state.
According to one aspect of the disclosure, a kind of electronic equipment is provided, comprising: processor and memory;Wherein, memory On be stored with computer-readable instruction, the computer-readable instruction is realized above-mentioned any exemplary when being executed by the processor The game server method of adjustment of embodiment.
According to one aspect of the disclosure, a kind of computer readable storage medium is provided, computer program is stored thereon with, The computer program realizes the game server method of adjustment in above-mentioned any exemplary embodiment when being executed by processor.
As shown from the above technical solution, the game server method of adjustment in disclosure exemplary embodiment, game services Device adjustment device, computer storage medium and electronic equipment at least have following advantages and good effect:
In the method and device that the exemplary embodiment of the disclosure provides, based on the trip being in idle condition got The quantity of play process idle ratio shared in game process total quantity, the number that can be determined game server switch or close Amount, to be adjusted to game server.This adjustment mode on the one hand can adjust automatically game services under operation Device, process of stretching is simple, has reduced or remitted and has withdrawn maintenance bring inconvenience, has reduced and manually adjust bring risk;On the other hand, root According to actual service condition dynamic regulation game server, avoids and estimate the inaccurate bring wasting of resources or carrying deficiency etc. Problem, reliability are higher.
It should be understood that above general description and following detailed description be only it is exemplary and explanatory, not The disclosure can be limited.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure.It should be evident that the accompanying drawings in the following description is only the disclosure Some embodiments for those of ordinary skill in the art without creative efforts, can also basis These attached drawings obtain other attached drawings.
Fig. 1 schematically shows a kind of flow chart of game server method of adjustment in disclosure exemplary embodiment;
Fig. 2 is schematically shown in disclosure exemplary embodiment to be illustrated according to the process that calculated result opens game server Figure;
Fig. 3 is schematically shown in disclosure exemplary embodiment to be illustrated according to the process that calculated result closes game server Figure;
Fig. 4 schematically shows the process that the game server to be opened of the first quantity is opened in disclosure exemplary embodiment Schematic diagram;
Fig. 5 schematically shows the process that the game server to be closed of the second quantity is closed in disclosure exemplary embodiment Schematic diagram;
Fig. 6 schematically shows the flow diagram that server to be closed is closed in disclosure exemplary embodiment;
Fig. 7 is schematically shown in disclosure exemplary embodiment to be shown according to the process that ranking results close server to be closed It is intended to;
Fig. 8 schematically shows a kind of server architecture schematic diagram for class game of renting a room in a hotel in disclosure exemplary embodiment;
Fig. 9 is schematically shown a kind of unlatching server in disclosure exemplary embodiment and is shown with the process for reaching dilatation purpose It is intended to;
Figure 10, which is schematically shown, a kind of in disclosure exemplary embodiment closes server to reach the process of capacity reducing purpose Schematic diagram;
Figure 11 schematically shows a kind of effect diagram of application scenarios of disclosure exemplary embodiment;
Figure 12 schematically shows a kind of structural schematic diagram of game server adjustment device in disclosure exemplary embodiment;
Figure 13 schematically shows a kind of electricity for realizing game server method of adjustment in disclosure exemplary embodiment Sub- equipment;
Figure 14 schematically shows a kind of meter for realizing game server method of adjustment in disclosure exemplary embodiment Calculation machine readable storage medium storing program for executing.
Specific embodiment
Example embodiment is described more fully with reference to the drawings.However, example embodiment can be with a variety of shapes Formula is implemented, and is not understood as limited to example set forth herein;On the contrary, thesing embodiments are provided so that the disclosure will more Fully and completely, and by the design of example embodiment comprehensively it is communicated to those skilled in the art.Described feature, knot Structure or characteristic can be incorporated in any suitable manner in one or more embodiments.In the following description, it provides perhaps More details fully understand embodiment of the present disclosure to provide.It will be appreciated, however, by one skilled in the art that can It is omitted with technical solution of the disclosure one or more in the specific detail, or others side can be used Method, constituent element, device, step etc..In other cases, be not shown in detail or describe known solution to avoid a presumptuous guest usurps the role of the host and So that all aspects of this disclosure thicken.
In this specification using term "one", " one ", "the" and " described " to indicate there are one or more elements/ Component part/etc.;Term " comprising " and " having " is to indicate the open meaning being included and refer in addition to listing Element/component part/also may be present except waiting other element/component part/etc.;Term " first " and " second " etc. are only made It is used for label, is not the quantity limitation to its object.
In addition, attached drawing is only the schematic illustrations of the disclosure, it is not necessarily drawn to scale.Identical attached drawing mark in figure Note indicates same or similar part, thus will omit repetition thereof.Some block diagrams shown in the drawings are function Energy entity, not necessarily must be corresponding with physically or logically independent entity.
For problem present in the relevant technologies, the present disclosure proposes a kind of game server methods of adjustment.Fig. 1 is shown The flow chart of game server method of adjustment, as shown in Figure 1, game server method of adjustment at least includes the following steps:
Step S101. is using preset time as the game process total quantity on the multiple game servers of interval acquiring;Wherein, it swims Play process total quantity includes the quantity of in operating status or idle state game process.
Game server is the play place of player, loads game content, and provide service relevant to game application, Such as to the management of player role and the collection of user data and analysis.Gaming operators usually will not only dispose a game garment Business device, but build one group of game server and provide game services for player.In one game server include multiple game into Journey, each game process have unique process number (PID).Therefore, carrying out statistics to the process number of game process can be obtained The total quantity of the game process at current time.During game running, corresponding game process is since creation until end is Only, the quantity of the game process of this part is the quantity of the game process of operating status;If after game running, a part trip The idle situation of play process does not open game, in the case that whole game process are idle, the quantity of corresponding game process It is the quantity for the game process being in idle condition.So the total quantity of game process may include it is in operating status or Quantity two parts of the game process of idle state.With the progress of game, game process total quantity be not it is unalterable, can It is counted so that preset time is arranged to the game process total quantity on game server, which can be 1s, 1min Or 1h etc., the present exemplary embodiment does not do particular determination to this, in addition to this it is possible to be monitored in real time, grasps trip in real time The situation of change of play process total quantity.
The quantity that step S102. calculates the game process being in idle condition accounts for the idle ratio of game process total quantity.
After quantity by the game process that step S101 gets game process total quantity and is in idle condition, this step Suddenly the two will be calculated.For example, this step can by the quantity for the game process being in idle condition and game into Journey total quantity directly does division operation, determines the quantity of the game process being in idle condition shared by the game process total quantity Idle ratio;Or to being in idle condition and the game process of operating status assigns weighted value respectively, according in the free time The quantity of the game process of state and corresponding weighted value and game process total quantity do division operation, and determination is in idle condition The quantity of game process account for the idle ratio of game process total quantity, the present exemplary embodiment is not spy to specific calculation It is different to limit.
If the idle ratio of step S103. meets the first preset condition, the trip of the first quantity being in close state is opened Play server.
Determine that the quantity for the game process being in idle condition accounts for the idle ratio of game process total quantity in step s 102 After example, this step can judge the free time ratio.If idle ratio meets the first preset condition, the first number is opened The game server of amount being in close state.Wherein, the first preset condition includes idle ratio less than the first preset ratio.The One preset ratio, which can be, always accommodates player's number according to obtained by historical statistics or according to player's number Zhan of corresponding period Number ratio-dependent.Fig. 2 shows the flow diagram of game server is opened according to calculated result, as shown in Fig. 2, opening The game server of first quantity being in close state includes following two step: in step s 201, according to idle ratio The first quantity is calculated with the first preset ratio.For example, first can with the difference of computation-free ratio and the first preset ratio, Game server total quantity is multiplied with the difference again and determines the first quantity.It certainly, can in some other exemplary embodiment To determine that the first quantity, the disclosure do not do particular determination to this using any other calculation formula.In step S202, open The game server of first quantity being in close state.For example, the quantity for the game process being in idle condition is being swum The accounting of play process total quantity is 10%, and the first preset ratio is 15%, it is meant that the number for the game process being in idle condition Amount accounts for the idle ratio 10% of game process total quantity less than 15%, and game server quantity is 100, can use 100* The mode of (15%-10%)=5 determines that the first quantity of the game server opened is 5.
If the idle ratio of step S104. meets the second preset condition, the trip in the open state of the second quantity is closed Play server.
Determine that the quantity for the game process being in idle condition accounts for the idle ratio of game process total quantity in step s 102 After example, this step can judge the free time ratio.If idle ratio meets the second preset condition, the second number is closed The game server in the open state of amount.Wherein, the second preset condition includes that idle ratio is greater than the first preset ratio.The Two preset ratios, which can be, always accommodates player's number according to obtained by historical statistics or according to player's number Zhan of corresponding period Number ratio-dependent.It should be noted that the first preset ratio is less than the second preset ratio.Fig. 3 is shown to be tied according to calculating Fruit closes the flow diagram of game server, as shown in figure 3, closing the game server in the open state of the second quantity It may include following two step: in step S301, the second quantity being calculated according to idle ratio and the second preset ratio. For example, first can be with the difference of computation-free ratio and the second preset ratio, then by game server total quantity and the difference phase Multiply and determines the first quantity.Certainly, in some other exemplary embodiment, the can be determined using any other calculation formula Two quantity, the disclosure do not do particular determination to this.In step s 302, the game garment in the open state of the second quantity is closed Business device.For example, the idle ratio that the quantity for the game process being in idle condition accounts for game process total quantity is 32%, the Two preset ratios are 30%, it is meant that accounting 32% of the quantity for the game process being in idle condition in game process total quantity Greater than the second preset ratio 30%, and game server quantity is 100, can be using the side of 100* (32%-30%)=2 Formula determines that the second quantity of the game server closed is 2.
In an exemplary embodiment of the disclosure, the quantity based on the game process being in idle condition got is being swum Shared idle ratio in play process total quantity, the quantity that can be determined game server switch or close, to game services Device is adjusted.This adjustment mode on the one hand can adjust automatically game server under operation, process of stretching is simple, It has reduced or remitted and has withdrawn maintenance bring inconvenience, reduced and manually adjust bring risk;On the other hand, according to actual service condition Dynamic regulation game server avoids the problems such as estimating the inaccurate bring wasting of resources or insufficient carrying, and reliability is higher.
Fig. 4 shows the flow diagram for opening the game server to be opened of the first quantity, as shown in figure 4, opening the The game server to be opened of one quantity may include following two step:
Step S401. obtains the game server list for recording the status information of each game server, and will place In closed state game server as server to be opened.
Game server list records have current multiple game servers in the open state that game services are provided and The information of multiple spare game servers being in close state, game server list may include the IP of game server Address, port and unlatching/closing status information.This step is available to arrive game server list, in order to open the first number The game server of amount can determine the game server being in close state as clothes to be opened from game server list Business device.Wherein, server to be opened can be the game server being in close state in whole or in part.For example, when Game server quantity is 100, and game server quantity in the open state is 40 and to open game server It, can be using remaining 60 game servers being in close state as server to be opened, at 60 when first quantity is 5 In server to be opened open 5 game servers, the present exemplary embodiment to specific choice mode without limitation.
Step S402. opens the server to be opened of the first quantity, and updates game server list.
Server to be opened is determined in step S401, this step can open service to be opened according to the first quantity Device.It, can be to corresponding game garment in game server list since the server state to be opened of the first quantity generates variation The status information of business device is updated, i.e., closed state is updated to open state.
Fig. 5 shows the flow diagram for closing the game server to be closed of the second quantity, as shown in figure 5, closing the The game server to be closed of two quantity may include following two step:
Step S501. obtains the game server list for recording the status information of each game server, and will place Server to be closed is used as in the game server of open state.
Game server list records have current multiple game servers in the open state that game services are provided and The information of multiple spare game servers being in close state, game server list may include the IP of game server Address, port and unlatching/closing status information.This step is available to arrive game server list, in order to close the second number The game server of amount can determine that game server in the open state is used as wait close clothes from game server list Business device.Wherein, server to be closed can be all or part of game server in the open state.For example, when Game server quantity is 100, and the game server quantity being in close state is 60 and to close game server It, can be using remaining 40 game servers in the open state as server to be closed, at 40 when first quantity is 2 Wait close in server close 5 game servers, the present exemplary embodiment to specific choice mode without limitation.
Step S502. closes the server to be closed of the second quantity, and updates game server list.
Server to be closed is determined in step S501, this step can be closed according to the second quantity wait the service of closing Device.It, can be to corresponding game garment in game server list since the server state to be closed of the second quantity generates variation The status information of business device is updated, i.e., is in off state open state update.It, can when closing server to be closed The case where capable of having the game process in game server and being not finished.It, can not to ensure that the game services of player are gone on smoothly Directly close server to be closed, then the game process usage amount of available server to be closed, it is ranked up with It determines whether to execute shutoff operation.Fig. 6 shows the flow diagram for closing server to be closed, as shown in fig. 6, closing The server to be closed of second quantity may comprise steps of: in step s 601, obtain each wait close on server Game process usage amount, and closing server is treated according to game process usage amount and is ranked up.Game process usage amount is to use Reflect the service condition of game process, can be the quantity of the game process in operating status of the game server, Be also possible to the game process of operating status quantity account for the game server game process total quantity ratio, can also be Other can illustrate the numerical information etc. of the other forms of the game process usage amount of game server.According to the game got into Journey usage amount can treat close server be ranked up, collating sequence can be the ascending of game process usage amount or by Small sequence is arrived greatly, is also possible to the sortord of other forms.In step S602, the second quantity is closed according to ranking results Server to be closed.Fig. 7 shows the flow diagram that server to be closed is closed according to ranking results, as shown in fig. 7, our Method may include following two step: in step s 701, according to ranking results the second quantity of monitoring wait close on server The running state information of each game process.It, can be from game process usage amount for the ranking results of game process usage amount The corresponding game server of ascending closing, until having closed the server to be closed of the second quantity.During the shutdown process, Closing server can be treated to be selected, its running state information is monitored.If its is in operating status, show game Service is also continuing, and for the game experiencing for guaranteeing player, can enter wait state.In step S702, when wait the service of closing When all game process end of runs on device, server to be closed is closed.The operating status for treating closing server is supervised in real time It listens and is judged, it, i.e., can be with to the end of closing the game services on server if a server to be closed is in idle condition Execute shutoff operation.
In an exemplary embodiment of the disclosure, it based on the game server list got, is swum for opening or closing The operation of play server, is respectively determined the game server of operation to be executed, and update game server list, not only Game server can be automatically turned on or be closed, configuration can also be modified automatically, so that dilatation and capacity reducing operation are well-regulated It carries out;Further, status monitoring is carried out for the game server to be closed and game process usage amount sorts, avoid closing Operation executes mistake, ensure that the integrality of player gaming experience, avoids mistake and closes game server bring economy damage The problems such as player that becomes estranged complains.
The game server method of adjustment in the embodiment of the present disclosure is described in detail below with reference to an application scenarios.
Fig. 8 diagrammatically illustrates a kind of server architecture schematic diagram of class game of renting a room in a hotel, as shown in figure 8, fight management Process server 81 manages all tide of battle servers 82, administers the information of all tide of battle servers 82.Therefore, it matches Tide of battle server must be applied for/be discharged to server 83 by fight managing process server 81.Tide of battle server 82 be the huge tide of battle set of a quantity, is distributed on different AWS computing units, they be registered in fight manage into On journey server 81, is applied and gone into battle by match server 83.Starting and stopping for game process server 82 be and war The logic that struggles against height is relevant, it is not possible to and it is flexible come violence using the flexible interface that cloud manufacturer carries, it otherwise will affect business.
Fig. 9 shows a kind of unlatching server to reach the flow diagram of dilatation purpose, as shown in figure 9, fight management Start dilatation detector when process server 81 starts, was once checked every 2 seconds, to determine the need for dilatation.It checks Function can carry out a series of basic precondition inspection, than such as whether opening dilatation switch, (by configuring setting, default is Open), if in during a upper dilatation, if there is dilatation demand etc..If at least one is unsatisfactory for, return, under waiting It is detected when primary arrival preset time;If being all satisfied, further judge that dilatation condition, main indicator are to be currently at sky The quantity of the tide of battle of not busy state accounts for the ratio of tide of battle total quantity less than 15%, then carries out dilatation, calculates needed for dilatation The number of servers wanted notifies the Dilatation interface of bottom.The number of servers of dilatation can be write a log by interface, fight When the finger daemon disposed on managing process server 81 detects that log is changed, from the standby host pond of server to be opened Middle selection standby host, calls application interface open the server of corresponding server quantity, modify game server list, and same Code is walked, dilatation is completed.
Figure 10, which is shown, closes server to reach the flow diagram of capacity reducing purpose, as shown in Figure 10, fight manage into Start capacity reducing detector when journey server 81 starts, was once checked every 2 seconds, to determine the need for capacity reducing.Check letter Number can carry out a series of basic precondition inspection, than such as whether opening capacity reducing switch, (by configuring setting, default has been beaten Open), if in during a upper capacity reducing, if there is capacity reducing demand etc..If at least one is unsatisfactory for, return, waits next time It is detected when reaching preset time;If being all satisfied, further judge that capacity reducing condition, main indicator are to be currently at idle shape The ratio that the quantity of the tide of battle of state accounts for tide of battle total quantity is greater than 30%, then carries out capacity reducing, calculates required for capacity reducing Number of servers continues the tide of battle usage amount for calculating game server, according to tide of battle usage amount from big to small suitable Sequence, it is preferential to close not used game server completely, the smallest game server of tide of battle usage amount is then successively closed, And notice needs the tide of battle for the game server closed to actively close after last time is fought.The war for needing to close Process server 82 struggle against after completing to calculate, triggers capacity reducing file before closing, has been disposed on the managing process server 81 that struggles against When finger daemon detects that log is changed, trial is closed by force.Before being turned off, check that the closed state of tide of battle is gone forward side by side Row Core Dump is modified and updates game server list, if the tide of battle on game server has terminated, calls application Routine interface closes the server of corresponding server quantity, and synchronizing code, completes capacity reducing.
In order to preferably show the effect of flexible appearance, historical situation can be tracked, Figure 11 shows game server adjustment The effect diagram of method.As shown in figure 11, for the game server method of adjustment under this application scene, tracking continues 7 days Visualization interface show the relationship of online player's number and game server quantity, wherein histogram is number of servers, Curve graph is real-time online player number, it can be seen that the two is bonded substantially, is shown that flexible strategy is relatively reasonable, is reached expected effect Fruit.Also, visualization interface shows 5614 dollars of the America server save the cost in 7 days, Asia server save the cost 2034 dollars, achieve the effect of save the cost.
In addition, in an exemplary embodiment of the disclosure, also providing a kind of game server adjustment device.Figure 12 is shown Game server adjusts the structural schematic diagram of device, and as shown in figure 12, the fashionable dress output processing apparatus 1200 of game role can be with It include: to obtain module 1201, computing module 1202, opening module 1203, closedown module 1204.Wherein:
Module 1201 is obtained, is configured as total using preset time as the game process on the multiple game servers of interval acquiring Quantity;Wherein, game process total quantity includes the quantity of in operating status or idle state game process;Computing module 1202, the quantity for being configured as the game process that calculating is in idle condition accounts for the idle ratio of game process total quantity;It opens Module 1203 opens the trip of the first quantity being in close state if being configured as idle ratio meets the first preset condition Play server;Closedown module 1204 closes being in for the second quantity if being configured as idle ratio meets the second preset condition The game server of open state.
The detail of above-mentioned game server adjustment device carries out in corresponding game server method of adjustment Detailed description, therefore details are not described herein again.
It should be noted that although be referred in the above detailed description game server adjustment device 1200 several modules or Person's unit, but this division is not enforceable.In fact, according to embodiment of the present disclosure, above-described two or More multimode or the feature and function of unit can embody in a module or unit.Conversely, above-described one A module or the feature and function of unit can be to be embodied by multiple modules or unit with further division.
In addition, in an exemplary embodiment of the disclosure, additionally providing a kind of electronic equipment that can be realized the above method.
The electronic equipment 1300 of this embodiment according to the present invention is described referring to Figure 13.The electronics that Figure 13 is shown Equipment 1300 is only an example, should not function to the embodiment of the present invention and use scope bring any restrictions.
As shown in figure 13, electronic equipment 1300 is showed in the form of universal computing device.The component of electronic equipment 1300 can To include but is not limited to: at least one above-mentioned processing unit 1310, connects not homologous ray at least one above-mentioned storage unit 1320 The bus 1330 of component (including storage unit 1320 and processing unit 1310), display unit 1340.
Wherein, the storage unit is stored with program code, and said program code can be held by the processing unit 1310 Row, so that various according to the present invention described in the execution of the processing unit 1310 above-mentioned " illustrative methods " part of this specification The step of exemplary embodiment.
Storage unit 1320 may include the readable medium of volatile memory cell form, such as Random Access Storage Unit (RAM) 1321 and/or cache memory unit 1322, it can further include read-only memory unit (ROM) 1323.
Storage unit 1320 can also include program/utility with one group of (at least one) program module 1325 1324, such program module 1325 includes but is not limited to: operating system, one or more application program, other program moulds It may include the realization of network environment in block and program data, each of these examples or certain combination.
Bus 1330 can be to indicate one of a few class bus structures or a variety of, including storage unit bus or storage Cell controller, peripheral bus, graphics acceleration port, processing unit use any bus structures in a variety of bus structures Local bus.
Electronic equipment 1300 can also be with one or more external equipments 1500 (such as keyboard, sensing equipment, bluetooth equipment Deng) communication, can also be enabled a user to one or more equipment interact with the electronic equipment 1300 communicate, and/or with make The electronic equipment 1300 can with it is one or more of the other calculating equipment be communicated any equipment (such as router, modulation Demodulator etc.) communication.This communication can be carried out by input/output (I/O) interface 1350.Also, electronic equipment 1300 Network adapter 1360 and one or more network (such as local area network (LAN), wide area network (WAN) and/or public affairs can also be passed through Common network network, such as internet) communication.As shown, network adapter 1340 passes through its of bus 1330 and electronic equipment 1300 The communication of its module.It should be understood that although not shown in the drawings, other hardware and/or software can be used in conjunction with electronic equipment 1300 Module, including but not limited to: microcode, device driver, redundant processing unit, external disk drive array, RAID system, magnetic Tape drive and data backup storage system etc..
By the description of above embodiment, those skilled in the art is it can be readily appreciated that example embodiment described herein It can also be realized in such a way that software is in conjunction with necessary hardware by software realization.Therefore, implemented according to the disclosure The technical solution of example can be embodied in the form of software products, which can store in a non-volatile memories In medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) or on network, including some instructions are so that a calculating equipment (can To be personal computer, server, terminal installation or network equipment etc.) it executes according to the method for the embodiment of the present disclosure.
In an exemplary embodiment of the disclosure, a kind of computer readable storage medium is additionally provided, energy is stored thereon with Enough realize the program product of this specification above method.In some possible embodiments, various aspects of the invention can be with It is embodied as a kind of form of program product comprising program code, it is described when described program product is run on the terminal device Program code is for executing the terminal device described in above-mentioned " illustrative methods " part of this specification according to the present invention The step of various exemplary embodiments.
With reference to shown in Figure 14, the program product for realizing the above method of embodiment according to the present invention is described 1400, can using portable compact disc read only memory (CD-ROM) and including program code, and can in terminal device, Such as it is run on PC.However, program product of the invention is without being limited thereto, in this document, readable storage medium storing program for executing can be with To be any include or the tangible medium of storage program, the program can be commanded execution system, device or device use or It is in connection.
Described program product can be using any combination of one or more readable mediums.Readable medium can be readable letter Number medium or readable storage medium storing program for executing.Readable storage medium storing program for executing for example can be but be not limited to electricity, magnetic, optical, electromagnetic, infrared ray or System, device or the device of semiconductor, or any above combination.The more specific example of readable storage medium storing program for executing is (non exhaustive List) include: electrical connection with one or more conducting wires, portable disc, hard disk, random access memory (RAM), read-only Memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read only memory (CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, In carry readable program code.The data-signal of this propagation can take various forms, including but not limited to electromagnetic signal, Optical signal or above-mentioned any appropriate combination.Readable signal medium can also be any readable Jie other than readable storage medium storing program for executing Matter, the readable medium can send, propagate or transmit for by instruction execution system, device or device use or and its The program of combined use.
The program code for including on readable medium can transmit with any suitable medium, including but not limited to wirelessly, have Line, optical cable, RF etc. or above-mentioned any appropriate combination.
The program for executing operation of the present invention can be write with any combination of one or more programming languages Code, described program design language include object oriented program language-Java, C++ etc., further include conventional Procedural programming language-such as " C " language or similar programming language.Program code can be fully in user It calculates and executes in equipment, partly executes on a user device, being executed as an independent software package, partially in user's calculating Upper side point is executed on a remote computing or is executed in remote computing device or server completely.It is being related to far Journey calculates in the situation of equipment, and remote computing device can pass through the network of any kind, including local area network (LAN) or wide area network (WAN), it is connected to user calculating equipment, or, it may be connected to external computing device (such as utilize ISP To be connected by internet).
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure His embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Adaptive change follow the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure or Conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by claim It points out.

Claims (11)

1. a kind of game server method of adjustment, which is characterized in that the described method includes:
Using preset time as the game process total quantity on the multiple game servers of interval acquiring;Wherein, the game into Journey total quantity includes the quantity of in operating status or idle state game process;
The quantity for the game process being in idle condition described in calculating accounts for the idle ratio of the game process total quantity;
If the free time ratio meets the first preset condition, the game server of the first quantity being in close state is opened;
If the free time ratio meets the second preset condition, the game server in the open state of the second quantity is closed.
2. game server method of adjustment according to claim 1, which is characterized in that described to open being in for the first quantity The game server of closed state, comprising:
Obtain the game server list for recording the status information of each game server, and the trip that will be in close state Server play as server to be opened;
The server to be opened of the first quantity is opened, and updates the game server list.
3. game server method of adjustment according to claim 1, which is characterized in that described to close being in for the second quantity The game server of open state, comprising:
Obtain the game server list for recording the status information of each game server, and by trip in the open state Server of playing is used as server to be closed;
The server to be closed of the second quantity is closed, and updates the game server list.
4. game server method of adjustment according to claim 3, which is characterized in that described to close the described of the second quantity Server to be closed, comprising:
Each game process usage amount wait close on server is obtained, and according to the game process usage amount to described Server to be closed is ranked up;
Server to be closed described in the second quantity is closed according to ranking results.
5. game server method of adjustment according to claim 4, which is characterized in that described to close the according to ranking results The server to be closed of two quantity, comprising:
The running state information described in the second quantity wait close each game process on server is monitored according to ranking results;
When described when closing all game process end of runs on server, the server to be closed is closed.
6. game server method of adjustment according to claim 1, which is characterized in that first preset condition includes institute Idle ratio is stated less than the first preset ratio;
Second preset condition includes that the idle ratio is greater than the second preset ratio;
Wherein, first preset ratio is less than second preset ratio.
7. game server method of adjustment according to claim 6, which is characterized in that described to open being in for the first quantity The game server of closed state, comprising:
First quantity is calculated according to the idle ratio and first preset ratio;
Open the game server of first quantity being in close state.
8. game server method of adjustment according to claim 6, which is characterized in that described to close being in for the second quantity The game server of open state, comprising:
Second quantity is calculated according to the idle ratio and second preset ratio;
Close the game server in the open state of second quantity.
9. a kind of game server adjusts device characterized by comprising
Module is obtained, is configured as using preset time as the game process sum on the multiple game servers of interval acquiring Amount;Wherein, the game process total quantity includes the quantity of in operating status or idle state game process;
Computing module, the quantity for being configured as the game process being in idle condition described in calculating account for the game process total quantity Idle ratio;
Opening module is opened being in for the first quantity and is closed if being configured as the idle ratio meets the first preset condition The game server of state;
Closedown module is closed being in for the second quantity and is opened if being configured as the idle ratio meets the second preset condition The game server of state.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program Game server method of adjustment described in any one of claim 1-8 is realized when being executed by processor.
11. a kind of electronic equipment characterized by comprising
Processor;
Memory, for storing the executable instruction of the processor;
Wherein, the processor is configured to carrying out any one of perform claim requirement 1-8 via the executable instruction is executed The game server method of adjustment.
CN201910037349.5A 2019-01-15 2019-01-15 Game server adjusting method and device, storage medium and electronic equipment Active CN109771939B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910037349.5A CN109771939B (en) 2019-01-15 2019-01-15 Game server adjusting method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910037349.5A CN109771939B (en) 2019-01-15 2019-01-15 Game server adjusting method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN109771939A true CN109771939A (en) 2019-05-21
CN109771939B CN109771939B (en) 2022-07-12

Family

ID=66499377

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910037349.5A Active CN109771939B (en) 2019-01-15 2019-01-15 Game server adjusting method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN109771939B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110457138A (en) * 2019-08-20 2019-11-15 网易(杭州)网络有限公司 Management method, device and the electronic equipment of game server cluster
CN110879730A (en) * 2019-11-14 2020-03-13 腾讯科技(深圳)有限公司 Method and device for automatically adjusting game configuration, electronic equipment and storage medium
CN112156453A (en) * 2020-10-21 2021-01-01 腾讯科技(深圳)有限公司 Example adaptive adjustment method, apparatus, computer readable storage medium and device
CN113082723A (en) * 2021-03-24 2021-07-09 杭州电魂网络科技股份有限公司 Game server rolling updating method, device, electronic equipment and medium
CN113521753A (en) * 2021-07-21 2021-10-22 咪咕互动娱乐有限公司 System resource adjusting method, device, server and storage medium

Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002140534A (en) * 2000-11-01 2002-05-17 Sony Corp System and method for contents distribution with log management constitution
JP3954631B1 (en) * 2006-03-30 2007-08-08 株式会社バンダイナムコゲームス Server system, game terminal, program, and information storage medium
CN103023872A (en) * 2012-11-16 2013-04-03 杭州顺网科技股份有限公司 Cloud game service platform
CN103729254A (en) * 2013-12-31 2014-04-16 国网山东省电力公司 Virtual server Virtual CPU resource monitoring and dynamic allocation method
CN104778085A (en) * 2015-03-25 2015-07-15 广州多益网络科技有限公司 Method and device for processing game fight of hand-tour
JP5833789B1 (en) * 2015-06-30 2015-12-16 グリー株式会社 Program, control method, and information processing apparatus
CN105833522A (en) * 2015-01-28 2016-08-10 法国游戏公司 Computer game system
CN105897744A (en) * 2016-05-26 2016-08-24 广州多益网络股份有限公司 Game server updating method and system thereof
CN106201717A (en) * 2016-07-01 2016-12-07 珠海市魅族科技有限公司 A kind of method managing Installed System Memory and terminal
CN106470219A (en) * 2015-08-17 2017-03-01 阿里巴巴集团控股有限公司 The dilatation of computer cluster and capacity reduction method and equipment
CN106899772A (en) * 2017-02-21 2017-06-27 深圳市彬讯科技有限公司 The distributed equally loaded control method and calling system of a kind of calling service
CN107070716A (en) * 2017-04-14 2017-08-18 腾讯科技(深圳)有限公司 Game server state acquiring method, device, electronic equipment and storage medium
CN107341048A (en) * 2017-06-23 2017-11-10 郑州云海信息技术有限公司 A kind of method and apparatus for inquiring about the client for taking server specific resources
CN107526632A (en) * 2016-06-20 2017-12-29 咪咕互动娱乐有限公司 Process pool extending method and device
CN107638695A (en) * 2017-10-24 2018-01-30 博雅网络游戏开发(深圳)有限公司 Game control method and games system
CN107670275A (en) * 2017-10-26 2018-02-09 广州市雷军游乐设备有限公司 The method and system of game process disconnection reconnecting
CN108479061A (en) * 2018-03-29 2018-09-04 腾讯科技(深圳)有限公司 Operation data method of calibration, device, storage medium and the server of application
CN109091861A (en) * 2018-06-22 2018-12-28 网易(杭州)网络有限公司 Interaction control method, electronic equipment and storage medium in game

Patent Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002140534A (en) * 2000-11-01 2002-05-17 Sony Corp System and method for contents distribution with log management constitution
JP3954631B1 (en) * 2006-03-30 2007-08-08 株式会社バンダイナムコゲームス Server system, game terminal, program, and information storage medium
CN103023872A (en) * 2012-11-16 2013-04-03 杭州顺网科技股份有限公司 Cloud game service platform
CN103729254A (en) * 2013-12-31 2014-04-16 国网山东省电力公司 Virtual server Virtual CPU resource monitoring and dynamic allocation method
CN105833522A (en) * 2015-01-28 2016-08-10 法国游戏公司 Computer game system
CN104778085A (en) * 2015-03-25 2015-07-15 广州多益网络科技有限公司 Method and device for processing game fight of hand-tour
JP5833789B1 (en) * 2015-06-30 2015-12-16 グリー株式会社 Program, control method, and information processing apparatus
CN106470219A (en) * 2015-08-17 2017-03-01 阿里巴巴集团控股有限公司 The dilatation of computer cluster and capacity reduction method and equipment
CN105897744A (en) * 2016-05-26 2016-08-24 广州多益网络股份有限公司 Game server updating method and system thereof
CN107526632A (en) * 2016-06-20 2017-12-29 咪咕互动娱乐有限公司 Process pool extending method and device
CN106201717A (en) * 2016-07-01 2016-12-07 珠海市魅族科技有限公司 A kind of method managing Installed System Memory and terminal
CN106899772A (en) * 2017-02-21 2017-06-27 深圳市彬讯科技有限公司 The distributed equally loaded control method and calling system of a kind of calling service
CN107070716A (en) * 2017-04-14 2017-08-18 腾讯科技(深圳)有限公司 Game server state acquiring method, device, electronic equipment and storage medium
CN107341048A (en) * 2017-06-23 2017-11-10 郑州云海信息技术有限公司 A kind of method and apparatus for inquiring about the client for taking server specific resources
CN107638695A (en) * 2017-10-24 2018-01-30 博雅网络游戏开发(深圳)有限公司 Game control method and games system
CN107670275A (en) * 2017-10-26 2018-02-09 广州市雷军游乐设备有限公司 The method and system of game process disconnection reconnecting
CN108479061A (en) * 2018-03-29 2018-09-04 腾讯科技(深圳)有限公司 Operation data method of calibration, device, storage medium and the server of application
CN109091861A (en) * 2018-06-22 2018-12-28 网易(杭州)网络有限公司 Interaction control method, electronic equipment and storage medium in game

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110457138A (en) * 2019-08-20 2019-11-15 网易(杭州)网络有限公司 Management method, device and the electronic equipment of game server cluster
CN110879730A (en) * 2019-11-14 2020-03-13 腾讯科技(深圳)有限公司 Method and device for automatically adjusting game configuration, electronic equipment and storage medium
CN110879730B (en) * 2019-11-14 2023-10-24 腾讯科技(深圳)有限公司 Method and device for automatically adjusting game configuration, electronic equipment and storage medium
CN112156453A (en) * 2020-10-21 2021-01-01 腾讯科技(深圳)有限公司 Example adaptive adjustment method, apparatus, computer readable storage medium and device
CN112156453B (en) * 2020-10-21 2022-06-03 腾讯科技(深圳)有限公司 Example adaptive adjustment method, apparatus, computer readable storage medium and device
CN113082723A (en) * 2021-03-24 2021-07-09 杭州电魂网络科技股份有限公司 Game server rolling updating method, device, electronic equipment and medium
CN113521753A (en) * 2021-07-21 2021-10-22 咪咕互动娱乐有限公司 System resource adjusting method, device, server and storage medium
CN113521753B (en) * 2021-07-21 2023-08-15 咪咕互动娱乐有限公司 System resource adjusting method, device, server and storage medium

Also Published As

Publication number Publication date
CN109771939B (en) 2022-07-12

Similar Documents

Publication Publication Date Title
CN109771939A (en) Game server method of adjustment and device, storage medium, electronic equipment
CN107398072B (en) The display methods and device of game picture
EP2999527B1 (en) Game availability in a remote gaming environment
CN110290189A (en) A kind of container cluster management method, apparatus and system
CN103955405B (en) A kind of application management method and its device
CN107220879A (en) Viewing interactive approach and device
CN109460348A (en) The pressure of game server surveys method and apparatus
CN110457138A (en) Management method, device and the electronic equipment of game server cluster
CN109933405A (en) Virtual machine creation method and device, electronic equipment, storage medium
CN108460590A (en) The method, apparatus and electronic equipment of information recommendation
CN105812423B (en) A kind of cloud system configuration method, server and device
US20220280867A1 (en) Server load prediction and advanced performance measures
CN109731334A (en) Switching method and apparatus, storage medium, the electronic device of state
CN109364492A (en) Realize the method and device of game item transfer
CN109460172A (en) Object displaying method and device, storage medium and electronic device
CN109460361A (en) Performance test methods and device, storage medium and electronic device
CN112219191A (en) Self-configuration of services and servers in a data center
CN108765134A (en) Order data processing method and processing device, electronic equipment, storage medium
CN111522744A (en) Service testing method, device and computer readable storage medium
CN110223435A (en) Object random distribution approach, device, computer storage medium and electronic equipment
CN110365532A (en) A kind of server configuration method, device and equipment
CN110134585A (en) System Test Plan generation method and terminal device
US11037214B2 (en) Generation of performance offerings for interactive applications
CN105302808B (en) A kind of method and apparatus reducing load peak in user group matching process
CN117897738A (en) Artificial intelligence assisted live sports data quality assurance

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
GR01 Patent grant
GR01 Patent grant