Optimization method, device, equipment and storage medium for cloud computing data caching strategy

By classifying and scenario-based optimization of cloud computing data, and using a combination of ring queues and hash tables, the high I/O overhead and excessive memory usage caused by virtual machine operations and data access in cloud computing systems is solved, and the problem of high I/O overhead and excessive memory usage is achieved. Efficient caching strategy is suitable for cloud computing environments with high concurrency and memory scarcity.

CN117938956BActive Publication Date: 2024-11-12CHINA TELECOM CLOUD TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311712777.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-13
Publication Date
2024-11-12
Estimated Expiration
2043-12-13

AI Technical Summary

Technical Problem

In cloud computing systems, frequent virtual machine operations and data access lead to high I/O overhead and network latency, and existing cache policies will lead to excessive memory usage over time, affecting system efficiency.

Method used

Cloud computing data is divided into two categories: recording virtual machine information and virtual machine operation information. The combination of ring queues and hash tables is used for cache optimization, and the optimization operations are performed according to the usage scenarios to control the storage and deletion of cached data.

Benefits of technology

Under high concurrency conditions, it reduces frequent access to the database, avoids the problem of excessive memory usage, improves system efficiency, and takes into account memory usage and data consistency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117938956B_ABST
    Figure CN117938956B_ABST
Patent Text Reader

Abstract

The present application relates to cloud computing, and provides a method, device, equipment and storage medium for optimizing a cloud computing data cache strategy. The method classifies the data cached by cloud computing into two categories: information recording virtual machine information and information on virtual machine operations; analyzes the usage scenarios of the two types of data: information recording virtual machine information and information on virtual machine operations, and takes a first optimization operation on the data recording virtual machine information according to the first usage scenario, and takes a second optimization operation on the two types of data: information on virtual machine operations according to the second usage scenario. After the cloud computing platform adopts the cache optimization method in this patent, there will be no frequent connections and database operations under various concurrent operation conditions, the memory occupied by the program cache will be greatly reduced, and will not increase dramatically over time, perfectly balancing efficiency and memory in various usage scenarios.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of cloud computing, and in particular to a method, device, equipment and storage medium for optimizing a cloud computing data cache strategy. Background Art

[0002] In the field of cloud computing, there are always customers / operation and maintenance personnel operating the virtual machines in the system. This means that when customers operate virtual machines or when operation and maintenance personnel view the operations performed by virtual machines, they need to concurrently and frequently obtain relevant information from the database. This will bring huge I / O overhead and network latency. With the continuous expansion of resource pools and the increase in the number of virtual machines, the impact brought about by this is unacceptable.

[0003] The current common practice is to cache all virtual machine information into memory, so there is no need to frequently connect to the database to obtain information, which solves the above problem. However, as time goes by, the cached information will become more and more, and long-term operation will cause the program to occupy too much memory, and too much memory will affect the normal operation of the entire system.

[0004] Various data of cloud computing, such as virtual machine data, task data of virtual machine operations, etc., all need to be stored in the database. When the virtual machine needs to be operated later, it is necessary to obtain this information from the database in real time. In addition, when the operation and maintenance personnel need to query the task operation record, they also need to read the task data information from the database. Cloud computing is a high-concurrency system. Frequent reading of database operations during high concurrency will cause the entire system to become very stuck, affecting efficiency. A common solution is to cache the data in the database into the memory. If all of it is cached into the memory, the amount of data will become very large over time, which is not a long-term solution. Therefore, the present invention proposes a cache optimization method for cloud computing data, which can ensure that the efficiency is not affected during high concurrency, and the cached data will not take up too much memory. For some miniaturized cloud computing systems with scarce memory, it is very necessary to reduce the use of memory. Summary of the invention

[0005] The main purpose of the present invention is to provide a method, device, equipment and computer-readable storage medium for optimizing cloud computing data caching strategy, aiming to reduce memory usage.

[0006] To achieve the above object, the present invention provides a method for optimizing a cloud computing data caching strategy, the method comprising the following steps:

[0007] The data cached by cloud computing is classified into two categories: recording virtual machine information and information on virtual machine operations;

