CN113457142A - Method and device for determining cloud equipment server in cloud game and business server - Google Patents

Method and device for determining cloud equipment server in cloud game and business server Download PDF

Info

Publication number
CN113457142A
CN113457142A CN202110839441.0A CN202110839441A CN113457142A CN 113457142 A CN113457142 A CN 113457142A CN 202110839441 A CN202110839441 A CN 202110839441A CN 113457142 A CN113457142 A CN 113457142A
Authority
CN
China
Prior art keywords
cloud
game
server
virtual
equipment server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110839441.0A
Other languages
Chinese (zh)
Inventor
杨诚
陈雄
田其树
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing IQIYI Science and Technology Co Ltd
Original Assignee
Beijing IQIYI Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing IQIYI Science and Technology Co Ltd filed Critical Beijing IQIYI Science and Technology Co Ltd
Priority to CN202110839441.0A priority Critical patent/CN113457142A/en
Publication of CN113457142A publication Critical patent/CN113457142A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/52Controlling the output signals based on the game progress involving aspects of the displayed game scene
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/53Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game
    • A63F13/537Controlling the output signals based on the game progress involving additional visual information provided to the game scene, e.g. by overlay to simulate a head-up display [HUD] or displaying a laser sight in a shooting game using indicators, e.g. showing the condition of a game character on screen
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/60Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/70Game security or game management aspects
    • A63F13/79Game security or game management aspects involving player-related data, e.g. identities, accounts, preferences or play histories
    • A63F13/798Game security or game management aspects involving player-related data, e.g. identities, accounts, preferences or play histories for assessing skills or for ranking players, e.g. for generating a hall of fame

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Computer Security & Cryptography (AREA)
  • General Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • Optics & Photonics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the invention provides a method for determining a cloud equipment server in a cloud game, which is applied to a service server in the cloud game and comprises the following steps: the method comprises the steps of obtaining current virtual cloud terminal state information, game presentation information and cost information corresponding to each cloud equipment server under the condition that a game request of a user is received, sequencing the cloud equipment servers according to a preset rule based on the current virtual cloud terminal state information, the game presentation information and the cost information corresponding to the cloud equipment servers to obtain a sequencing result, and determining a target cloud equipment server from the cloud equipment servers according to the sequencing result. The sequencing result represents the comprehensive performance of each cloud equipment server for responding to the game request from multiple aspects, so that a proper cloud equipment server can be selected to respond to the game request, better cloud game running quality can be ensured, and the game experience of a user can be improved.

Description

