Data storage method and device and computer program product

Multi-level storage devices assist in storing the target data resources of the cloud terminal until the cloud terminal needs to be deployed, which solves the problem of cloud mobile phones being down due to insufficient storage space and ensures the operational reliability of the cloud terminal.

CN119211268AInactive Publication Date: 2024-12-27HUNAN MC TECHNOLOGY CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411302736.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-18
Publication Date
2024-12-27
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Cloud mobile phone devices have a risk of downtime due to insufficient disk space, which affects users' use. It is difficult for existing technology to effectively solve the problem of insufficient storage space.

Method used

Multi-level storage devices assist in storing the target data resources of the cloud terminal until the cloud terminal needs to deploy the target data resources, store them to the cloud terminal to avoid the risk of downtime caused by insufficient storage space.

Benefits of technology

It ensures the operational reliability of cloud terminals, avoids downtime caused by insufficient storage space, and improves the storage reliability and flexibility of multi-level storage devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119211268A_ABST
    Figure CN119211268A_ABST
Patent Text Reader

Abstract

The invention provides a data storage method and device, electronic equipment, a storage medium and a computer program product, relates to the technical field of computers, in particular to the technical field of cloud computing, and can be applied to a data storage scene. According to the specific implementation scheme, the method comprises the following steps: determining a target storage device of a target data resource corresponding to the cloud terminal from multi-level storage devices according to respective storage conditions of the multi-level storage devices comprising the cloud terminal; storing the target data resource to a target storage device; and in response to the fact that the target storage device is not the cloud terminal and the cloud terminal needs to deploy the target data resource, storing the target data resource to the cloud terminal from the target storage device. According to the method, the target data resource corresponding to the cloud terminal is stored in an auxiliary manner through the multi-stage storage device, and the target data resource is stored to the cloud terminal until the cloud terminal needs to deploy the target data resource, so that the risk of downtime of the cloud terminal due to insufficient storage space is avoided, and the reliability of the operation process of the cloud terminal is guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, specifically to the field of cloud computing technology, and more particularly to a data storage method, device, electronic device, storage medium, and computer program product, which can be applied in data storage scenarios. Background Art

[0002] When transferring or storing files on a cloud phone device, the commonly used technical means is to store the files directly on the disk of the cloud phone device. The disk space of a cloud phone is limited. If all the files corresponding to the cloud phone are stored in the cloud phone, the cloud phone will be at risk of downtime due to insufficient disk space, affecting user use. Summary of the invention

[0003] The present disclosure provides a data storage method, an apparatus, an electronic device, a storage medium, and a computer program product.

[0004] According to a first aspect, a data storage method is provided, comprising: determining a target storage device for a target data resource corresponding to a cloud terminal from among the multi-level storage devices based on the storage conditions of each of the multi-level storage devices including a cloud terminal; storing the target data resource in the target storage device; and in response to the target storage device not being a cloud terminal and the cloud terminal needing to deploy the target data resource, storing the target data resource from the target storage device to the cloud terminal.

[0005] According to a second aspect, a data storage device is provided, comprising: a determination unit, configured to determine a target storage device for a target data resource corresponding to a cloud terminal from among the multi-level storage devices according to the storage conditions of each of the multi-level storage devices including the cloud terminal; a storage unit, configured to store the target data resource in the target storage device; and a regression unit, configured to store the target data resource from the target storage device to the cloud terminal in response to the target storage device not being the cloud terminal and the cloud terminal needing to deploy the target data resource.

[0006] According to a third aspect, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute a method described in any implementation manner of the first aspect.

[0007] According to a fourth aspect, a non-transitory computer-readable storage medium storing computer instructions is provided, where the computer instructions are used to cause a computer to execute the method described in any implementation of the first aspect.

[0008] According to a fifth aspect, a computer program product is provided, comprising: a computer program, which implements the method described in any implementation manner of the first aspect when executed by a processor.

[0009] According to the technology disclosed in the present invention, a data storage method and device are provided, which use multi-level storage devices to assist in storing target data resources corresponding to a cloud terminal until the cloud terminal needs to deploy the target data resources, and then store the target data resources in the cloud terminal, thereby avoiding the risk of cloud terminal downtime due to insufficient storage space and ensuring the reliability of the cloud terminal operation process.

[0010] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.

[0012] Figure 1 is an exemplary system architecture diagram in which an embodiment of the present disclosure may be applied;

[0013] Figure 2 is a flow chart of an embodiment of a data storage method according to the present disclosure;