[0008] Analyze the usage scenarios of the two types of data, namely, recording virtual machine information and information on virtual machine operations. According to the first usage scenario, take a first optimization operation on the data recording virtual machine information. According to the second usage scenario, take a second optimization operation on the two types of data, namely, information on virtual machine operations.

[0009] In the method for optimizing the cloud computing data cache strategy provided in the present application, the first usage scenario includes operating a certain virtual machine.

[0010] In the optimization method of the cloud computing data cache strategy provided in the present application, the first optimization operation is performed on the data recording the virtual machine information, including:

[0011] A circular queue is used to save the virtual machine ID. Each time a virtual machine is operated, its status is first determined. If it is in a non-deleted state, the virtual machine ID of this time is placed at the end of the circular list.

[0012] The optimization method of the cloud computing data cache strategy provided in the present application also includes, if the ring list is full, deleting a piece of data from the oldest data and putting the new data at the end of the queue.

[0013] In the optimization method of the cloud computing data caching strategy provided by the present application, the second usage scenario also includes the following multiple scenarios:

[0014] After performing an operation on a virtual machine, check whether the operation has been successfully executed. If it fails, further check the job information to locate the cause of the failure.

[0015] If the monitoring system finds that the virtual machine status is abnormal or the virtual machine operation fails, it is necessary to query all the tasks executed by the virtual machine through the virtual machine ID.

[0016] In the optimization method of the cloud computing data cache strategy provided in the present application, the second optimization operation is performed on the two types of data of the information of the virtual machine operation, including:

[0017] The taskid of the latest executed task is controlled by the circular queue, and the specific content of the corresponding task is stored in the hash table. Two additional hash tables are established. The first hash table is used to cache the virtual machine ID and the list of tasks it has executed, and the second hash table is used to cache the information of tasks in the running state.

[0018] When the task is executed, the taskid needs to be removed from the hash table.

[0019] In the optimization method of cloud computing data caching strategy provided in this application, one task corresponds to multiple jobs.

[0020] A device for optimizing a cloud computing data cache strategy, the device comprising:

[0021] A classification module is used to classify the data cached by the cloud computing into two categories: recording virtual machine information and information on virtual machine operations;

[0022] The optimization operation module is used to analyze the usage scenarios of two types of data: recording virtual machine information and information on virtual machine operations. According to the first usage scenario, a first optimization operation is taken on the data recording virtual machine information; according to the second usage scenario, a second optimization operation is taken on the two types of data: information on virtual machine operations.

[0023] In addition, to achieve the above-mentioned purpose, the present invention also provides an optimization device for a cloud computing data caching strategy, wherein the optimization device for the cloud computing data caching strategy includes a processor, a memory, and an optimization program for the cloud computing data caching strategy stored in the memory and executable by the processor, wherein when the optimization program for the cloud computing data caching strategy is executed by the processor, the steps of the optimization method for the cloud computing data caching strategy as described above are implemented.

[0024] In addition, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, on which is stored an optimization program for a cloud computing data caching strategy. When the optimization program for a cloud computing data caching strategy is executed by a processor, the steps of the optimization method for a cloud computing data caching strategy as described above are implemented.

[0025] The present invention provides a method for optimizing a cloud computing data cache strategy, which classifies the data cached by cloud computing into two categories: information recording virtual machine information and information on virtual machine operations;

[0026] The usage scenarios of two types of data, namely, recording virtual machine information and information on virtual machine operations, are analyzed. According to the first usage scenario, a first optimization operation is performed on the data recording virtual machine information. According to the second usage scenario, a second optimization operation is performed on the two types of data, namely, information on virtual machine operations. After the cloud computing platform adopts the cache optimization method in this patent, there will be no frequent connection and operation of the database under various concurrent operation conditions, so the efficiency of the system will not be affected. However, the memory occupied by the program cache will be greatly reduced and will not increase dramatically over time, which perfectly balances efficiency and memory in various usage scenarios. For some small-scale cloud computing systems where memory is scarce, reducing memory usage is very necessary. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 A schematic diagram of an optimization process of a cloud computing data caching strategy involved in an embodiment of the present application;

[0028] Figure 2 A schematic diagram of caching virtual machine information in memory for this application;

