A method and device for automatically expanding storage space of cloud games

By receiving resource deployment commands, counting and comparing the storage capacity of a single storage node, optimizing resource deployment, monitoring and requesting additional resources, it solves the problem of cloud game storage space expansion, achieves resource expansion without adding hardware devices, and saves money. Hardware costs.

CN116055562BActive Publication Date: 2024-08-23WELLINK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211317714.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-26
Publication Date
2024-08-23
Estimated Expiration
2042-10-26

AI Technical Summary

Technical Problem

In the cloud game implementation solution based on board cards, due to storage space limitations, the number of games that can be stored on a single board card is limited. Existing technology directly expands the capacity of a single device, resulting in huge hardware costs, and it is difficult to effectively solve the problem of storage space expansion.

Method used

After receiving the resource deployment command, count the storage capacity of each single storage node, calculate the average remaining capacity, deploy the resource in a single storage node higher than the average remaining capacity, and monitor the remaining capacity. When the deployment requirements are not met, request deployment Other resources realize automatic scheduling of resources and storage sharing between nodes.

Benefits of technology

It expands the resource installation capacity without adding additional hardware equipment, saves hardware costs, and realizes automatic expansion of cloud game storage space.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116055562B
    Figure CN116055562B
Patent Text Reader

Abstract

The present application provides a method for automatically expanding the storage space of a cloud game, including: after receiving a resource deployment command, counting the storage capacity of each single storage node, and calculating the average remaining capacity of each single storage node; comparing the remaining capacity of each single storage node with the average remaining capacity, and then deploying the resource in a single storage node with a capacity higher than the average remaining capacity; monitoring the remaining capacity, and when the resource is dispatched to the single storage node and the remaining capacity does not meet the deployment of the resource, requesting the deployment of other resources. The present application expands the resource installation capacity through resource calling without adding hardware equipment, saving hardware costs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of buoys, and in particular to a method for automatically expanding storage space for cloud games. The present application also relates to a device for automatically expanding storage space for cloud games. Background Art

[0002] In the cloud gaming solution, the game application runs in the cloud, and the game's logic processing and screen rendering are all performed by the cloud application server. The cloud application server captures and encodes the rendered game screen, and sends it to the user terminal through the network in the form of a real-time video stream, which is then decoded and played by the user terminal.

[0003] In the board-based cloud gaming solution, the number of games that can be stored on a single board is limited due to the limited storage space of the board. The existing technology usually directly expands the capacity of a single device, which results in huge hardware costs. Summary of the invention

[0004] The purpose of the present invention is to overcome the defects in the prior art and provide a method for automatically expanding the storage space of a cloud game. The present application also relates to a device for automatically expanding the storage space of a cloud game.

[0005] The present application provides a method for automatically expanding storage space of a cloud game, comprising:

[0006] After receiving the resource deployment command, count the storage capacity of each single storage node and calculate the average remaining capacity of each single storage node;

[0007] Comparing the remaining capacity of each of the single storage nodes with the average remaining capacity, and then deploying the resources in the single storage nodes with a capacity higher than the average remaining capacity;

[0008] The remaining capacity is monitored, and when the resources are scheduled to the single storage node and the remaining capacity does not satisfy the deployment of the resources, deployment of other resources is requested.

[0009] Optionally, the storage capacity of the single storage node is counted by a central node connected to the single storage node.

[0010] Optionally, each of the single storage nodes is set as an NFS storage service node, and the storage capacity of the NFS node is shared with other NFS nodes.

[0011] Optionally, also include:

[0012] The storage capacity of the single storage node is continuously monitored, and an automatic alarm is issued when resource storage space is insufficient.

[0013] Optionally, also include:

[0014] When deploying new resources, if it is detected that the remaining capacity of the single storage node cannot meet the deployment of the new resources, an insufficient space alarm is issued.

[0015] The present application also provides a cloud game storage space automatic expansion device, comprising:

[0016] A detection module, configured to count the storage capacity of each single storage node and calculate the average remaining capacity of each single storage node after receiving a resource deployment command;