[0014] Figure 3 is a schematic diagram of an application scenario of the data storage method according to this embodiment;

[0015] Figure 4 is a schematic diagram of a data upload process and a data download process according to this embodiment;

[0016] Figure 5 is a flow chart of another embodiment of a data storage method according to the present disclosure;

[0017] Figure 6 is a structural diagram of an embodiment of a data storage device according to the present disclosure;

[0018] Figure 7 It is a schematic diagram of the structure of a computer system suitable for implementing the embodiments of the present disclosure. DETAILED DESCRIPTION

[0019] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0020] In the technical solution of the present disclosure, the collection, storage, use, processing, transmission, provision and disclosure of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0021] Figure 1 An exemplary architecture 100 to which the data storage method and apparatus of the present disclosure can be applied is shown.

[0022] like Figure 1 As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The communication connection between the terminal devices 101, 102, 103 constitutes a topological network, and the network 104 is used to provide a medium for the communication link between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.

[0023] Terminal devices 101, 102, 103 may be hardware devices or software that support network connection for data interaction and data processing. When terminal devices 101, 102, 103 are hardware, they may be various electronic devices that support network connection, information acquisition, interaction, display, processing and other functions, including but not limited to smart phones, tablet computers, e-book readers, laptop computers and desktop computers, etc. When terminal devices 101, 102, 103 are software, they may be installed in the electronic devices listed above. They may be implemented as multiple software or software modules for providing distributed services, or they may be implemented as a single software or software module. No specific limitation is made here.

[0024] The server 105 may be a server that provides various services, for example, a background processing server that assists in storing target data resources corresponding to the cloud terminal through a multi-level storage device corresponding to the cloud terminal, for the cloud terminal controlled by the user through the cloud terminal client in the terminal devices 101, 102, and 103. As an example, the server 105 may be a cloud server.

[0025] It should be noted that the server can be hardware or software. When the server is hardware, it can be implemented as a distributed server cluster consisting of multiple servers, or it can be implemented as a single server. When the server is software, it can be implemented as multiple software or software modules (for example, software or software modules used to provide distributed services), or it can be implemented as a single software or software module. No specific limitation is made here.

[0026] It should also be noted that the data storage method provided in the embodiments of the present disclosure is generally executed by a server, but the possibility of being executed by a terminal device, or being executed by a server and a terminal device in cooperation with each other is not excluded. Accordingly, the various parts (such as various units) included in the data storage device can be all set in the server, or all set in the terminal device, or can be set in the server and the terminal device respectively.

[0027] It should be understood that Figure 1 The number of terminal devices, networks, and servers in the system architecture is only illustrative. Depending on the implementation requirements, there may be any number of terminal devices, networks, and servers. When the electronic device on which the data storage method is running does not need to perform data transmission with other electronic devices, the system architecture may only include the electronic device (e.g., terminal device or server) on which the data storage method is running.

[0028] Please refer to Figure 2 , Figure 2 A flowchart of a data storage method provided in an embodiment of the present disclosure. In process 200, the following steps are included:

[0029] Step 201 , according to the storage conditions of the multi-level storage devices including the cloud terminal, determine the target storage device of the target data resource corresponding to the cloud terminal from the multi-level storage devices.

[0030] In this embodiment, the execution subject of the data storage method (for example, Figure 1 The server in the cloud terminal can determine the target storage device of the target data resource corresponding to the cloud terminal from the multi-level storage devices according to the storage conditions of each of the multi-level storage devices including the cloud terminal.

[0031] Cloud terminal refers to a terminal device implemented based on cloud desktop technology, such as a cloud phone or cloud computer. For cloud terminals, multi-level storage devices can be set up for them to assist the cloud terminal in data resource storage tasks. Multi-level storage devices can be data storage devices of the same type, such as the same type of memory, or data storage devices of different types, such as different types of memory. In addition, the multi-level storage devices corresponding to the cloud terminal include the cloud terminal itself.

[0032] For example, the cloud terminal itself and the file server may be composed of two-level storage devices corresponding to the cloud terminal.

[0033] In this embodiment, the number of levels of multi-level storage devices can be specifically set according to actual conditions, and the actual conditions may include, for example, the importance of the cloud terminal, which is positively correlated with the number of levels; or the richness of the storage devices, which is positively correlated with the number of levels.

[0034] The target data resource corresponding to the cloud terminal can be at least part of the data resource already stored in the cloud terminal, or it can be the data resource to be stored corresponding to the cloud terminal. The data resource can be various data resources such as application installation packages, images, files, etc. The storage condition of the storage device is, for example, the amount of storage space occupied, the proportion of storage space occupied, etc.

[0035] As an example, the execution subject may arrange the multi-level storage devices in order of occupancy ratio from small to large, and use the first storage device as the target storage device.

[0036] As another example, the execution subject may determine the target storage device of the target data resource corresponding to the cloud terminal from the multi-level storage devices according to the storage conditions and priorities of the multi-level storage devices corresponding to the cloud terminal. In order of priority from high to low, it is determined whether the target data resource corresponding to the cloud terminal can be stored according to the storage conditions of the storage devices of each priority. In response to determining that the target data resource can be stored, the target data resource corresponding to the cloud terminal is stored in the storage device of the current priority.

[0037] Step 202: Store the target data resource in the target storage device.

[0038] In this embodiment, the above-mentioned execution subject can store the target data resource to the target storage device.

[0039] Step 203 , in response to the target storage device not being a cloud terminal and the cloud terminal needing to deploy the target data resource, the target data resource is stored from the target storage device to the cloud terminal.

[0040] In this embodiment, the execution subject may store the target data resource from the target storage device to the cloud terminal in response to the target storage device not being a cloud terminal and the cloud terminal needing to deploy the target data resource.

[0041] In this embodiment, during the period when the cloud terminal has no deployment demand for the target data resource, the target data resource can be stored by the target storage device until the target data resource is stored in the cloud terminal in response to the cloud terminal needing to deploy the target data resource. For example, when the cloud terminal receives a deployment request for the target data resource from a user, or the target data resource needs to be applied during the operation of the cloud terminal, it is determined that the cloud terminal needs to deploy the target data resource.

[0042] In the case where the multi-level storage device includes the cloud terminal itself, the target storage device may be the device itself. If it is determined that the target storage device is the cloud terminal itself, when the cloud terminal needs to deploy the target data resource, since the target data resource is already stored in the cloud terminal, there is no need to perform the operation of storing the target data resource in the cloud terminal.

[0043] Continue to see Figure 3 , Figure 3 It is a schematic diagram 300 of an application scenario of the data storage method according to the present embodiment. With respect to the cloud terminal 301, the cloud terminal 301 is used as the first-level storage device, and a multi-level storage device including a first-level storage device, a second-level storage device 302 and a third-level storage device 303 is set. After receiving a data resource storage request sent by a user through a cloud phone client in a terminal device, according to the storage conditions of each of the multi-level storage devices corresponding to the cloud terminal, the target storage device of the target data resource corresponding to the cloud terminal is determined from the multi-level storage devices as the second-level storage device; and the target data resource is stored in the target storage device. During the operation of the terminal device 301, in response to the cloud terminal needing to deploy the target data resource, the target data resource is stored in the cloud terminal.

[0044] In this embodiment, a data storage method is provided, which uses multi-level storage devices to assist in storing target data resources corresponding to the cloud terminal until the cloud terminal needs to deploy the target data resources, and then stores the target data resources in the cloud terminal, thereby avoiding the risk of cloud terminal downtime due to insufficient storage space and ensuring the reliability of the cloud terminal operation process.

[0045] In some optional implementations of the present embodiment, the execution subject may perform step 201 in the following manner: for a storage device in a multi-level storage device, in response to the amount of data of the stored data resources in the storage device at that level reaching a data amount threshold corresponding to the storage device at that level, the target data resources are filtered out from the stored data resources corresponding to the cloud terminal in the storage device at that level, and the previous level storage device is determined as the target storage device.

[0046] As an example, the multi-level storage device includes a primary storage device, a secondary storage device, and a tertiary storage device. In response to the data volume of the stored data resources in the primary storage device reaching the data volume threshold corresponding to the primary storage device, the data resources corresponding to the cloud terminal are determined from the stored resources in the primary storage device, the target data resources are screened out, and the secondary storage device is determined as the target storage device.

[0047] In response to the data volume of the stored data resources in the secondary storage device reaching the data volume threshold corresponding to the secondary storage device, the data resources corresponding to the cloud terminal are determined from the stored resources in the secondary storage device, the target data resources are screened out therefrom, and the tertiary storage device is determined as the target storage device.

[0048] In this embodiment, the target data resource refers to the data resource selected from the stored data resources corresponding to the cloud terminal in the storage device of the first level when the data volume of the stored data resources in the storage device of the first level reaches the data volume threshold corresponding to the storage device of the first level. For example, the secondary storage device includes some data resources corresponding to the cloud terminal and other data resources, and the data resources that are not frequently used by the cloud terminal (the application frequency is lower than the preset threshold) can be selected from the part of the data resources corresponding to the cloud terminal in the secondary storage device as the target data resource.

[0049] In this implementation, for each level of storage devices in the multi-level storage devices, when the storage space of the storage device at that level is insufficient, at least part of the data resources corresponding to the cloud terminal can be screened out from the storage device at that level and transferred to the storage device at the previous level. In this way, the storage reliability and flexibility of the multi-level storage devices are improved while ensuring the storage requirements of the data resources in the cloud terminal.

[0050] In some optional implementations of this embodiment, the multi-level storage device includes a cloud terminal, a file server and a cloud storage device in sequence, and the data volume threshold includes a first data volume threshold corresponding to the cloud terminal and a second data volume threshold corresponding to the file server.

[0051] In this implementation, the execution subject may execute the storage process of the multi-level storage device in the following manner:

[0052] In response to the data volume of the stored data resources in the cloud terminal reaching a first data volume threshold, target data resources are screened out from the stored data resources in the cloud terminal, and the file server is determined as a target storage device.

[0053] The first data volume threshold can be flexibly set according to the storage capacity of the cloud terminal and is not limited here.

[0054] As an example, in response to the data volume of the stored data resources in the cloud terminal reaching a first data volume threshold, indicating that the storage space of the cloud terminal is about to be insufficient, target data resources with a lower application frequency can be screened out from the stored data resources in the cloud terminal, and the file server can be determined as the target storage device to migrate the target data resources to the file server.

[0055] In response to the data volume of the stored data resources in the file server reaching a second data volume threshold, the target data resources are screened out from the stored data resources corresponding to the cloud terminal in the file server, and the cloud storage device is determined as the target storage device.

[0056] The second data volume threshold can be flexibly set according to the storage capacity of the file server and is not limited here.

[0057] As an example, in response to the data volume of the stored data resources in the file server reaching a second data volume threshold, indicating that the storage space of the file server is about to be insufficient, target data resources with a lower application frequency can be screened out from the stored data resources corresponding to the cloud terminal in the file server, and the cloud storage device can be determined as the target storage device to migrate the target data resources to the cloud storage device.

[0058] In this implementation, a storage solution is provided that combines a three-level storage device with a cloud terminal, a file server, and a cloud storage device. A reasonable three-level storage device is provided based on the existing information processing structure, ensuring the security of the operation process of each of the three-level storage devices and the storage and application requirements of the cloud terminal for data resources.

[0059] In some optional implementations of this embodiment, the execution subject may determine the target storage device storage in the following manner: determine the file server in the computer room that manages the cloud terminal as the target storage device.

[0060] In the cloud terminal scenario, all cloud terminal devices are managed in the computer room dimension. In this implementation, the file server in the tertiary storage device is the file server in the computer room that manages the cloud terminal, which helps to improve the interaction efficiency between the file server and the cloud terminal, and further improves the rationality of the tertiary storage device.

[0061] In some optional implementations of this embodiment, the above-mentioned execution entity can store the target data resources to the cloud terminal in the following manner: in response to the file cache directory of the file server including the target data resources, obtain the target data resources from the file cache directory, and store the target data resources to the cloud terminal.

[0062] When the target data resource is migrated to the file server, the target data resource can be cached through the file cache directory in the file server. In response to the target data resource not being included in the cloud terminal, it is determined whether the target data resource is included in the file cache directory of the file server; in response to being included, the target data resource is obtained from the file cache directory and downloaded to the cloud terminal.

[0063] In this implementation, a data resource migration method based on a multi-level storage device is provided, which helps to improve the efficiency of migrating target data resources to a cloud terminal.

[0064] In some optional implementations of this embodiment, the above-mentioned execution entity can store the target data resources to the cloud terminal in the following manner: first, in response to the target data resources not being included in the file cache directory of the file server, the target data resources in the cloud storage device are cached to the file cache directory; then, the target data resources are obtained from the file cache directory and stored in the cloud terminal.

[0065] In response to the fact that the target data resource is not included in the file cache directory of the file server, it is determined that the target data resource is stored in the cloud storage device, and the target data resource in the cloud storage device needs to be cached to the file cache directory of the file server first, and then the target data resource is obtained from the file cache directory and downloaded to the cloud terminal.

[0066] In this implementation, a data resource migration method based on multi-level storage devices is provided, which improves the compatibility between the migration method and the information processing architecture of the existing file server and cloud terminal, and helps to improve the efficiency of migrating target data resources to the cloud terminal.

[0067] In some optional implementations of this embodiment, in response to the cloud terminal needing to deploy the target data resources and before storing the target data resources in the cloud terminal, the above-mentioned execution entity may also perform the following operations: first, receiving a data resource deployment request for a cloud terminal in the cloud terminal set, and adding the data resource deployment request to a first message queue; then, asynchronously processing the data resource deployment request in the first message queue.

[0068] The cloud terminal set may include all cloud terminals managed by the computer room, and each cloud terminal may receive a user's data resource deployment request, such as an application installation, image update, etc. For a data resource deployment request received by a cloud terminal, it is added to the first message queue, thereby asynchronously processing the data resource deployment request in the first message queue, which can improve the responsiveness and processing efficiency of the data resource deployment request.

[0069] In some optional implementations of this embodiment, the above-mentioned execution entity can also perform the following operations: first, download the data resources to be uploaded from the public network according to the public network access address of the data resources to be uploaded indicated by the data resource upload request; then, upload the data resources to be uploaded to the cloud storage device.

[0070] As an example, the data resource upload request includes the public network access address of the resource to be uploaded, such as a URL (uniform resource locator), and the data resource to be uploaded is downloaded from the public network according to the URL address and uploaded to the cloud storage device for cloud terminal application.

[0071] In this implementation, a specific method for uploading data resources based on a public network access address is provided, which improves the flexibility and convenience of the resource uploading process.

[0072] In some optional implementations of this embodiment, the above-mentioned execution subject may also perform the following operations: first, add the received data resource upload request to the second message queue; then, asynchronously process the data resource upload request in the second message queue.

[0073] As an example, a user initiates data resource upload (such as application upload, image upload, etc.) by calling the OpenAPI interface; the PaaS (Platform as a Service) centralized service uses the message queue middleware (second message queue) to asynchronously process file upload requests and send messages to the PaaS computer room file server; the PaaS file service downloads public network resources to a temporary folder based on the public network URL; the PaaS file service uploads the downloaded file resources to the cloud object storage service (cloud storage device).

[0074] In this implementation, an asynchronous processing method for data resource upload requests is provided based on a message queue, which can improve the responsiveness and processing efficiency of data resource upload requests.

[0075] Continue to refer Figure 4 , which shows a schematic diagram of the process of data uploading and downloading.

[0076] 1. The user initiates a data resource upload request on the upstream platform by calling the Open API (Application Programming Interface). The data resource upload request is, for example, an upload request for data resources such as applications and images.

[0077] 2. The PaaS centralized service adds the data resource upload request to the second message queue, and uses the second message queue to asynchronously process the data resource upload request. For the data resource upload request to be processed, a message corresponding to the data resource upload request is sent to the PaaS file service, instructing the PaaS file service to download the resource.

[0078] 3. The PaaS file service downloads the data resources from the public network to a temporary folder according to the URL in the data resource upload request.

[0079] 4. The PaaS file service uploads the downloaded data resources to a cloud storage device (e.g., a cloud object storage service).

[0080] 5. The user initiates a data resource deployment request for the target ARM device (corresponding to the cloud terminal) by calling the OpenAPI interface. The data resource deployment request is, for example, an application installation, image update, and other requests.

[0081] 6. The PaaS centralized service adds the data resource deployment request to the first message queue, and uses the first message queue to asynchronously process the data resource deployment request for the target ARM device. For the data resource deployment request to be processed, determine whether the file cache directory of the file server in the computer room corresponding to the target ARM device includes the data resource corresponding to the data resource deployment request.

[0082] 7. When the file cache directory of the file server in the computer room does not contain the data resource corresponding to the data resource deployment request, the file server obtains the data resource from the cloud storage device and caches it to the file cache directory.

[0083] 8. When the file cache directory of the file server in the computer room already contains the data resources corresponding to the data resource deployment request, the PaaS centralized scheduled task will send the corresponding data download task to the PaaS management service.

[0084] 9. The PaaS management service sends the data download task information to the target ARM device.

[0085] 10. The target ARM device pulls data resources (e.g., applications, images) from the file cache directory of the computer room file server and executes the processing logic of the corresponding subsequent tasks (e.g., application installation, image update).

[0086] Continue to refer Figure 5 , shows a schematic process 500 of another embodiment of the data storage method according to the present disclosure. In the process 500, the following steps are included:

[0087] Step 501, in response to the data volume of the stored data resources in the cloud terminal reaching a first data volume threshold, a target data resource is screened out from the stored data resources in the cloud terminal, and a file server is determined as a target storage device.

[0088] Step 502, in response to the data volume of the stored data resources in the file server reaching a second data volume threshold, select target data resources from the stored data resources corresponding to the cloud terminal in the file server, and determine the cloud storage device as the target storage device.

[0089] Step 503: store the target data resource to the target storage device.

[0090] Step 504 , in response to the target storage device not being a cloud terminal and the cloud terminal needing to deploy the target data resource, the target data resource is stored from the target storage device to the cloud terminal.

[0091] It can be seen from this embodiment that Figure 2 Compared with the corresponding embodiments, the process 500 of the data storage method in this embodiment specifically illustrates the structure of the tertiary storage device and the data migration process based on the tertiary storage device, avoiding the risk of cloud terminal downtime due to insufficient storage space and ensuring the reliability of the cloud terminal operation process.

[0092] Continue to refer Figure 6 As an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of a data storage device. Figure 2 Corresponding to the method embodiment shown, the system can be specifically applied to various electronic devices.

[0093] like Figure 6 As shown, the data storage device 600 includes: a determination unit 601 is configured to determine a target storage device for a target data resource corresponding to a cloud terminal from among the multi-level storage devices according to the storage conditions of each of the multi-level storage devices corresponding to the cloud terminal; a storage unit 602 is configured to store the target data resource in the target storage device; and a regression unit 603 is configured to store the target data resource from the target storage device to the cloud terminal in response to the target storage device not being a cloud terminal and the cloud terminal needing to deploy the target data resource.

[0094] In some optional implementations of the present embodiment, the determination unit 601 is further configured to: for a storage device in a multi-level storage device, in response to the data amount of the stored data resources in the storage device of that level reaching a data amount threshold corresponding to the storage device of that level, filter out the target data resources from the stored data resources corresponding to the cloud terminal in the storage device of that level, and determine the previous level storage device as the target storage device.

[0095] In some optional implementations of the present embodiment, the multi-level storage device also includes a file server and a cloud storage device, the data volume threshold includes a first data volume threshold corresponding to the cloud terminal and a second data volume threshold corresponding to the file server, and the determination unit 601 is further configured to: in response to the data volume of the stored data resources in the cloud terminal reaching the first data volume threshold, filter out target data resources from the stored data resources in the cloud terminal, and determine the file server as the target storage device; in response to the data volume of the stored data resources in the file server reaching the second data volume threshold, filter out target data resources from the stored data resources corresponding to the cloud terminal in the file server, and determine the cloud storage device as the target storage device.

[0096] In some optional implementations of this embodiment, the determining unit 601 is further configured to: determine a file server in a computer room that manages the cloud terminal as a target storage device.

[0097] In some optional implementations of this embodiment, the regression unit 603 is further configured to: in response to the file cache directory of the file server including the target data resource, obtain the target data resource from the file cache directory, and store the target data resource to the cloud terminal.

[0098] In some optional implementations of this embodiment, the regression unit 603 is further configured to: in response to the target data resources not being included in the file cache directory of the file server, cache the target data resources in the cloud storage device to the file cache directory; obtain the target data resources from the file cache directory and store them in the cloud terminal.

[0099] In some optional implementations of this embodiment, the above-mentioned device also includes: a first processing unit (not shown in the figure) is configured to: receive data resource deployment requests for cloud terminals in a cloud terminal set, and add the data resource deployment requests to a first message queue; asynchronously process the data resource deployment requests in the first message queue.

[0100] In some optional implementations of this embodiment, the above-mentioned device also includes: a resource uploading unit (not shown in the figure) is configured to: download the data resources to be uploaded from the public network according to the public network access address of the data resources to be uploaded indicated by the data resource upload request; and upload the data resources to be uploaded to the cloud storage device.

[0101] In some optional implementations of this embodiment, the above-mentioned device also includes: a second processing unit (not shown in the figure) is configured to: add the received data resource upload request to the second message queue; and asynchronously process the data resource upload request in the second message queue.

[0102] In this embodiment, a data storage device is provided, which uses multi-level storage devices to assist in storing target data resources corresponding to the cloud terminal until the cloud terminal needs to deploy the target data resources, and then stores the target data resources in the cloud terminal, thereby avoiding the risk of cloud terminal downtime due to insufficient storage space and ensuring the reliability of the cloud terminal operation process.

[0103] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the data storage method described in any of the above embodiments can be implemented when the at least one processor executes.

[0104] According to an embodiment of the present disclosure, the present disclosure further provides a readable storage medium, which stores computer instructions, and the computer instructions are used to enable a computer to implement the data storage method described in any of the above embodiments when executed.

[0105] An embodiment of the present disclosure provides a computer program product. When the computer program is executed by a processor, the data storage method described in any of the above embodiments can be implemented.

[0106] Figure 7 A schematic block diagram of an example electronic device 700 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0107] like Figure 7 As shown, the device 700 includes a computing unit 701, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 702 or a computer program loaded from a storage unit 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the device 700 can also be stored. The computing unit 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0108] A number of components in the device 700 are connected to the I / O interface 705, including: an input unit 706, such as a keyboard, a mouse, etc.; an output unit 707, such as various types of displays, speakers, etc.; a storage unit 708, such as a disk, an optical disk, etc.; and a communication unit 709, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 709 allows the device 700 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0109] The computing unit 701 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 701 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 701 performs the various methods and processes described above, such as data storage methods. For example, in some embodiments, the data storage method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 708. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 700 via ROM 702 and / or communication unit 709. When the computer program is loaded into RAM 703 and executed by the computing unit 701, one or more steps of the data storage method described above may be performed. Alternatively, in other embodiments, the computing unit 701 may be configured to perform the data storage method in any other appropriate manner (e.g., by means of firmware).

[0110] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0111] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data storage device, so that the program code, when executed by the processor or controller, implements the functions / operations specified in the flow chart and / or block diagram. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0112] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0113] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0114] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0115] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship between the client and the server is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or a cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and virtual private servers (VPS) services; it may also be a server for a distributed system, or a server combined with a blockchain.

[0116] According to the technical solution of the embodiment of the present disclosure, a data storage method is provided, which uses multi-level storage devices to assist in storing target data resources corresponding to a cloud terminal until the cloud terminal needs to deploy the target data resources, and then stores the target data resources in the cloud terminal, thereby avoiding the risk of cloud terminal downtime due to insufficient storage space and ensuring the reliability of the cloud terminal operation process.

[0117] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution provided by this disclosure can be achieved, and this document does not limit this.

[0118] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A data storage method, comprising: According to the storage conditions of the multi-level storage devices including the cloud terminal, determining the target storage device of the target data resource corresponding to the cloud terminal from the multi-level storage devices; Storing the target data resource in the target storage device; In response to the target storage device not being the cloud terminal and the cloud terminal needing to deploy the target data resource, the target data resource is stored from the target storage device to the cloud terminal.

2. The method according to claim 1, wherein: The step of determining a target storage device for a target data resource corresponding to the cloud terminal from the multi-level storage devices according to respective storage conditions of the multi-level storage devices including the cloud terminal comprises: For the storage devices in the multi-level storage devices, in response to the data amount of the stored data resources in the storage device of that level reaching the data amount threshold corresponding to the storage device of that level, the target data resources are filtered out from the stored data resources corresponding to the cloud terminal in the storage device of that level, and the previous level storage device is determined as the target storage device.

3. The method according to claim 2, wherein: The multi-level storage device further includes a file server and a cloud storage device, the data volume threshold includes a first data volume threshold corresponding to the cloud terminal and a second data volume threshold corresponding to the file server, and The method further comprises: selecting the target data resource from the stored data resources corresponding to the cloud terminal in the storage device of the first level in response to the data amount of the stored data resource in the storage device of the first level reaching the data amount threshold value corresponding to the storage device of the first level, and determining the upper level storage device as the target storage device, including: In response to the data volume of the stored data resources in the cloud terminal reaching the first data volume threshold, screening out the target data resources from the stored data resources in the cloud terminal, and determining the file server as the target storage device; In response to the data volume of the stored data resources in the file server reaching the second data volume threshold, the target data resources are screened out from the stored data resources corresponding to the cloud terminal in the file server, and the cloud storage device is determined as the target storage device.

4. The method according to claim 3, wherein: The step of determining the file server as the target storage device storage comprises: A file server in a computer room that manages the cloud terminal is determined as the target storage device.

5. The method according to claim 3, wherein: In response to the target storage device not being the cloud terminal and the cloud terminal needing to deploy the target data resource, storing the target data resource from the target storage device to the cloud terminal includes: In response to the file cache directory of the file server including the target data resource, the target data resource is acquired from the file cache directory, and the target data resource is stored in the cloud terminal.