[0029] Figure 3 A schematic diagram of caching virtual machine operation information in memory for this application.

[0030] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0031] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0032] In the field of cloud computing, there are always customers / operation and maintenance personnel operating the virtual machines in the system. This means that when customers operate virtual machines or when operation and maintenance personnel view the operations performed by virtual machines, they need to concurrently and frequently obtain relevant information from the database. This will bring huge I / O overhead and network latency. With the continuous expansion of resource pools and the increase in the number of virtual machines, the impact brought about by this is unacceptable.

[0033] The current common practice is to cache all virtual machine information into memory, so there is no need to frequently connect to the database to obtain information, which solves the above problem. However, as time goes by, the cached information will become more and more, and long-term operation will cause the program to occupy too much memory, and too much memory will affect the normal operation of the entire system.

[0034] Various data of cloud computing, such as virtual machine data, task data of virtual machine operations, etc., all need to be stored in the database. When the virtual machine needs to be operated later, it is necessary to obtain this information from the database in real time. In addition, when the operation and maintenance personnel need to query the task operation record, they also need to read the task data information from the database. Cloud computing is a high-concurrency system. Frequent reading of database operations during high concurrency will cause the entire system to become very stuck, affecting efficiency. A common solution is to cache the data in the database into the memory. If all of it is cached into the memory, the amount of data will become very large over time, which is not a long-term solution. Therefore, the present invention proposes a cache optimization method for cloud computing data, which can ensure that the efficiency is not affected during high concurrency, and the cached data will not take up too much memory. For some miniaturized cloud computing systems with scarce memory, it is very necessary to reduce the use of memory.

[0035] In order to solve the above technical problems, the present invention provides a method for optimizing cloud computing data caching strategy, which classifies the data cached by cloud computing into two categories: recording virtual machine information and information on virtual machine operations;

[0036] The usage scenarios of two types of data, namely, recording virtual machine information and information on virtual machine operations, are analyzed. According to the first usage scenario, a first optimization operation is performed on the data recording virtual machine information. According to the second usage scenario, a second optimization operation is performed on the two types of data, namely, information on virtual machine operations. After the cloud computing platform adopts the cache optimization method in this patent, there will be no frequent connection and operation of the database under various concurrent operation conditions, so the efficiency of the system will not be affected. However, the memory occupied by the program cache will be greatly reduced and will not increase dramatically over time, which perfectly balances efficiency and memory in various usage scenarios. For some small-scale cloud computing systems where memory is scarce, reducing memory usage is very necessary.

[0037] The cloud computing data caching strategy optimization method involved in the embodiment of the present invention is mainly applied to the cloud computing data caching strategy optimization device, which can be a PC, a portable computer, a mobile terminal, or other device with display and processing functions.

[0038] Schematic diagram of the hardware structure of the optimization device for cloud computing data caching strategy involved in the embodiment of the present invention. In the embodiment of the present invention, the optimization device for cloud computing data caching strategy may include a processor (such as a CPU), a communication bus, a user interface, a network interface, and a memory. Among them, the communication bus 1002 is used to realize the connection and communication between these components; the user interface may include a display (Display), an input unit such as a keyboard (Keyboard); the network interface may optionally include a standard wired interface, a wireless interface (such as a WI-FI interface); the memory may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory, and the memory may optionally be a storage device independent of the aforementioned processor.

[0039] Those skilled in the art will appreciate that the hardware structure does not constitute a limitation on the optimization device for the cloud computing data caching strategy, and may include more or fewer components than shown in the figure, or a combination of certain components, or a different arrangement of components.

[0040] The memory as a computer-readable storage medium may include an operating system, a network communication module, and an optimization program for cloud computing data caching strategies.

[0041] The network communication module is mainly used to connect to the server and perform data communication with the server; and the processor can call the optimization program of the cloud computing data caching strategy stored in the memory and execute the optimization method of the cloud computing data caching strategy provided by the embodiment of the present invention.

[0042] An embodiment of the present invention provides a method for optimizing a cloud computing data cache strategy.

[0043] Reference Figure 1-Figure 3 , Figure 1 This is a flow chart of a first embodiment of a method for optimizing a cloud computing data cache strategy according to the present invention.

[0044] In this embodiment, the method for optimizing the cloud computing data cache strategy includes the following steps:

[0045] The present invention provides a method for optimizing a cloud computing data cache strategy, the method comprising the following steps:

[0046] The data cached by cloud computing is classified into two categories: recording virtual machine information and information on virtual machine operations;

[0047] Analyze the usage scenarios of the two types of data, namely, recording virtual machine information and information on virtual machine operations. According to the first usage scenario, take a first optimization operation on the data recording virtual machine information. According to the second usage scenario, take a second optimization operation on the two types of data, namely, information on virtual machine operations.

[0048] In this embodiment, to optimize the cache data of the cloud computing system, it is necessary to classify the data cached by the cloud computing system, and then analyze the usage scenarios of each type of data, and adopt corresponding optimization solutions according to different scenarios.

[0049] The data in cloud computing systems can be divided into two categories: the first category is to record virtual machine information, such as the name, ID, image information, etc. of the virtual machine. This information is required before lifecycle management operations on virtual machines (such as power on / off, migration, configuration change, etc.) can be performed; the second category is to record the information of these operations, such as what operation was performed on which virtual machine at what time, the information passed in during the operation, and the results of the operation. This information is very important for confirming whether the operation of the virtual machine is successful, as well as for subsequent operation and maintenance analysis. Both types of information are very important for cloud computing systems, but they belong to different types of information and are used in different scenarios, so different caching solutions need to be used for each type of information.

[0050] The first category records the information of each virtual machine. The scenario of use is when a customer needs to operate a virtual machine. After actual data analysis, it can be known that newly created or newly operated virtual machines are more likely to be operated by users, while deleted virtual machines will no longer be operated by users. In addition, for a certain resource pool, it can be sold to many customers for use. After the customer cancels the order after use, the virtual machine will be deleted from the resource pool. Therefore, as time goes by, many virtual machines in the deleted state will appear in the resource pool. Since the number of host machines in the resource pool is fixed, the number of virtual machines in a non-deleted state in a resource pool is upper bounded. The information of virtual machines that are easy to be used later should be cached in memory, while the information of deleted virtual machines should not be cached in memory.

[0051] The data structure of this type of information cached in memory can be implemented by "ring queue + hash table". The ring queue is also a data structure belonging to the queue. The head of the queue is out of the queue and the tail of the queue is in the queue. However, the size of the ring queue is fixed and the length cannot be increased. When a ring queue is created, the number of elements it can store is fixed. When a virtual machine is used, it is distinguished by the virtual machine id. The virtual machine id in the database is its unique identifier. This method uses a ring queue to save the virtual machine id. After each virtual machine operation, its state is first determined. If it is not deleted, the virtual machine id of this time is placed at the end of the ring list. If the ring list is full, a data is deleted from the head (oldest data) and the data can be placed at the end of the queue. This ensures that the virtual machine ids in the list are the latest operated ones, and these virtual machines are the easiest to be used again. The key of the hash table is the virtual machine id, and the value is the actual information of the virtual machine, such as the name, specification, image, etc. of the virtual machine. Each data (virtual machine ID) in the ring list has a corresponding key in the hash table. When the virtual machine ID is deleted / added from the ring list, the corresponding data needs to be deleted / added in the hash table.

[0052] The second type of data records the information of virtual machine operations. This type of data can be divided into task data and job data. One operation task corresponds to one task, and one task contains multiple jobs with smaller granularity. There are two scenarios for using this type of data: the first is to check whether the operation has been successfully executed after the operation is performed on the virtual machine. If it fails, it is necessary to further check the information of each job to locate the cause of the failure. The second scenario is when the operation and maintenance personnel find that the virtual machine status is abnormal or the operation of the virtual machine fails in the monitoring system. At this time, it is necessary to query all the tasks that have been executed by the virtual machine ID. In addition, some operations are performed on the current resource pool through scheduled tasks. These are tasks that do not need to be cached (for example, regularly check whether there are tasks that have timed out and have not been completed. If there are, change the status of this task to TIMEOUT and perform some subsequent processing. This type of task processes other tasks, and the processing results are not easy to query directly. The results and reasons can be obtained by checking whether the status of the task that actually timed out has changed + the output log. Therefore, we do not care about the real-time running results of this scheduled task itself). In particular, due to the existence of scheduled tasks, the information of tasks in the running state needs to be cached as well.

[0053] The cache of this type of information in memory can also be achieved through "ring queue + hash table", but the cache content is different from the first type of information data and will be more complicated. First, similar to the processing method of the first type of information, the ring queue controls the taskid that saves the latest executed task, and the specific content of the corresponding task is stored in the hash table. In addition, two additional hash tables need to be established in the memory. The first one is used to cache the virtual machine id and the list of tasks it has executed. This is because it is necessary to query all operation records of the virtual machine according to the virtual machine id during operation and maintenance. The key of the hash table is the id of the virtual machine being operated, and the value is the list of ids of all tasks that have been executed. When the virtual machine is deleted, this key is removed from the hash table. If the operation and maintenance personnel want to view the operations performed by the deleted virtual machine in the future, they can directly obtain the list of tasks executed by it according to the virtual machine id in the database (only in special cases will the operation be performed by the operation and maintenance personnel, and it will not be executed concurrently, which will not affect the system efficiency). The second hash table is used to cache the information of tasks in the running state. Since the scheduled task will regularly check whether the running task has timed out, this information is often needed and needs to be cached. The key of this hash table is taskid, and the value is a structure containing the name of the task, the creation time of the task, and the timeout time specified for this task (not all the information of the task is required to reduce the amount of cached data). When the task is executed, this taskid needs to be removed from the hash table. In fact, task data is divided into two types: task and job (a task corresponds to multiple jobs, and the job granularity is smaller). This method only needs to cache task data and does not need to cache job data. When the operation and maintenance personnel analyze the data, when a task is selected for viewing, they can search the database for its corresponding job based on this taskid.

[0054] After the cloud computing platform adopts the cache optimization method in this patent, there will be no frequent connection and database operation under various concurrent operation conditions, so it will not affect the efficiency of the system, but the memory occupied by the program cache will be greatly reduced and will not increase dramatically over time, perfectly balancing the efficiency and memory in various usage scenarios. For some small cloud computing systems with scarce memory, reducing memory usage is very necessary.

[0055] In this embodiment, the data in the cloud computing cache is classified into two categories: information recording virtual machine information and information on virtual machine operations; the usage scenarios of the two types of data, namely, information recording virtual machine information and information on virtual machine operations, are analyzed; according to the first usage scenario, a first optimization operation is performed on the data recording virtual machine information; and according to the second usage scenario, a second optimization operation is performed on the two types of data, namely, information on virtual machine operations. After the cloud computing platform adopts the cache optimization method in this patent, there will be no frequent connection and operation of the database under various concurrent operation conditions, so the efficiency of the system will not be affected. However, the memory occupied by the program cache will be greatly reduced, and will not increase dramatically over time, which perfectly balances efficiency and memory in various usage scenarios. For some small-scale cloud computing systems where memory is scarce, it is very necessary to reduce memory usage.

[0056] In the method for optimizing the cloud computing data cache strategy provided in the present application, the first usage scenario includes operating a certain virtual machine.

[0057] In the optimization method of the cloud computing data cache strategy provided in the present application, the first optimization operation is performed on the data recording the virtual machine information, including:

[0058] A circular queue is used to save the virtual machine ID. Each time a virtual machine is operated, its status is first determined. If it is in a non-deleted state, the virtual machine ID of this time is placed at the end of the circular list.

[0059] The optimization method of the cloud computing data cache strategy provided in the present application also includes, if the ring list is full, deleting a piece of data from the oldest data and putting the new data at the end of the queue.

[0060] In the optimization method of the cloud computing data caching strategy provided by the present application, the second usage scenario also includes the following multiple scenarios:

[0061] After performing an operation on a virtual machine, check whether the operation has been successfully executed. If it fails, further check the job information to locate the cause of the failure.

[0062] If the monitoring system finds that the virtual machine status is abnormal or the virtual machine operation fails, it is necessary to query all the tasks executed by the virtual machine through the virtual machine ID.

[0063] In the optimization method of the cloud computing data cache strategy provided in the present application, the second optimization operation is performed on the two types of data of the information of the virtual machine operation, including:

