CN113134228A - Request information response method and related equipment - Google Patents
Request information response method and related equipment Download PDFInfo
- Publication number
- CN113134228A CN113134228A CN202010068137.6A CN202010068137A CN113134228A CN 113134228 A CN113134228 A CN 113134228A CN 202010068137 A CN202010068137 A CN 202010068137A CN 113134228 A CN113134228 A CN 113134228A
- Authority
- CN
- China
- Prior art keywords
- game server
- response
- request information
- game
- request
- 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
Links
- 230000004044 response Effects 0.000 title claims abstract description 213
- 238000000034 method Methods 0.000 title claims abstract description 62
- 238000004590 computer program Methods 0.000 claims description 11
- 238000012545 processing Methods 0.000 claims description 5
- 238000007726 management method Methods 0.000 description 98
- 238000010586 diagram Methods 0.000 description 36
- 230000008569 process Effects 0.000 description 22
- 238000012423 maintenance Methods 0.000 description 12
- 230000000694 effects Effects 0.000 description 7
- 230000006870 function Effects 0.000 description 7
- 230000003993 interaction Effects 0.000 description 7
- 230000008859 change Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 3
- 230000002250 progressing effect Effects 0.000 description 2
- 238000006467 substitution reaction Methods 0.000 description 2
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000007423 decrease Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 235000019633 pungent taste Nutrition 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
Images
Classifications
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/30—Interconnection arrangements between game servers and game devices; Interconnection arrangements between game devices; Interconnection arrangements between game servers
- A63F13/35—Details of game servers
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/70—Game security or game management aspects
- A63F13/77—Game security or game management aspects involving data related to game devices or game servers, e.g. configuration data, software version or amount of memory
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/546—Message passing systems or structures, e.g. queues
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F2300/00—Features 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/50—Features 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/53—Features 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
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Business, Economics & Management (AREA)
- Computer Security & Cryptography (AREA)
- General Business, Economics & Management (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The embodiment of the invention discloses a response method of request information and related equipment, wherein the method comprises the following steps: determining a first sum of the quantity of request information received by the game server from at least one client in a first preset time period; acquiring configuration information of the game server, wherein the configuration information comprises response parameters of the game server for responding to the request information; and determining a first response quantity of the game server responding to the request information according to the sum of the response parameters and the first quantity of the request information, so that the game server responds to the request information according to the first response quantity. By adopting the embodiment of the invention, the game server can respond the request information of the client in time under the condition of ensuring the performance of the game server, thereby reducing the time for the client to wait for response.
Description
Technical Field
The present invention relates to the field of internet technologies, and in particular, to a method for responding to a request message and a related device.
Background
In the game outbreak period, the game server receives a large amount of request information from the client, but the game server cannot respond to the request information in time, so that the problems of unstable bearing of the game server and overlong waiting response time of the client occur. Currently, two solutions to this problem are proposed: firstly, setting the frequency of the game server responding to the request information of the client so that the game server can respond to the request information of the client in time; secondly, the game product operation and maintenance personnel can make the game server respond to the request of the client in time by increasing the load of the game server. However, both of these solutions cannot solve the problem well, and even the timing of the game server responding to the client request information is inappropriate, the performance of the game server may be reduced.
Disclosure of Invention
The embodiment of the invention provides a response method of request information and related equipment, which can enable a game server to respond to the request information of a client in time under the condition of ensuring the performance of the game server, thereby reducing the time for the client to wait for response.
In a first aspect, an embodiment of the present invention provides a response method for requesting information, where the method includes:
determining a first sum of the quantity of request information received by the game server from at least one client in a first preset time period; acquiring configuration information of the game server, wherein the configuration information comprises response parameters of the game server for responding to the request information; and determining a first response quantity of the game server responding to the request information according to the sum of the response parameters and the first quantity of the request information, so that the game server responds to the request information according to the first response quantity.
In a second aspect, an embodiment of the present invention provides a device for responding to a request message, where the device has a function of implementing the method for responding to a request message described in the first aspect. The functions can be realized by hardware, and the functions can also be realized by executing corresponding software by hardware. The hardware or software includes one or more units corresponding to the above functions.
In one implementation, the response device for requesting information includes: a determining unit and an acquiring unit. The determining unit is used for determining the sum of a first quantity of request information received by the game server from at least one client in a first preset time period; the game server comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring configuration information of the game server, and the configuration information comprises a response parameter of the game server for responding to the request information; and the determining unit is further used for determining a first response quantity of the game server responding to the request information according to the sum of the response parameters and the first quantity of the request information, so that the game server responds to the request information according to the first response quantity.
In a third aspect, an embodiment of the present invention provides a management server, where the management server includes a memory and a processor, where the memory and the processor are connected to each other, where the memory is used to store a computer program; and a processor for calling the computer program stored in the memory to execute the method for responding to the request message according to the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium for storing a computer program for a management server, which includes program instructions for executing the first aspect.
In the embodiment of the present invention, the management server may determine, according to a sum of response parameters included in the acquired configuration information and a first number of request information received by the game server in a first preset time period from the at least one client, a first response number of the game server in response to the request information, so that the game server may respond to the request information from the at least one client according to the first response number. By the embodiment of the invention, the game server can respond to the request message of the client in time under the condition of ensuring the performance of the game server, so that the time for the client to wait for response is reduced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic diagram illustrating an effect of a conventional response method for a request message;
fig. 2a is a schematic structural diagram of a response system for requesting information according to an embodiment of the present invention;
fig. 2b is a schematic diagram of an exemplary architecture of a response system for requesting information according to an embodiment of the present invention;
FIG. 2c is a schematic flow chart illustrating a configuration hot loading according to an embodiment of the present invention;
fig. 2d is a schematic flowchart of a method for responding to a request message according to an embodiment of the present invention;
FIG. 2e is a schematic interface diagram of an online database according to an embodiment of the present invention;
FIG. 2f is a schematic diagram of an interface of a process database according to an embodiment of the present invention;
FIG. 2g is a schematic diagram of an online demographic data interface according to an embodiment of the present invention;
FIG. 2h is a schematic diagram of an online population trend interface according to an embodiment of the present invention;
fig. 3 is an interaction flow diagram of a response method for requesting information according to an embodiment of the present invention;
fig. 4a is a schematic interface diagram of a configuration information setting according to an embodiment of the present invention;
FIG. 4b is a schematic diagram of an interface responding to a matching result of a parameter according to an embodiment of the present invention;
FIG. 4c is a schematic diagram of an execution script for modifying the highest upper limit of the online according to an embodiment of the present invention;
FIG. 4d is a schematic diagram of an execution script for configuring hot loading according to an embodiment of the present invention;
fig. 5 is a schematic diagram illustrating an effect of a method for responding to a request message according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a response apparatus for requesting information according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a management server according to an embodiment of the present invention.
Detailed Description
The embodiments of the present invention will be described below with reference to the drawings.
When the game server receives request information from a large number of clients, in order to reduce the time for the clients to wait for response, when the number of the request information is large, the game product operation and maintenance personnel often increase the load of the game server so that the game server can respond to the request information in time, but the problem that the load of the game server cannot be better solved by increasing the load of the game server is solved, and even the performance of the game server is reduced due to improper time for increasing the load of the game server.
Referring to fig. 1, which is a schematic diagram illustrating the effect of a response method of a request message in the prior art, the number of request messages sent by a client to a game server increases from time f to time h, a game product operation and maintenance worker increases the load of the game server at time h, after the time h, the number of request messages to be responded to by the game server (or referred to as the number of people in the queue) gradually decreases, the number of request messages successfully responded to by the game server (or referred to as the number of people in the game) gradually increases, but the variation tendency of the number of persons in the game is not consistent with the variation tendency of the total sum of the request information (or called total number of persons online) received by the game server, and the number of people in the queue changes greatly, the game server can not maintain the queue hotness well, and at the same time, the performance of the game server is reduced due to a large number of sharp peaks in the change curve of the total number of online people. It can be seen that, the problem that the waiting response time of the client is too long cannot be solved well by the game product operation and maintenance personnel by increasing the load of the game server, and meanwhile, the performance of the game server may be reduced due to inappropriate times for increasing the load of the game server, for example, when the game product operation and maintenance personnel increase the load of the game server, a large number of game players log out of the login game, a large number of game players switch the game scene, and the like.
In order to solve the above problem, embodiments of the present invention provide a response method for requesting information based on a response parameter and a related device. In the embodiment of the invention, the management server can determine whether the game server responds to the request information of the client according to the response parameters, and if the management server determines that the game server responds to the request information of the client according to the response parameters, the management server can also calculate the response quantity of the game server responding to the request information of the client, so that the game server can respond to the request information of the client in time under the condition of ensuring the performance of the game server, and the time of waiting for response by the client is reduced. It should be noted that the management server mentioned in the embodiment of the present invention may be independent from the game server, and the method implemented by the management server may also be designed as a management module and integrated in the game server. In the embodiment of the present invention, the detailed description will be given by taking an example in which the management server is independent of the game server.
The response parameter is a response condition of the game server for responding to the request message, and the response parameter may include an upper limit of the number of bearers of the game server (or referred to as a maximum number of on-lines), a threshold of the number of responses of the game server (or referred to as a maximum number of responses), a threshold of the initial number of game servers (or referred to as an initial number of on-lines), and a threshold of the bearers of at least one game scenario of the game server. The upper limit of the bearing quantity of the game server can be used for indicating the upper limit of the quantity of the clients establishing connection with the game server; the response quantity threshold of the game server can be a quantity threshold of response request information of the game server in a preset period; the initial number threshold of game servers may be a number threshold of request messages concurrently responded to by the game servers; the loading threshold of at least one game scene of the game server can be the threshold of the quantity of information requested by the game server in different game scenes.
Referring to fig. 2a, a schematic structural diagram of a response system for requesting information according to an embodiment of the present invention is shown in fig. 2a, where the response system for requesting information includes: a management server 201, a game server 202, and a client 203. Among them, the management server 201 and the game server 202 have a high-speed CPU (central Processing Unit) computing capability, a long-time reliable operation capability, and a strong I/O (Input/Output) external data throughput capability. The client 203 may be a terminal, a standalone Application, an API (Application Programming Interface), an SDK (Software Development Kit), or the like, and the terminal may be a mobile terminal, a Personal Computer (PC) terminal, a laptop Computer (Tablet PC) terminal, or the like, which is not limited in this embodiment of the present invention.
In the communication system composed of the management server 201, the game server 202 and the client 203, a game player establishes a communication connection with the game server 202 through the client 203 and sends request information to the game server 202, it should be noted that the game player sends the request information to the game server 202 through the client 203 only for an example, and in an actual scene, the game server 202 can receive the request information sent from at least one client; after the game server 202 receives the request information sent by at least one client, the game server 202 sends the number of the request information to be responded by the game server 202 in a first preset time period (the number of people in the queue) and the number of the request information successfully responded by the game server 202 in the first preset time period (the number of people in the game) to the management server 201; the management server 201 determines a first quantity sum (total number of online persons) of the request information received by the game server 202 from at least one client in a first preset time period, wherein the first quantity sum of the request information comprises the quantity of the request information to be responded by the game server 202 and the quantity of the request information successfully responded by the game server 202; the management server 201 obtains the configuration information of the game server 202, the configuration information may be set by a game product operation and maintenance person for the game server 202 through the management server 201, the configuration information may also be set by default in the management server 201, and the management server 201 may determine a first response quantity of the game server 202 for responding to the request information according to a sum of the configuration information and the first quantity of the request information in a preset period, so that the game server 202 may respond to the request information in time according to the first response quantity, and time for a game player to wait for response is reduced.
Taking the schematic diagram of the exemplary architecture of a response system for requesting information shown in fig. 2B as an example, a game server a and a game server B enter the number of players in different scenes in a game into a game database (the number of players in a queue, the number of copy processes, the number of field processes, the number of people in a tangent line, and the number of people in character selection) of a management server in a first preset time period, the management server collects performance data of each module in the game server a and the game server B, a game product operation and maintenance person sets configuration information of the game server B through a user interaction interface of the management server, the configuration information includes response parameters, then the management database judges whether the number of players in different scenes in the game server B meets the response parameters with the preset period as a judgment period, if yes, the management server determines that the game server B responds to the first response number of the queued players, after the first response number is determined, the management server modifies the parameter value (such as the maximum online number, the initial online number or the maximum response number) of the online highest upper limit of the game server B through the operation platform, and makes the game server B hot-load the modified online highest upper limit through an IDIP (Intelligence Data Input Package) interface, so that the game server B takes effect without stopping, and the game server B can respond to the game players in the queue in time, thereby reducing the time for the game players to wait for response. Fig. 2c shows a process of the management server calling the IDIP interface to enable the game server B to perform configuration hot loading, where fig. 2c is a schematic flow diagram of configuration hot loading according to an embodiment of the present invention.
It can be understood that the embodiment shown in fig. 2a describes a response system for requesting information, which is for more clearly illustrating the technical solution of the embodiment of the present invention, and does not form a limitation on the technical solution provided by the embodiment of the present invention, and as a person having ordinary skill in the art knows that as the system architecture evolves and a new service scenario appears, the technical solution provided by the embodiment of the present invention is also applicable to similar technical problems.
Fig. 2d is a schematic flow chart of a response method for requesting information according to an embodiment of the present invention, and is a schematic structural diagram of a response system for requesting information shown in fig. 2 a. As shown in fig. 2d, the management server obtains the data of the game server in the online database and the game database in the first preset time period through the Python database interface, and records the data into the local database of the management server after integrating the data. Then, the management server displays the acquired data of the game server through a user interaction interface, and the operation and maintenance personnel of the game product can set configuration information through the user interaction interface, wherein the configuration information comprises response parameters. If the data of the game servers in the online database and the game database meet the response parameters, the management server calls the operation platform interface to modify the parameter value of the online highest upper limit in the game server, and simultaneously the management server calls the IDIP to configure the hot loading interface, so that the game server takes effect without stopping, and the game server can respond to the game players in the queue in time, and the time for the game players to wait for the response is reduced.
Taking the interface schematic diagram of an online database shown in fig. 2e and the interface schematic diagram of a process database shown in fig. 2f as an example, the online database includes the total online number of people of each game server in a first preset time period and the scene online number of people, the scene online number includes the number of people in queue, the number of people in character selection, the number of people in game and the number of people in tangent line, the number of people in tangent line is used for indicating the number of people in the switching scene in the game server, and the process database includes the number of people of each game server in each field process and the number of people in copy process in the first preset time period. Taking the interface schematic diagram of the online people counting data shown in fig. 2g and the interface schematic diagram of the online people number variation trend shown in fig. 2h as an example, the operation and maintenance personnel of the game product can check the online data counting condition and the online data variation trend of the game server through the user interaction interface of the management server, and can know that the game server is not suitable for responding to the request information of the client when the number of people appears in the process of copying through the online data variation trend.
Based on the schematic structural diagram of the request information response system shown in fig. 2a and the schematic flow diagram of the request information response method shown in fig. 2d, please refer to fig. 3, which is an interactive flow diagram of a request information response method provided by an embodiment of the present invention, the request information response method includes, but is not limited to, the following steps:
step S301, the client sends request information to the game server.
The client may send the request message to the game server, the game server may receive the request message from the at least one client, and the game server may respond to the request message from the at least one client.
Step S302, the management server receives the number of request messages to be responded by the game server in the first preset time period and the number of request messages successfully responded by the game server in the first preset time period.
The game server can send the number of request information (the number of people in queue) to be responded by the game server in the first preset time period and the number of request information (the number of people in game) to be successfully responded by the game server in the first preset time period to the management server, wherein the number of people in game can comprise the number of people in game, the number of people in tangent line and the number of people in character selection, and the number of people in game can comprise the number of people in copy process and the number of people in field process.
Step S303, the management server determines a first total amount of request information received by the game server from the at least one client at a first preset time.
After the management server receives the number of request messages to be responded by the game server in the first preset time period and the number of request messages successfully responded by the game server in the first preset time period, the management server may determine a first sum of the number of request messages received by the game server in the first preset time period, wherein the first sum of the number of request messages includes the number of request messages to be responded by the game server and the number of request messages successfully responded by the game server.
Step S304, the management server acquires the configuration information of the game server.
The management server may obtain configuration information of the game server, where the configuration information may be set by a game operation and maintenance person through a user interaction interface of the management server, or may be set by default in the management server, and the game operation and maintenance person may modify the configuration information set by default in the management server, where the configuration information may include a response parameter, and the response parameter is a response condition of the game server for responding to the request message.
Step S305, the management server determines a first response quantity of the game server responding to the request information according to the sum of the response parameters and the first quantity of the request information.
In one implementation, the response parameters may include an initial number threshold for the game server (initial number of online credits) and a bearer number cap for the game server (maximum number of online credits). If the number of request messages successfully responded by the game server (the number of people in the game) is smaller than the initial number threshold of the game server, and the sum of the number of request messages successfully responded by the game server and the number of request messages to be responded by the game server (the number of people in the queue) is smaller than or equal to the bearing number upper limit of the game server, the management server can determine the number of request messages to be responded by the game server as the first response number.
Taking the interface diagram of one configuration information setting shown in fig. 4a as an example, the initial online number of the game server is set to 3000, and the maximum online number of the game server is set to 80000. The number of persons in the game received by the management server is 2600, and the number of persons in the queue is 600. The number of people in the game is smaller than the initial number of people on line of the game server, the sum of the number of people in the game and the number of people in the queue is smaller than the maximum number of people on line of the game server, and the management server determines the number of people in the queue to be the first response number.
In one implementation, the response parameters may include an initial number threshold for the game server (initial number of presentities), a bearer number ceiling for the game server (maximum number of presentities), and a response number threshold for the game server (maximum number of respondents). If the number of request messages to be responded by the game server (the number of people in the queue) is greater than or equal to the response number threshold value of the game server, and the sum of the number of request messages successfully responded by the game server (the number of people in the game) and the response number threshold value of the game server is less than or equal to the bearing number upper limit of the game server, the management server can determine the response number threshold value as the first response number. If the number of the request messages to be responded by the game server is smaller than the response number threshold value of the game server, and the sum of the number of the request messages successfully responded by the game server and the number of the request messages to be responded by the game server is smaller than or equal to the upper limit of the bearing number of the game server, the management server may determine the number of the request messages to be responded by the game server as the first response number. The number of the request messages successfully responded by the game server is greater than or equal to the initial number threshold of the game server, the sum of the first response number and the number of the request messages successfully responded by the game server is less than or equal to the upper limit of the bearing number of the game server, and the first response number is less than or equal to the number of the request messages to be responded by the game server.
Taking the interface diagram of one configuration information setting shown in fig. 4a as an example, the initial online number of the game server is set to 3000, the maximum online number of the game server is set to 80000, and the maximum response number of the game server is set to 2000. The number of persons in the game received by the management server is 3600 persons, and the number of persons in the queue is 2500 persons. The number of people in the queue is larger than the maximum number of response people of the game server, the sum of the maximum number of response people of the game server and the number of people in the game is smaller than the maximum number of online people of the game server, and the management server determines the maximum number of response as the first number of response.
Taking the interface diagram of one configuration information setting shown in fig. 4a as an example, the initial online number of the game server is set to 3000, the maximum online number of the game server is set to 80000, and the maximum response number of the game server is set to 2000. The number of people in the game of the game server received by the management server is 3600 people, and the number of people in the queue is 1600 people. The number of people in the queue is smaller than the maximum number of response people of the game server, the sum of the number of people in the queue and the number of people in the game is smaller than the maximum online number of people of the game server, and the management server determines that the number of people in the queue is the first number of response.
In one implementation, the response parameter may include a loading threshold of at least one game scene of the game server, an initial number threshold (initial number of online users) of the game server, an upper loading number limit (maximum number of online users) of the game server, and a response number threshold (maximum number of response users) of the game server, the management server may determine a loading threshold of a target game scene of the game server from among the loading thresholds of at least one game scene of the game server, the loading threshold of the target game scene of the game server is a loading threshold of an executable game scene, and the management server may set the loading number threshold of the game server, the upper loading number limit of the game server, and the response number threshold of the game server, the number of request information (number in queue) to be responded by the game server in a first preset time period, and the number of response users of the game server in the first preset time period The number of request messages successfully responded (the number of persons in the game) collectively determines the first number of responses of the game server to the request messages. If the quantity of the request information to be responded by the game server in the first preset time period and the quantity of the request information successfully responded by the game server in the first preset time period meet the bearing threshold of the target game scene determined by the management server in the bearing threshold of at least one game scene of the game server, the management server determines the first response quantity. The loading threshold of at least one game scene may include the number of people in the tangent line, the participation rate of the copies (the number of people in the process of copying/the number of people in the game), the number of people in the process of copying, the number of people in the queue, the maximum number of people online, and the like. The number of people in the game may include the number of people in the cut, the number of people in the character selection, the number of people in the copy process, the number of people in the field process, and the like.
Taking the interface schematic diagram set by one kind of configuration information shown in fig. 4a and the interface schematic diagram of one kind of response parameter matching result shown in fig. 4b as an example, at time c, the management server determines, in the loading threshold of at least one game scene of the game server, that the loading threshold of the target game scene of the game server is the copy participation rate, the number of copies progressing persons, the number of persons in queue and the maximum number of online persons, the management server sets the loading threshold of the copy participation rate of the game server as 70%, the loading threshold of the number of copies progressing persons of the game server as 50000, the loading threshold of the number of persons in queue of the game server as 1 and the loading threshold of the maximum number of online persons of the game server as 80000. The management server receives a copy participation rate of 65%, a copy progress number of 3273, a number of people in line of 5659, and a maximum number of online people of 4990 for the game server. The copy participation rate of the game server received by the management server is smaller than the bearing threshold of the copy participation rate of the game server set by the management server, the number of copy processes of the game server received by the management server is smaller than the bearing threshold of the number of copy processes of the game server set by the management server, the number of people in the queue of the game server received by the management server is larger than the bearing threshold of the number of people in the queue of the game server set by the management server, the maximum online number of people of the game server received by the management server is smaller than the bearing threshold of the maximum online number of people of the game server set by the management server, and the management server carries the game server according to the bearing threshold of the target game scene of the game server, the initial number threshold of the game server, the bearing number upper limit of the game server, the response number threshold of the game server, The number of people in the queue and the number of people in the game are determined to obtain a first response number.
In one implementation, the management server may use a preset period as a determination period, and determine whether a sum of a first number of request messages received by the game server from the at least one client in a first preset time period satisfies the response parameter, so as to determine the first response number, where a time length of the first preset time period is greater than a period length of the preset period, and the period length of the preset period may be modified. In this way, the management server determines that the obtained first response quantity meets the response parameter in the preset period, and the management server may determine different first response quantities in different preset periods, for example, the management server may determine to obtain the first response quantity corresponding to the first preset period in the first preset period, determine to obtain the first response quantity corresponding to the second preset period in the second preset period, and so on.
In an implementation manner, please refer to fig. 4c and 4d, where fig. 4c is a schematic diagram of an execution script for modifying the online highest upper limit provided by the embodiment of the present invention, and fig. 4d is a schematic diagram of an execution script for configuring hot loading provided by the embodiment of the present invention, after the management server determines the first response quantity, the management server may further modify a parameter value of the online highest upper limit of the game server, and the management server may further cause the game server to hot load the modified parameter value of the online highest upper limit through the IDIP interface, and implement that the game server takes effect without stopping. Wherein, the parameter value of the highest online limit can be the maximum online number, the initial online number or the maximum response number, etc. In this way, the parameter value of the online highest upper limit of the game server can be modified without restarting the game server, so that the game server can respond to the response information of the client in time.
Step S306, the management server sends the first response quantity to the game server.
Step S307, the game server responds to the request information according to the first response quantity.
After the management server determines a first response number of the game server in response to the request information according to the sum of the response parameter and the first number of the request information, the management server may send the first response number to the game server, so that the game server may respond to the request information from the at least one client according to the first response number.
In one implementation, after the management server sends the first number of responses to the game server, the management server may determine a sum of a second number of request messages received by the game server from the at least one client for a second preset time period, the management server can also obtain updated configuration information of the game server, the updated configuration information can be determined by the game product operation and maintenance personnel through the user interaction interface of the management server according to the sum of the resource load of the game server and the second quantity of the request information, so that the management server can determine a second response quantity of the game server responding to the request information according to the sum of the response parameters contained in the updated configuration information and the second quantity of the request information, so that the game server responds to the request information from the at least one client according to the second response number. The resource load of the game server may include, but is not limited to, a CPU load and a memory load. The execution process of the management server determining the second response quantity of the game server in response to the request information according to the sum of the response parameters and the second quantity of the request information included in the updated configuration information is the same as the execution process of step S305 in the embodiment of the present invention, and the specific execution process may refer to the specific description of step S305 in the embodiment of the present invention, and is not described herein again. In this way, the configuration information acquired by the management server can be updated, and the updated configuration information is set according to the resource load of the game server and the online data of the game server in the second preset time period, so that the second response quantity determined by the management server according to the updated configuration information is a quantity which is more suitable for the game server to respond to the request information, and the game server has better performance conditions in the process of responding to the request information according to the second response quantity.
In the embodiment of the present invention, the management server may determine, according to the obtained configuration information of the game server and an online data situation of the game server in a preset time period, a response number of the game server in response to the request information from the at least one client, so that the game server may respond to the request information of the client in time according to the response number while ensuring the performance of the game server, and reduce a time for the client to wait for a response.
Referring to fig. 5, which is a schematic view illustrating an effect of the method for responding to request information according to the embodiment of the present invention, after time d, the number of people in the queue of the game server increases suddenly, and by the method for responding to request information according to the embodiment of the present invention, the number of people in the queue of the game server can be maintained in a relatively stable state, and the game heat can be maintained well. Meanwhile, the change trends of the total number of online people in the game server and the number of people in the game are basically consistent, the game server can respond to the request information of the client in time, and the time for the game player to wait for the response is effectively reduced. In addition, compared with fig. 1, the intensity of the peak in the change curve of the total number of people on the line is weakened, and the method optimizes the performance of the server to a certain extent.
Referring to fig. 6, which is a schematic structural diagram of a response device for requesting information according to an embodiment of the present invention, the response device 60 for requesting information is used to execute the steps executed by the management server in the method embodiments corresponding to fig. 2d and fig. 3, the response device 60 for requesting information may include a determining unit 601 and an obtaining unit 602, wherein,
a determining unit 601, configured to determine a first sum of the number of request information received by the game server from the at least one client in a first preset time period;
an obtaining unit 602, configured to obtain configuration information of the game server, where the configuration information includes a response parameter of the game server in response to the request information;
the determining unit 601 is further configured to determine, according to a sum of the response parameter and the first number of the request information, a first response number of the game server responding to the request information, so that the game server responds to the request information according to the first response number.
In one implementation, the first sum of the number of request messages includes the number of request messages to be responded by the game server and the number of request messages successfully responded by the game server; the response parameter comprises the upper limit of the bearing quantity of the game server, and the upper limit of the bearing quantity is used for indicating the upper limit of the quantity of the clients which establish connection with the game server; the determining unit 601 is specifically configured to determine a first response number of the game server responding to the request information according to the upper limit of the bearer number, the number of the request information to be responded by the game server, and the number of the request information successfully responded by the game server, where a sum of the first response number and the number of the request information successfully responded by the game server is less than or equal to the upper limit of the bearer number, and the first response number is less than or equal to the number of the request information to be responded by the game server.
In one implementation, the response parameter further includes a response quantity threshold of the game server, where the response quantity threshold is a quantity threshold of the game server responding to the request message within a preset period; if the number of the request messages to be responded by the game server is greater than or equal to the response number threshold, and the sum of the number of the request messages successfully responded by the game server and the response number threshold is less than or equal to the upper limit of the carrying number, the determining unit 601 is specifically configured to determine the response number threshold as the first response number; if the number of the request messages to be responded by the game server is smaller than the response number threshold, and the sum of the number of the request messages successfully responded by the game server and the number of the request messages to be responded by the game server is smaller than or equal to the upper limit of the carrying number, the determining unit 601 is specifically configured to determine the number of the request messages to be responded by the game server as the first response number.
In one implementation, the response parameter further includes an initial number threshold of the game server, where the initial number threshold is a number threshold of the game server concurrently responding to the request message; if the number of the request messages successfully responded by the game server is smaller than the initial number threshold, and the sum of the number of the request messages successfully responded by the game server and the number of the request messages to be responded by the game server is smaller than or equal to the upper limit of the carrying number, the determining unit 601 is specifically configured to determine the number of the request messages to be responded by the game server as the first response number.
In one implementation, the response parameter further includes a loading threshold of at least one game scenario of the game server; the determining unit 601 is specifically configured to determine a first response quantity of the game server responding to the request information according to a sum of a loading threshold of the at least one game scene and the first quantity of the request information.
In an implementation manner, the determining unit 601 is specifically configured to determine a loading threshold of a target game scene among the loading thresholds of the at least one game scene, where the loading threshold of the target game scene is a loading threshold of an executable game scene; the determining unit 601 is further configured to determine a first response quantity of the game server responding to the request information according to a sum of a loading threshold of the target game scene and the first quantity of the request information.
In one implementation, after determining a first response quantity of the game server responding to the request information according to the sum of the response parameter and the first quantity of the request information, the determining unit 601 is further configured to determine a second quantity sum of the request information received by the game server from at least one client in a second preset time period; an obtaining unit 602, further configured to obtain updated configuration information of the game server, where the updated configuration information is determined according to a sum of a resource load of the game server and a second quantity of the request information; a determining unit 601, further configured to determine, according to a sum of response parameters included in the updated configuration information and a second number of the request information, a second response number of the game server responding to the request information, so that the game server responds to the request information according to the second response number
It should be noted that, for details that are not mentioned in the embodiment corresponding to fig. 6 and the specific implementation manner of the step executed by each unit, reference may be made to the embodiment shown in fig. 3 and the foregoing description, and details are not described here again.
In one implementation, the associated functions implemented by the various units in FIG. 6 may be implemented in conjunction with a processor and memory. Referring to fig. 7, which is a schematic structural diagram of a management server according to an embodiment of the present invention, the management server 70 includes a processor 701 and a memory 702, where the processor 701 and the memory 702 are connected by one or more communication buses.
The processor 701 is configured to support the management server to perform the corresponding functions of the management server in the methods described in fig. 2d and fig. 3. The Processor 701 may be a Central Processing Unit (CPU), a Network Processor (NP), a hardware chip, or any combination thereof.
The memory 702 is used to store program codes and the like. The Memory 702 may include volatile Memory (volatile Memory), such as Random Access Memory (RAM); the Memory 702 may also include a Non-Volatile Memory (NVM), such as a Read-Only Memory (ROM), a flash Memory (flash Memory), a Hard Disk (Hard Disk Drive, HDD) or a Solid-State Drive (SSD); the memory 702 may also comprise a combination of the above types of memory.
The processor 701 may call the program code stored in the memory 702 to perform the following operations:
determining a first sum of the quantity of request information received by the game server from at least one client in a first preset time period;
acquiring configuration information of the game server, wherein the configuration information comprises a response parameter of the game server responding to the request information;
and determining a first response quantity of the game server responding to the request information according to the sum of the response parameters and the first quantity of the request information, so that the game server responds to the request information according to the first response quantity.
Further, the processor 701 may also execute operations corresponding to the management server in the embodiments shown in fig. 2d and fig. 3, which may specifically refer to the description in the method embodiment and will not be described herein again.
An embodiment of the present invention further provides a computer-readable storage medium, which can be used for storing computer program instructions called by the processor 701 in the management server in the embodiment shown in fig. 7, where the computer program instructions include a program for executing the program designed for the management server in the foregoing embodiment.
The computer-readable storage medium includes, but is not limited to, a flash memory (flash memory), a Hard Disk Drive (HDD), and a Solid-State Drive (SSD).
When the computer device runs, the computer program product may execute the response method for the request information designed for the management server in the above embodiments of fig. 2d and fig. 3.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, or other programmable apparatus. The computer instructions may be stored in or transmitted over a computer-readable storage medium. The computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL), etc.) or wireless (e.g., infrared, microwave, etc.) means. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
The above description is only a specific implementation of the embodiments of the present invention, but the scope of the embodiments of the present invention is not limited thereto, and any person skilled in the art can easily conceive of changes or substitutions within the technical scope of the embodiments of the present invention, and all such changes or substitutions should be covered by the scope of the embodiments of the present invention. Therefore, the protection scope of the embodiments of the present invention shall be subject to the protection scope of the claims.
Claims (10)
1. A response method for requesting information, the method comprising:
determining a first sum of the quantity of request information received by the game server from at least one client in a first preset time period;
acquiring configuration information of the game server, wherein the configuration information comprises a response parameter of the game server responding to the request information;
and determining a first response quantity of the game server responding to the request information according to the sum of the response parameters and the first quantity of the request information, so that the game server responds to the request information according to the first response quantity.
2. The method of claim 1, wherein the sum of the first number of request messages includes a number of request messages to be responded to by the game server and a number of request messages successfully responded to by the game server;
the response parameter comprises the upper limit of the bearing quantity of the game server, and the upper limit of the bearing quantity is used for indicating the upper limit of the quantity of the clients which establish connection with the game server;
the determining a first response quantity of the game server responding to the request information according to the sum of the response parameters and the first quantity of the request information comprises:
and determining a first response quantity of the game server responding to the request information according to the upper limit of the bearing quantity, the quantity of the request information to be responded by the game server and the quantity of the request information successfully responded by the game server, wherein the sum of the first response quantity and the quantity of the request information successfully responded by the game server is less than or equal to the upper limit of the bearing quantity, and the first response quantity is less than or equal to the quantity of the request information to be responded by the game server.
3. The method of claim 2, wherein the response parameters further include a response quantity threshold of the game server, the response quantity threshold being a quantity threshold of the game server responding to the request message within a preset period;
the determining, according to the upper limit of the number of bearers, the number of request messages to be responded by the game server, and the number of request messages successfully responded by the game server, a first response number of the game server responding to the request messages includes:
if the number of the request messages to be responded by the game server is greater than or equal to the response number threshold value, and the sum of the number of the request messages successfully responded by the game server and the response number threshold value is less than or equal to the upper limit of the bearing number, determining the response number threshold value as the first response number;
and if the number of the request messages to be responded by the game server is smaller than the response number threshold value, and the sum of the number of the request messages successfully responded by the game server and the number of the request messages to be responded by the game server is smaller than or equal to the bearing number upper limit, determining the number of the request messages to be responded by the game server as the first response number.
4. The method of claim 2, wherein the response parameters further include an initial number threshold for the game server, the initial number threshold being a number threshold for the game server to concurrently respond to the request message;
the method further comprises the following steps:
and if the number of the request messages successfully responded by the game server is smaller than the initial number threshold value, and the sum of the number of the request messages successfully responded by the game server and the number of the request messages to be responded by the game server is smaller than or equal to the upper limit of the bearing number, determining the number of the request messages to be responded by the game server as the first response number.
5. The method of any of claims 1 to 4, wherein the response parameters further comprise a loading threshold for at least one game scenario of the game server;
the determining a first response quantity of the game server responding to the request information according to the sum of the response parameters and the first quantity of the request information comprises:
and determining a first response quantity of the game server responding to the request information according to the sum of the bearing threshold of the at least one game scene and the first quantity of the request information.
6. The method of claim 5, wherein determining a first response number of the game server in response to the request message according to a sum of a loading threshold of the at least one game scenario and the first number of the request messages comprises:
determining a bearing threshold of a target game scene in the bearing thresholds of the at least one game scene, wherein the bearing threshold of the target game scene is a bearing threshold of an executable game scene;
and determining a first response quantity of the game server responding to the request information according to the sum of the bearing threshold of the target game scene and the first quantity of the request information.
7. The method of claim 1, wherein after determining a first number of responses from the game server to the request message based on a sum of the response parameter and the first number of request messages, the method further comprises:
determining a second sum of the number of request messages received by the game server from at least one client in a second preset time period;
acquiring updated configuration information of the game server, wherein the updated configuration information is determined according to the sum of the resource load of the game server and the second quantity of the request information;
and determining a second response quantity of the game server responding to the request information according to the sum of the response parameters contained in the updated configuration information and the second quantity of the request information, so that the game server responds to the request information according to the second response quantity.
8. A response apparatus for requesting information, the apparatus comprising:
the game server comprises a determining unit, a judging unit and a processing unit, wherein the determining unit is used for determining the sum of a first quantity of request information received by the game server from at least one client in a first preset time period;
an obtaining unit, configured to obtain configuration information of the game server, where the configuration information includes a response parameter of the game server in response to the request information;
the determining unit is further configured to determine, according to a sum of the response parameter and the first number of the request information, a first response number of the game server responding to the request information, so that the game server responds to the request information according to the first response number.
9. A management server, the server comprising:
a memory for storing a computer program;
a processor invoking said computer program in said memory for performing a method of responding to a request for information according to any of claims 1 to 7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program comprising program instructions that, when executed by a processor, cause the processor to execute the method of responding to a request for information according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010068137.6A CN113134228A (en) | 2020-01-20 | 2020-01-20 | Request information response method and related equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010068137.6A CN113134228A (en) | 2020-01-20 | 2020-01-20 | Request information response method and related equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113134228A true CN113134228A (en) | 2021-07-20 |
Family
ID=76809722
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010068137.6A Pending CN113134228A (en) | 2020-01-20 | 2020-01-20 | Request information response method and related equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113134228A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114866556A (en) * | 2022-05-25 | 2022-08-05 | 上海众源网络有限公司 | Server resource request method and device, electronic equipment and storage medium |
-
2020
- 2020-01-20 CN CN202010068137.6A patent/CN113134228A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114866556A (en) * | 2022-05-25 | 2022-08-05 | 上海众源网络有限公司 | Server resource request method and device, electronic equipment and storage medium |
CN114866556B (en) * | 2022-05-25 | 2024-04-19 | 上海众源网络有限公司 | Server resource request method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10783267B2 (en) | Centralized throttling service | |
WO2019205371A1 (en) | Server, message allocation method, and storage medium | |
CN115004673B (en) | Message pushing method, device, electronic equipment and computer readable medium | |
JP4984169B2 (en) | Load distribution program, load distribution method, load distribution apparatus, and system including the same | |
CN105847367A (en) | Service request processing method and apparatus | |
CN107634850B (en) | A kind of application state acquisition methods and its equipment, storage medium, server | |
CN109495378B (en) | Method, device, server and storage medium for detecting abnormal account | |
CN114223177A (en) | Access control method, apparatus, server and computer readable medium | |
CN110417910B (en) | Notification message sending method, device, server and storage medium | |
US11409511B2 (en) | Method and system for downloading information | |
CN117592685A (en) | Service processing method, device, electronic equipment and storage medium | |
CN115671716B (en) | Processing method, device, storage medium and electronic equipment for preloading instance application | |
US12231730B2 (en) | Providing activity notifications regarding digital content | |
CN113134228A (en) | Request information response method and related equipment | |
TWI493356B (en) | Method of asynchronous communication, method of asynchronously communicating with web browser, and system for communicating with network | |
CN110933122B (en) | Method, apparatus and computer storage medium for managing server | |
CN117453396A (en) | Task data processing method and device based on edge calculation and electronic equipment | |
CN116320518A (en) | Live message current limiting method, device, equipment and storage medium | |
CN111625375B (en) | Account reservation method and device, storage medium and electronic equipment | |
CN113742328A (en) | Application data cleaning method, device, equipment, storage medium and program product | |
CN114065184A (en) | Account management method, device, storage medium and server | |
CN114691703A (en) | Data update method, device, electronic device and storage medium | |
CN119545575A (en) | Resource scheduling method, device and network system | |
KR102486781B1 (en) | Method and apparatus for providing counseling service | |
CN114222002B (en) | Service request processing method and device, storage medium and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
REG | Reference to a national code |
Ref country code: HK Ref legal event code: DE Ref document number: 40047959 Country of ref document: HK |
|
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |