Resource dynamic configuration method, device, equipment and medium based on cloud gaming

By obtaining the concurrent number of cloud game users in real time and dynamically adjusting the configuration strategy of cloud game resource hosts, the user waiting time and power waste caused by unreasonable resource configuration in cloud game systems is solved, and efficient and reasonable allocation of resources is achieved.

CN114490072BActive Publication Date: 2025-01-14HANGZHOU WULIAN TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210111524.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-29
Publication Date
2025-01-14
Estimated Expiration
2042-01-29

AI Technical Summary

Technical Problem

In the cloud gaming system, when the scheduling system provides users with resources, how to dynamically configure resources of the cloud gaming resource host more reasonably, which can not only reduce the user's waiting time, but also avoid the problem of frequent switch-off of the host and waste of power resources.

Method used

By obtaining the concurrency number of real-time cloud game users, determine the number of split configurations and pre-open instances of cloud game resource hosts in the resource pool. According to the relationship between the number of idle instances and the number of pre-open instances, the configuration strategy is used to pre-open the host. Or recycling, use the preset recycling and opening quantity determination method to dynamically adjust the cloud game resource host in the resource pool.

Benefits of technology

Effectively reduce user waiting time, ensure user experience, avoid host loss and waste of power resources, and improve the rationality of resource allocation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114490072B_ABST
    Figure CN114490072B_ABST
Patent Text Reader

Abstract

The present application discloses a method, device, equipment and medium for dynamic resource configuration based on cloud gaming, the method comprising: obtaining the concurrent number of real-time cloud gaming users, and determining the number of split configurations of the cloud gaming resource host in the resource pool, determining the number of pre-opened instances according to the concurrent number of real-time cloud gaming users, and determining the number of idle instances in the cloud gaming resource host in the current resource pool, determining the size relationship between the number of pre-opened instances and the number of idle instances, and using the size relationship and the split configuration number to determine a configuration strategy, so as to configure the cloud gaming resource host using the configuration strategy. In this way, in the process of the scheduling system providing resources to users, the resources of the host are more reasonably and dynamically configured based on the concurrent number of real-time users of the cloud gaming system and the computing power of the cloud gaming resource host in the computer room, which can not only reduce the user waiting time and thus ensure the user experience, but also avoid host loss and waste of power resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of cloud gaming technology, and in particular to a cloud gaming-based resource dynamic configuration method, device, equipment and medium. Background Art

[0002] With the development of 5G networks, codec technology, and software and hardware technology, innovative businesses such as cloud gaming systems have gradually entered the public's field of vision and have achieved certain development. Cloud gaming is different from traditional games. It is an implementation method based on cloud computing, cloud control, rendering, and network transmission. It uploads computing power, and its games are actually run on the host side of the cloud edge computing node, rather than on the user's local client. When a user initiates a request, the cloud management platform will have a scheduling system to allocate computing resources specifically for the user to use. There will be a certain delay after the scheduling system makes a scheduling decision and then remotely starts the machine. In order to have a good experience, users generally hope to use the cloud host as quickly as using a local computer, and are unwilling to wait too long. At this time, if the cloud host is turned on in advance, it will save the cloud host startup time, thereby shortening the user's waiting time. However, if all cloud hosts are turned on, when the number of users is small, it will not only cause the loss of the cloud host, but also waste a lot of electricity, which will increase costs and waste resources to a certain extent.

[0003] As can be seen from the above, in the process of the scheduling system providing resources to users, how to use a more reasonable method to dynamically configure the resources of the cloud gaming resource host is a problem to be solved in this field. Summary of the invention

[0004] In view of this, the purpose of the present invention is to provide a method, device, equipment and medium for dynamic resource configuration based on cloud games, which can dynamically configure the resources of the cloud game resource host using a more reasonable configuration strategy. The specific scheme is as follows:

[0005] In a first aspect, the present application discloses a method for dynamic resource configuration based on cloud gaming, comprising:

[0006] Obtain the number of concurrent real-time cloud gaming users and determine the number of split configurations for cloud gaming resource hosts in the resource pool;

[0007] Determine the number of pre-opened instances according to the number of concurrent real-time cloud game users, and determine the number of idle instances in the cloud game resource hosts in the current resource pool;

[0008] Determine the size relationship between the number of pre-opened instances and the number of idle instances, and use the size relationship and the number of split configurations to determine a configuration strategy, so as to use the configuration strategy to configure the cloud gaming resource host.

[0009] Optionally, determining the number of split configurations of cloud gaming resource hosts in the resource pool includes:

[0010] Acquire the split configuration number based on a preset configuration number acquisition interface, and determine the split configuration number as the split configuration number of the cloud game resource host in the resource pool;

[0011] Alternatively, a preset computing power splitting method is used to split and calculate the resources in the cloud gaming resource host in the resource pool to determine the number of split configurations for the cloud gaming resource host.

[0012] Optionally, determining the size relationship between the number of pre-opened instances and the number of idle instances, and determining a configuration strategy using the size relationship and the number of split configurations, so as to configure the cloud gaming resource host using the configuration strategy, includes:

[0013] Determine whether the number of idle instances is greater than the number of pre-opened instances;

[0014] If the number of idle instances is greater than the number of pre-opened instances, the target recycling number is determined using a preset recycling number determination method, and the cloud gaming resource hosts in the resource pool are recycled based on the target recycling number; the preset recycling number determination method is determined based on the number of idle instances, the number of pre-opened instances, and the number of split configurations.

[0015] If the number of idle instances is not greater than the number of pre-opened instances, the target opening number is determined based on a preset opening number determination method, and the cloud gaming resource hosts in the resource pool are opened based on the target opening number; the preset opening number determination methods are all determined based on the number of idle instances, the number of pre-opened instances and the number of split configurations.

[0016] Optionally, determining a target recycling number by using a preset recycling number determination method, and recycling cloud gaming resource hosts in a resource pool based on the target recycling number, includes:

[0017] Calculate the number of host recycling based on the number of idle instances, the number of pre-opened instances, and the number of concurrent real-time cloud game users using a preset host recycling formula to obtain the number of host recycling;

[0018] Determine the number of idle hosts of currently idle cloud gaming resource hosts, and determine whether the number of idle hosts is greater than the number of hosts to be recycled;

[0019] If the number of idle hosts is greater than the host recycling number, the host recycling number is determined as the target recycling number, and the cloud gaming resource hosts in the resource pool are recycled based on the target recycling number;

[0020] If the number of idle hosts is not greater than the host recycling number, the number of idle hosts is determined as the target recycling number, and the cloud gaming resource hosts in the resource pool are recycled based on the target recycling number.

[0021] Optionally, determining the target opening number based on a preset opening number determination method includes:

[0022] The number of hosts turned on is calculated based on the number of idle instances, the number of pre-opened instances, and the number of concurrent real-time cloud game users using a preset host turn-on formula to obtain the number of hosts turned on;

[0023] Determine the number of hosts that can be turned on in the current computer room, and determine whether the number of hosts that can be turned on in the current computer room is greater than the number of hosts turned on;

[0024] If the number of hosts that can be turned on in the current computer room is greater than the number of hosts turned on, the number of hosts turned on is determined as the target number of hosts turned on;

[0025] If the number of hosts that can be turned on in the current computer room is not greater than the number of hosts to be turned on, the number of hosts that can be turned on in the current computer room is determined as the target number of hosts to be turned on.

[0026] Optionally, before determining the number of hosts that can be started in the current computer room, the method further includes:

[0027] Determine whether there is a host that can be turned on in the current computer room;

[0028] If there are hosts that can be turned on in the current computer room, the step of determining the number of hosts that can be turned on in the current computer room is triggered;

[0029] If there is no host that can be turned on in the current computer room, triggering the step of determining the number of hosts that can be turned on in the current computer room is prohibited.

[0030] Optionally, determining the number of pre-opened instances according to the number of concurrent real-time cloud game users includes:

[0031] Determine the current scene type using a preset scene determination method, and determine the instance number calculation method based on the scene type;

[0032] The number of pre-opened instances is determined based on the instance number calculation method using the concurrent number of real-time cloud game users.

[0033] In a second aspect, the present application discloses a resource dynamic configuration device based on cloud gaming, comprising:

[0034] The first value determination module is used to obtain the number of concurrent real-time cloud game users and determine the number of split configurations of cloud game resource hosts in the resource pool;

[0035] A second value determination module determines the number of pre-opened instances according to the number of concurrent real-time cloud game users, and determines the number of idle instances in the cloud game resource host in the current resource pool;

[0036] The strategy determination module is used to determine the configuration strategy according to the size relationship between the number of pre-opened instances and the number of idle instances, so as to configure the cloud game resource host using the configuration strategy.

[0037] In a third aspect, the present application discloses an electronic device, including:

[0038] Memory, used to store computer programs;

[0039] A processor is used to execute the computer program to implement the aforementioned cloud gaming-based dynamic resource configuration method.

[0040] In a fourth aspect, the present application discloses a computer storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the steps of the aforementioned cloud gaming-based resource dynamic configuration method are implemented.

[0041] This application obtains the concurrent number of real-time cloud game users, and then determines the number of split configurations of the cloud game resource host in the resource pool, determines the number of pre-opened instances based on the concurrent number of real-time cloud game users, and then determines the number of idle instances in the cloud game resource host in the current resource pool, and then determines the size relationship between the number of pre-opened instances and the number of idle instances, and finally determines the configuration strategy using the size relationship and the split configuration number, so as to configure the cloud game resource host using the configuration strategy. This application first obtains the concurrent number of real-time cloud game users, and uses the real-time concurrent number of cloud game users to determine the number of pre-opened instances. Then, based on the concurrent number of real-time users of the cloud game system and the computing power of the cloud game resource host in the computer room, it reasonably dynamically configures the resources of the cloud game resource host, and uses the configuration strategy to pre-enable or recycle the host, which can not only reduce the user waiting time to ensure the user experience, but also avoid the loss and waste of power resources caused by the host being turned on all the time. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0043] Figure 1 A flow chart of a resource dynamic configuration method based on cloud gaming provided in this application;

[0044] Figure 2 A framework diagram provided for this application;

[0045] Figure 3 A flow chart of a specific resource dynamic configuration method based on cloud gaming provided in this application;

[0046] Figure 4 A strategy diagram for creating an instance provided for this application;

[0047] Figure 5 A strategy flow chart provided for this application;

[0048] Figure 6 A schematic diagram of the structure of a resource dynamic configuration device based on cloud gaming provided in this application;

[0049] Figure 7 A structural diagram of an electronic device provided for this application. DETAILED DESCRIPTION

[0050] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0051] In the prior art, there is a certain delay in remotely starting the cloud gaming resource host after the cloud gaming scheduling system makes a scheduling decision, which may cause the user to wait too long. In this process, the cloud gaming resource host in the resource pool may be frequently turned on and off, which causes great loss to the host and wastes power resources. In this application, a method for dynamically configuring resources for a cloud gaming system is proposed, which can pre-start or recycle the host in a timely manner, and more reasonably dynamically configure the resources of the cloud gaming resource host.

[0052] The embodiment of the present invention discloses a resource dynamic configuration method based on cloud gaming, see Figure 1 As shown, the method includes:

[0053] Step S11: Obtain the number of concurrent real-time cloud game users and determine the number of split configurations of cloud game resource hosts in the resource pool.

[0054] It can be understood that in this embodiment, the cloud host can be allocated to multiple users in the form of multiple openings, that is, "computing power sharing". For example, when the sharing configuration number is N, it means that a host can be divided into N resources for use by N users, and N is 1, which means an exclusive host.

[0055] In this embodiment, the determination of the split configuration number of the cloud gaming resource host in the resource pool may include: obtaining the split configuration number based on a preset configuration number acquisition interface, and determining the split configuration number as the split configuration number of the cloud gaming resource host in the resource pool; or, using a preset computing power splitting method to perform split calculations on the resources in the cloud gaming resource host in the resource pool to determine the split configuration number of the cloud gaming resource host. It is understandable that the split configuration number can be configured by relevant personnel, and then the configuration number is set through a preset configuration number acquisition interface, or the computing power split calculation can be performed using a system preset computing power splitting method to obtain the split configuration number.

[0056] Step S12: Determine the number of pre-opened instances according to the concurrent number of real-time cloud game users, and determine the number of idle instances in the cloud game resource hosts in the current resource pool.

[0057] It should be noted that a cloud host is usually provided to users in the form of bare metal, virtual machines or containers, and is called an instance after creation. In this embodiment, the number of pre-opened instances is determined by the number of concurrent real-time cloud game users, with the purpose of pre-setting the number of pre-opened instances for users. In the actual implementation process, it is ensured that the number of currently available instances is greater than the number of pre-opened instances.