[0017] A judgment module, used for comparing the remaining capacity of each of the single storage nodes with the average remaining capacity, and then deploying the resources in the single storage node with a capacity higher than the average remaining capacity;

[0018] The cross module is used to monitor the remaining capacity and request to deploy other resources when the resources are scheduled to the single storage node and the remaining capacity does not meet the deployment of the resources.

[0019] Optionally, the storage capacity of the single storage node is counted by a central node connected to the single storage node.

[0020] Optionally, each of the single storage nodes is set as an NFS storage service node, and the storage capacity of the NFS node is shared with other NFS nodes.

[0021] Optionally, the judging module further includes:

[0022] The storage capacity of the single storage node is continuously monitored, and an automatic alarm is issued when resource storage space is insufficient.

[0023] Optionally, the judging module further includes:

[0024] When deploying new resources, if it is detected that the remaining capacity of the single storage node cannot meet the deployment of the new resources, an insufficient space alarm is issued.

[0025] Advantages and beneficial effects of this application:

[0026] The present application provides a method for automatically expanding the storage space of a cloud game, including: after receiving a resource deployment command, counting the storage capacity of each single storage node, and calculating the average remaining capacity of each single storage node; comparing the remaining capacity of each single storage node with the average remaining capacity, and then deploying the resource in a single storage node with a capacity higher than the average remaining capacity; monitoring the remaining capacity, and when the resource is dispatched to the single storage node and the remaining capacity does not meet the deployment of the resource, requesting the deployment of other resources. The present application expands the resource installation capacity through resource calling without adding hardware equipment, saving hardware costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 This is a schematic diagram of the automatic expansion process of the cloud game storage space in this application.

[0028] Figure 2 This is a flow chart of storage node selection in this application.

[0029] Figure 3 This is a schematic diagram of the automatic expansion device for cloud gaming storage space in this application. DETAILED DESCRIPTION

[0030] The following contents are all examples of specific implementation processes provided for describing in detail the technical solutions to be protected by this application. However, this application may also be implemented in other ways different from the descriptions herein. Persons skilled in the art may, under the guidance of the concepts of this application, adopt different technical means to implement this application. Therefore, this application is not limited to the specific embodiments below.

[0031] The present application provides a method for automatically expanding the storage space of a cloud game, including: after receiving a resource deployment command, counting the storage capacity of each single storage node, and calculating the average remaining capacity of each single storage node; comparing the remaining capacity of each single storage node with the average remaining capacity, and then deploying the resource in a single storage node with a capacity higher than the average remaining capacity; monitoring the remaining capacity, and when the resource is dispatched to the single storage node and the remaining capacity does not meet the deployment of the resource, requesting the deployment of other resources. The present application expands the resource installation capacity through resource calling without adding hardware equipment, saving hardware costs.

[0032] Figure 1 This is a schematic diagram of the automatic expansion process of the cloud game storage space in this application.

[0033] Please refer to Figure 1 As shown, after receiving the resource deployment command, S101 counts the storage capacity of each single storage node and calculates the average remaining capacity of each single storage node.

[0034] The cloud server includes multiple nodes for resource deployment and storage. Each node is provided with a card board for storing the resources, wherein the resources may be applications, such as cloud games.

[0035] When a cloud game is installed in a cloud server, a single storage node is selected for program deployment and storage. At this time, the size of the single storage node affects the deployment and storage of the cloud game, resulting in limited cloud games or resources that can be stored.

[0036] In this application, in the cloud server intranet, the storage card boards on each node are connected to the central node and managed by the central node. After receiving the resource deployment command, when the resource deployment is executed, the resource will be cached in the single storage node. Before the resource is dispatched to a single storage node, the single storage node is first checked to obtain the capacity and remaining capacity of the single storage node.

[0037] By obtaining the capacity and remaining capacity, the storage node of the resource file is determined. For example, by comparing the remaining capacity of each single storage node, the resource is evenly stored in each board node of the intranet in a balanced manner to avoid excessive storage pressure on a single node.