6. The method according to claim 3, wherein: In response to the target storage device not being the cloud terminal and the cloud terminal needing to deploy the target data resource, storing the target data resource from the target storage device to the cloud terminal, further comprising: In response to the target data resource not being included in the file cache directory of the file server, caching the target data resource in the cloud storage device to the file cache directory; The target data resource is obtained from the file cache directory and stored in the cloud terminal.

7. The method according to claim 1, wherein: In response to the target storage device not being the cloud terminal and the cloud terminal needing to deploy the target data resource, before storing the target data resource from the target storage device to the cloud terminal, the method further includes: Receiving a data resource deployment request for a cloud terminal in the cloud terminal set, and adding the data resource deployment request to a first message queue; Asynchronously processing the data resource deployment request in the first message queue.

8. The method according to claim 3, wherein: Also includes: Downloading the data resource to be uploaded from the public network according to the public network access address of the data resource to be uploaded indicated by the data resource upload request; Upload the data resource to be uploaded to the cloud storage device.

9. The method according to claim 8, wherein: Before downloading the data resource to be uploaded from the public network according to the public network access address of the data resource to be uploaded indicated by the data resource upload request, the method further includes: Adding the received data resource upload request to the second message queue; Asynchronously process the data resource upload request in the second message queue.

10. A data storage device, comprising: a determination unit configured to determine a target storage device of a target data resource corresponding to the cloud terminal from the multi-level storage devices according to respective storage conditions of the multi-level storage devices including the cloud terminal; A storage unit, configured to store the target data resource in the target storage device; The regression unit is configured to, in response to the target storage device not being the cloud terminal and the cloud terminal needing to deploy the target data resource, store the target data resource from the target storage device to the cloud terminal.