[0058] In this embodiment, the method of determining the number of pre-opened instances according to the number of concurrent users of the real-time cloud game may include: determining the current scene type using a preset scene determination method, and determining the instance number calculation method based on the scene type; and determining the number of pre-opened instances using the number of concurrent users of the real-time cloud game based on the instance number calculation method. It is understandable that the creation of the number of pre-opened instances can be calculated in different ways according to different scenes. For example, in a specific implementation, when the current time period is a low-peak period for users, the number of pre-opened instances is determined to be twice the number of concurrent users of the real-time cloud game; when the current time period is a peak period for users, the number of pre-opened instances is determined to be three times the number of concurrent users of the real-time cloud game.

[0059] Step S13: Determine the size relationship between the number of pre-opened instances and the number of idle instances, and use the size relationship and the number of split configurations to determine a configuration strategy, so as to use the configuration strategy to configure the cloud gaming resource host.

[0060] It can be understood that the configuration strategy includes determining the host recycling number using the recycling number determination method and determining the host startup number using the startup number determination method.

[0061] It should be pointed out that in this embodiment, the number of pre-opened hosts can be determined by the number of pre-opened instances and the number of split configurations. The number of pre-opened hosts is determined based on the number of split configurations and the number of pre-opened instances, and the calculation formula is: number of pre-opened hosts = number of pre-opened instances / number of split configurations + 1. For example, if the current concurrent number of real-time cloud game users X is 50, the number of split configurations N is 3, and the number of pre-opened instances M1 is set to X*2, that is, 100, then the current number of pre-opened hosts M is 100 / 3+1, that is, 34. If more than 34 hosts are turned on in the current pre-opened resource pool, it will be considered a waste of resources, and the excess hosts will be recycled; if less than 34 hosts are turned on in the current pre-opened resource pool, it may cause users to wait for the host to start up, so other hosts in the computer room will be turned on to achieve the purpose of cloud game resource host configuration based on the concurrent number of real-time cloud game users.

[0062] Figure 2 This is the framework diagram of this method. In the figure, the real-time concurrent number of users X and the number of split configurations N in the current system are first obtained, and the number of pre-opened instances M1 is calculated. After judging the size relationship between the current number of idle instances Y and the number of pre-opened instances M1, if the number of idle instances Y is greater than the number of pre-opened instances M1, the recycling strategy is enabled to recycle the cloud gaming resource host (i.e., the computing power host in the figure); if the number of idle instances Y is not greater than the number of pre-opened instances M1, the startup strategy is enabled to pre-open the computing power host.

[0063] In this embodiment, the real-time concurrent number of cloud game users is first obtained, and then the number of split configurations of the cloud game resource host in the resource pool is determined, and the number of pre-opened instances is determined according to the real-time concurrent number of cloud game users, and then the number of idle instances in the cloud game resource host in the current resource pool is determined, and then the size relationship between the pre-opened number of instances and the idle number of instances is determined, and finally the configuration strategy is determined using the size relationship and the split configuration number, so as to configure the cloud game resource host using the configuration strategy. This application first obtains the real-time concurrent number of cloud game users, and after determining the number of pre-opened instances using the real-time concurrent number of cloud game users, it dynamically configures the resources of the cloud game resource host reasonably based on the real-time concurrent number of users of the cloud game system and the computing power of the cloud game resource host in the computer room, and uses the configuration strategy to pre-enable or recycle the host, which can not only reduce the user waiting time to ensure the user experience, but also avoid the loss and waste of power resources caused by the host being turned on all the time.

[0064] Figure 3 A specific flow chart of a method for dynamic resource configuration based on cloud gaming provided in an embodiment of the present application. Figure 3 As shown, the method includes:

[0065] Step S21: Obtain the number of concurrent real-time cloud game users and determine the number of split configurations of cloud game resource hosts in the resource pool.

[0066] Step S22: Determine the number of pre-opened instances according to the concurrent number of real-time cloud game users, and determine the number of idle instances in the cloud game resource hosts in the current resource pool.

[0067] Step S23: Determine whether the number of idle instances is greater than the number of pre-opened instances.

[0068] Step S24: If the number of idle instances is greater than the number of pre-opened instances, the target recycling number is determined using a preset recycling number determination method, and the cloud gaming resource hosts in the resource pool are recycled based on the target recycling number; the preset recycling number determination method is determined based on the number of idle instances, the number of pre-opened instances, and the number of split configurations.