[0038] During resource deployment, the central node schedules the single storage nodes to count the storage status of each single node, including calculating the average node storage capacity of each node, wherein the resources are preferentially deployed on nodes with free space capacity higher than the average.

[0039] Please refer to Figure 1 As shown, S102 compares the remaining capacity of each of the single storage nodes with the average remaining capacity, and then deploys the resources in the single storage nodes with a remaining capacity higher than the average remaining capacity.

[0040] The capacity detection includes storage capacity and remaining capacity. The sum of the storage capacity and the remaining capacity is the total capacity available on the node. When the storage capacity reaches a certain ratio to the total capacity, or the remaining capacity reaches a set threshold, the node can no longer deploy and store other resources. At this time, the node is insufficient for installation space or storage space, and an alarm is issued. The ratio and the threshold are preset, and those skilled in the art can set them according to actual conditions.

[0041] Figure 2 This is a flow chart of storage node selection in this application.

[0042] Please refer to Figure 2 As shown, after checking the storage capacity and remaining capacity of all nodes, S201 first determines whether the node has insufficient storage, and extracts the node with insufficient storage to obtain a computing node.

[0043] After the above judgment, all nodes with insufficient storage space can be determined, and these nodes will no longer be allocated resources, so they do not need to participate in the calculation. In another method, if the node with insufficient storage space participates in the calculation, the node needs to be added.

[0044] S202 calculates the average storage capacity of a single storage node based on the computing node.

[0045] The average storage capacity is the average value of the remaining storage capacity of each node, and the specific calculation expression is as follows:

[0046]

[0047] Among them, P is the average value of the remaining capacity of the node, C is the remaining capacity of each single storage node, A is a constant, i is the sequence number of the single storage node, and n is the number of the single storage nodes.

[0048] S203 selects a deployable single storage node based on the remaining capacity average value and the remaining capacity of each single storage node.

[0049] The specific selection can be made according to the following formula:

[0050] X i =C i -P

[0051] Wherein, when the X is greater than 0, the C i The corresponding single storage node can be used as a deployable node.

[0052] Please refer to Figure 1 As shown, S103 monitors the remaining capacity, and when the resources are scheduled to the single storage node and the remaining capacity does not satisfy the deployment of the resources, requests to deploy other resources.

[0053] Based on the nodes that have been determined to be deployable, in this step, according to the instructions of the central node, the single storage node continuously monitors each single storage node to obtain its remaining capacity.

[0054] When a new installation or deployment occurs, the central node counts the space utilization of each node. If the remaining space capacity of the node cannot meet the needs of installing resource files, an insufficient space alarm is issued.

[0055] The early warning may be a pop-up prompt to terminate the deployment and storage of resources, and may also prompt the insufficient storage capacity in other ways. The early warning includes various prompting methods such as sound prompt, color prompt, etc. and text prompt.

[0056] When a new installation or deployment occurs, the central node counts the space utilization of each node. If the remaining space capacity of the node cannot meet the needs of installing the game apk and related resource files, an insufficient space alarm is issued.

[0057] Furthermore, when the storage space of a single storage node is insufficient, cross-mounting of storage between nodes is automatically triggered, which is controlled and managed by the central node. Then, each single storage node in the intranet of the cloud server acts as an nfs storage service node, and establishes an application installation list of the storage service node. At the same time, the nfs storage of other nodes can be mounted, and the storage space within the node can also be mounted by other nodes as nfs shared storage. When a new game is scheduled to the current node, the application installation list of this node is scanned. If it is found that the scheduled game is not installed due to insufficient space, the central node is requested to mount the relevant game resources of other nodes.

[0058] The present application also provides a device for automatically expanding the storage space of cloud games, which expands the resource installation capacity through resource calling without adding hardware equipment, thereby saving hardware costs.

[0059] Figure 3 This is a schematic diagram of the automatic expansion device for cloud gaming storage space in this application.