Method and device for determining cloud equipment server in cloud game and business server
Technical Field
The invention relates to the technical field of cloud games, in particular to a method and a device for determining a cloud equipment server in a cloud game and a business server.
Background
The rapid development of 5G accelerates the industrialization of cloud games. The cloud game is a game mode based on cloud computing, and in an operation mode of the cloud game, a game picture is obtained through interaction between a virtual cloud terminal corresponding to a cloud equipment server and a game server and then is sent to user equipment. The user equipment does not need a high-end processor and a display card, can display the game picture only by basic video decompression capacity, and has the same operation experience as that of the game picture processed by the high-end processor and the display card in the user equipment.
When a user needs to run a cloud game program, a game request can be sent to a service server, a technician can preset a cloud equipment server as a target cloud equipment server responding to the game request at the current time, and then interact with the game server through a virtual cloud terminal corresponding to the target cloud equipment server to complete operations such as transmission of game pictures in a game process. When a technician finds that the current preset target cloud equipment server is not the optimal selection, the technician needs to manually modify the target cloud equipment server.
Because the cloud equipment server is an indispensable part in the running process of the cloud game, the running quality of the cloud game is directly influenced, and the game experience of a user is influenced, and the preset target cloud equipment server cannot guarantee that a proper cloud equipment server is selected, and manual intervention is needed, a method for determining the proper cloud equipment server is urgently needed.
Disclosure of Invention
The embodiment of the invention aims to provide a method and a device for determining a cloud equipment server in a cloud game and a business server, so as to determine a proper cloud equipment server in the cloud game process. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present invention provides a method for determining a cloud device server in a cloud game, where the method is applied to a service server in the cloud game, and the method includes:
under the condition of receiving a game request of a user, acquiring current virtual cloud terminal state information, game presentation information and cost information corresponding to each cloud equipment server, wherein the game presentation information is used for identifying the presentation effect of the cloud equipment server on a target cloud game indicated by the game request;
sequencing the cloud equipment servers according to a preset rule based on the current virtual cloud terminal state information, the game presentation information and the cost information corresponding to the cloud equipment servers to obtain a sequencing result;
and determining a target cloud equipment server from a plurality of cloud equipment servers according to the sequencing result, wherein the virtual cloud terminal corresponding to the target cloud equipment server is used for interacting with the game server corresponding to the target cloud game so as to respond to the game request.
Optionally, the step of ranking, based on the current virtual cloud terminal state information, the game presentation information, and the cost information corresponding to each cloud device server, each cloud device server according to a preset rule to obtain a ranking result includes:
for each cloud equipment server, calculating to obtain a score corresponding to the cloud equipment server according to a preset calculation rule based on the current virtual cloud terminal state information, the game presentation information and the cost information corresponding to the cloud equipment server;
and sequencing the cloud equipment servers based on the scores corresponding to the cloud equipment servers to obtain a sequencing result.
Optionally, the step of calculating, for each cloud equipment server, a score corresponding to the cloud equipment server according to a preset calculation rule based on the current virtual cloud terminal state information, the game presentation information, and the cost information corresponding to the cloud equipment server includes:
under the condition that the total number of the virtual cloud terminals reaches a preset threshold value, respectively calculating a first fractional factor corresponding to the current virtual cloud terminal state information, a second fractional factor corresponding to the game presentation information and a third fractional factor corresponding to the cost information of each cloud equipment server, so that the first fractional factor is smaller than a first preset value, and the second fractional factor and the third fractional factor are larger than a second preset value;
under the condition that the total number of the virtual cloud terminals does not reach a preset threshold value, respectively calculating a fourth fractional factor corresponding to the current virtual cloud terminal state information, a fifth fractional factor corresponding to the game presentation information and a sixth fractional factor corresponding to the cost information for each cloud equipment server, so that the fourth fractional factor is larger than a third preset value, and the fifth fractional factor and the sixth fractional factor are smaller than a fourth preset value.
Optionally, the current state information of the virtual cloud terminals includes the total number of the virtual cloud terminals, the number of current abnormal virtual cloud terminals, the number of current available virtual cloud terminals, and the number of current queuing cloud virtual cloud terminals;
the step of calculating, for each cloud equipment server, a score corresponding to the cloud equipment server according to a preset calculation rule based on current virtual cloud terminal state information, game presentation information and cost information corresponding to the cloud equipment server includes:
aiming at each cloud equipment server, respectively calculating the total number of the virtual cloud terminals, the total number of the current abnormal virtual cloud terminals, the total number of the current available virtual cloud terminals, the total number of the current queuing cloud virtual cloud terminals, the game presentation information and the score factors corresponding to the cost information, which correspond to the cloud equipment server;
and calculating according to a preset calculation rule based on the score factor to obtain a score corresponding to the cloud equipment server.
Optionally, the step of calculating, for each cloud equipment server, a total number of the virtual cloud terminals, a total number of the current abnormal virtual cloud terminals, a total number of the current available virtual cloud terminals, a total number of the current queued cloud virtual cloud terminals, the game presentation information, and a score factor corresponding to the cost information, which correspond to the cloud equipment server, includes:
for each cloud equipment server, respectively calculating the total number of the virtual cloud terminals, the total number of the current abnormal virtual cloud terminals, the total number of the current available virtual cloud terminals, the total number of the current queuing cloud virtual cloud terminals, the game presentation information and the score factors corresponding to the cost information, which correspond to the cloud equipment server, according to the following formulas:
pcRatio=(log(t/a1+b1)/log(2))*c1
exRatio=-log(e+a2)/log(2)*b2
avRatio=(log(v/a3+b3)/log(2))*c3
queueRatio=(1/pow(2,q/a4)-1)*b4
scoreRatio=(log(g+a5)/log(2))*b5
moneyRatio=-pow(m,2.0)*a6
wherein t is the total number of the virtual cloud terminals, e is the current abnormal virtual cloud terminal number, v is the current available virtual cloud terminal number, q is the current queuing cloud virtual cloud terminal number, g is the game presentation information, m is the cost information, pcRatio is a score factor corresponding to the total number of the virtual cloud terminals, exRatio is a score factor corresponding to the current abnormal virtual cloud terminal number, avRatio is a score factor corresponding to the current available virtual cloud terminal number, queueRatio is a score factor corresponding to the current queuing cloud virtual cloud terminal number, scoredratio is the gameThe score factor corresponding to the game presentation information, moneyRatio are the score factor corresponding to the cost information, a1、b1、c1、a2、b2、b3、c3、a4、b4、a5、b5And a6Is an adjustable parameter.
Optionally, the step of calculating, based on the score factor and according to a preset calculation rule, to obtain a score corresponding to the cloud device server includes:
for each cloud equipment server, calculating the corresponding score of the cloud equipment server according to the following formula:
X=(pcRatio+exRatio+avRatio+queueRatio)*scoreRatio*moneyRatio;
and X is the score corresponding to the cloud equipment server.
Optionally, the step of determining a target cloud device server from a plurality of cloud device servers according to the sorting result includes:
and selecting the corresponding cloud equipment server with the highest score from the plurality of cloud equipment servers as a target cloud equipment server according to the sequencing result.
In a second aspect, an apparatus for determining a cloud device server in a cloud game, applied to a service server in the cloud game, according to an embodiment of the present invention, includes:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring current virtual cloud terminal state information, game presentation information and cost information corresponding to each cloud equipment server under the condition of receiving a game request of a user, and the game presentation information is used for identifying the presentation effect of the cloud equipment server on a target cloud game indicated by the game request;
the sorting module is used for sorting the cloud equipment servers according to a preset rule based on the current virtual cloud terminal state information, the game presentation information and the cost information corresponding to the cloud equipment servers to obtain a sorting result;
and the determining module is used for determining a target cloud equipment server from a plurality of cloud equipment servers according to the sequencing result, wherein the virtual cloud terminal corresponding to the target cloud equipment server is used for interacting with the game server corresponding to the target cloud game so as to respond to the game request.
Optionally, the sorting module includes:
the computing unit is used for computing a score corresponding to each cloud equipment server according to a preset computing rule based on the current virtual cloud terminal state information, the game presentation information and the cost information corresponding to the cloud equipment server;
and the sequencing unit is used for sequencing the cloud equipment servers based on the scores corresponding to the cloud equipment servers to obtain a sequencing result.
In a third aspect, an embodiment of the present invention provides a service server, including a processor, a communication interface, a memory, and a communication bus, where the processor and the communication interface complete communication between the memory and the processor through the communication bus;
a memory for storing a computer program;
a processor adapted to perform the method steps of any of the above first aspects when executing a program stored in the memory.
In the scheme provided by the embodiment of the invention, under the condition that the service server in the cloud game receives the game request of the user, the current virtual cloud terminal state information, the game presentation information and the cost information corresponding to each cloud equipment server can be obtained, wherein the game presentation information is used for identifying the presentation effect of the cloud equipment server on the target cloud game indicated by the game request, and based on the current virtual cloud terminal state information, the game presentation information and the cost information corresponding to each cloud equipment server, sequencing the cloud equipment servers according to a preset rule to obtain a sequencing result, determining a target cloud equipment server from the plurality of cloud equipment servers according to the sequencing result, the virtual cloud terminal corresponding to the target cloud equipment server is used for interacting with the game server corresponding to the target cloud game so as to respond to the game request.
Through the scheme, the business server can obtain the sequencing result of each cloud equipment server based on the current virtual cloud terminal state information, the game presentation information and the cost information corresponding to each cloud equipment server, since the sorting result represents the comprehensive performance of each cloud equipment server for responding to the game request from the aspects of the virtual cloud terminal state, the game presentation and the cost, and the current virtual cloud terminal state information is acquired in real time, therefore, the state information of the virtual cloud terminal corresponding to each cloud equipment server at the current moment can be accurately represented, and the service server can select a proper cloud equipment server according to the sequencing result of each cloud equipment server, and then respond to the game request through suitable cloud equipment server, suitable cloud equipment server can guarantee better cloud game operation quality to user's gaming experience can be promoted. Meanwhile, manual intervention is not needed, so that manpower can be saved, and the response efficiency of game requests is improved. Of course, not all of the advantages described above need to be achieved at the same time in the practice of any one product or method of the invention.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below.
Fig. 1 is a schematic diagram of a cloud game system according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for determining a cloud device server in a cloud game according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a specific step S202 in the embodiment shown in FIG. 1;
FIG. 4 is a flowchart illustrating a specific step S301 in the embodiment shown in FIG. 2;
fig. 5 is a schematic structural diagram of an apparatus for determining a cloud device server in a cloud game according to an embodiment of the present invention;
FIG. 6 is a diagram illustrating an exemplary structure of the sorting module 520 in the embodiment shown in FIG. 5;
FIG. 7 is a diagram illustrating an exemplary structure of the computing unit 610 in the embodiment shown in FIG. 6;
fig. 8 is a schematic structural diagram of a service server according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention.
In order to determine a suitable cloud equipment server in a cloud game process, embodiments of the present invention provide a method, an apparatus, a service server, a computer storage medium, and a computer program product for determining a cloud equipment server in a cloud game.
In order to facilitate understanding of the method for determining a cloud device server in a cloud game provided by the embodiment of the present invention, a cloud game system to which the method for determining a cloud device server in a cloud game provided by the embodiment of the present invention is applied is first described below.
Fig. 1 is a schematic diagram of a cloud game system to which a method for determining a cloud device server in a cloud game is applied according to an embodiment of the present invention. The cloud game system includes a business server 110, a cloud device server 120 (cloud device server 1, cloud device server 2 …, cloud device server N), a game server 130, a video encoding server 140, a live cloud server 150, and a user terminal 160. Wherein N is a positive integer greater than 1.
When a user wants to start a certain cloud game, a game request may be sent to the service server 110 through the user terminal 160. After the service server 110 receives the game request, one of the cloud device servers 120 may be selected as a target cloud device server by using the method for determining the cloud device server in the cloud game provided by the embodiment of the present invention.
The target cloud device server generally has a plurality of virtual cloud terminals 170 (only one is shown in fig. 1), wherein the virtual cloud terminals 170 may establish a connection with the game server 130 and perform cloud game interaction to simulate cloud game interaction between the user terminal 160 and the game server 130, the virtual cloud terminals 170 are terminals that are virtualized by the target cloud device server and used for establishing a connection with the game server, and the target cloud device server provides operating resources for the virtual cloud terminals 170.
Meanwhile, the service server 110 may send an ROOM request instruction to the live broadcast cloud server 150, and after receiving the ROOM request instruction, the live broadcast cloud server 150 may create a live broadcast ROOM, and then return a live broadcast ROOM address, that is, a push-pull stream address, to the service server 110. Next, the service server 110 may return the push-pull flow address to the user terminal 160.
The video codec server 140 may acquire a game picture from the virtual cloud terminal 170 virtualized by the target cloud device server, and encode the game picture to obtain encoded game data. Further, the video codec server 140 may send the encoded game data to a live broadcast room created by the live broadcast cloud server 150.
The user terminal 160 may pull the video stream from the live broadcast cloud server 150 according to the push-pull stream address, and further perform processing such as decoding to display a cloud game picture.
Therefore, the cloud equipment server is an indispensable part in the cloud game running process and directly influences the running quality of the cloud game and the game experience of a user, and therefore the embodiment of the invention provides the method for determining the cloud equipment server in the cloud game.
The following describes a method for determining a cloud device server in a cloud game according to an embodiment of the present invention. The method for determining the cloud equipment server in the cloud game can be applied to a service server in the cloud game, and the service server can be in communication connection with user equipment, the cloud equipment server, a live broadcast cloud server and the like so as to transmit data.
As shown in fig. 2, a method for determining a cloud device server in a cloud game is applied to a service server in the cloud game, and the method includes:
s201, under the condition that a game request of a user is received, acquiring current virtual cloud terminal state information, game presentation information and cost information corresponding to each cloud equipment server;
the game presentation information is used for identifying the presentation effect of the cloud equipment server on the target cloud game indicated by the game request.
S202, sorting the cloud equipment servers according to a preset rule based on the current virtual cloud terminal state information, the game presentation information and the cost information corresponding to the cloud equipment servers to obtain a sorting result;
and S203, determining a target cloud equipment server from the plurality of cloud equipment servers according to the sequencing result.
The virtual cloud terminal corresponding to the target cloud equipment server is used for interacting with the game server corresponding to the target cloud game so as to respond to the game request.
It can be seen that in the solution provided by the embodiment of the present invention, when the service server in the cloud game receives the game request of the user, the current virtual cloud terminal state information, the game presentation information and the cost information corresponding to each cloud equipment server can be obtained, wherein the game presentation information is used for identifying the presentation effect of the cloud equipment server on the target cloud game indicated by the game request, and based on the current virtual cloud terminal state information, the game presentation information and the cost information corresponding to each cloud equipment server, sequencing the cloud equipment servers according to a preset rule to obtain a sequencing result, determining a target cloud equipment server from the plurality of cloud equipment servers according to the sequencing result, the virtual cloud terminal corresponding to the target cloud equipment server is used for interacting with the game server corresponding to the target cloud game so as to respond to the game request. Through the scheme, the business server can obtain the sequencing result of each cloud equipment server based on the current virtual cloud terminal state information, the game presentation information and the cost information corresponding to each cloud equipment server, since the sorting result represents the comprehensive performance of each cloud equipment server for responding to the game request from the aspects of the virtual cloud terminal state, the game presentation and the cost, and the current virtual cloud terminal state information is acquired in real time, therefore, the state information of the virtual cloud terminal corresponding to each cloud equipment server at the current moment can be accurately represented, and the service server can select a proper cloud equipment server according to the sequencing result of each cloud equipment server, and then respond to the game request through suitable cloud equipment server, suitable cloud equipment server can guarantee better cloud game operation quality to user's gaming experience can be promoted. Meanwhile, manual intervention is not needed, so that manpower can be saved, and the response efficiency of game requests is improved.
When a user wants to start a certain cloud game, the user terminal may send a game request, for example, the user may click to start the game in the user terminal interface. The user terminal can send the game request to a service server in the cloud game system, and the service server can receive the game request of the user. At this time, it is stated that the user wants to start the cloud game, and in order to determine a suitable cloud device server to provide a good game experience for the user, the service server may obtain current virtual cloud terminal state information, game presentation information, and cost information corresponding to the plurality of cloud device servers. The current virtual cloud terminal state information is the state information of the virtual cloud terminal corresponding to the current moment of the cloud equipment server.
The game request can carry cloud game identification, and the cloud game identification can uniquely identify the cloud game to be started by the user, namely the identification of the target cloud game, so that the service server can conveniently acquire the game presentation information.
The virtual cloud terminal corresponding to each cloud equipment server is a terminal which is virtualized by the cloud equipment server and used for establishing connection with the game server, and the cloud equipment server provides operation resources for the corresponding virtual cloud terminal. The current virtual cloud terminal state information may include the number of virtual cloud terminals, whether to fail, whether to queue, and the like. The game presentation information is used for identifying a presentation effect of the cloud device server on the target cloud game indicated by the game request. The cost information is used to identify a cost required for processing the target cloud game using the corresponding cloud device server, and may be, for example, a price, a network overhead, and the like, which are not specifically limited herein.
Since the computing resources and configurations of different cloud device servers may be different, the presentation effects of different cloud device servers for the same cloud game may be very different. Meanwhile, because the computing resources required by different cloud games and the adaptive processing modes may be different, the presentation effects of the same cloud equipment server on different cloud games may also differ greatly, and the game presentation information can accurately identify the presentation effects of the corresponding cloud equipment server on the target cloud game.
After obtaining the current virtual cloud terminal state information, the game presentation information, and the cost information corresponding to the multiple cloud device servers, the service server may rank, according to a preset rule, the cloud device servers based on the obtained current virtual cloud terminal state information, the game presentation information, and the cost information corresponding to the cloud device servers, obtain a ranking result, and then execute step S202.
As an implementation manner, in order to facilitate sorting of each cloud device server, current virtual cloud terminal state information, game presentation information, and a conversion rule between cost information and a score may be preset, and on this basis, a score corresponding to each cloud device server is obtained through calculation, and then a sorting result is obtained based on the score corresponding to each cloud device server. The sorting mode may be sorting according to the order of the corresponding scores from high to low or from low to high, so as to obtain a sorting result.
For example, if the score of the cloud equipment server a is 85, the score of the cloud equipment server B is 87, the score of the cloud equipment server C is 86, the score of the cloud equipment server D is 92, and the score of the cloud equipment server E is 77, the service server may sort the cloud equipment servers A, B, C, D, E in the order of the scores from high to low, and obtain a sorting result as follows: the system comprises a cloud equipment server D, a cloud equipment server B, a cloud equipment server C, a cloud equipment server A and a cloud equipment server E.
After obtaining the sorting result corresponding to the cloud device server, the service server may execute step S203. The sequencing result corresponding to each cloud equipment server can represent the comprehensive performance of each server for responding to the game request, so that the service server can determine the target cloud equipment server for responding to the game request according to the sequencing result corresponding to each cloud equipment server, the computing resources and the configuration of the selected target server can be more suitable for the computing resources and the adaptive processing mode required by the target cloud game, better cloud game running quality can be ensured, and the game experience of a user can be improved.
For example, the closer to the top the sorting result corresponding to the cloud equipment server represents that the comprehensive performance of the cloud equipment server for responding to the game request is better, the business server may select the cloud equipment server located at the top position in the sorting result as the target cloud equipment server; the later the sequencing result corresponding to the cloud equipment server represents that the comprehensive performance of the cloud equipment server for responding to the game request is better, and then the service server can select the cloud equipment server located at the later position in the sequencing result as the target cloud equipment server.
As an implementation manner of the embodiment of the present invention, as shown in fig. 3, the step of ranking, according to a preset rule, each cloud device server based on current virtual cloud terminal state information, game presentation information, and cost information corresponding to each cloud device server to obtain a ranking result may include:
s301, calculating to obtain a score corresponding to each cloud equipment server according to a preset calculation rule based on the current virtual cloud terminal state information, the game presentation information and the cost information corresponding to the cloud equipment server;
when the total number of the virtual cloud terminals which can be supported by the cloud equipment server is large enough, the current virtual cloud terminal state information corresponding to the cloud equipment server has little influence on the cloud equipment server to respond to the target cloud game, such as the total number of the virtual cloud terminals, the current abnormal virtual cloud terminal number, the current available virtual cloud terminal number, the current queuing cloud virtual cloud terminal number and the like, and the game presentation information and the cost information of the cloud equipment server become main influence factors for responding to the target cloud game, so that the score corresponding to the cloud equipment server is mainly determined by the game presentation information and the cost information.
When the total number of the virtual cloud terminals which can be supported by the cloud equipment server is small, the influence of the total number of the virtual cloud terminals, the number of the current abnormal virtual cloud terminals, the number of the current available virtual cloud terminals, the number of the current queued cloud virtual cloud terminals and the like included in the state information of the current virtual cloud terminal corresponding to the cloud equipment server on the cloud equipment server to respond to the target cloud game is large, the game presentation information and the cost information of the cloud equipment server become secondary influence factors for responding to the target cloud game, and therefore the score corresponding to the cloud equipment server is mainly determined by the state information of the current virtual cloud terminal.
Therefore, after obtaining the current virtual cloud terminal state information, the game presentation information, and the cost information corresponding to each cloud equipment server, the service server may first determine whether the total number of the virtual cloud terminals reaches a preset threshold, and then determine how to calculate a score corresponding to the cloud equipment server according to the determination result. The preset threshold may be set according to the total number of virtual cloud terminals that can be generally supported by the current cloud equipment server, and is not specifically limited herein.
As an embodiment, in order to conveniently calculate the score corresponding to the cloud device server, current virtual cloud terminal state information, game presentation information, and a conversion rule between the cost information and the score may be preset.
For the current state information of the virtual cloud terminal, the service server may calculate, according to the conversion rule, a score corresponding to the current state information of the virtual cloud terminal according to the total number of the virtual cloud terminals, the number of currently failed virtual cloud terminals, the number of currently queued virtual cloud terminals, and the like included in the current state information of the virtual cloud terminal.
For example, the total number of virtual cloud terminals, the number of currently failed virtual cloud terminals, and the number of currently queued virtual cloud terminals corresponding to the cloud equipment server 1 are 10000, 100, and 0, respectively, the service server may calculate, according to the conversion rule, that the scores corresponding to the total number of virtual cloud terminals, the number of currently failed virtual cloud terminals, and the number of currently queued virtual cloud terminals are 60, 15, and 30, respectively, and further may determine that the score corresponding to the current virtual cloud terminal state information of the cloud equipment server 1 is 60-15+30 — 75.
Aiming at the game presentation information, the business server can perform score conversion according to factors such as picture definition, fluency, response time and the like of the target cloud game in the running process through the cloud equipment server and according to a preset conversion rule, and then obtains a score corresponding to the game presentation information.
For example, the screen definition, the fluency, and the response time of the cloud device server 1 are high definition, general, and 60 milliseconds, respectively, the service server may calculate scores of 70, 10, and 5 corresponding to the screen definition, the fluency, and the response time, respectively, according to the conversion rule, and further may determine that the score corresponding to the game presentation information of the cloud device server 2 is 70+10-5 — 75.
In one embodiment, the cost information may be set to a score according to a general market value average of the current cloud equipment server, for example, the cost of processing the target cloud game by the cloud equipment server a is 1000, and the cost may be set to 60.
After the scores corresponding to the current virtual cloud terminal state information, the game presentation information and the cost information are obtained, the score corresponding to the cloud equipment server can be obtained through calculation according to a preset calculation rule, and the specific mode of calculating the score corresponding to the cloud equipment server can include at least one of the following modes:
the first mode is as follows: and directly adding and summing the obtained scores corresponding to the current virtual cloud terminal state information, the game presentation information and the cost information corresponding to the cloud equipment server to obtain a score corresponding to the cloud equipment server.
For example, the score corresponding to the cloud device server may be calculated according to the formula X1 ═ p + g + m. Wherein, X1 is the score of the cloud equipment server, p is the score corresponding to the current virtual cloud terminal state information, g is the score corresponding to the game presentation information, and m is the score corresponding to the cost information.
The second mode is as follows: and respectively multiplying the obtained scores corresponding to the current virtual cloud terminal state information, the game presentation information and the cost information corresponding to the cloud equipment server by corresponding weights, adding and summing the scores, and dividing the sum by 3 to obtain the score corresponding to the cloud equipment server.
For example, the score corresponding to the cloud device server may be calculated according to the formula X2 ═ (p × w1+ g × w2+ m × w 3)/3. Wherein X2 is a score of the cloud device server, p is a score corresponding to the current virtual cloud terminal state information, g is a score corresponding to the game presentation information, m is a score corresponding to the cost information, w1 is a weight corresponding to the current virtual cloud terminal state information, w2 is a weight corresponding to the game presentation information, and w3 is a weight corresponding to the cost information.
The third mode is as follows: and adjusting the obtained scores corresponding to the current virtual cloud terminal state information, the game presentation information and the cost information corresponding to the cloud equipment server through adjustable parameters, and multiplying the adjusted scores to obtain the score corresponding to the cloud equipment server.
For example, the score corresponding to the cloud device server may be calculated according to the following formula:
phone=log(p*a1+p/b1)/logc1;score=(log(g*a1)/log(2))*b2;
money=-logm*a3;X=phone*score*money。
wherein, X is the score of the cloud equipment server, p is the score corresponding to the current virtual cloud terminal state information, g is the score corresponding to the game presentation information, m is the score corresponding to the cost information, the adjusted score corresponding to the phone current virtual cloud terminal state information, score is the adjusted score corresponding to the game presentation information, and money is the adjusted score corresponding to the cost information.
S302, ranking the cloud equipment servers based on the scores corresponding to the cloud equipment servers to obtain a ranking result.
After the scores corresponding to the cloud equipment servers are obtained through calculation, the scores corresponding to each cloud equipment server can represent the comprehensive performance of the corresponding server for responding to the game request, so that the business servers can be ranked according to the scores corresponding to each cloud equipment server, and a ranking result is obtained.
The service servers may rank the cloud equipment servers in order of the scores from high to low, or rank the cloud equipment servers in order of the scores from low to high, which is reasonable.
In this embodiment, as can be seen, the service server in the cloud game may, for each cloud equipment server, based on the current virtual cloud terminal state information, the game presence information and the cost information corresponding to the cloud equipment server, calculating according to a preset calculation rule to obtain the corresponding scores of the cloud equipment servers, based on the corresponding scores of each cloud equipment server, sequencing each cloud equipment server to obtain a sequencing result, wherein the score represents the comprehensive performance of the corresponding cloud equipment server for responding to the game request from the aspects of the current virtual cloud terminal state, the game presentation and the cost, and the current virtual cloud terminal state information is acquired in real time, therefore, the state information of the virtual cloud terminal corresponding to the current moment of the corresponding cloud equipment server can be accurately represented, therefore, the service server can accurately determine the sequencing result of each cloud equipment server according to the score corresponding to each cloud equipment server.
As an implementation manner of the embodiment of the present invention, in a case that the total number of the virtual cloud terminals reaches a preset threshold, the step of calculating, by using a preset calculation rule, a score corresponding to each cloud equipment server based on current virtual cloud terminal state information, game presentation information, and cost information corresponding to the cloud equipment server for each cloud equipment server may include:
and respectively calculating a first fractional factor corresponding to the current virtual cloud terminal state information, a second fractional factor corresponding to the game presentation information and a third fractional factor corresponding to the cost information, which correspond to the cloud equipment server, so that the first fractional factor is smaller than a first preset value, and the second fractional factor and the third fractional factor are larger than a second preset value.
Under the condition that the total number of the virtual cloud terminals reaches the preset threshold value, the influence of the current virtual cloud terminal state information of the cloud equipment server on the score corresponding to the cloud equipment server is a secondary factor, the business server can respectively calculate a first score factor corresponding to the current virtual cloud terminal state information corresponding to the cloud equipment server, a second score factor corresponding to the game presentation information and a third score factor corresponding to the cost information according to a certain calculation mode, and the second score factor and the third score factor can be only required to be larger than a second preset value as long as the calculated first score factor is smaller than the first preset value.
Specific values of the first preset value and the second preset value can be set according to an actual calculation mode, and in general, the second preset value is not smaller than the first preset value, so that the effect that the score corresponding to the cloud equipment server is mainly determined by game presentation information and cost information is achieved.
Under the condition that the total number of the virtual cloud terminals does not reach the preset threshold, the step of calculating, for each cloud equipment server, a score corresponding to the cloud equipment server according to a preset calculation rule based on the current virtual cloud terminal state information, the game presentation information and the cost information corresponding to the cloud equipment server may include:
and respectively calculating a fourth fractional factor corresponding to the current virtual cloud terminal state information, a fifth fractional factor corresponding to the game presentation information and a sixth fractional factor corresponding to the cost information, which correspond to the cloud equipment server, so that the fourth fractional factor is greater than a third preset value, and the fifth fractional factor and the sixth fractional factor are less than a fourth preset value.
Under the condition that the total number of the virtual cloud terminals does not reach the preset threshold, the influence of the current virtual cloud terminal state information of the cloud equipment server on the score corresponding to the cloud equipment server is a main factor, the business server can respectively calculate a fourth fractional factor corresponding to the current virtual cloud terminal state information corresponding to the cloud equipment server, a fifth fractional factor corresponding to the game presentation information and a sixth fractional factor corresponding to the cost information according to a certain calculation mode, and as long as the fourth fractional factor is larger than a third preset value, the fifth fractional factor and the sixth fractional factor are smaller than a fourth preset value.
Specific values of the third preset value and the fourth preset value can be set according to an actual calculation mode, and in general, the third preset value is not smaller than the fourth preset value, so that the effect that the score corresponding to the cloud equipment server is mainly determined by the current virtual cloud terminal state information is achieved.
In this embodiment, the service server may determine whether the total number of the current virtual cloud terminals reaches the preset threshold, determine the major factors and the minor factors affecting the score corresponding to the cloud equipment server according to different conditions, calculate the score corresponding to the cloud equipment server accordingly, therefore, the influence of the current virtual cloud terminal state information, the game presentation information and the cost information corresponding to the cloud equipment server on the score corresponding to the cloud equipment server can be adjusted according to the total number of the virtual cloud terminals, so as to obtain more reasonable score of the cloud equipment server, and the current virtual cloud terminal state information is obtained in real time, therefore, the state information of the virtual cloud terminal corresponding to the current moment of the corresponding cloud equipment server can be accurately represented, and then can guarantee better cloud game operation quality to user's gaming experience can be promoted. Meanwhile, manual intervention is not needed, so that manpower can be saved, and the response efficiency of game requests is improved.
As an implementation manner of the embodiment of the present invention, the current state information of the virtual cloud terminals may include a total number of the virtual cloud terminals, a current number of abnormal virtual cloud terminals, a current number of available virtual cloud terminals, and a current number of queued cloud virtual cloud terminals.
The total number of the virtual cloud terminals is the maximum number of the virtual cloud terminals which can be supported by the cloud equipment server, the number of the current abnormal virtual cloud terminals is the number of the virtual cloud terminals which cannot normally operate currently in all the virtual cloud terminals, the number of the current available virtual cloud terminals is the number of the virtual cloud terminals which can normally operate currently in all the virtual cloud terminals, and the number of the current queuing cloud virtual cloud terminals is the number of the virtual cloud terminals which are currently selected to operate the cloud game by using the cloud equipment server and are waiting to be affected.
For this situation, as shown in fig. 4, the step of calculating, by using a preset calculation rule, a score corresponding to each cloud equipment server based on current virtual cloud terminal state information, game presentation information, and cost information corresponding to the cloud equipment server for each cloud equipment server may include:
s401, respectively calculating the total number of the virtual cloud terminals, the total number of the current abnormal virtual cloud terminals, the total number of the currently available virtual cloud terminals, the total number of the currently queued cloud virtual cloud terminals, the game presentation information and the score factors corresponding to the cost information, which correspond to each cloud equipment server;
the service server can respectively calculate corresponding score factors according to specific information contained in the current virtual cloud terminal state information, and can also respectively calculate corresponding score factors according to game presentation information and cost information.
In one embodiment, the service server may calculate score factors corresponding to the total number of the virtual cloud terminals, the current number of the abnormal virtual cloud terminals, the current number of the available virtual cloud terminals, and the current number of the queued cloud virtual cloud terminals according to the following formulas:
pc=(log(t+b1)/log(8))*a1;ex=-log(e)/log(8)*a2
av=(log(v+b3)/log(8))*b3;queue=(1/pow(8,q/a4)-1)。
wherein t is the total number of the virtual cloud terminals, e is the number of the current abnormal virtual cloud terminals, v is the number of the current available virtual cloud terminals, q is the number of the current queuing cloud virtual cloud terminals, pc is a fractional factor corresponding to the total number of the cloud terminals, ex is a fractional factor corresponding to the number of the current abnormal virtual cloud terminals, av is a fractional factor corresponding to the number of the current available virtual cloud terminals, and queue is the number of the current queuing cloud virtual cloud terminals to the number of the current available virtual cloud terminalsCorresponding fractional factor, a1、b1、a2、b3、a4All the parameters are adjustable parameters, and specific values can be set according to actual conditions, and are not specifically limited herein.
The score factors corresponding to the game presentation information and the cost information can be calculated according to the following formula:
score=(log(g*a5)/log(2))*b5;money=-logm*a6
wherein g is the score corresponding to the game presentation information, m is the score corresponding to the cost information, score is the score factor corresponding to the game presentation information, and money is the score factor corresponding to the cost information, a5、b5、a6For the adjustable parameter, the specific value may be set according to the actual situation, and is not specifically limited herein.
And S402, calculating according to a preset calculation rule based on the score factor to obtain a score corresponding to the cloud equipment server.
After the total number of the cloud terminals, the number of the current abnormal virtual cloud terminals, the number of the current available virtual cloud terminals, the game presentation information of the number of the current queuing cloud virtual cloud terminals and the score factor corresponding to the cost information are obtained, the service server calculates according to a preset calculation rule to obtain a score corresponding to the cloud equipment server.
In one embodiment, the fractional factors may be directly added and summed, or each fractional factor may be multiplied by its corresponding weight and then added and summed, etc., and is not limited herein. For example, the score X of the cloud device server may be calculated according to the formula X ═ pc + ex + av + queue + score + money.
As can be seen, in this embodiment, the service server may respectively calculate, for each cloud equipment server, the total number of virtual cloud terminals, the total number of current abnormal virtual cloud terminals, the total number of current available virtual cloud terminals, the total number of current queuing cloud virtual cloud terminals, the game presentation information, and the score factor corresponding to the cost information, which correspond to the cloud equipment server, and then calculate, based on each score factor, the score corresponding to the cloud equipment server according to a preset calculation rule. Therefore, the scores of the total number of the virtual cloud terminals, the total number of the current abnormal virtual cloud terminals, the total number of the current available virtual cloud terminals, the total number of the current queuing cloud virtual cloud terminals, the game presentation information and the cost information can be calculated, more reasonable scores of the cloud equipment server can be obtained, and the current state information of the virtual cloud terminal is obtained in real time, so that the state information of the virtual cloud terminal corresponding to the corresponding cloud equipment server at the current moment can be accurately represented, and further, better cloud game running quality can be ensured, and the game experience of a user can be improved. Meanwhile, manual intervention is not needed, so that manpower can be saved, and the response efficiency of game requests is improved.
As an embodiment of the present invention, the step of calculating, for each cloud equipment server, a score factor corresponding to the total number of the virtual cloud terminals, the total number of the current abnormal virtual cloud terminals, the total number of the current available virtual cloud terminals, the total number of the current queued cloud virtual cloud terminals, the game presentation information, and the cost information, which correspond to the cloud equipment server, may include:
for each cloud equipment server, respectively calculating the total number of the virtual cloud terminals, the total number of the current abnormal virtual cloud terminals, the total number of the current available virtual cloud terminals, the total number of the current queuing cloud virtual cloud terminals, the game presentation information and the score factors corresponding to the cost information, which correspond to the cloud equipment server, according to the following formulas:
pcRatio=(log(t/a1+b1)/log(2))*c1;exRatio=-log(e+a2)/log(2)*b2
avRatio=(log(v/a3+b3)/log(2))*c3;queueRatio=(1/pow(2,q/a4)-1)*b4;scoreRatio=(log(g+a5)/log(2))*b5;moneyRatio=-pow(m,2.0)*a6
wherein t is the total number of cloud terminals, e is the total number of current abnormal virtual cloud terminals, and v is the current available virtual cloudThe total number of the terminals, q is the total number of the current queuing cloud virtual cloud terminals, g is the score corresponding to the game presentation information, m is the score corresponding to the cost information, pcRatio is the score factor corresponding to the total number of the cloud terminals, exRatio is the score factor corresponding to the total number of the current abnormal virtual cloud terminals, avRatio is the score factor corresponding to the total number of the current available virtual cloud terminals, queueRatio is the score factor corresponding to the total number of the current queuing cloud virtual cloud terminals, scoredratio is the score factor corresponding to the game presentation information, and moneyRatio is the score factor corresponding to the cost information. a is1、b1、c1、a2、b2、b3、c3、a4、b4、a5、b5And a6Is an adjustable parameter.
The adjustable parameters are values which can control the scores within a range convenient for processing, for example, each score factor is controlled within a percentile system by adjusting the values of the adjustable parameters, so that the time for processing data can be reduced, and meanwhile, the scores conforming to the conventional habits of people can be obtained.
It can be seen that, the total number of virtual cloud terminals corresponding to the cloud equipment server, the total number of current abnormal virtual cloud terminals, the total number of current available virtual cloud terminals, the total number of current queued cloud virtual cloud terminals, the game presentation information and the score factors corresponding to the cost information are calculated by using the above formula, the calculated score factors can achieve the effect that the score corresponding to the cloud equipment server is mainly determined by the game presentation information and the cost information under the condition that the total number of virtual cloud terminals is large by using log and pow functions, the effect that the score corresponding to the cloud equipment server is mainly determined by the current virtual cloud terminal state information under the condition that the total number of virtual cloud terminals is small is achieved, more reasonable score of the cloud equipment server can be obtained, and the current virtual cloud terminal state information is obtained in real time, so that the state information of the virtual cloud terminal corresponding to the cloud equipment server at the current time can be accurately represented, and then can guarantee better cloud game operation quality to user's gaming experience can be promoted. Meanwhile, manual intervention is not needed, so that manpower can be saved, and the response efficiency of game requests is improved.
As an implementation manner of the embodiment of the present invention, the step of calculating, based on the score factor and according to a preset calculation rule, to obtain the score corresponding to the cloud device server includes:
for each cloud equipment server, calculating the corresponding score of the cloud equipment server according to the following formula:
X=(pcRatio+exRatio+avRatio+queueRatio)*scoreRatio*moneyRatio;
and X is the score corresponding to the cloud equipment server.
In an embodiment, in order to facilitate the calculation of the comprehensive score of the cloud device server, the score factors corresponding to the game presentation information and the cost information may be simplified to be constants, for example, the cost information corresponding to the cloud device server a and the cloud device server b is 300 yuan and 400 yuan, respectively, and the score factors corresponding to the cost factors may be set to 0.3 and 0.4, respectively, when performing the calculation.
Therefore, in this embodiment, the service server may calculate the scores corresponding to the cloud device servers by using the above calculation method, and may quickly and accurately calculate the scores corresponding to the cloud device servers.
As an implementation manner of the embodiment of the present invention, the step of determining the target cloud equipment server from the plurality of cloud equipment servers according to the sorting result may include at least one of the following steps:
the first mode is as follows: and according to the sequencing result, selecting the corresponding cloud equipment server with the highest score from the plurality of cloud equipment servers as a target cloud equipment server.
For the condition that the higher the score is, the better the comprehensive performance of the cloud equipment server for responding to the game request is, the service server may select the corresponding highest-score cloud equipment server from the plurality of cloud equipment servers as the target cloud equipment server according to the sorting result, and the target cloud equipment server, that is, the best cloud equipment server for responding to the comprehensive performance of the game request in all the cloud equipment servers, so that the running effect of the target cloud game can be ensured.
For example, if the score of the cloud equipment server a is 85, the score of the cloud equipment server B is 87, the score of the cloud equipment server C is 86, the score of the cloud equipment server D is 92, and the score of the cloud equipment server E is 77, then the ranking results obtained by ranking the scores in the order from high to low are: the service server can select the cloud equipment server D which is positioned at the first position in the sequencing result as a target cloud equipment server, and the cloud equipment server D is the highest-grade cloud equipment server.
The second mode is as follows: the service server may randomly select one of the preset number of cloud device servers at the front position of the ordering result as a target cloud device server.
The preset number may be 2, 3, 5, etc., and is not limited herein. For example, the ordering result is: the system comprises a cloud equipment server D, a cloud equipment server B, a cloud equipment server C, a cloud equipment server A and a cloud equipment server E. The preset number is 2, and then the service server can randomly select one from the cloud equipment server D and the cloud equipment server B as a target cloud equipment server according to the sorting result.
As can be seen, in this embodiment, the service server may select the target cloud equipment server from the plurality of cloud equipment servers in a plurality of ways according to the sorting result. In any way, the cloud equipment server with better comprehensive performance for responding the game request can be determined, so that the running effect of the subsequent target cloud game can be ensured.
Corresponding to the method for determining the cloud equipment server in the cloud game, the embodiment of the invention also provides a device for determining the cloud equipment server in the cloud game, and a first video playing device provided by the embodiment of the invention is introduced below. The first video playing device provided by the embodiment of the invention can be applied to a service server in a cloud game.
As shown in fig. 5, an apparatus for determining a cloud device server in a cloud game, applied to a service server in the cloud game, includes:
an obtaining module 510, configured to obtain, when a game request of a user is received, current virtual cloud terminal state information, game presentation information, and cost information corresponding to each cloud device server;
the game presentation information is used for identifying the presentation effect of the cloud equipment server on the target cloud game indicated by the game request.
The sorting module 520 is configured to sort the cloud equipment servers according to a preset rule based on the current virtual cloud terminal state information, the game presentation information, and the cost information corresponding to each cloud equipment server, so as to obtain a sorting result;
a determining module 530, configured to determine a target cloud device server from the multiple cloud device servers according to the sorting result.
The virtual cloud terminal corresponding to the target cloud equipment server is used for interacting with the game server corresponding to the target cloud game so as to respond to the game request.
It can be seen that in the solution provided by the embodiment of the present invention, when the service server in the cloud game receives the game request of the user, the current virtual cloud terminal state information, the game presentation information and the cost information corresponding to each cloud equipment server can be obtained, wherein the game presentation information is used for identifying the presentation effect of the cloud equipment server on the target cloud game indicated by the game request, and based on the current virtual cloud terminal state information, the game presentation information and the cost information corresponding to each cloud equipment server, sequencing the cloud equipment servers according to a preset rule to obtain a sequencing result, determining a target cloud equipment server from the plurality of cloud equipment servers according to the sequencing result, the virtual cloud terminal corresponding to the target cloud equipment server is used for interacting with the game server corresponding to the target cloud game so as to respond to the game request. Through the scheme, the service server can calculate the sequencing result of each cloud equipment server based on the current virtual cloud terminal state information, the game presentation information and the cost information corresponding to each cloud equipment server, the sequencing result represents the comprehensive performance of each cloud equipment server for responding to the game request from the aspects of virtual cloud terminal state, game presentation and cost, and the current virtual cloud terminal state information is obtained in real time, so that the state information of the virtual cloud terminal corresponding to each cloud equipment server at the current moment can be accurately represented, the service server can select a proper cloud equipment server according to the sequencing result of each cloud equipment server, and further respond to the game request through the proper cloud equipment server, the proper cloud equipment server can ensure better cloud game running quality, thereby the gaming experience of the user can be improved. Meanwhile, manual intervention is not needed, so that manpower can be saved, and the response efficiency of game requests is improved.
As an implementation manner of the embodiment of the present invention, as shown in fig. 6, the sorting module 520 may include:
a calculating unit 610, configured to calculate, for each cloud equipment server, a score corresponding to the cloud equipment server according to a preset calculation rule based on current virtual cloud terminal state information, game presentation information, and cost information corresponding to the cloud equipment server;
and a sorting unit 620, configured to sort the cloud device servers based on the scores corresponding to the cloud device servers, so as to obtain a sorting result.
As an implementation manner of the embodiment of the present invention, the calculating unit 610 may include:
a first fractional factor judging subunit, configured to, when the total number of the virtual cloud terminals reaches a preset threshold, respectively calculate, for each cloud equipment server, a first fractional factor corresponding to the current virtual cloud terminal state information corresponding to the cloud equipment server, a second fractional factor corresponding to the game presentation information, and a third fractional factor corresponding to the cost information, so that the first fractional factor is smaller than a first preset value, and the second fractional factor and the third fractional factor are larger than a second preset value; or the like, or, alternatively,
and a fractional factor second judging subunit, configured to, when the total number of the virtual cloud terminals does not reach a preset threshold, respectively calculate, for each cloud equipment server, a fourth fractional factor corresponding to the current virtual cloud terminal state information corresponding to the cloud equipment server, a fifth fractional factor corresponding to the game presentation information, and a sixth fractional factor corresponding to the cost information, so that the fourth fractional factor is greater than a third preset value, and the second fractional factor and the third fractional factor are smaller than a fourth preset value.
As an implementation manner of the embodiment of the present invention, as shown in fig. 7, the calculating unit 610 may include:
a score factor calculation subunit 710, configured to calculate, for each cloud equipment server, a score factor corresponding to the total number of the virtual cloud terminals, the total number of the abnormal virtual cloud terminals, the total number of the available virtual cloud terminals, the total number of the queued cloud virtual cloud terminals, the game presentation information, and the cost information, which correspond to the cloud equipment server;
and the score evaluating unit 720 is configured to calculate, based on the score factor, a score corresponding to the cloud device server according to a preset calculation rule.
As an implementation manner of the embodiment of the present invention, the fractional factor calculation subunit 710 may include:
a first score factor calculating subunit, configured to calculate, for each cloud equipment server, a score factor corresponding to the total number of the virtual cloud terminals, the total number of the abnormal virtual cloud terminals, the total number of the available virtual cloud terminals, the total number of the queued cloud virtual cloud terminals, the game presentation information, and the cost information, which correspond to the cloud equipment server, according to the following formulas:
pcRatio=(log(t/a1+b1)/log(2))*c1
exRatio=-log(e+a2)/log(2)*b2
avRatio=(log(v/a3+b3)/log(2))*c3
queueRatio=(1/pow(2,q/a4)-1)*b4
scoreRatio=(log(g+a5)/log(2))*b5
moneyRatio=-pow(m,2.0)*a6
wherein t is the total number of cloud terminals, e is the total number of abnormal virtual cloud terminals, v is the total number of available virtual cloud terminals, q is the total number of queued cloud virtual cloud terminals, g is game presentation information, m is cost information, pcRatio is a score factor corresponding to the total number of virtual cloud terminals, exRatio is a score factor corresponding to the total number of abnormal virtual cloud terminals, avRatio is a score factor corresponding to the total number of available virtual cloud terminals, queueRatio is a score factor corresponding to the total number of queued cloud virtual cloud terminals, scoreRatio is a score factor corresponding to game presentation information, moneyRatio is a score factor corresponding to cost information, a is a1、b1、c1、a2、b2、b3、c3、a4、b4、a5、b5And a6Is an adjustable parameter.
As an implementation manner of the embodiment of the present invention, the scoring subunit 720 may include:
the first scoring subunit is configured to calculate, for each cloud equipment server, a score corresponding to the cloud equipment server according to the following formula:
X=(pcRatio+exRatio+avRatio+queueRatio)*scoreRatio*moneyRatio;
and X is the score corresponding to the cloud equipment server.
As an implementation manner of the embodiment of the present invention, the determining module 530 may include:
the first determining unit is used for selecting the corresponding cloud equipment server with the highest score from the plurality of cloud equipment servers as a target cloud equipment server; or the like, or, alternatively,
the second determining unit is used for sequencing the plurality of cloud equipment servers according to the corresponding scores to obtain a sequencing result; and determining a target cloud equipment server from a plurality of cloud equipment servers based on the sequencing result.
The embodiment of the present invention further provides a service server, as shown in fig. 8, which includes a processor 801, a communication interface 802, a memory 803, and a communication bus 804, where the processor 801, the communication interface 802, and the memory 803 complete mutual communication through the communication bus 804,
a memory 803 for storing a computer program;
the processor 801 is configured to implement the steps of the method for determining a cloud device server in a cloud game according to any of the embodiments described above when executing the program stored in the memory 803.
It can be seen that in the solution provided by the embodiment of the present invention, when the service server in the cloud game receives the game request of the user, the current virtual cloud terminal state information, the game presentation information and the cost information corresponding to each cloud equipment server can be obtained, wherein the game presentation information is used for identifying the presentation effect of the cloud equipment server on the target cloud game indicated by the game request, and based on the current virtual cloud terminal state information, the game presentation information and the cost information corresponding to each cloud equipment server, sequencing the cloud equipment servers according to a preset rule to obtain a sequencing result, determining a target cloud equipment server from the plurality of cloud equipment servers according to the sequencing result, the virtual cloud terminal corresponding to the target cloud equipment server is used for interacting with the game server corresponding to the target cloud game so as to respond to the game request. Through the scheme, the service server can calculate and obtain the sequencing result of each cloud equipment server based on the current virtual cloud terminal state information, the game presentation information and the cost information corresponding to each cloud equipment server, the sequencing result represents the comprehensive performance of each cloud equipment server for responding to the game request from the aspects of virtual cloud terminal state, game presentation and cost, and the current virtual cloud terminal state information is obtained in real time, so that the state information of the virtual cloud terminal corresponding to each cloud equipment server at the current moment can be accurately represented, the service server can select a proper cloud equipment server according to the sequencing result of each cloud equipment server, and further respond to the game request through the proper cloud equipment server, the proper cloud equipment server can ensure better cloud game running quality, thereby the gaming experience of the user can be improved. Meanwhile, manual intervention is not needed, so that manpower can be saved, and the response efficiency of game requests is improved.
The communication bus mentioned in the service server may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the service server and other equipment.
The Memory may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
In another embodiment of the present invention, a computer-readable storage medium is further provided, in which a computer program is stored, and the computer program, when executed by a processor, implements the method for determining a cloud device server in a cloud game according to any one of the above embodiments.
In another embodiment of the present invention, there is also provided a computer program product containing instructions, which when run on a computer, causes the computer to execute the method for determining a cloud equipment server in a cloud game according to any one of the above embodiments.
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, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). 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.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the apparatus, the service server, the computer-readable storage medium and the computer program product embodiment, since they are substantially similar to the method embodiment, the description is relatively simple, and the relevant points can be referred to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (10)