[0069] It should be noted that in this method, when a user creates an instance, the host with fewer idle instances will be used first. Figure 4 This is a strategy diagram for creating instances. If there are currently idle instances, the host with fewer idle instances will be used first; if there are currently no idle instances, a prompt message indicating that there are no available instances will be returned. In the figure, the number of split configurations for the cloud gaming resource host settings in the current computer room is 3. There are two idle instances on machine 1, one idle instance on machine 2, and three idle instances on machine 3. When a user creates an instance, instance 1 in machine 2 will be used first. If multiple hosts currently have the same host usage, for example, if there is only one idle instance in all three hosts, an idle instance in one of the three hosts will be randomly selected for resource call.

[0070] Furthermore, when the user has finished using the cloud gaming resource host and disconnected from the above host, the current distribution of idle resources in the resource location is uncertain. There may be a situation where resources are sparsely distributed or resources are densely allocated. In this case, it is necessary to use the current host idle number to determine the current resource distribution.

[0071] In this embodiment, the method of determining the target recycling number using a preset recycling number determination method, and recycling the cloud gaming resource hosts in the resource pool based on the target recycling number, may include: calculating based on the number of idle instances, the number of pre-opened instances, and the number of concurrent real-time cloud gaming users using a preset host recycling formula to obtain the host recycling number; determining the number of idle hosts of currently idle cloud gaming resource hosts, and determining whether the number of idle hosts is greater than the host recycling number; if the number of idle hosts is greater than the host recycling number, determining the host recycling number as the target recycling number, and recycling the cloud gaming resource hosts in the resource pool based on the target recycling number; if the number of idle hosts is not greater than the host recycling number, determining the number of idle hosts as the target recycling number, and recycling the cloud gaming resource hosts in the resource pool based on the target recycling number.

[0072] Step S25: If the number of idle instances is not greater than the number of pre-opened instances, the target opening number is determined based on a preset opening number determination method, and the cloud gaming resource hosts in the resource pool are opened based on the target opening number; the preset opening number determination method is determined based on the number of idle instances, the number of pre-opened instances and the number of split configurations.

[0073] In this embodiment, the method for determining the target number of hosts to be turned on based on a preset number of turns on determination may include: calculating based on the number of idle instances, the number of pre-opened instances, and the number of concurrent users of the real-time cloud game using a preset host turn-on formula to obtain the number of hosts to be turned on; determining the number of hosts that can be turned on in the current computer room, and judging whether the number of hosts that can be turned on in the current computer room is greater than the number of hosts to be turned on; if the number of hosts that can be turned on in the current computer room is greater than the number of hosts to be turned on, determining the number of hosts to be turned on as the target number of turns on; if the number of hosts that can be turned on in the current computer room is not greater than the number of hosts to be turned on, determining the number of hosts that can be turned on in the current computer room as the target number of turns on.

[0074] In this embodiment, before determining the number of hosts that can be turned on in the current computer room, the step may also include: determining whether there are hosts that can be turned on in the current computer room; if there are hosts that can be turned on in the current computer room, triggering the step of determining the number of hosts that can be turned on in the current computer room; if there are hosts that can be turned on in the current computer room, prohibiting triggering the step of determining the number of hosts that can be turned on in the current computer room.

[0075] like Figure 5In a specific implementation shown, if the current number of idle instances Y is greater than the pre-opened number of instances M1, it is judged that the cloud gaming resource host in the resource pool (i.e., the computing power host described in the figure) is to be recycled; if the current number of idle instances Y is not greater than the pre-opened number of instances M1, it is judged that the cloud gaming resource host in the resource pool (i.e., the computing power host described in the figure) is to be pre-opened. The calculation method for calculating the recycled computing power host and the pre-opened computing power host in this method includes but is not limited to the above-mentioned calculation method.

[0076] In this embodiment, after determining the size relationship between the number of idle instances and the number of pre-opened instances, the target recycling number is determined by using the number of idle hosts and the host recycling number calculated using a preset calculation method, or the target opening number is determined by using the number of available hosts and the number of opened hosts, and the cloud gaming resource hosts in the resource pool are recycled and opened accordingly using the target recycling number and the target opening number. This method improves the rationality of resource configuration by dynamically configuring the resources of the cloud gaming resource hosts based on the number of concurrent real-time users of the cloud gaming system and the computing power of the cloud gaming resource hosts in the computer room.

[0077] See also Figure 6 As shown, the embodiment of the present application discloses a resource dynamic configuration device based on cloud gaming, which may specifically include:

[0078] The first value determination module 11 is used to obtain the number of concurrent real-time cloud game users and determine the number of split configurations of cloud game resource hosts in the resource pool;