[0064] The taskid of the latest executed task is controlled by the circular queue, and the specific content of the corresponding task is stored in the hash table. Two additional hash tables are established. The first hash table is used to cache the virtual machine ID and the list of tasks it has executed, and the second hash table is used to cache the information of tasks in the running state.

[0065] When the task is executed, the taskid needs to be removed from the hash table.

[0066] In the optimization method of cloud computing data caching strategy provided in this application, one task corresponds to multiple jobs.

[0067] Specifically, for the first type of cache information, i.e., virtual machine information, when selecting the size of the ring queue, it is necessary to adjust it in combination with the maximum number of virtual machines that can be opened by the host machine of the resource pool. Generally, 30% of the maximum number of virtual machines that can be opened by the resource pool is selected. There are two reasons for using this size: first, considering that the data of the virtual machine is used very frequently, it is necessary to cache as much as possible in the memory; second, considering the activity of the user's virtual machine, the number of virtual machines in a resource pool that are frequently operated by customers is not 100%. According to data analysis, the number of virtual machines that are frequently operated generally does not exceed 30% of the total number, and the deleted virtual machines will not be used again. Only in very rare cases will the operation and maintenance personnel perform a query operation, so it will not affect the concurrent operation performance of the customer on the virtual machine. Taking the current online environment as an example, a virtual machine id occupies 32Byte, a virtual machine data is about 4k, and a resource pool with 100 computing nodes is fully opened. Virtual machines are generally estimated to be around 20,000, so the ring queue size is selected as 6000. The memory occupied by the ring queue is about 190K, and the memory occupied by the hash table is 24M. For cloud platform programs, they do not occupy a large amount of memory, and this memory size is fixed over time and will not continue to increase. However, if the original plan is followed to cache all virtual machine data in memory (deleted virtual machines will also continue to remain in memory), the memory occupied will increase over time. At present, it is found that the existing test resource pool data and even the cached virtual machine data have exceeded 1G memory.

[0068] The second type of cache information is the operation information of the virtual machine. When selecting the size of the circular queue, it is not necessary to choose a large one. It can be selected as the maximum concurrent execution number of tasks in this system. Because generally after executing an operation, it will immediately check whether the operation is successful. In this way, after issuing a concurrent task, all execution results can be directly taken out from the cache without operating the database. Later, for example, if the operation and maintenance personnel find that the virtual machine status is abnormal or that a virtual machine task fails to execute, they can enter the specified virtual machine id to obtain the id list of all the operation tasks of this virtual machine from the cache. In the program, based on these ids, it is first determined whether they exist in the circular list. If they exist, the data is returned from the hash table. If they do not exist, they can be read from the database according to taskid. Only a small amount of database data needs to be obtained each time. For example, in a system with 1000 concurrent connections, a task data is about 5k. Then the total memory occupied by this method does not exceed 10M, while the original solution caches all task and job data in full, and the test resource pool even exceeds 5G in the later stage. This caching method also does not need to frequently interact with the database for large amounts of data in concurrent operation scenarios, and the size of the memory occupied will not increase significantly over time.

[0069] A device for optimizing a cloud computing data cache strategy, the device comprising:

[0070] A classification module is used to classify the data cached by the cloud computing into two categories: recording virtual machine information and information on virtual machine operations;

[0071] The optimization operation module is used to analyze the usage scenarios of two types of data: recording virtual machine information and information on virtual machine operations. According to the first usage scenario, a first optimization operation is taken on the data recording virtual machine information; according to the second usage scenario, a second optimization operation is taken on the two types of data: information on virtual machine operations.

[0072] Among them, each module in the above-mentioned cloud computing data caching strategy optimization device corresponds to each step in the above-mentioned cloud computing data caching strategy optimization method embodiment, and its functions and implementation processes are no longer repeated here one by one.

[0073] In addition, an embodiment of the present invention further provides a computer-readable storage medium.

[0074] The computer-readable storage medium of the present invention stores an optimization program for cloud computing data caching strategy, wherein when the optimization program for cloud computing data caching strategy is executed by a processor, the steps of the optimization method for cloud computing data caching strategy as described above are implemented.