1. A method for determining a cloud equipment server in a cloud game is applied to a business server in the cloud game, and the method comprises the following steps:
under the condition of receiving a game request of a user, acquiring current virtual cloud terminal state information, game presentation information and cost information corresponding to each cloud equipment server, wherein the game presentation information is used for identifying the presentation effect of the cloud equipment server on a target cloud game indicated by the game request;
sequencing the cloud equipment servers according to a preset rule based on the current virtual cloud terminal state information, the game presentation information and the cost information corresponding to the cloud equipment servers to obtain a sequencing result;
and determining a target cloud equipment server from a plurality of cloud equipment servers according to the sequencing result, wherein the virtual cloud terminal corresponding to the target cloud equipment server is used for interacting with the game server corresponding to the target cloud game so as to respond to the game request.
2. The method according to claim 1, wherein the step of obtaining the ranking result by ranking the cloud device servers according to a preset rule based on the current virtual cloud terminal state information, the game presentation information, and the cost information corresponding to each cloud device server comprises:
for each cloud equipment server, calculating to obtain a score corresponding to the cloud equipment server according to a preset calculation rule based on the current virtual cloud terminal state information, the game presentation information and the cost information corresponding to the cloud equipment server;
and sequencing the cloud equipment servers based on the scores corresponding to the cloud equipment servers to obtain a sequencing result.
3. The method according to claim 2, wherein the step of calculating, for each cloud equipment server, a score corresponding to the cloud equipment server according to a preset calculation rule based on the current virtual cloud terminal state information, the game presentation information, and the cost information corresponding to the cloud equipment server includes:
under the condition that the total number of the virtual cloud terminals reaches a preset threshold value, respectively calculating a first fractional factor corresponding to the current virtual cloud terminal state information, a second fractional factor corresponding to the game presentation information and a third fractional factor corresponding to the cost information of each cloud equipment server, so that the first fractional factor is smaller than a first preset value, and the second fractional factor and the third fractional factor are larger than a second preset value;
under the condition that the total number of the virtual cloud terminals does not reach a preset threshold value, respectively calculating a fourth fractional factor corresponding to the current virtual cloud terminal state information, a fifth fractional factor corresponding to the game presentation information and a sixth fractional factor corresponding to the cost information for each cloud equipment server, so that the fourth fractional factor is larger than a third preset value, and the fifth fractional factor and the sixth fractional factor are smaller than a fourth preset value.
4. The method according to claim 2, wherein the current virtual cloud terminal state information comprises the total number of virtual cloud terminals, the current number of abnormal virtual cloud terminals, the current number of available virtual cloud terminals, and the current number of queued cloud virtual cloud terminals;
the step of calculating, for each cloud equipment server, a score corresponding to the cloud equipment server according to a preset calculation rule based on current virtual cloud terminal state information, game presentation information and cost information corresponding to the cloud equipment server includes:
aiming at each cloud equipment server, respectively calculating the total number of the virtual cloud terminals, the total number of the current abnormal virtual cloud terminals, the total number of the current available virtual cloud terminals, the total number of the current queuing cloud virtual cloud terminals, the game presentation information and the score factors corresponding to the cost information, which correspond to the cloud equipment server;
and calculating according to a preset calculation rule based on the score factor to obtain a score corresponding to the cloud equipment server.
5. The method according to claim 4, wherein the step of calculating, for each cloud equipment server, a score factor corresponding to the total number of the virtual cloud terminals, the total number of the current abnormal virtual cloud terminals, the total number of the current available virtual cloud terminals, the total number of the current queued cloud virtual cloud terminals, the game presentation information, and the cost information for the cloud equipment server includes:
for each cloud equipment server, respectively calculating the total number of the virtual cloud terminals, the total number of the current abnormal virtual cloud terminals, the total number of the current available virtual cloud terminals, the total number of the current queuing cloud virtual cloud terminals, the game presentation information and the score factors corresponding to the cost information, which correspond to the cloud equipment server, according to the following formulas:
pcRatio=(log(t/a1+b1)/log(2))*c1
exRatio=-log(e+a2)/log(2)*b2
avRatio=(log(v/a3+b3)/log(2))*c3
queueRatio=(1/pow(2,q/a4)-1)*b4
scoreRatio=(log(g+a5)/log(2))*b5
moneyRatio=-pow(m,2.0)*a6
wherein t is the total number of the virtual cloud terminals, e is the current number of the abnormal virtual cloud terminals, v is the current number of the available virtual cloud terminals, q is the current number of queued cloud virtual cloud terminals, g is the game presentation information, m is the cost information, pcRatio is a score factor corresponding to the total number of the virtual cloud terminals, exRatio is a score factor corresponding to the current number of the abnormal virtual cloud terminals, avRatio is a score factor corresponding to the current number of the available virtual cloud terminals, queueRatio is a score factor corresponding to the current number of queued cloud virtual cloud terminals, scoreeratio is a score factor corresponding to the game presentation information, moneyRatio is a score factor corresponding to the cost information, a1、b1、c1、a2、b2、b3、c3、a4、b4、a5、b5And a6Is an adjustable parameter.
6. The method according to claim 4, wherein the step of calculating the score corresponding to the cloud device server according to a preset calculation rule based on the score factor includes:
for each cloud equipment server, calculating the corresponding score of the cloud equipment server according to the following formula:
X=(pcRatio+exRatio+avRatio+queueRatio)*scoreRatio*moneyRatio;
and X is the score corresponding to the cloud equipment server.
7. The method according to any one of claims 2 to 6, wherein the step of determining the target cloud equipment server from the plurality of cloud equipment servers according to the sorting result comprises:
and selecting the corresponding cloud equipment server with the highest score from the plurality of cloud equipment servers as a target cloud equipment server according to the sequencing result.
8. An apparatus for determining a cloud device server in a cloud game, the apparatus being applied to a service server in the cloud game, the apparatus comprising:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring current virtual cloud terminal state information, game presentation information and cost information corresponding to each cloud equipment server under the condition of receiving a game request of a user, and the game presentation information is used for identifying the presentation effect of the cloud equipment server on a target cloud game indicated by the game request;
the sorting module is used for sorting the cloud equipment servers according to a preset rule based on the current virtual cloud terminal state information, the game presentation information and the cost information corresponding to the cloud equipment servers to obtain a sorting result;
and the determining module is used for determining a target cloud equipment server from a plurality of cloud equipment servers according to the sequencing result, wherein the virtual cloud terminal corresponding to the target cloud equipment server is used for interacting with the game server corresponding to the target cloud game so as to respond to the game request.
9. The apparatus of claim 8, wherein the ordering module comprises:
the computing unit is used for computing a score corresponding to each cloud equipment server according to a preset computing rule based on the current virtual cloud terminal state information, the game presentation information and the cost information corresponding to the cloud equipment server;
and the sequencing unit is used for sequencing the cloud equipment servers based on the scores corresponding to the cloud equipment servers to obtain a sequencing result.
10. A business server is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 1 to 7 when executing a program stored in the memory.
CN202110839441.0A 2021-07-23 2021-07-23 Method and device for determining cloud equipment server in cloud game and business server Pending CN113457142A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110839441.0A CN113457142A (en) 2021-07-23 2021-07-23 Method and device for determining cloud equipment server in cloud game and business server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110839441.0A CN113457142A (en) 2021-07-23 2021-07-23 Method and device for determining cloud equipment server in cloud game and business server