11. The device according to claim 10, wherein: The determining unit is further configured to: For the storage devices in the multi-level storage devices, in response to the data amount of the stored data resources in the storage device of that level reaching the data amount threshold corresponding to the storage device of that level, the target data resources are filtered out from the stored data resources corresponding to the cloud terminal in the storage device of that level, and the previous level storage device is determined as the target storage device.

12. The device according to claim 11, wherein The multi-level storage device further includes a file server and a cloud storage device, the data volume threshold includes a first data volume threshold corresponding to the cloud terminal and a second data volume threshold corresponding to the file server, and The determining unit is further configured to: In response to the data volume of the stored data resources in the cloud terminal reaching the first data volume threshold, screening out the target data resources from the stored data resources in the cloud terminal, and determining the file server as the target storage device; In response to the data volume of the stored data resources in the file server reaching the second data volume threshold, the target data resources are screened out from the stored data resources corresponding to the cloud terminal in the file server, and the cloud storage device is determined as the target storage device.

13. The device according to claim 12, wherein: The determining unit is further configured to: A file server in a computer room that manages the cloud terminal is determined as the target storage device.

14. The device according to claim 12, wherein: The regression unit is further configured to: In response to the file cache directory of the file server including the target data resource, the target data resource is acquired from the file cache directory, and the target data resource is stored in the cloud terminal.