[0075] Among them, the method implemented when the optimization program of the cloud computing data caching strategy is executed can refer to the various embodiments of the optimization method of the cloud computing data caching strategy of the present invention, and will not be repeated here.

[0076] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system 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 system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0077] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0078] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.

[0079] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present invention.

[0080] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A method for optimizing cloud computing data caching strategy. It is characterized in that The method for optimizing the cloud computing data cache strategy includes the following steps: The data cached by cloud computing is classified into two categories: recording virtual machine information and information on virtual machine operations; Analyze usage scenarios of two types of data, namely, recording virtual machine information and information on virtual machine operations, and take a first optimization operation on the data recording virtual machine information according to a first usage scenario, and take a second optimization operation on the data recording virtual machine operations according to a second usage scenario; The first usage scenario includes operating a virtual machine; The taking of a first optimization operation on the data recording the virtual machine information includes: Use a circular queue to save the virtual machine ID. Each time a virtual machine is operated, first determine its status. If it is not deleted, put the virtual machine ID at the end of the circular list. It also includes, if the ring list is full, deleting a data from the oldest data and putting the new data at the end of the queue; Also included, the second usage scenario includes the following multiple scenarios: After performing an operation on a virtual machine, check whether the operation has been successfully executed. If it fails, further check the job information to locate the cause of the failure. If the monitoring system finds that the virtual machine status is abnormal or the virtual machine operation fails, you need to query all the tasks executed by the virtual machine ID. The taking of a second optimization operation on the information data of the virtual machine operation includes: The taskid of the latest executed task is controlled by the circular queue, and the specific content of the corresponding task is stored in the hash table. Two additional hash tables are established. The first hash table is used to cache the virtual machine ID and the list of tasks it has executed, and the second hash table is used to cache the information of tasks in the running state. When the task is executed, the taskid needs to be removed from the hash table.

2. The method for optimizing the cloud computing data cache strategy according to claim 1, It is characterized in that One task corresponds to multiple jobs.

3. An optimization device for cloud computing data caching strategy, It is characterized in that The optimization device of the cloud computing data caching strategy includes: A classification module is used to classify the data cached by the cloud computing into two categories: recording virtual machine information and information on virtual machine operations; An optimization operation module, used to analyze usage scenarios of two types of data, namely, recording virtual machine information and information on virtual machine operations, and take a first optimization operation on the data recording virtual machine information according to a first usage scenario, and take a second optimization operation on the information data on virtual machine operations according to a second usage scenario; The first usage scenario includes operating a virtual machine; The taking of a first optimization operation on the data recording the virtual machine information includes: Use a circular queue to save the virtual machine ID. Each time a virtual machine is operated, first determine its status. If it is not deleted, put the virtual machine ID at the end of the circular list. It also includes, if the ring list is full, deleting a data from the oldest data and putting the new data at the end of the queue; Also included, the second usage scenario includes the following multiple scenarios: After performing an operation on a virtual machine, check whether the operation has been successfully executed. If it fails, further check the job information to locate the cause of the failure. If the monitoring system finds that the virtual machine status is abnormal or the virtual machine operation fails, you need to query all the tasks executed by the virtual machine ID. The taking of a second optimization operation on the information data of the virtual machine operation includes: The taskid of the latest executed task is controlled by the circular queue, and the specific content of the corresponding task is stored in the hash table. Two additional hash tables are established. The first hash table is used to cache the virtual machine ID and the list of tasks it has executed, and the second hash table is used to cache the information of tasks in the running state. When the task is executed, the taskid needs to be removed from the hash table.

4. A device for optimizing cloud computing data caching strategy, It is characterized in that The cloud computing data caching strategy optimization device includes a processor, a memory, and a cloud computing data caching strategy optimization program stored in the memory and executable by the processor, wherein when the cloud computing data caching strategy optimization program is executed by the processor, the steps of the cloud computing data caching strategy optimization method as described in any one of claims 1 to 2 are implemented.

5. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores an optimization program for a cloud computing data caching strategy, wherein when the optimization program for a cloud computing data caching strategy is executed by a processor, the steps of the method for optimizing a cloud computing data caching strategy according to any one of claims 1 to 2 are implemented.