[0060] Please refer to Figure 3 As shown, the detection module 301 is used to count the storage capacity of each single storage node and calculate the average remaining capacity of each single storage node after receiving the resource deployment command.

[0061] The cloud server includes multiple nodes for resource deployment and storage. Each node is provided with a card board for storing the resources, wherein the resources may be applications, such as cloud games.

[0062] When a cloud game is installed in a cloud server, a single storage node is selected for program deployment and storage. At this time, the size of the single storage node affects the deployment and storage of the cloud game, resulting in limited cloud games or resources that can be stored.

[0063] In this application, in the cloud server intranet, the storage card boards on each node are connected to the central node and managed by the central node. After receiving the resource deployment command, when the resource deployment is executed, the resource will be cached in the single storage node. Before the resource is dispatched to a single storage node, the single storage node is first checked to obtain the capacity and remaining capacity of the single storage node.

[0064] By obtaining the capacity and remaining capacity, the storage node of the resource file is determined. For example, by comparing the remaining capacity of each single storage node, the resource is evenly stored in each board node of the intranet in a balanced manner to avoid excessive storage pressure on a single node.

[0065] During resource deployment, the central node schedules the single storage nodes to count the storage status of each single node, including calculating the average node storage capacity of each node, wherein the resources are preferentially deployed on nodes with free space capacity higher than the average.

[0066] Please refer to Figure 3 As shown, the judgment module 302 is used to compare the remaining capacity of each of the single storage nodes with the average remaining capacity, and then deploy the resources in the single storage node with a capacity higher than the average remaining capacity.

[0067] The capacity detection includes storage capacity and remaining capacity. The sum of the storage capacity and the remaining capacity is the total capacity available on the node. When the storage capacity reaches a certain ratio to the total capacity, or the remaining capacity reaches a set threshold, the node can no longer deploy and store other resources. At this time, the node is insufficient for installation space or storage space, and an alarm is issued. The ratio and the threshold are preset, and those skilled in the art can set them according to actual conditions.

[0068] Figure 2 This is a flow chart of storage node selection in this application.

[0069] Please refer to Figure 2 As shown, after checking the storage capacity and remaining capacity of all nodes, S201 first determines whether the node has insufficient storage, and extracts the node with insufficient storage to obtain a computing node.

[0070] After the above judgment, all nodes with insufficient storage space can be determined, and these nodes will no longer be allocated resources, so they do not need to participate in the calculation. In another method, if the node with insufficient storage space participates in the calculation, the node needs to be added.

[0071] S202 calculates the average storage capacity of a single storage node based on the computing node.

[0072] The average storage capacity is the average value of the remaining storage capacity of each node, and the specific calculation expression is as follows:

[0073]

[0074] Among them, P is the average value of the remaining capacity of the node, C is the remaining capacity of each single storage node, A is a constant, i is the sequence number of the single storage node, and n is the number of the single storage nodes.

[0075] S203 selects a deployable single storage node based on the remaining capacity average value and the remaining capacity of each single storage node.

[0076] The specific selection can be made according to the following formula:

[0077] X i =C i -P

[0078] Wherein, when the X is greater than 0, the C i The corresponding single storage node can be used as a deployable node.

[0079] Please refer to Figure 3 As shown, the cross module 303 is used to monitor the remaining capacity, and when the resources are scheduled to the single storage node and the remaining capacity does not meet the deployment of the resources, request to deploy other resources.

[0080] Based on the nodes that have been determined to be deployable, in this step, according to the instructions of the central node, the single storage node continuously monitors each single storage node to obtain its remaining capacity.

[0081] When a new installation or deployment occurs, the central node counts the space utilization of each node. If the remaining space capacity of the node cannot meet the needs of installing resource files, an insufficient space alarm is issued.

[0082] The early warning may be a pop-up prompt to terminate the deployment and storage of resources, and may also prompt the insufficient storage capacity in other ways. The early warning includes various prompting methods such as sound prompt, color prompt, etc. and text prompt.