[0079] A second value determination module 12 determines the number of pre-opened instances according to the number of concurrent real-time cloud game users, and determines the number of idle instances in the cloud game resource host in the current resource pool;

[0080] The strategy determination module 13 is used to determine the size relationship between the number of pre-opened instances and the number of idle instances, and use the size relationship and the number of split configurations to determine the configuration strategy, so as to use the configuration strategy to configure the cloud game resource host.

[0081] This application obtains the concurrent number of real-time cloud game users, and then determines the number of split configurations of the cloud game resource host in the resource pool, determines the number of pre-opened instances based on the concurrent number of real-time cloud game users, and then determines the number of idle instances in the cloud game resource host in the current resource pool, and then determines the size relationship between the number of pre-opened instances and the number of idle instances, and finally determines the configuration strategy using the size relationship and the split configuration number, so as to configure the cloud game resource host using the configuration strategy. This application first obtains the concurrent number of real-time cloud game users, and uses the real-time concurrent number of cloud game users to determine the number of pre-opened instances. Then, based on the concurrent number of real-time users of the cloud game system and the computing power of the cloud game resource host in the computer room, it reasonably dynamically configures the resources of the cloud game resource host, and uses the configuration strategy to pre-enable or recycle the host, which can not only reduce the user waiting time to ensure the user experience, but also avoid the loss and waste of power resources caused by the host being turned on all the time.

[0082] In some specific embodiments, the first value determination module 11 includes:

[0083] A concurrent number acquisition unit is used to obtain the concurrent number of real-time cloud game users;

[0084] A configuration number determination unit is used to obtain a split configuration number based on a preset configuration number acquisition interface, and determine the split configuration number as the split configuration number of the cloud gaming resource host in the resource pool; or, to use a preset computing power splitting method to perform split calculations on the resources in the cloud gaming resource host in the resource pool to determine the split configuration number of the cloud gaming resource host.

[0085] In some specific embodiments, the second value determination module 12 includes:

[0086] A first value judgment unit, used to judge whether the number of idle instances is greater than the number of pre-opened instances;

[0087] A host recycling unit is used to determine a target recycling number using a preset recycling number determination method if the number of idle instances is greater than the number of pre-opened instances, and to recycle the cloud gaming resource hosts in the resource pool based on the target recycling number; the preset recycling number determination method is determined based on the number of idle instances, the number of pre-opened instances, and the number of split configurations.

[0088] The host startup unit is used to determine the target startup number based on a preset startup number determination method if the number of idle instances is not greater than the number of pre-opened instances, and to start the cloud gaming resource hosts in the resource pool based on the target startup number; the preset startup number determination methods are all determined based on the number of idle instances, the number of pre-opened instances and the number of split configurations.

[0089] In some specific embodiments, the host recovery unit includes:

[0090] A recycling number determining unit, configured to calculate based on the number of idle instances, the number of pre-opened instances, and the number of concurrent real-time cloud game users using a preset host recycling formula to obtain a host recycling number;

[0091] A second numerical value judgment unit is used to determine the number of idle hosts of currently idle cloud game resource hosts, and to judge whether the number of idle hosts is greater than the number of host recycling;

[0092] a first target recycling number determining unit, configured to determine the host recycling number as the target recycling number if the number of idle hosts is greater than the host recycling number, and to recycle the cloud gaming resource hosts in the resource pool based on the target recycling number;

[0093] The second target recycling number determination unit is used to determine the number of idle hosts as the target recycling number if the number of idle hosts is not greater than the host recycling number, and to recycle the cloud gaming resource hosts in the resource pool based on the target recycling number.

[0094] In some specific embodiments, the host startup unit includes:

[0095] A start-up number acquisition unit, configured to calculate the number of host start-ups by using a preset host start-up formula based on the number of idle instances, the number of pre-started instances, and the number of concurrent real-time cloud game users, so as to obtain the number of host start-ups;

[0096] A third value judgment unit is used to determine the number of hosts that can be turned on in the current computer room, and to judge whether the number of hosts that can be turned on in the current computer room is greater than the number of hosts turned on;

[0097] A first target startup number determination unit, configured to determine the number of hosts to be started as the target startup number if the number of hosts that can be started in the current computer room is greater than the number of hosts to be started;

[0098] The second target startup number determining unit is used to determine the number of hosts that can be started in the current computer room as the target startup number if the number of hosts that can be started in the current computer room is not greater than the host startup number.