Publications (1)

Publication Number Publication Date
CN113457142A true CN113457142A (en) 2021-10-01

Family

ID=77882214

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110839441.0A Pending CN113457142A (en) 2021-07-23 2021-07-23 Method and device for determining cloud equipment server in cloud game and business server

Country Status (1)

Country Link
CN (1) CN113457142A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023083167A1 (en) * 2021-11-10 2023-05-19 中国联合网络通信集团有限公司 Cloud-terminal-based service processing method and system, and server and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111967938A (en) * 2020-08-18 2020-11-20 中国银行股份有限公司 Cloud resource recommendation method and device, computer equipment and readable storage medium
CN112416517A (en) * 2020-11-20 2021-02-26 北京优炫软件股份有限公司 Virtual computing organization control management system and method
CN112807678A (en) * 2021-02-23 2021-05-18 北京字节跳动网络技术有限公司 Cloud game implementation method, device, system, equipment and medium
CN113018871A (en) * 2021-04-19 2021-06-25 腾讯科技(深圳)有限公司 Service processing method, device and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111967938A (en) * 2020-08-18 2020-11-20 中国银行股份有限公司 Cloud resource recommendation method and device, computer equipment and readable storage medium
CN112416517A (en) * 2020-11-20 2021-02-26 北京优炫软件股份有限公司 Virtual computing organization control management system and method
CN112807678A (en) * 2021-02-23 2021-05-18 北京字节跳动网络技术有限公司 Cloud game implementation method, device, system, equipment and medium
CN113018871A (en) * 2021-04-19 2021-06-25 腾讯科技(深圳)有限公司 Service processing method, device and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023083167A1 (en) * 2021-11-10 2023-05-19 中国联合网络通信集团有限公司 Cloud-terminal-based service processing method and system, and server and device

