System storage capacity detection method and device, equipment, storage medium and product
By obtaining the amount and speed of warehousing data and calculating the storage capacity in the measurement automation system, the problem of lack of unified standards and manual dependence on system detection is solved, and more accurate detection results and automated detection are achieved.
Patent Information
- Application Number
- CN202411558419.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-04
- Publication Date
- 2025-01-21
AI Technical Summary
The measurement automation system lacks unified and standardized evaluation standards for digital construction level and objective and accurate evaluation and testing methods in system inspection, resulting in lack of authoritative and reference for evaluation results, and is too dependent on manual labor and highly subjective.
Provide a system storage capacity detection method that determines the warehousing speed by obtaining the warehousing data volume of the system to be tested in a preset period, and calculates the storage capacity of the system to be tested based on the warehousing speed in different preset time periods. Implement automated system detection.
It improves the accuracy of detection results, realizes system automation detection, and can more accurately detect construction quality problems, which has engineering significance.
Smart Images

Figure CN119336596A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of artificial intelligence technology, and in particular to a system storage capacity detection method, device, equipment, storage medium and product. Background Art
[0002] With the rapid development of artificial intelligence technology, the metering automation system has emerged. At present, this is the automation system that can complete data collection and data analysis through the collaboration of the cloud data analysis domain and the edge cluster collection and monitoring domain, which provides convenience for metering work. However, the metering automation system still has defects in system detection.
[0003] However, the measurement automation system faces two major challenges in evaluation and testing: first, there is a lack of unified and standardized digital construction level evaluation standards and models, which leads to the lack of authority and reference in the evaluation results; second, the existing evaluation methods are too dependent on manual work and are highly subjective, making it difficult to accurately identify construction quality problems. This needs to be solved urgently. Summary of the invention
[0004] Based on this, it is necessary to provide a system storage capacity detection method, device, equipment, storage medium and product that can realize system automatic detection and improve the accuracy of detection results in response to the above technical problems.
[0005] In a first aspect, the present application provides a system storage capacity detection method, comprising:
[0006] Obtaining the amount of data stored in the system to be tested in at least one preset time period;
[0007] According to the amount of data, determine the storage speed of the system to be tested in the corresponding preset time period;
[0008] Determine the storage capacity of the system to be tested based on the warehousing speed under different preset time periods.
[0009] In one embodiment, the storage data includes data of at least two data types; accordingly, according to the amount of data, determining the storage speed of the system to be detected in the corresponding preset time period includes:
[0010] For any data type, the storage speed corresponding to the data type in the system to be tested in the corresponding preset time period is determined according to the amount of data stored in the storage under the data type.
[0011] In one embodiment, determining the storage capacity of the system to be inspected according to the storage speed in different preset time periods includes:
[0012] For any data type, determine the target speed based on the storage speed in different preset time periods;
[0013] Based on the target speed, determine the storage capacity of the system to be tested under the data type.
[0014] In one embodiment, determining the target speed according to the warehousing speed in different preset time periods includes:
[0015] If the number of storage speeds under different preset time periods is one, the storage speed is used as the target speed;
[0016] If the number of storage-in speeds in different preset time periods is at least two, the storage-in speed with the largest value is used as the target speed.
[0017] In one embodiment, determining the storage capacity of the system to be detected under the data type according to the target speed includes:
[0018] The storage capacity of the system to be detected under the data type is determined according to the size relationship between the target speed and the preset speed threshold corresponding to the data type.
[0019] In one embodiment, the method further comprises:
[0020] Determine the comprehensive storage capacity of the system to be tested based on its storage capacity under different data types.
[0021] In a second aspect, the present application further provides a system storage capacity detection device, comprising:
[0022] A data volume acquisition module is used to acquire the volume of data stored in the system to be detected in at least one preset period of time;
[0023] The storage speed determination module is used to determine the storage speed of the system to be tested in the corresponding preset time period according to the data volume;
[0024] The storage capacity determination module is used to determine the storage capacity of the system to be tested according to the storage speed in different preset time periods.
[0025] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0026] Obtaining the amount of data stored in the system to be tested in at least one preset time period;
[0027] According to the amount of data, determine the storage speed of the system to be tested in the corresponding preset time period;
[0028] Determine the storage capacity of the system to be tested based on the warehousing speed under different preset time periods.
[0029] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the following steps are implemented:
[0030] Obtaining the amount of data stored in the system to be tested in at least one preset time period;
[0031] According to the amount of data, determine the storage speed of the system to be tested in the corresponding preset time period;
[0032] Determine the storage capacity of the system to be tested based on the warehousing speed under different preset time periods.
[0033] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:
[0034] Obtaining the amount of data stored in the system to be tested in at least one preset time period;
[0035] According to the amount of data, determine the storage speed of the system to be tested in the corresponding preset time period;
[0036] Determine the storage capacity of the system to be tested based on the warehousing speed under different preset time periods.
[0037] The above-mentioned system storage capacity detection method, device, equipment, storage medium and product obtain the data volume of the data stored in the system to be detected in at least one preset time period; determine the storage speed of the system to be detected in the corresponding preset time period based on the data volume; determine the storage capacity of the system to be detected based on the storage speed in different preset time periods. In the above process, a scoring standard is set for the system construction score of the system to be detected, which can realize system automatic detection. Furthermore, in the process of determining the storage capacity of the system to be detected, the data volume of the data stored in the system to be detected in different preset time periods is taken into consideration, and then the storage capacity of the system to be detected is determined based on the storage speed in different preset time periods. Compared with the storage speed in only one preset time period, the whole process can make the determined storage capacity more accurate. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0039] Figure 1 A diagram of an application environment of a system storage capacity detection method in an embodiment;
[0040] Figure 2 A schematic diagram of a flow chart of a method for detecting system storage capacity in one embodiment;
[0041] Figure 3 A schematic diagram of a flow chart of a storage speed determination step in an embodiment;
[0042] Figure 4 A schematic diagram of a flow chart of a comprehensive storage capacity determination step in one embodiment;
[0043] Figure 5 is a flow chart of a method for detecting system storage capacity in another embodiment;
[0044] Figure 6 is a structural block diagram of a system storage capacity detection device in an embodiment;
[0045] Figure 7 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0046] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0047] Before introducing the system computing capability detection method provided in this application, it should be noted that, with the development of technologies such as cloud computing, big data, and artificial intelligence, the construction of digital capabilities of metering automation systems has become a future trend. The cloud-edge collaborative metering automation system generally includes an acquisition monitoring domain and a data analysis domain. Among them, the data analysis domain is deployed in the cloud, and the acquisition monitoring domain is deployed in the edge cluster. The cloud-edge collaboration realizes the improvement of the metering automation master station's acquisition capability and data analysis capability. At present, the cloud-edge collaborative metering automation system has the following problems in evaluation and detection:
[0048] (1) There is a lack of evaluation standards for the digital construction level of metering automation master stations. There are no unified and standardized evaluation indicators and evaluation models for the digital construction level of master stations. The evaluation results have no theoretical support and are not authoritative and referenceable.
[0049] (2) There is a lack of objective and accurate evaluation and testing methods. In the past, the quality evaluation test of the digital construction of the metering master station was carried out by organizing experts to conduct manual evaluation. The human subjectivity is too strong, and it is difficult for humans to discover construction quality problems.
[0050] In order to solve the above problems, the system construction compliance detection method of this application is proposed to achieve accurate, objective and efficient evaluation of the quality of the digital construction of the main station, and accurately discover the quality problems of the digital construction of the main station, which is of great engineering significance.
[0051] The system computing capability detection method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. Among them, the client 102 communicates with the system detection component 104 through the network, and the system detection component 104 is deployed inside the system to be detected. The data storage system can store the data that the system detection component 104 needs to process. The data storage system can be integrated on the system detection component 104, or it can be placed on the cloud or other network servers. Specifically, the system detection component 104 obtains the data volume of the data stored in the system to be detected in at least one preset time period, and determines the storage speed of the system to be detected in the corresponding preset time period according to the data volume. The system detection component 104 determines the storage capacity of the system to be detected according to the storage speed under different preset time periods, and feeds back the storage capacity to the client 102. Among them, the terminal 102 can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices, and the Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, projection devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The head mounted device may be a virtual reality (VR) device, an augmented reality (AR) device, smart glasses, etc.
[0052] In an exemplary embodiment, Figure 2 As shown, a system storage capacity detection method is provided, and the method is applied to Figure 1 Taking the system detection component 104 in the example as an example, the following steps are included:
[0053] S210, obtaining the amount of data stored in the system to be detected in at least one preset time period.
[0054] The system to be tested mainly refers to the metering automation system; the preset period can be a period set based on manual experience. For example, a cycle can be divided into multiple preset periods. The storage data is the data that the system to be tested needs to store. In this application, there is no restriction on the data type of the storage data.
[0055] Exemplarily, the present application can obtain the amount of data stored in the system to be detected in at least one preset period in the most recent cycle. For example, based on the data storage time, the number of data items stored in the preset period is counted, and the number of data items is used as the data amount.
[0056] S220, determining the storage speed of the system to be tested in a corresponding preset time period according to the data volume.
[0057] Exemplarily, for any preset time period, in this embodiment, the difference between the total amount of warehousing data collected by the system to be detected during the preset time period and the length of the preset time period is used as the warehousing speed of the system to be detected in the corresponding preset time period.
[0058] S230, determining the storage capacity of the system to be inspected according to the storage speed in different preset time periods.
[0059] In an optional implementation, the target speed corresponding to the system to be inspected can be determined from the storage speed in different preset time periods, and the storage capacity of the system to be inspected can be determined according to the size of the target speed.
[0060] For example, the entry speeds in different preset time periods can be sorted, and the entry speed in the preset position in the sorting result can be used as the target speed; one can also be randomly selected from the entry speeds in different preset time periods as the target speed; the average or weighted average of the entry speeds in different preset time periods can also be used as the target speed. Among them, the weight coefficients corresponding to different entry speeds can be determined based on manual experience or through a large number of experiments, and this application does not make any limitation on this.
[0061] In the above-mentioned system storage capacity detection method, the amount of data stored in the system to be detected in at least one preset time period is obtained; based on the amount of data, the storage speed of the system to be detected in the corresponding preset time period is determined; based on the storage speed in different preset time periods, the storage capacity of the system to be detected is determined. In the above process, a scoring standard is set for the system construction score of the system to be detected, which can realize system automatic detection. Furthermore, in the process of determining the storage capacity of the system to be detected, the amount of data stored in the system to be detected in different preset time periods is taken into consideration, and then the storage capacity of the system to be detected is determined based on the storage speed in different preset time periods. Compared with the storage speed in only one preset time period, the whole process can make the determined storage capacity more accurate.
[0062] Based on the technical solutions of the above embodiments, the present application also provides an optional embodiment. In this optional embodiment, the storage data includes at least two data types. In this case, the process of determining the storage speed of the system to be detected in the corresponding preset time period according to the amount of data is refined.
[0063] See also Figure 3 The steps for determining the storage speed shown include:
[0064] S310, for any data type, according to the amount of data stored in the data type, determine the storage speed corresponding to the data type in the system to be tested in the corresponding preset time period.
[0065] The storage data includes at least one of the following: collected data, daily frozen table data, and voltage and current curve data. Specifically, the storage data includes at least one of the following: table data, daily frozen data, and load data.
[0066] Specifically, in this embodiment, after obtaining the total amount of data stored in the system to be detected in at least one preset period, the stored data is classified to determine the amount of data corresponding to different data types. Then, according to the amount of data of the corresponding data type, the storage speed corresponding to the data type of the system to be detected in the corresponding preset period is determined.
[0067] That is to say, for any preset time period, the preset time period corresponds to the storage speed corresponding to different data types. For any data type, different preset time periods correspond to different storage speeds. It is understood that if there is no storage record of a certain data type in a preset time period, the storage speed corresponding to the data type in the preset time period is 0.
[0068] Accordingly, for any data type, the target speed is determined according to the storage speed in different preset time periods; and the storage capacity of the system to be tested under the data type is determined according to the target speed.
[0069] That is to say, different data types correspond to a target speed, and the storage capacity of the system to be detected is for different data types, that is, the storage capacity of the system to be detected for different types of data may be different.
[0070] Exemplarily, the target speed can be determined according to the storage speeds in different preset time periods in the following manner: if the number of storage speeds in different preset time periods is one, the storage speed is used as the target speed; if the number of storage speeds in different preset time periods is at least two, the storage speed with the largest value is used as the target speed.
[0071] After determining the target speeds corresponding to different data types, the storage capacity of the system to be detected under the data type can be determined according to the size relationship between the target speed and the preset speed threshold corresponding to the data type. The preset speed thresholds corresponding to different data types can be different, and the preset speed thresholds can be determined based on manual experience or through a large number of experiments, and this application does not impose any limitation on this.
[0072] Specifically, when the target speed is greater than the corresponding preset speed threshold, it is determined that the storage capacity of the system to be detected under the data type is qualified; otherwise, it is determined to be unqualified.
[0073] In the above embodiment, the incoming data is classified, and the system to be tested has different storage capacities for different types of incoming data, so that the storage capacity test of the system to be tested is more rigorous and the test result is more accurate.
[0074] Based on the technical solutions of the above embodiments, the present application also provides an optional embodiment. In this optional embodiment, the system storage capacity detection method provided by the present application can also determine the comprehensive storage capacity of the system to be detected.
[0075] See also Figure 4 The steps for determining the comprehensive storage capacity shown include:
[0076] S410, determining the comprehensive storage capacity of the system to be detected according to the storage capacity of the system to be detected under different data types.
[0077] Specifically, in this embodiment, different data types correspond to different storage capacities. When determining the different storage capacities corresponding to different data types, a strategy can be determined based on a preset comprehensive storage capacity to process the different storage capacities and obtain the comprehensive storage capacity of the system to be detected.
[0078] Among them, the comprehensive storage capacity determination strategy can be: when each storage capacity indicates that the storage capacity of the system to be tested is qualified, determine that the comprehensive storage capacity of the system to be tested is qualified; or, when there is a storage capacity indicating that the storage capacity of the system to be tested is qualified, determine that the comprehensive storage capacity of the system to be tested is qualified.
[0079] In the above embodiment, the comprehensive storage capacity of the system to be detected is determined according to the storage capacity of the system to be detected under different data types, and the storage capacity represented by the comprehensive storage capacity is more comprehensive.
[0080] Based on the technical solutions of the above embodiments, the present application also provides an optional embodiment. In this optional embodiment, the system storage capacity detection method provided by the present application is introduced in detail.
[0081] See also Figure 5 The system storage capacity detection method shown includes:
[0082] S510, the client sends a system storage capacity detection request to the system detection component;
[0083] S520, the system detection component obtains the data volume of the stored data of different data types in the system to be detected in at least one preset time period in response to the system storage capacity detection request;
[0084] The data types of the stored data include acquisition data, daily frozen table code data, and voltage and current curve data;
[0085] S530, the system detection component determines the corresponding storage speed of any data type in different preset time periods for the storage data of the data type;
[0086] For example, for any type of data, the number of collected data collected in different preset time periods is determined. , the number of data items and the length of the preset time period The ratio of is used as the storage speed corresponding to the corresponding data type in the corresponding preset time period;
[0087] S540, the system detection component uses the maximum storage speed among the storage speeds as the target speed;
[0088] For example, the number of collected data collected in different preset time periods can also be determined. After that, the largest number of data items is taken as , and then the ratio of the maximum number of data items to the preset time period is used as the target speed corresponding to the corresponding data type. ;
[0089] S550, the system detection component compares the target speed with the speed threshold corresponding to the incoming data of the data type, and determines the storage capacity of the system to be detected under the data type;
[0090] Exemplarily, for any type of data, when the target speed exceeds the corresponding speed, it is determined that the storage capacity of the system to be tested for the data type is qualified (full score); otherwise, it is determined to be unqualified (0 score);
[0091] S560, the system detection component feeds back the target speed and storage capacity corresponding to different data types of the system to be detected to the client.
[0092] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0093] Based on the same inventive concept, the embodiment of the present application also provides a system storage capacity detection device for implementing the system storage capacity detection method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more system storage capacity detection device embodiments provided below can refer to the limitations of the system storage capacity detection method above, and will not be repeated here.
[0094] In an exemplary embodiment, Figure 6 As shown, a system storage capacity detection device is provided, including: a data volume acquisition module 610, a storage speed determination module 620 and a storage capacity determination module 630, wherein:
[0095] The data volume acquisition module 610 is used to acquire the data volume of the stored data of the system to be detected in at least one preset period of time;
[0096] The storage speed determination module 620 is used to determine the storage speed of the system to be detected in the corresponding preset time period according to the data volume;
[0097] The storage capacity determination module 630 is used to determine the storage capacity of the system to be tested according to the storage speed in different preset time periods.
[0098] In one embodiment, the incoming data includes data of at least two data types; accordingly, the incoming data speed determination module 620 is used to determine the incoming data speed corresponding to the data type in the system to be tested in the corresponding preset time period according to the data volume of the incoming data under the data type for any data type.
[0099] In one embodiment, the storage speed determination module 620 includes a target speed determination unit, which is used to determine the target speed for any data type according to the storage speed under different preset time periods; and a storage capacity determination unit, which is used to determine the storage capacity of the system to be tested under the data type according to the target speed.
[0100] In one embodiment, the target speed determination unit includes a first determination subunit, which is used to use the entry speed as the target speed if the number of entry speeds under different preset time periods is one; and a second determination subunit, which is used to use the entry speed with the largest value as the target speed if the number of entry speeds under different preset time periods is at least two.
[0101] In one embodiment, the storage capacity determination unit is specifically configured to determine the storage capacity of the system to be detected under the data type according to a magnitude relationship between the target speed and a preset speed threshold corresponding to the data type.
[0102] In one embodiment, the system storage capacity detection device further includes a comprehensive capacity determination module, which is used to determine the comprehensive storage capacity of the system to be detected according to the storage capacity of the system to be detected under different data types.
[0103] Each module in the above-mentioned system storage capacity detection device can be implemented in whole or in part by software, hardware or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each of the above modules.
[0104] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Figure 7 As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, a system storage capacity detection method is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0105] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0106] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0107] Obtaining the amount of data stored in the system to be tested in at least one preset time period;
[0108] According to the amount of data, determine the storage speed of the system to be tested in the corresponding preset time period;
[0109] Determine the storage capacity of the system to be tested based on the warehousing speed under different preset time periods.
[0110] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0111] For any data type, the storage speed corresponding to the data type in the system to be tested in the corresponding preset time period is determined according to the amount of data stored in the storage under the data type.
[0112] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0113] For any data type, determine the target speed based on the storage speed in different preset time periods;
[0114] Based on the target speed, determine the storage capacity of the system to be tested under the data type.
[0115] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0116] If the number of storage speeds under different preset time periods is one, the storage speed is used as the target speed;
[0117] If the number of storage-in speeds in different preset time periods is at least two, the storage-in speed with the largest value is used as the target speed.
[0118] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0119] The storage capacity of the system to be detected under the data type is determined according to the size relationship between the target speed and the preset speed threshold corresponding to the data type.
[0120] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0121] Determine the comprehensive storage capacity of the system to be tested based on its storage capacity under different data types.
[0122] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0123] Obtaining the amount of data stored in the system to be tested in at least one preset time period;
[0124] According to the amount of data, determine the storage speed of the system to be tested in the corresponding preset time period;
[0125] Determine the storage capacity of the system to be tested based on the warehousing speed under different preset time periods.
[0126] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0127] For any data type, the storage speed corresponding to the data type in the system to be tested in the corresponding preset time period is determined according to the amount of data stored in the storage under the data type.
[0128] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0129] For any data type, determine the target speed based on the storage speed in different preset time periods;
[0130] Based on the target speed, determine the storage capacity of the system to be tested under the data type.
[0131] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0132] If the number of storage speeds under different preset time periods is one, the storage speed is used as the target speed;
[0133] If the number of storage-in speeds in different preset time periods is at least two, the storage-in speed with the largest value is used as the target speed.
[0134] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0135] The storage capacity of the system to be detected under the data type is determined according to the size relationship between the target speed and the preset speed threshold corresponding to the data type.
[0136] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0137] Determine the comprehensive storage capacity of the system to be tested based on its storage capacity under different data types.
[0138] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0139] Obtaining the amount of data stored in the system to be tested in at least one preset time period;
[0140] According to the amount of data, determine the storage speed of the system to be tested in the corresponding preset time period;
[0141] Determine the storage capacity of the system to be tested based on the warehousing speed under different preset time periods.
[0142] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0143] For any data type, the storage speed corresponding to the data type in the system to be tested in the corresponding preset time period is determined according to the amount of data stored in the storage under the data type.
[0144] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0145] For any data type, determine the target speed based on the storage speed in different preset time periods;
[0146] Based on the target speed, determine the storage capacity of the system to be tested under the data type.
[0147] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0148] If the number of storage speeds under different preset time periods is one, the storage speed is used as the target speed;
[0149] If the number of storage-in speeds in different preset time periods is at least two, the storage-in speed with the largest value is used as the target speed.
[0150] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0151] The storage capacity of the system to be detected under the data type is determined according to the size relationship between the target speed and the preset speed threshold corresponding to the data type.
[0152] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0153] Determine the comprehensive storage capacity of the system to be tested based on its storage capacity under different data types.
[0154] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0155] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0156] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for detecting system storage capacity, characterized in that: The method comprises: Obtaining the amount of data stored in the system to be tested in at least one preset time period; According to the data volume, determining the storage speed of the system to be detected in a corresponding preset time period; The storage capacity of the system to be inspected is determined according to the storage speed in different preset time periods.
2. The method according to claim 1, characterized in that The storage data includes at least two types of data; accordingly, determining the storage speed of the system to be detected in a corresponding preset time period according to the data volume includes: For any data type, the storage speed corresponding to the data type in the system to be detected in the corresponding preset time period is determined according to the data volume of the stored data under the data type.
3. The method according to claim 2, characterized in that Determining the storage capacity of the system to be detected according to the storage speed in different preset time periods includes: For any data type, determine the target speed based on the storage speed in different preset time periods; The storage capacity of the system to be detected under the data type is determined according to the target speed.
4. The method according to claim 3, characterized in that Determining the target speed according to the storage speed in different preset time periods includes: If the number of storage speeds in different preset time periods is one, the storage speed is used as the target speed; If the number of storage-in speeds in different preset time periods is at least two, the storage-in speed with the largest value is used as the target speed.
5. The method according to claim 3, characterized in that: The step of determining the storage capacity of the system to be detected under the data type according to the target speed includes: The storage capacity of the system to be detected under the data type is determined according to the size relationship between the target speed and a preset speed threshold corresponding to the data type.
6. The method according to any one of claims 2 to 5, characterized in that: The method further comprises: The comprehensive storage capacity of the system to be detected is determined according to the storage capacity of the system to be detected under different data types.
7. A system storage capacity detection device, characterized in that: The device comprises: A data volume acquisition module is used to acquire the volume of data stored in the system to be detected in at least one preset period of time; A storage speed determination module, used to determine the storage speed of the system to be detected in a corresponding preset time period according to the data volume; The storage capacity determination module is used to determine the storage capacity of the system to be detected according to the storage speed in different preset time periods.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.