15. The device according to claim 12, wherein: The regression unit is further configured to: In response to the target data resource not being included in the file cache directory of the file server, the target data resource in the cloud storage device is cached to the file cache directory; the target data resource is acquired from the file cache directory and stored in the cloud terminal.

16. The device according to claim 10, wherein: Also includes: The first processing unit is configured to: Receive a data resource deployment request for a cloud terminal in the cloud terminal set, and add the data resource deployment request to a first message queue; asynchronously process the data resource deployment request in the first message queue.

17. The device according to claim 12, wherein: Also includes: The resource upload unit is configured as follows: According to the public network access address of the data resource to be uploaded indicated by the data resource upload request, the data resource to be uploaded is downloaded from the public network; and the data resource to be uploaded is uploaded to the cloud storage device.

18. The device according to claim 17, wherein: Also includes: The second processing unit is configured to: Add the received data resource upload request to the second message queue; and asynchronously process the data resource upload request in the second message queue.

19. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 9.

20. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 9.

21. A computer program product comprising: A computer program which, when executed by a processor, implements the method according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Data migration in a hierarchical storage management system

    CN111684779A

  • File processing method and device, equipment, and storage medium

    CN113961510A

  • Version upgrading method and device of cloud mobile phone, electronic equipment and storage medium

    CN118170427A

  • Cloud mobile phone hot start method and cloud mobile phone management platform

    CN118488069A