[0083] When a new installation or deployment occurs, the central node counts the space utilization of each node. If the remaining space capacity of the node cannot meet the needs of installing the game apk and related resource files, an insufficient space alarm is issued.

[0084] Furthermore, when the storage space of a single storage node is insufficient, cross-mounting of storage between nodes is automatically triggered, which is controlled and managed by the central node. Then, each single storage node in the intranet of the cloud server acts as an nfs storage service node, and establishes an application installation list of the storage service node. At the same time, the nfs storage of other nodes can be mounted, and the storage space within the node can also be mounted by other nodes as nfs shared storage. When a new game is scheduled to the current node, the application installation list of this node is scanned. If it is found that the scheduled game is not installed due to insufficient space, the central node is requested to mount the relevant game resources of other nodes.

Claims

1. A method for automatically expanding storage space of a cloud game, characterized in that: include: After receiving the resource deployment command, the storage capacity of each single storage node is counted, and the average remaining capacity of each single storage node is calculated. The specific calculation formula is: Wherein, P is the average remaining capacity of the single storage node, C is the remaining capacity of each single storage node, A is a constant, i is the sequence number of the single storage node, and n is the number of the single storage nodes; Comparing the remaining capacity of each of the single storage nodes with the average remaining capacity, selecting a deployable single storage node, and then deploying the resource in the deployable single storage node with a capacity higher than the average remaining capacity; The remaining capacity is monitored, and when the resources are scheduled to the single storage node and the remaining capacity does not satisfy the deployment of the resources, deployment of other resources is requested.

2. The method for automatically expanding the storage space of a cloud game according to claim 1, characterized in that: The storage capacity of the single storage node is counted by a central node connected to the single storage node.

3. The method for automatically expanding the storage space of a cloud game according to claim 1, characterized in that: Each of the single storage nodes is set as an nfs storage service node, and the storage capacity of the nfs storage service node is shared with other nfs storage service nodes.

4. The method for automatically expanding the storage space of a cloud game according to any one of claims 1 to 3, characterized in that: Also includes: The storage capacity of the single storage node is continuously monitored, and an automatic alarm is issued when resource storage space is insufficient.

5. The method for automatically expanding the storage space of a cloud game according to any one of claims 1 to 3, characterized in that: Also includes: When deploying new resources, if it is detected that the remaining capacity of the single storage node cannot meet the deployment of the new resources, an insufficient space alarm is issued.

6. A cloud game storage space automatic expansion device, characterized in that: include: The detection module is used to count the storage capacity of each single storage node and calculate the average remaining capacity of each single storage node after receiving the resource deployment command. The specific calculation formula is: Wherein, P is the average remaining capacity of the single storage node, C is the remaining capacity of each single storage node, A is a constant, i is the sequence number of the single storage node, and n is the number of the single storage nodes; A judgment module, used for comparing the remaining capacity of each single storage node with the average remaining capacity, selecting a deployable single storage node, and then deploying the resource in the deployable single storage node with a capacity higher than the average remaining capacity; The cross module is used to monitor the remaining capacity and request to deploy other resources when the resources are scheduled to the single storage node and the remaining capacity does not meet the deployment of the resources.

7. The automatic expansion device for cloud game storage space according to claim 6 is characterized in that: The storage capacity of the single storage node is counted by a central node connected to the single storage node.

8. The cloud game storage space automatic expansion device according to claim 6, characterized in that: Each of the single storage nodes is set as an nfs storage service node, and the storage capacity of the nfs storage service node is shared with other nfs storage service nodes.

9. According to claim 6 ~ 8 Any of the above-mentioned cloud game storage space automatic expansion devices is characterized in that: The judging module further includes: The storage capacity of the single storage node is continuously monitored, and an automatic alarm is issued when resource storage space is insufficient.

10. According to claim 6 ~ 8 Any of the above-mentioned cloud game storage space automatic expansion devices is characterized in that: The judging module further includes: When deploying new resources, if it is detected that the remaining capacity of the single storage node cannot meet the deployment of the new resources, an insufficient space alarm is issued.