[0099] In some specific embodiments, the host startup unit further includes:

[0100] A host judgment unit, used to judge whether there is a host that can be turned on in the current computer room;

[0101] A host startup unit, configured to trigger the step of determining the number of hosts that can be started in the current computer room if there are hosts that can be started in the current computer room;

[0102] The host startup prohibiting unit is used to prohibit triggering the step of determining the number of hosts that can be started in the current computer room if there are no hosts that can be started in the current computer room.

[0103] In some specific embodiments, the second value determination module 12 includes:

[0104] A scene type determination unit, configured to determine a current scene type using a preset scene determination method, and determine an instance number calculation method based on the scene type;

[0105] An instance number determination unit is used to determine the number of pre-opened instances based on the instance number calculation method using the concurrent number of real-time cloud game users.

[0106] Furthermore, the present application also discloses an electronic device. Figure 7 This is a structural diagram of an electronic device 20 according to an exemplary embodiment, and the content in the diagram cannot be considered as any limitation on the scope of use of the present application.

[0107] Figure 7 A schematic diagram of the structure of an electronic device 20 provided in an embodiment of the present application. The electronic device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a display screen 24, an input and output interface 25, a communication interface 26, and a communication bus 27. The memory 22 is used to store a computer program, which is loaded and executed by the processor 21 to implement the relevant steps in the computer platform dual-system synchronization method disclosed in any of the aforementioned embodiments. In addition, the electronic device 20 in this embodiment may specifically be an electronic computer.

[0108] In this embodiment, the power supply 23 is used to provide working voltage for each hardware device on the electronic device 20; the communication interface 26 can create a data transmission channel between the electronic device 20 and the external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface 25 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.

[0109] In addition, the memory 22, as a carrier for storing resources, can be a read-only memory, a random access memory, a disk or an optical disk, etc. The resources stored thereon can include an operating system 221, a computer program 222, etc., and the storage method can be temporary storage or permanent storage.

[0110] The operating system 221 is used to manage and control the hardware devices and computer program 222 on the electronic device 20, which can be Windows Server, Netware, Unix, Linux, etc. In addition to including a computer program that can be used to complete the cloud game-based resource dynamic configuration method performed by the electronic device 20 disclosed in any of the aforementioned embodiments, the computer program 222 can further include a computer program that can be used to complete other specific tasks.

[0111] Furthermore, the present application also discloses a computer-readable storage medium for storing a computer program; wherein, when the computer program is executed by a processor, the aforementioned cloud game-based resource dynamic configuration method is implemented. The specific steps of the method can be referred to the corresponding contents disclosed in the aforementioned embodiments, and will not be repeated here.

[0112] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts refer to the method part description. Professionals can also further realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, computer software or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to the function. Whether these functions are executed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but this implementation should not be considered to exceed the scope of this application.

[0113] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0114] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0115] The above is a detailed introduction to the cloud gaming-based resource dynamic configuration method, device, equipment, and storage medium provided by the present invention. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A method for dynamic resource configuration based on cloud gaming, characterized in that: include: Obtain the number of concurrent real-time cloud game users, and determine the number of split configurations of the cloud game resource host in the resource pool. When the split configuration number is N, it means that one host is divided into N resources for use by N users, and N is 1, which means a dedicated host. Determine the number of pre-opened instances according to the number of concurrent real-time cloud game users, and determine the number of idle instances in the cloud game resource host in the current resource pool. A cloud game resource host is provided to the user and is called an instance after creation; Determine the size relationship between the number of pre-opened instances and the number of idle instances, and use the size relationship and the number of split configurations to determine a configuration strategy, so as to use the configuration strategy to configure the cloud gaming resource host.

2. The method for dynamic resource configuration based on cloud gaming according to claim 1, characterized in that: The determining of the number of split configurations of the cloud gaming resource hosts in the resource pool includes: Acquire the split configuration number based on a preset configuration number acquisition interface, and determine the split configuration number as the split configuration number of the cloud game resource host in the resource pool; Alternatively, a preset computing power splitting method is used to split and calculate the resources in the cloud gaming resource host in the resource pool to determine the number of split configurations for the cloud gaming resource host.