Similar Documents

Publication Publication Date Title
EP3574965A1 (en) Method for realizing user matching and related device
WO2022222755A1 (en) Service processing method and apparatus, and storage medium
US11372805B2 (en) Method and device for information processing
CN109218390B (en) User screening method and device
WO2022105282A1 (en) Game display method and apparatus
CN109473121B (en) Voice synthesis quality testing method and device
WO2023116219A1 (en) Cdn node distribution method and apparatus, electronic device, medium and program product
CN112546621A (en) Voting method and device for live game, computer storage medium and electronic equipment
CN110233840B (en) Service processing method, device, equipment and storage medium
CN110996154A (en) Video playing method and device and electronic equipment
CN111135586A (en) Game matching method, game matching device, storage medium and electronic device
CN113457142A (en) Method and device for determining cloud equipment server in cloud game and business server
CN112494953A (en) Game matching method, electronic device, and computer-readable storage medium
CN116431282A (en) Cloud virtual host server management method, device, equipment and storage medium
CN115001747A (en) Device control method, device, electronic device and storage medium
WO2018214836A1 (en) Application identifier matching method, device, storage media and server
JP5933487B2 (en) QoE estimation apparatus, QoE estimation method and program
CN112995765A (en) Network resource display method and device
CN115454576A (en) Virtual machine process management method and system and electronic equipment
US9280384B2 (en) Method, server and system for processing task data
CN106776010B (en) Resource allocation method and terminal
CN113134228A (en) Request information response method and related equipment
CN113747189B (en) Display control method and device for live broadcast information, electronic equipment and computer medium
CN110795251A (en) Method and equipment for determining terminal operation parameters
CN114417156B (en) Training method and device for content recommendation model, server and storage medium

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