A portable distributed storage platform based on containerization technology
By using containerization technology on the distributed storage platform, we obtain and analyze the historical and operational data of storage tanks, mark and allocate storage resources, and solve the problem of resource waste and inefficiency when the geographical location of the distributed storage platform changes, and achieve Rapid migration and efficient resource management of storage platforms.
Patent Information
- Application Number
- CN202311450005.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-02
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2043-11-02
AI Technical Summary
The existing distributed storage platform cannot be transferred quickly and effectively when the geographical location changes, resulting in resource waste and low operating efficiency.
Using a portable distributed storage platform based on containerization technology, through the storage tank simulation module, storage tank analysis module and storage tank allocation module, the historical data and operating data of storage tanks are acquired and analyzed, storage resources are marked and allocated, and storage tanks are optimized. usage efficiency.
It improves the usage efficiency of storage tanks, reduces operational failures caused by resource allocation, and realizes rapid transfer of storage platforms and efficient resource management.
Smart Images

Figure CN117539621B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a portable distributed storage platform based on containerization technology. Background Art
[0002] Distributed storage uses a scalable architecture to spread data loads across multiple storage systems. Compared with traditional centralized storage systems, it not only improves storage efficiency and data security, but also allows for horizontal expansion of performance and capacity, solving storage access problems in large-scale, high-concurrency scenarios. In the future, with the rapid development of cloud, big data, and artificial intelligence, enterprises' demand for distributed systems will continue to increase, and distributed storage will be widely used in application scenarios such as big data analysis and cloud computing.
[0003] Existing improvements to distributed storage platforms are usually aimed at reducing the performance requirements for computers. For example, in a Chinese patent with invention publication number CN114416815A, a satellite data distributed processing system and method based on a big data storage platform is disclosed. This solution reduces the performance requirements for computers and application software by performing data processing and calculation in a distributed manner. Other improvements to distributed storage platforms are usually to establish models or improve the availability of storage platforms. In the above-mentioned improvement methods, there is a lack of improvements in the migration of storage platforms, which will cause the storage platform to be limited to one location. When the geographical location needs to change, a large amount of resources need to be consumed, and the storage platform cannot be quickly and effectively transferred. In view of this, it is necessary to improve the existing distributed storage platform. Summary of the invention
[0004] In view of the shortcomings of the prior art, the purpose of the present invention is to provide a portable distributed storage platform based on containerization technology, which is used to solve the problem that the prior art lacks improvements in the portability of the storage platform, which causes the storage platform to be limited to one location. When the geographical location needs to change, a large amount of resources need to be consumed, and the storage platform cannot be quickly and effectively transferred.
[0005] In order to achieve the above-mentioned object, the present invention provides a portable distributed storage platform based on containerization technology, including a storage tank simulation module, a storage tank analysis module and a storage tank allocation module, wherein the storage tank simulation module, the storage tank analysis module and the storage tank allocation module are network-connected;
[0006] The storage tank simulation module is used to obtain the historical storage data and historical operation data of multiple storage tanks in the storage platform, and obtain the unit storage time of multiple storage tanks in the storage platform;
[0007] Use storage tanks to store data on storage platforms within a unit storage time;
[0008] The storage tank analysis module is used to analyze the simulation results of the storage tank simulation module and mark each storage tank based on the simulation results;
[0009] The storage tank allocation module is used to allocate storage resources of the storage tanks based on the storage threshold corresponding to each storage tank and the time corresponding to the storage threshold when the storage platform uses the storage tanks for storage.
[0010] Furthermore, the storage tank analysis module is used to obtain a storage threshold corresponding to each storage tank and a time corresponding to the storage threshold, wherein the storage threshold is a maximum capacity that the storage tank can store during storage, and the time corresponding to the storage threshold is a time when the storage tank starts to store.
[0011] Furthermore, the storage tank simulation module is configured with a historical storage tank acquisition strategy, and the historical storage tank acquisition strategy includes:
[0012] Acquire multiple storage tanks connected to the storage platform, recorded as storage tank 1 to storage tank N;
[0013] Obtain the latest first historical quantity of historical storage data of each storage tank from storage tank 1 to storage tank N, and record them as historical storage data 1 to historical storage data M in each storage tank;
[0014] The latest first historical quantity of historical operation data of each storage tank from storage tank 1 to storage tank N is obtained, and recorded as historical operation data 1 to historical operation data M in each storage tank.
[0015] Furthermore, the historical storage tank acquisition strategy also includes:
[0016] For any storage tank from storage tank 1 to storage tank N, obtain the maximum capacity of the storage tank, which is recorded as the tank capacity;
[0017] Obtain the maximum value among historical storage data 1 to historical storage data M, record it as the maximum capacity, and when the maximum capacity is greater than the tank capacity, record the maximum capacity as the over-limit capacity;
[0018] Obtain the operation time of each storage tank in historical operation data 1 to historical operation data M, record it as tank operation time 1 to tank operation time M, obtain the maximum value and average value of tank operation time 1 to tank operation time M, record them as large tank time and average tank time.
[0019] Furthermore, the storage tank simulation module is configured with a storage tank simulation strategy, and the storage tank simulation strategy includes:
[0020] Obtain the unit storage time of storage tank 1 to storage tank N on the storage platform;
[0021] After storage tanks 1 to N start to operate, the storage tanks are used to store data on the storage platform within the unit storage time;
[0022] The storage speed of each storage tank is recorded as simulation speed 1 to simulation speed N;
[0023] The time when each storage tank starts storing is recorded as storage time 1 to storage time N.
[0024] Furthermore, the storage tank analysis module is configured with a storage tank analysis strategy, and the storage tank analysis strategy includes:
[0025] The storage tank with the largest capacity among storage tanks 1 to N that is recorded as over-limit capacity is recorded as an over-limit tank, and the large tank time and the equalizing tank time of the over-limit tank are obtained;
[0026] When the large tank time is less than the first standard time and the average tank time is less than the first average time, the over-limit tank is recorded as a rapid tank;
[0027] When the large tank time is greater than or equal to the first standard time and the average tank time is less than the first average time, or the large tank time is less than the first standard time and the average tank time is greater than or equal to the first average time, the over-limit tank is recorded as a uniform tank;
[0028] When the large tank time is greater than or equal to the first standard time and the average tank time is greater than or equal to the first average time, the over-limit tank is recorded as a slow-speed tank.
[0029] Furthermore, the storage tank analysis strategy also includes:
[0030] The storage tanks with the largest capacity among the storage tanks 1 to N that are not recorded as over-limit capacity are recorded as regular tanks;
[0031] When the simulated speed of the conventional tank is greater than the first standard speed, the conventional tank is recorded as a rapid tank;
[0032] When the simulated speed of the conventional tank is greater than or equal to the second standard speed and less than or equal to the first standard speed, the conventional tank is recorded as a uniform speed tank;
[0033] When the simulated speed of the conventional tank is less than the second standard speed, the conventional tank is recorded as a slow-speed tank.
[0034] Furthermore, the storage tank analysis module is also configured with a time period analysis strategy, which includes:
[0035] Obtain the time period when the storage platform is connected to the storage tank every day, recorded as time period 1 to time period K, wherein the time period when the storage platform is connected to the storage tank is when at least one storage tank is connected to the storage platform;
[0036] The storage time corresponding to the rapid tank is recorded as the rapid time, the storage time corresponding to the uniform tank is recorded as the uniform time, and the storage time corresponding to the slow tank is recorded as the slow time;
[0037] The time period from time period 1 to time period K that contains the rush time is recorded as the rush time period, and the time period from time period 1 to time period K that does not contain the rush time is recorded as the regular time period;
[0038] Put the rapid period into the time axis starting from 0, record the storage tanks corresponding to the uniform time and slow time in the rapid period as stable storage tanks, and for any stable storage tank, record the storage threshold of the stable storage tank as the maximum capacity of the stable storage tank, and record the time corresponding to the storage threshold of the stable storage tank as uniform time or slow time;
[0039] In the rapid period, the rapid time is taken as the starting point, and the tank averaging time corresponding to the rapid time is taken as the length, and an area is divided in the rapid period and recorded as the rapid restricted area;
[0040] When the number of uniform speed times in the rapid restricted area is greater than or equal to the first uniform speed number or the number of slow speed times is greater than or equal to the first slow speed number, the rapid restricted area is moved in the rapid period, and the movement is stopped when the sum of the number of uniform speed times and the number of slow speed times in the rapid restricted area is the smallest, and the storage threshold of the storage tank corresponding to the rapid time is recorded as the over-limit capacity corresponding to the storage tank, and the time corresponding to the storage threshold is recorded as the starting point of the rapid restricted area where the movement is stopped;
[0041] When the number of uniform speed times in the rapid restricted area is less than the first uniform speed number and the number of deceleration times is less than the first deceleration time number, the storage threshold of the storage tank corresponding to the rapid time is recorded as the over-limit capacity of the storage tank, and the time corresponding to the storage threshold is recorded as the starting point of the rapid restricted area;
[0042] Put the regular time period into the time axis starting from 0, and record the storage tank corresponding to the slow time in the regular time period as a stable storage tank;
[0043] In the regular time period, the uniform speed time is taken as the starting point, and the equalizing time corresponding to the uniform speed time is taken as the length. The areas divided in the regular time period are recorded as adjustment area 1 to adjustment area K1, and the lengths occupied by adjustment area 1 to adjustment area K1 in the regular time period are arranged from small to large. The arranged adjustment area 1 to adjustment area K1 are sequentially filled in using the vacancy filling method.
[0044] Furthermore, the vacancy filling method is as follows: the time during which the stable storage tank is used for storage within the regular period is recorded as the occupied period, the time outside the occupied period within the regular period is recorded as the occupiable period, the longest period in the occupiable period is recorded as the occupiable front section, and when the period occupied by the adjustment area is less than or equal to the occupiable peak section, the adjustment area is moved to the occupiable period that can completely cover the adjustment area and has the shortest length;
[0045] When the time period occupied by the adjustment area is greater than the available peak period, the starting point of the adjustment area is moved to the starting point of the available peak period;
[0046] When the adjustment area moves, the storage tank corresponding to the uniform speed time corresponding to the adjustment area is recorded as a stable storage tank.
[0047] Beneficial effects of the present invention: The present invention obtains historical storage data and historical operation data of multiple storage tanks in a storage platform, and obtains the unit storage time of multiple storage tanks in the storage platform; uses the storage tanks to store data on the storage platform within the unit storage time. This has the advantage that by obtaining the historical storage data and historical operation data of the storage tanks, a preliminary judgment can be made on the performance and storage capacity of the storage tanks, and the storage capacity of the storage tanks can be further judged by storing data on the storage platform by the storage tanks, which is conducive to the subsequent allocation of storage tanks and improves the operation efficiency of the subsequent allocation;
[0048] The present invention also analyzes the simulation results of the storage tank simulation module, marks each storage tank based on the simulation results, and finally allocates storage resources of the storage tank based on the storage threshold corresponding to each storage tank and the time corresponding to the storage threshold when the storage platform uses the storage tank for storage. The advantage of this is that by marking the storage tanks, it is convenient to allocate the storage tanks in the end. Based on the different storage capacities of different storage tanks, the storage tanks can be allocated to different time periods for data storage, thereby improving the use efficiency of each storage tank and reducing operational failures caused by resource allocation.
[0049] Advantages of additional aspects of the present invention will be given in part in the description of the following specific embodiments, and in part will become apparent from the following description, or will be learned through the practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Other features, objects and advantages of the present invention will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:
[0051] Figure 1 is a functional block diagram of the system of the present invention;
[0052] Figure 2 is a schematic diagram of the time axis of the present invention;
[0053] Figure 3 It is a schematic diagram of the rapid restricted area after the present invention moves. DETAILED DESCRIPTION
[0054] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.
[0055] It should be noted that the terms used herein are for describing specific embodiments only and are not intended to be limiting of exemplary embodiments according to the present invention.
[0056] In the absence of conflict, the embodiments of the present invention and the features of the embodiments may be combined with each other. Example 1
[0057] First, see Figure 1 As shown, the present invention provides a portable distributed storage platform based on containerization technology, including a storage tank simulation module, a storage tank analysis module and a storage tank allocation module, and the storage tank simulation module, the storage tank analysis module and the storage tank allocation module are network connected;
[0058] The storage tank simulation module is used to obtain the historical storage data and historical operation data of multiple storage tanks in the storage platform, and obtain the unit storage time of multiple storage tanks in the storage platform;
[0059] Use storage tanks to store data on storage platforms within a unit storage time;
[0060] The storage tank simulation module is configured with a historical storage tank acquisition strategy, which includes:
[0061] Acquire multiple storage tanks connected to the storage platform, recorded as storage tank 1 to storage tank N;
[0062] Obtain the latest first historical quantity of historical storage data of each storage tank from storage tank 1 to storage tank N, and record them as historical storage data 1 to historical storage data M in each storage tank;
[0063] In a specific implementation process, the first history quantity is set to 100, and when the number of historical storage data of the storage tank is less than or equal to 100, all historical storage data are obtained;
[0064] Obtain the latest first historical quantity of historical operation data of each storage tank from storage tank 1 to storage tank N, and record them as historical operation data 1 to historical operation data M in each storage tank;
[0065] In a specific implementation process, the historical storage data includes multiple data of the storage tank for data storage, such as storage capacity, storage speed, storage location and other data;
[0066] The historical operation data includes multiple data after the storage tank is operated, such as the operation time, operation rate and operation time;
[0067] The historical storage tank acquisition strategy also includes:
[0068] For any storage tank from storage tank 1 to storage tank N, obtain the maximum capacity of the storage tank, which is recorded as the tank capacity;
[0069] Obtain the maximum value among historical storage data 1 to historical storage data M, record it as the maximum capacity, and when the maximum capacity is greater than the tank capacity, record the maximum capacity as the over-limit capacity;
[0070] In the specific implementation process, only when the maximum capacity in the historical storage data is greater than the tank capacity and the rest of the historical storage data are at normal values, the maximum capacity can be recorded as the over-limit capacity, in order to ensure that the storage tank can operate normally under the over-limit capacity condition;
[0071] Obtain the operation time of each storage tank in historical operation data 1 to historical operation data M, record it as tank operation time 1 to tank operation time M, obtain the maximum value and average value of tank operation time 1 to tank operation time M, record them as large tank time and average tank time.
[0072] The storage tank simulation module is configured with a storage tank simulation strategy, which includes:
[0073] Obtain the unit storage time of storage tank 1 to storage tank N on the storage platform;
[0074] In the specific implementation process, the relationship between the unit storage time and the storage tank operation time is that the unit storage time is the unit of the storage tank operation time. For example, the storage tank operation time can be 2 hours, and the unit storage time is 10 minutes. In the 2 hours of operation of the storage tank, 12 unit operation times are performed;
[0075] After storage tanks 1 to N start to operate, the storage tanks are used to store data on the storage platform within the unit storage time;
[0076] The storage speed of each storage tank is recorded as simulation speed 1 to simulation speed N;
[0077] The storage start time of each storage tank is recorded as storage time 1 to storage time N;
[0078] In the specific implementation process, the storage speed of the storage tank can be obtained by obtaining the simulation speed, which is conducive to dividing the storage capacity of the storage tank. By obtaining the storage time, it is conducive to reasonably allocating the storage time of the storage tank in the time axis.
[0079] The storage tank analysis module is used to analyze the simulation results of the storage tank simulation module and mark each storage tank based on the simulation results;
[0080] The storage tank analysis module is used to obtain the storage threshold corresponding to each storage tank and the time corresponding to the storage threshold. The storage threshold is the maximum storage capacity of the storage tank during storage, and the time corresponding to the storage threshold is the time when the storage tank starts to store;
[0081] The storage tank analysis module is configured with a storage tank analysis strategy, which includes:
[0082] The storage tank with the largest capacity among storage tanks 1 to N that is recorded as over-limit capacity is recorded as an over-limit tank, and the large tank time and the equalizing tank time of the over-limit tank are obtained;
[0083] When the large tank time is less than the first standard time and the average tank time is less than the first average time, the over-limit tank is recorded as a rapid tank;
[0084] When the large tank time is greater than or equal to the first standard time and the average tank time is less than the first average time, or the large tank time is less than the first standard time and the average tank time is greater than or equal to the first average time, the over-limit tank is recorded as a uniform tank;
[0085] When the large tank time is greater than or equal to the first standard time and the average tank time is greater than or equal to the first average time, the over-limit tank is recorded as a slow-speed tank;
[0086] In the specific implementation process, the first standard time and the first average time are determined according to the specific situation. In the present invention, it is preferred that the first standard time is 1 hour and the first average time is 30 minutes. When the large tank time of the over-limit tank is 3 hours and the average tank time is 20 minutes, the over-limit tube is recorded as a uniform speed tank;
[0087] Storage tank analysis strategies also include:
[0088] The storage tanks with the largest capacity among the storage tanks 1 to N that are not recorded as over-limit capacity are recorded as regular tanks;
[0089] When the simulated speed of the conventional tank is greater than the first standard speed, the conventional tank is recorded as a rapid tank;
[0090] When the simulated speed of the conventional tank is greater than or equal to the second standard speed and less than or equal to the first standard speed, the conventional tank is recorded as a uniform speed tank;
[0091] When the simulated speed of the conventional tank is less than the second standard speed, the conventional tank is recorded as a slow-speed tank;
[0092] In the specific implementation process, the first standard speed is set to 500mb / s, and the second standard speed is set to 120mb / s. Because the amount of data stored in the conventional tank is less than that stored in the over-limit tank, the storage situation of the conventional tank can be intuitively obtained by obtaining the simulated speed of the conventional tank, so as to facilitate the classification and marking of the conventional tank;
[0093] The storage tank analysis module is also configured with a time period analysis strategy, which includes:
[0094] Obtain the time period when the storage platform is connected to the storage tank every day, recorded as time period 1 to time period K, wherein the time period when the storage platform is connected to the storage tank is when at least one storage tank is connected to the storage platform;
[0095] The storage time corresponding to the rapid tank is recorded as the rapid time, the storage time corresponding to the uniform tank is recorded as the uniform time, and the storage time corresponding to the slow tank is recorded as the slow time;
[0096] In the specific implementation process, the rapid time, the uniform time and the slow time are all the time when the storage tank starts to store data;
[0097] The time period from time period 1 to time period K that contains the rush time is recorded as the rush time period, and the time period from time period 1 to time period K that does not contain the rush time is recorded as the regular time period;
[0098] In the specific implementation process, because the operation speed of the rapid tank in the rapid period is too fast, it is necessary to distinguish the period in which the rapid tank is located from other periods;
[0099] The time period analysis strategy also includes:
[0100] See also Figure 2 As shown, L1 is the rapid time, L2 is the deceleration time, L3 is the uniform time, and L4 is the rapid restricted area. The rapid period is placed in the time axis starting from 0, and the storage tanks corresponding to the uniform time and the deceleration time in the rapid period are recorded as stable storage tanks. For any stable storage tank, the storage threshold of the stable storage tank is recorded as the maximum capacity corresponding to the stable storage tank, and the time corresponding to the storage threshold of the stable storage tank is recorded as the uniform time or the deceleration time.
[0101] In the specific implementation process, the storage threshold is the maximum storage capacity that the storage platform can allocate to the storage tank;
[0102] In the rapid period, the rapid time is taken as the starting point, and the tank averaging time corresponding to the rapid time is taken as the length, and an area is divided in the rapid period and recorded as the rapid restricted area;
[0103] In the specific implementation process, using the tank equalization time as the length is the preferred situation, and the storage time that can be provided for the storage tank should be determined according to the specific situation;
[0104] The time period analysis strategy also includes:
[0105] When the number of uniform speed times in the rapid restricted area is greater than or equal to the first uniform speed number or the number of slow speed times is greater than or equal to the first slow speed number, the rapid restricted area is moved in the rapid period, and the movement is stopped when the sum of the number of uniform speed times and the number of slow speed times in the rapid restricted area is the smallest, and the storage threshold of the storage tank corresponding to the rapid time is recorded as the over-limit capacity corresponding to the storage tank, and the time corresponding to the storage threshold is recorded as the starting point of the rapid restricted area where the movement is stopped;
[0106] In the specific implementation process, the first uniform speed number is set to 3, and the first slow speed number is set to 5. The storage resources occupied by the slow speed tank during operation are less than those of the uniform speed tank. Therefore, the number of slow speed tanks is slightly larger than that of the uniform speed tanks, ensuring that when the rapid restricted area moves, there are fewer storage resources that can be allocated in the rapid period.
[0107] When the number of uniform speed times in the rapid restricted area is less than the first uniform speed number and the number of deceleration times is less than the first deceleration time number, the storage threshold of the storage tank corresponding to the rapid time is recorded as the over-limit capacity of the storage tank, and the time corresponding to the storage threshold is recorded as the starting point of the rapid restricted area;
[0108] In the specific implementation process, when there are fewer uniform speed tanks and slow speed tanks in the rapid restricted area, storage resources can be effectively allocated to the rapid tanks, so there is no need to move the rapid restricted area;
[0109] The time period analysis strategy also includes:
[0110] Put the regular time period into the time axis starting from 0, and record the storage tank corresponding to the slow time in the regular time period as a stable storage tank;
[0111] In the regular time period, the uniform speed time is taken as the starting point, and the tank equalization time corresponding to the uniform speed time is taken as the length. The areas divided in the regular time period are recorded as adjustment area 1 to adjustment area K1. The lengths occupied by adjustment area 1 to adjustment area K1 in the regular time period are arranged from small to large, and the arranged adjustment areas 1 to adjustment areas K1 are sequentially filled using the gap filling method;
[0112] The vacancy filling method is: the time that the stable storage tank is used for storage within the regular period is recorded as the occupied period, the time outside the occupied period within the regular period is recorded as the occupiable period, and the longest period in the occupiable period is recorded as the occupiable front section. When the period occupied by the adjustment area is less than or equal to the occupiable peak section, the adjustment area is moved to the occupiable period that can completely cover the adjustment area and has the shortest length;
[0113] When the time period occupied by the adjustment area is greater than the available peak period, the starting point of the adjustment area is moved to the starting point of the available peak period;
[0114] When the adjustment area moves, the storage tank corresponding to the uniform speed time corresponding to the adjustment area is recorded as a stable storage tank;
[0115] In the specific implementation process, by recording the storage tank corresponding to the moved adjustment area as a stable storage tank, it is helpful to divide the next adjustment area and prevent allocation conflicts caused by the same occupiable time period in the restricted areas of two adjustment areas;
[0116] The storage tank allocation module is used to allocate storage resources of the storage tanks based on the storage threshold corresponding to each storage tank and the time corresponding to the storage threshold when the storage platform uses the storage tanks for storage. Example 2
[0117] In a second aspect, the difference between Example 2 and Example 1 is that the storage tank analysis module is further configured with a conflict allocation strategy, which includes:
[0118] See also Figure 3 As shown, L1 is the rapid time, L2 is the slow time, L3 is the uniform time, and L4 is the rapid restricted area. When two or more rapid restricted areas appear in the time axis where the rapid period in the time period analysis strategy is located, when the rapid restricted area needs to be moved within the rapid period, the lengths occupied by multiple rapid periods are arranged from small to large, recorded as allocation period 1 to allocation period Z, and the allocation period 1 to allocation period Z are sequentially placed in the rapid period using the conflict placement method, and the area where the rapid period where the allocation period has been placed is removed from the time axis;
[0119] The conflict placement method is: mark the time point where the uniform time in the rapid period is located as 2, mark the time point where the slow time in the rapid period is located as 1, move the allocation period in the rapid period, and when the sum of the marking numbers corresponding to the uniform time period or the slow time period contained in the allocation period is the smallest, the allocation period stops moving and the position where the allocation period is located at this time is recorded as the position of the allocation period placed in the rapid period;
[0120] In the specific implementation process, the advantage of this is that when there are multiple rush restricted areas in a rush period, the rush restricted areas can be reasonably allocated to prevent insufficient resource allocation caused by the simultaneous operation of multiple rush periods; Example 3
[0121] In a third aspect, the difference between Example 3 and Example 1 and Example 2 is that the storage tank analysis module is also configured with a one-way storage strategy, which includes:
[0122] When there is only one rapid forbidden zone and multiple slow-down times in the time axis of the rapid period in the time period analysis strategy, when the running time of the storage platform reaches the rapid time of the rapid forbidden zone, the storage resources provided by the storage platform to the slow-down tank will be reduced to a minimum, and the remaining resources will be allocated to the running rapid tank. The advantage of this is that when resources are sufficient, the resource occupancy of the slow-down tank can be reduced, and the excess resources can be allocated to the faster-running rapid tank to meet the resource needs of the rapid tank.
[0123] Working principle: The present invention obtains the historical storage data and historical operation data of multiple storage tanks in the storage platform, and obtains the unit storage time of multiple storage tanks in the storage platform; uses the storage tanks to store data in the storage platform within the unit storage time, and the present invention also analyzes the simulation results of the storage tank simulation module, and marks each storage tank based on the simulation results, and finally allocates storage resources of the storage tanks based on the storage threshold corresponding to each storage tank and the time corresponding to the storage threshold when the storage platform uses the storage tanks for storage.
[0124] It should be understood by those skilled in the art that the embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media containing computer-usable program codes. Among them, the storage medium may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (Static Random Access Memory, referred to as SRAM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, referred to as EEPROM), erasable programmable read-only memory (Erasable Programmable Read Only Memory, referred to as EPROM), programmable read-only memory (Programmable Red-Only Memory, referred to as PROM), read-only memory (Read-Only Memory, referred to as ROM), magnetic memory, flash memory, magnetic disk or optical disk. These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0125] The above-described embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A portable distributed storage platform based on containerization technology, characterized in that: It includes a storage tank simulation module, a storage tank analysis module and a storage tank allocation module, and the storage tank simulation module, the storage tank analysis module and the storage tank allocation module are network connected; The storage tank simulation module is used to obtain the historical storage data and historical operation data of multiple storage tanks in the storage platform, and obtain the unit storage time of multiple storage tanks in the storage platform; Use storage tanks to store data on storage platforms within a unit storage time; The storage tank analysis module is used to analyze the simulation results of the storage tank simulation module and mark each storage tank based on the simulation results; The storage tank allocation module is used to allocate storage resources of the storage tanks based on the storage threshold corresponding to each storage tank and the time corresponding to the storage threshold when the storage platform uses the storage tanks for storage; The storage tank analysis module is used to obtain the storage threshold corresponding to each storage tank and the time corresponding to the storage threshold. The storage threshold is the maximum storage capacity of the storage tank during storage, and the time corresponding to the storage threshold is the time when the storage tank starts to store; The storage tank simulation module is configured with a historical storage tank acquisition strategy, which includes: Acquire multiple storage tanks connected to the storage platform, recorded as storage tank 1 to storage tank N; Obtain the latest first historical quantity of historical storage data of each storage tank from storage tank 1 to storage tank N, and record them as historical storage data 1 to historical storage data M in each storage tank; Obtain the latest first historical quantity of historical operation data of each storage tank from storage tank 1 to storage tank N, and record them as historical operation data 1 to historical operation data M in each storage tank; The historical storage tank acquisition strategy also includes: For any storage tank from storage tank 1 to storage tank N, obtain the maximum capacity of the storage tank, which is recorded as the tank capacity; Obtain the maximum value among historical storage data 1 to historical storage data M, record it as the maximum capacity, and when the maximum capacity is greater than the tank capacity, record the maximum capacity as the over-limit capacity; Obtain the operation time of each storage tank in historical operation data 1 to historical operation data M, record it as tank operation time 1 to tank operation time M, obtain the maximum value and average value of tank operation time 1 to tank operation time M, record them as large tank time and average tank time.
2. According to the portable distributed storage platform based on containerization technology of claim 1, it is characterized in that: The storage tank simulation module is configured with a storage tank simulation strategy, which includes: Obtain the unit storage time of storage tank 1 to storage tank N on the storage platform; After storage tanks 1 to N start to operate, the storage tanks are used to store data on the storage platform within the unit storage time; The storage speed of each storage tank is recorded as simulation speed 1 to simulation speed N; The time when each storage tank starts storing is recorded as storage time 1 to storage time N.
3. According to claim 2, a portable distributed storage platform based on containerization technology is characterized in that: The storage tank analysis module is configured with a storage tank analysis strategy, which includes: The storage tank with the largest capacity among storage tanks 1 to N that is recorded as over-limit capacity is recorded as an over-limit tank, and the large tank time and the equalizing tank time of the over-limit tank are obtained; When the large tank time is less than the first standard time and the average tank time is less than the first average time, the over-limit tank is recorded as a rapid tank; When the large tank time is greater than or equal to the first standard time and the average tank time is less than the first average time, or the large tank time is less than the first standard time and the average tank time is greater than or equal to the first average time, the over-limit tank is recorded as a uniform tank; When the large tank time is greater than or equal to the first standard time and the average tank time is greater than or equal to the first average time, the over-limit tank is recorded as a slow-speed tank.
4. The portable distributed storage platform based on containerization technology according to claim 3, characterized in that: Storage tank analysis strategies also include: The storage tanks with the largest capacity among the storage tanks 1 to N that are not recorded as over-limit capacity are recorded as regular tanks; When the simulated speed of the conventional tank is greater than the first standard speed, the conventional tank is recorded as a rapid tank; When the simulated speed of the conventional tank is greater than or equal to the second standard speed and less than or equal to the first standard speed, the conventional tank is recorded as a uniform speed tank; When the simulated speed of the conventional tank is less than the second standard speed, the conventional tank is recorded as a slow-speed tank.
5. The portable distributed storage platform based on containerization technology according to claim 4, characterized in that: The storage tank analysis module is also configured with a time period analysis strategy, which includes: Obtain the time period when the storage platform is connected to the storage tank every day, recorded as time period 1 to time period K, wherein the time period when the storage platform is connected to the storage tank is when at least one storage tank is connected to the storage platform; The storage time corresponding to the rapid tank is recorded as the rapid time, the storage time corresponding to the uniform tank is recorded as the uniform time, and the storage time corresponding to the slow tank is recorded as the slow time; The time period from time period 1 to time period K that contains the rush time is recorded as the rush time period, and the time period from time period 1 to time period K that does not contain the rush time is recorded as the regular time period; Put the rapid period into the time axis starting from 0, record the storage tanks corresponding to the uniform time and slow time in the rapid period as stable storage tanks, and for any stable storage tank, record the storage threshold of the stable storage tank as the maximum capacity of the stable storage tank, and record the time corresponding to the storage threshold of the stable storage tank as uniform time or slow time; In the rapid period, the rapid time is taken as the starting point, and the tank averaging time corresponding to the rapid time is taken as the length, and an area is divided in the rapid period and recorded as the rapid restricted area; When the number of uniform speed times in the rapid restricted area is greater than or equal to the first uniform speed number or the number of slow speed times is greater than or equal to the first slow speed number, the rapid restricted area is moved in the rapid period, and the movement is stopped when the sum of the number of uniform speed times and the number of slow speed times in the rapid restricted area is the smallest, and the storage threshold of the storage tank corresponding to the rapid time is recorded as the over-limit capacity corresponding to the storage tank, and the time corresponding to the storage threshold is recorded as the starting point of the rapid restricted area where the movement is stopped; When the number of uniform speed times in the rapid restricted area is less than the first uniform speed number and the number of deceleration times is less than the first deceleration time number, the storage threshold of the storage tank corresponding to the rapid time is recorded as the over-limit capacity of the storage tank, and the time corresponding to the storage threshold is recorded as the starting point of the rapid restricted area; Put the regular time period into the time axis starting from 0, and record the storage tank corresponding to the slow time in the regular time period as a stable storage tank; In the regular time period, the uniform speed time is taken as the starting point, and the equalizing time corresponding to the uniform speed time is taken as the length. The areas divided in the regular time period are recorded as adjustment area 1 to adjustment area K1, and the lengths occupied by adjustment area 1 to adjustment area K1 in the regular time period are arranged from small to large. The arranged adjustment area 1 to adjustment area K1 are sequentially filled in using the vacancy filling method.
6. The portable distributed storage platform based on containerization technology according to claim 5, characterized in that: The vacancy filling method is: the time that the stable storage tank is used for storage within the regular period is recorded as the occupied period, the time outside the occupied period within the regular period is recorded as the occupiable period, and the longest period in the occupiable period is recorded as the occupiable front section. When the period occupied by the adjustment area is less than or equal to the occupiable peak section, the adjustment area is moved to the occupiable period that can completely cover the adjustment area and has the shortest length; When the time period occupied by the adjustment area is greater than the available peak period, the starting point of the adjustment area is moved to the starting point of the available peak period; When the adjustment area moves, the storage tank corresponding to the uniform speed time corresponding to the adjustment area is recorded as a stable storage tank.
Citation Information
Patent Citations
Satellite data distributed processing system and method based on big data storage platform
CN114416815A
Data distribution and storage method and system
CN102724294A
Dynamic resource allocation for computational simulation
CN114254531A
Strategy testing method, device and equipment based on data simulation and storage medium
CN114968816A
Storage resource allocation method and device, storage medium and electronic equipment
CN115525230A