3. The method for dynamic resource configuration based on cloud gaming according to claim 1, characterized in that: The determining the size relationship between the number of pre-opened instances and the number of idle instances, and determining a configuration strategy using the size relationship and the number of split configurations, so as to configure the cloud gaming resource host using the configuration strategy, includes: Determine whether the number of idle instances is greater than the number of pre-opened instances; If the number of idle instances is greater than the number of pre-opened instances, a target recycling number is determined using a preset recycling number determination method, and cloud gaming resource hosts in the resource pool are recycled based on the target recycling number; the preset recycling number determination method is determined based on the number of idle instances, the number of pre-opened instances, and the number of split configurations; If the number of idle instances is not greater than the number of pre-opened instances, the target opening number is determined based on a preset opening number determination method, and the cloud gaming resource hosts in the resource pool are opened based on the target opening number; the preset opening number determination methods are all determined based on the number of idle instances, the number of pre-opened instances and the number of split configurations.

4. The method for dynamic resource configuration based on cloud gaming according to claim 3, characterized in that: The method of determining a target recycling number by using a preset recycling number determination method, and recycling cloud gaming resource hosts in a resource pool based on the target recycling number, includes: The number of host recycling is calculated based on the number of idle instances, the number of pre-opened instances, and the number of concurrent real-time cloud game users using a preset host recycling formula to obtain the number of host recycling; Determine the number of idle hosts of currently idle cloud gaming resource hosts, and determine whether the number of idle hosts is greater than the number of hosts to be recycled; If the number of idle hosts is greater than the host recycling number, the host recycling number is determined as the target recycling number, and the cloud gaming resource hosts in the resource pool are recycled based on the target recycling number; If the number of idle hosts is not greater than the host recycling number, the number of idle hosts is determined as the target recycling number, and the cloud gaming resource hosts in the resource pool are recycled based on the target recycling number.

5. The method for dynamic resource configuration based on cloud gaming according to claim 3, characterized in that: The method of determining the target opening number based on a preset opening number determination method includes: The number of hosts turned on is calculated based on the number of idle instances, the number of pre-opened instances, and the number of concurrent real-time cloud game users using a preset host turn-on formula to obtain the number of hosts turned on; Determine the number of hosts that can be turned on in the current computer room, and determine whether the number of hosts that can be turned on in the current computer room is greater than the number of hosts turned on; If the number of hosts that can be turned on in the current computer room is greater than the number of hosts turned on, the number of hosts turned on is determined as the target number of hosts turned on; If the number of hosts that can be turned on in the current computer room is not greater than the number of hosts to be turned on, the number of hosts that can be turned on in the current computer room is determined as the target number of hosts to be turned on.

6. The method for dynamic resource configuration based on cloud gaming according to claim 5, characterized in that: Before determining the number of hosts that can be started in the current computer room, the method further includes: Determine whether there is a host that can be turned on in the current computer room; If there are hosts that can be turned on in the current computer room, the step of determining the number of hosts that can be turned on in the current computer room is triggered; If there is no host that can be turned on in the current computer room, triggering the step of determining the number of hosts that can be turned on in the current computer room is prohibited.

7. The method for dynamic resource configuration based on cloud gaming according to any one of claims 1 to 6, characterized in that: The determining the number of pre-opened instances according to the number of concurrent real-time cloud game users includes: Determine the current scene type using a preset scene determination method, and determine the instance number calculation method based on the scene type; The number of pre-opened instances is determined based on the instance number calculation method using the concurrent number of real-time cloud game users.

8. A resource dynamic configuration device based on cloud gaming, characterized in that: include: The first value determination module is used to obtain the number of concurrent real-time cloud game users and determine the number of split configurations of the cloud game resource host in the resource pool. When the split configuration number is N, it means that one host is divided into N resources for use by N users, and N is 1, which means that the host is exclusively used; The second value determination module determines the number of pre-opened instances according to the number of concurrent real-time cloud game users, and determines the number of idle instances in the cloud game resource host in the current resource pool. A cloud game resource host is provided to the user and is called an instance after creation; The strategy determination module is used to determine the size relationship between the number of pre-opened instances and the number of idle instances, and use the size relationship and the number of split configurations to determine the configuration strategy, so as to configure the cloud game resource host using the configuration strategy.

9. An electronic device, characterized in that: It comprises a processor and a memory; wherein, when the processor executes the computer program stored in the memory, it implements the cloud game-based resource dynamic configuration method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: Used to store computer programs; wherein, when the computer program is executed by a processor, it implements the cloud game-based resource dynamic configuration method as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Pre-configure and pre-launch compute resources

    CN105324760A

  • Cloud game resource scheduling method, server and storage medium

    CN110633143A