State data storage method and device, equipment and storage medium
By introducing a multi-level architecture of central storage devices, edge storage devices and data acquisition devices into the data storage system in the field of oil and gas exploration and development, the problem of high pressure on sensor state data storage and query processing is solved, and fast and timely data processing and storage is achieved, avoiding data loss.
Patent Information
- Application Number
- CN202311227495.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-21
- Publication Date
- 2025-03-21
AI Technical Summary
When storing and querying the status data generated by industrial equipment sensors, the processing pressure is high, resulting in slow processing speed, which may lead to the status data being unable to be stored quickly and in time, or even lost.
A multi-level data storage system is adopted, including central storage devices, multiple edge storage devices and multiple data acquisition devices. The data acquisition device sends status data to the bound edge storage device and transmits the data to the central storage device through the edge storage device to share the processing pressure.
By sharing processing pressure, it is possible to process the short-term large amount of state data generated in a timely manner, avoid data loss, and improve the efficiency of data storage and query.
Smart Images

Figure CN119668490A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of oil and gas exploration and development data processing, and in particular to a method, device, equipment and storage medium for storing status data. Background Art
[0002] Various sensors are installed on industrial equipment. Sensors (such as pressure sensors, temperature sensors, etc.) will generate a large amount of status data. With the continuous development of industrial Internet in the field of oil and gas exploration and development, these status data play an important role in oil and gas exploration and development.
[0003] The current related art practice is that a data storage device obtains status data generated by a sensor, and stores and queries the status data.
[0004] However, status data is generated frequently and in huge amounts. Using a data storage device to store and query status data will put a lot of processing pressure on the data storage device, resulting in slow processing speed, inability to quickly and timely store status data, and even loss of status data. Summary of the invention
[0005] In order to solve the related technical problems, the embodiments of the present disclosure provide a method, device, equipment and storage medium for storing state data. The technical solution is as follows:
[0006] In a first aspect, a method for storing state data is provided, the method being applied to a data storage system, the data storage system comprising a central storage device, a plurality of edge storage devices, and a plurality of data acquisition devices, the method comprising:
[0007] The data acquisition device acquires status data;
[0008] The data acquisition device determines a target edge storage device among the bound multiple edge storage devices;
[0009] The data acquisition device sends the status data to the target edge storage device;
[0010] The target edge storage device stores the state data;
[0011] The target edge storage device sends the status data to the central storage device;
[0012] The central storage device stores the status data.
[0013] In a possible implementation, the state data includes at least one of pressure, temperature, flow, liquid level, vibration information, and the like.
[0014] In a possible implementation, the data collection device determines a target edge storage device from among the bound multiple edge storage devices, including:
[0015] The data acquisition device determines a target edge storage device among the bound multiple edge storage devices based on a round-robin manner.
[0016] In a possible implementation, the data collection device determines a target edge storage device from among the bound multiple edge storage devices, including:
[0017] Based on the pre-established correspondence between the state type and the edge storage device and the state type of the state data, a corresponding target edge storage device is determined.
[0018] In a possible implementation, the plurality of edge storage devices in the data storage system include a management edge storage device;
[0019] The method further comprises:
[0020] The managing edge storage device obtains storage space occupancy information of each edge storage device;
[0021] For each data acquisition device, the management edge storage device determines a first edge storage device among the multiple edge storage devices bound to the data acquisition device based on the storage space occupancy information of the multiple edge storage devices bound to the data acquisition device and the load balancing mechanism, and sends a notification message carrying the device identification of the first edge storage device to the data acquisition device;
[0022] The data acquisition device records the device identification of the first edge storage device;
[0023] The data collection device determines a first edge storage device from among the bound multiple edge storage devices, including:
[0024] The data collection device determines the first edge storage device from among the bound multiple edge storage devices based on the recorded device identification of the first edge storage device.
[0025] In a possible implementation, after the data collection device determines a first edge storage device among the bound multiple edge storage devices, the method further includes:
[0026] The data acquisition device sends the acquisition time corresponding to the status data and the device identifier of the data acquisition device to the first edge storage device;
[0027] The first edge storage device stores the collection time, the device identifier of the data collection device and the status data in correspondence;
[0028] After the data collection device records the device identification of the first edge storage device, the method further includes:
[0029] The data acquisition device records the time of the device identification of the first edge storage device, and determines it as the start time of sending the status data to the first edge storage device;
[0030] The data acquisition device sends a confirmation message to the management edge storage device, wherein the confirmation message carries the start time;
[0031] The edge storage management device establishes a correspondence between the device identification of the data acquisition device, the device identification of the edge storage device and the start time based on the confirmation messages received from the data acquisition devices.
[0032] In a possible implementation, the method further includes:
[0033] The management edge storage device receives a query request sent by a terminal device, wherein the query request carries query time information and a device identifier of a data acquisition device to be queried;
[0034] The management edge storage device determines the device identification of the edge storage device to be queried based on the corresponding relationship, the query time information, and the device identification of the data acquisition device to be queried;
[0035] The management edge storage device sends the query request to the edge storage device to be queried;
[0036] The edge storage device to be queried queries the query time information and the status data corresponding to the device identification of the data acquisition device to be queried based on the collection time corresponding to the locally stored status data and the device identification of the data acquisition device;
[0037] The edge storage device to be queried sends the queried status data to the terminal device.
[0038] In a second aspect, a device for storing state data is provided, the device being applied to a data storage system, the data storage system comprising a central storage device, a plurality of edge storage devices, and a plurality of data acquisition devices, the device comprising:
[0039] A collection module, used for the data collection device to collect status data;
[0040] A determination module, used for the data acquisition device to determine a target edge storage device among a plurality of bound edge storage devices;
[0041] A sending module, used for the data acquisition device to send the status data to the target edge storage device;
[0042] A storage module, used for storing the state data in the target edge storage device;
[0043] The sending module is also used for the target edge storage device to send the status data to the central storage device;
[0044] The storage module is also used in the central storage device to store the status data.
[0045] In a possible implementation, the state data includes at least one of pressure, temperature, flow, liquid level, vibration information, and the like.
[0046] In a possible implementation manner, the determining module is used to:
[0047] The data acquisition device determines a target edge storage device among the bound multiple edge storage devices based on a round-robin manner.
[0048] In a possible implementation manner, the determining module is used to:
[0049] Based on the pre-established correspondence between the state type and the edge storage device and the state type of the state data, a corresponding target edge storage device is determined.
[0050] In a possible implementation, the plurality of edge storage devices in the data storage system include a management edge storage device;
[0051] The determining module is further used for:
[0052] The managing edge storage device obtains storage space occupancy information of each edge storage device;
[0053] For each data acquisition device, the management edge storage device determines a first edge storage device among the multiple edge storage devices bound to the data acquisition device based on the storage space occupancy information of the multiple edge storage devices bound to the data acquisition device and the load balancing mechanism, and sends a notification message carrying the device identification of the first edge storage device to the data acquisition device;
[0054] The data acquisition device records the device identification of the first edge storage device;
[0055] The data collection device determines a first edge storage device from among the bound multiple edge storage devices, including:
[0056] The data collection device determines the first edge storage device from among the bound multiple edge storage devices based on the recorded device identification of the first edge storage device.
[0057] In a possible implementation manner, the device further includes an establishing module, configured to:
[0058] The data acquisition device sends the acquisition time corresponding to the status data and the device identifier of the data acquisition device to the first edge storage device;
[0059] The first edge storage device stores the collection time, the device identifier of the data collection device and the status data in correspondence;
[0060] After the data collection device records the device identification of the first edge storage device, the method further includes:
[0061] The data acquisition device records the time of the device identification of the first edge storage device, and determines it as the start time of sending the status data to the first edge storage device;
[0062] The data acquisition device sends a confirmation message to the management edge storage device, wherein the confirmation message carries the start time;
[0063] The edge storage management device establishes a correspondence between the device identification of the data acquisition device, the device identification of the edge storage device and the start time based on the confirmation messages received from the data acquisition devices.
[0064] In a possible implementation manner, the device further includes a query module, configured to:
[0065] The management edge storage device receives a query request sent by a terminal device, wherein the query request carries query time information and a device identifier of a data acquisition device to be queried;
[0066] The management edge storage device determines the device identification of the edge storage device to be queried based on the corresponding relationship, the query time information, and the device identification of the data acquisition device to be queried;
[0067] The management edge storage device sends the query request to the edge storage device to be queried;
[0068] The edge storage device to be queried queries the query time information and the status data corresponding to the device identification of the data acquisition device to be queried based on the collection time corresponding to the locally stored status data and the device identification of the data acquisition device;
[0069] The edge storage device to be queried sends the queried status data to the terminal device.
[0070] In a third aspect, a computer device is provided, comprising a memory and a processor, wherein the memory is used to store computer instructions, and the processor executes the computer instructions stored in the memory so that the computer device executes the method provided by the first aspect and its possible implementation methods.
[0071] In a fourth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program code. In response to the computer program code being executed by a computer device, the computer device executes the method provided by the first aspect and possible implementations thereof.
[0072] In a fifth aspect, a computer program product is provided. The computer program product includes a computer program code. When the computer program code is executed by a computer device, the computer device executes the method provided by the first aspect and its possible implementation methods.
[0073] In the disclosed embodiment, a data storage system is used to store status data. The data storage system includes multiple edge storage devices and a central storage device. In this way, the corresponding processing pressure is shared by multiple storage devices, reducing the processing pressure of a single data storage device. A large amount of status data generated in a short time can be processed in time, preventing the status data from not being stored quickly and in time, and preventing the status data from being lost. BRIEF DESCRIPTION OF THE DRAWINGS
[0074] Figure 1 is a structural schematic diagram of a data storage system provided by an embodiment of the present disclosure;
[0075] Figure 2 is a structural diagram of a central storage device provided by an embodiment of the present disclosure;
[0076] Figure 3 is a structural schematic diagram of an edge storage device provided by an embodiment of the present disclosure;
[0077] Figure 4 is a structural schematic diagram of a data acquisition device provided by an embodiment of the present disclosure;
[0078] Figure 5 It is a processing flow diagram of a method for storing status data provided by an embodiment of the present disclosure;
[0079] Figure 6 It is a processing flow diagram of a method for determining a target edge storage device provided by an embodiment of the present disclosure;
[0080] Figure 7It is a schematic diagram of a processing flow for managing edge storage devices to establish a corresponding relationship provided by an embodiment of the present disclosure;
[0081] Figure 8 It is a schematic diagram of a processing flow of querying status data provided by an embodiment of the present disclosure;
[0082] Fig. 9 It is a schematic diagram of the structure of a device for storing status data provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0083] In the exploration and development of oil and gas fields, sensors are often used to collect the status data generated by industrial equipment (such as oil wells) during use. Oil wells are generally scattered in different locations. An oil well can have at least one sensor to monitor the status of the oil well. For example, a pressure sensor can detect the output pressure, injection pressure and perfusion pressure of the oil well, a temperature sensor can monitor the temperature change of the oil, a flow sensor can monitor the flow rate and total amount of oil, a liquid level sensor can monitor the horizontal height of the oil, and a vibration sensor can monitor the vibration and vibration of the equipment. These status data are important for oil and gas exploration and development. A data storage system can be configured in a certain mining area. The data storage system includes a central storage device, multiple edge storage devices and multiple data acquisition devices. The data storage system stores the status data. There can be multiple sub-areas in the mining area. One or more edge storage devices can be configured for the data acquisition device in each sub-area. The data acquisition device can send the collected status data to the edge storage device. One or more edge storage devices can store the above status data and send it to the central storage device.
[0084] The present disclosure provides a method for storing state data. The method can be applied to a data storage system, such as Figure 1 As shown, the data storage system includes a central storage device, multiple edge storage devices, and multiple data acquisition devices. The central storage device can be a single device or a device group consisting of multiple devices, each edge storage device is a device with storage capabilities, and the data acquisition device can be an independent sensor, such as a pressure sensor, a temperature sensor, etc., or an industrial device, which has at least one sensor.
[0085] From the perspective of hardware composition, the structure of the above central storage device can be as follows: Figure 2 As shown, it includes a processor 210 , a memory 220 and a communication component 230 .
[0086] The processor 210 may be a central processing unit (CPU) or a system on chip (SoC), etc. The processor 210 may be used to execute various instructions involved in the method, for example, to process received status data.
[0087] The memory 220 may include various volatile memories or non-volatile memories, such as a solid state disk (SSD), a dynamic random access memory (DRAM), etc. The memory 220 may be used to store pre-stored data, intermediate data, and result data in the execution of business processing, for example, storage status data, etc.
[0088] The communication component 230 may be a wired network connector, a wireless fidelity (WiFi) module, a Bluetooth module, a cellular network communication module, etc. The communication component 230 may be used to transmit data with other devices, and the other devices may be edge storage devices and terminal devices, etc. For example, receiving status data sent by an edge storage device, etc.
[0089] The structure of the above edge storage device can be as follows Figure 3 As shown, it includes a processor 310 , a memory 320 and a communication component 330 .
[0090] The processor 310 may be a central processing unit (CPU) or a SoC, etc. The processor 310 may be used to execute various instructions involved in the method, for example, to process received status data.
[0091] The memory 320 may include various volatile memories or non-volatile memories, such as SSD, DRAM memory, etc. The memory 320 may be used to store pre-stored data, intermediate data, and result data in the execution of business processing, for example, to store status data, etc.
[0092] The communication component 330 may be a wired network connector, a WiFi module, a Bluetooth module, a cellular network communication module, etc. The communication component 330 may be used to transmit data with other devices, and the other devices may be data acquisition devices, central storage devices, and terminal devices, etc. For example, status data may be sent to a central storage device.
[0093] The structure of the above data acquisition device can be as follows Figure 4 As shown, it includes a processor 410 , a memory 420 and a communication component 430 .
[0094] The processor 410 may be a CPU or a SoC, etc. The processor 410 may be used to execute various instructions involved in the method, for example, to process the collected status data.
[0095] The memory 420 may include various volatile memories or non-volatile memories, such as SSD, DRAM memory, etc. The memory 420 may be used to store pre-stored data, intermediate data, and result data in the execution of business processing, for example, to store collected status data, etc.
[0096] The communication component 430 may be a wired network connector, a WiFi module, a Bluetooth module, a cellular network communication module, etc. The communication component 430 may be used to transmit data with other devices, and the other devices may be edge storage devices, etc. For example, status data may be sent to edge storage devices.
[0097] The present disclosure provides a method for storing state data. The method is applied to a data storage system. The data storage system includes a central storage device, multiple edge storage devices, and multiple data acquisition devices. The processing flow of the method can be as follows: Figure 5 As shown, the following steps are included:
[0098] 501, the data collection device collects status data.
[0099] The data acquisition device may be a pressure sensor, a temperature sensor, etc., and the acquisition frequency of the data acquisition device may be preset, for example, once per second. The state data includes at least one of pressure, temperature, flow, liquid level, and vibration information.
[0100] 502. The data collection device determines a target edge storage device among multiple bound edge storage devices.
[0101] There are multiple edge storage devices in the data storage system. The data acquisition device can select the edge storage device according to the actual situation. When the amount of status data is large, the number of edge storage devices can be increased. When the amount of status data is small, the number of edge storage devices can be reduced.
[0102] 503, the data acquisition device sends status data to the target edge storage device.
[0103] When the data acquisition device sends the status data to the target edge storage device, it may simultaneously send the device identification of the data acquisition device and the start time of sending the status data to the target edge storage device.
[0104] 504. The target edge storage device stores the status data.
[0105] 505, the target edge storage device sends status data to the central storage device.
[0106] 506. The central storage device stores the status data.
[0107] In a possible implementation, the data collection device may determine a target edge storage device among multiple bound edge storage devices in multiple ways.
[0108] Method 1 for determining the target edge storage device:
[0109] The data acquisition device determines the target edge storage device among the bound multiple edge storage devices based on a round-robin method. For example, the current data acquisition device collects status data once a second, and can send the collected status data to three edge storage devices respectively. The device identifiers of the three edge storage devices are A, B, and C respectively. At this time, the data acquisition device can send the status data collected in the first second to edge storage device A, the status data collected in the second second to edge storage device B, the status data collected in the third second to edge storage device C, the status data collected in the fourth second to edge storage device A, and so on, in this order.
[0110] Method 2 for determining the target edge storage device:
[0111] Based on the pre-established correspondence between the state type and the edge storage device, and the state type of the state data, the corresponding target edge storage device is determined. As shown in Table 1, a correspondence table between the state type and the edge storage device can be pre-established. For example, the state data collected by the pressure sensor can be sent to the edge storage device A, and the state data collected by the temperature sensor can be sent to the edge storage device B.
[0112] Table 1 Correspondence between status types and device identifiers of edge storage devices
[0113] Status Type Device identification of edge storage devices pressure A temperature B flow C Liquid level D Vibration information E
[0114] Method 3 for determining the target edge storage device:
[0115] The plurality of edge storage devices in the data storage system include a management edge storage device, and the processing flow of the third method for determining the target edge storage device can be as follows: Figure 6 As shown, the following steps are included:
[0116] 601. Manage edge storage devices to obtain storage space occupancy information of each edge storage device.
[0117] The management edge storage device can periodically obtain the storage space occupancy information of each edge storage device. For example, the data acquisition device sends a notification to the management storage device to determine the target edge storage device. After receiving the notification, the management storage device can obtain the storage space occupancy information of each edge storage device bound to the data acquisition device. For another example, the management edge storage device obtains the storage space occupancy information of each edge storage device once a minute.
[0118] The storage space occupancy information may include information such as the storage space already used and the unused storage space of each edge storage device.
[0119] 602. For each data acquisition device, the management edge storage device determines a first edge storage device among the multiple edge storage devices bound to the data acquisition device based on the storage space occupancy information of the multiple edge storage devices bound to the data acquisition device and the load balancing mechanism, and sends a notification message carrying the device identifier of the first edge storage device to the data acquisition device.
[0120] The management edge storage device determines the edge storage device with the most unused storage space from the multiple edge storage devices bound to the data acquisition device as the first edge storage device, and then sends a notification message to the data acquisition device, and the notification message can carry the device identification of the first edge storage device. For example, there are three edge storage devices in the data storage system, and the device identifications are A, B, and C, and the unused storage space is 50GB, 45GB, and 20GB, respectively. The management edge storage device can determine the edge storage device with device identification A as the first edge storage device based on the load balancing mechanism, send a notification message to the data acquisition device, and carry the device identification A in the notification message.
[0121] 603. The data collection device records the device identification of the first edge storage device.
[0122] 604 , the data collection device determines the first edge storage device from the bound multiple edge storage devices based on the recorded device identifier of the first edge storage device.
[0123] The data acquisition device uses the first edge storage device as a target edge storage device.
[0124] In a possible implementation, the management edge storage device can establish a correspondence between the device identification of the data acquisition device, the device identification of the edge storage device, and the start time. The correspondence can be used to determine the edge storage device storing data during the data query process. The corresponding processing flow can be as follows: Figure 7 As shown, the following steps are included:
[0125] 701. A data collection device sends a collection time corresponding to status data and a device identifier of the data collection device to a first edge storage device.
[0126] For example, the collection time corresponding to the status data 1 is 8:00, the device identifier of the data collection device is a, and the data collection device can send the above information to the first edge storage device.
[0127] 702. The first edge storage device stores the collection time, the device identifier of the data collection device, and the status data in correspondence.
[0128] The first edge storage device may establish a correspondence table between the collection time, the device identification of the data collection device and the status data, for example, as shown in Table 2.
[0129] Table 2 Correspondence between collection time, device identification of data collection equipment and status data
[0130] Status data Collection time Device identification of data acquisition equipment Status data 1 8:00 a Status data 2 8:01 b …… …… ……
[0131] The first edge storage device establishes the above correspondence table based on the collection time, the device identification and the status data of the data collection device.
[0132] In addition, the above correspondence relationship can be sent to a central storage device.
[0133] 703 , the data collection device records the time of the device identification of the first edge storage device, and determines it as the start time of sending the status data to the first edge storage device.
[0134] 704. The data collection device sends a confirmation message to the management edge storage device.
[0135] The confirmation message carries the start time.
[0136] 705 , the management edge storage device establishes a correspondence between the device identification of the data acquisition device, the device identification of the edge storage device, and the start time based on the confirmation messages received from the data acquisition devices.
[0137] For any corresponding relationship item in the corresponding relationship, including the device identification of the first data acquisition device, the device identification of the first edge storage device and the first start time, the time when the first data acquisition device uses the first edge storage device is the time between the first start time and the second start time, wherein the second start time is the next start time of the first start time among the multiple start times corresponding to the device identification of the first data acquisition device. For example, as shown in Table 3, the management edge storage device can establish a corresponding relationship table of the device identification of the data acquisition device, the device identification of the edge storage device and the start time. It can be seen from Table 3 that the status data collected by the data acquisition device a from 8:00 to 8:05 is stored in the edge storage device A, and the status data collected from 8:05 to 8:10 is stored in the edge storage device B.
[0138] Table 3 Correspondence between the device identification of the data acquisition device, the device identification of the edge storage device and the start time
[0139] Device identification of data acquisition equipment Start time Device identification of edge storage devices a 8:00 A a 8:05 B a 8:10 C b 8:00 A …… …… ……
[0140] Based on the above correspondence table, the management edge storage device can record the edge storage device corresponding to each data acquisition device at any time, so as to facilitate the subsequent processing and analysis of the status data.
[0141] In addition, the management edge storage device may send the corresponding relationship between the device identification of the data acquisition device, the device identification of the edge storage device, and the start time to the central storage device.
[0142] In a possible implementation, the stored status data can be queried, and the corresponding processing flow can be as follows: Figure 8 As shown, the following steps are included:
[0143] 801. A management edge storage device receives a query request sent by a terminal device.
[0144] When there is a query demand, the user can enter the query information on the terminal device, and the terminal device can send a query request to the management edge storage device, where the query request carries the query information, and the query information may include query time information, the device identification of the data acquisition device to be queried, etc. For example, 8:00 and the device identification of the data acquisition device is a, 8:00-8:10 and the device identification of the data acquisition device is b, etc.
[0145] 802 , the management edge storage device determines the device identifier of the edge storage device to be queried based on the corresponding relationship, the query time information, and the device identifier of the data acquisition device to be queried.
[0146] The management edge storage device can determine the edge storage device to be queried that meets the query information based on Table 3 and the query information. For example, the query time information is 8:00, the data collection device is a, and the management edge storage device determines in the correspondence table that the device identifier of the edge storage device to be queried is A.
[0147] 803 , the management edge storage device sends a query request to the edge storage device to be queried.
[0148] 804. The edge storage device to be queried queries the status data corresponding to the query time information and the device identification of the data acquisition device to be queried based on the collection time corresponding to the locally stored status data and the device identification of the data acquisition device.
[0149] The edge storage device to be queried can determine the status data that meets the query information based on the above Table 2. For example, the device identifier of the edge storage device to be queried is A. After receiving the query request, A can determine the status data 1 that meets the query information in the correspondence table.
[0150] 805. The edge storage device to be queried sends the queried status data to the terminal device.
[0151] In addition, when there is a query demand, the user can enter the query information on the terminal device, and the terminal device can send a query request to the management edge storage device or to the central storage device. After sending the query request to the central storage device, the central storage device can query the status data.
[0152] In the disclosed embodiment, a data storage system is used to store status data. The data storage system includes multiple edge storage devices and a central storage device. In this way, the corresponding processing pressure is shared by multiple storage devices, reducing the processing pressure of a single data storage device. A large amount of status data generated in a short time can be processed in time, preventing the status data from not being stored quickly and in time, and preventing the status data from being lost.
[0153] Based on the same technical concept, an embodiment of the present disclosure provides a device for storing state data, which is applied to a data storage system. The data storage system includes a central storage device, multiple edge storage devices, and multiple data acquisition devices, such as Fig. 9 As shown, the device comprises:
[0154] The acquisition module 910 is used for the data acquisition device to acquire status data, and can specifically implement the processing function of the above step 501 and other implicit steps.
[0155] The determination module 920 is used for the data collection device to determine a target edge storage device among the bound multiple edge storage devices, and can specifically implement the processing function of the above step 502 and other implicit steps.
[0156] The sending module 930 is used for the data acquisition device to send the status data to the target edge storage device, and can specifically implement the processing function of the above step 503 and other implicit steps.
[0157] The storage module 940 is used for storing state data of the target edge storage device, and can specifically implement the processing function of the above step 504 and other implicit steps.
[0158] The sending module 930 is also used for the target edge storage device to send the status data to the central storage device, and can specifically implement the processing function of the above step 505 and other implicit steps.
[0159] The storage module 940 is also used for storing status data in the central storage device, and can specifically implement the processing function of the above step 506 and other implicit steps.
[0160] In a possible implementation, the state data includes at least one of pressure, temperature, flow, liquid level, vibration information, and the like.
[0161] In a possible implementation, the determination module 920 is used to: the data collection device determines the target edge storage device from the bound multiple edge storage devices based on a round-robin manner.
[0162] In a possible implementation, the determination module 920 is configured to determine a corresponding target edge storage device based on a pre-established correspondence between a state type and an edge storage device and a state type of the state data.
[0163] In a possible implementation, the multiple edge storage devices in the data storage system include a management edge storage device. The determination module 920 is also used to: the management edge storage device obtains the storage space occupancy information of each edge storage device; for each data acquisition device, the management edge storage device determines the first edge storage device among the multiple edge storage devices bound to the data acquisition device based on the storage space occupancy information of the multiple edge storage devices bound to the data acquisition device and the load balancing mechanism, and sends a notification message carrying the device identification of the first edge storage device to the data acquisition device; the data acquisition device records the device identification of the first edge storage device; the data acquisition device determines the first edge storage device among the multiple bound edge storage devices based on the recorded device identification of the first edge storage device.
[0164] In a possible implementation, the device also includes an establishment module 950, which is used to: the data acquisition device sends the collection time corresponding to the status data and the device identification of the data acquisition device to the first edge storage device; the first edge storage device stores the collection time, the device identification of the data acquisition device and the status data in correspondence; after the data acquisition device records the device identification of the first edge storage device, the data acquisition device records the time of the device identification of the first edge storage device as the start time of sending the status data to the first edge storage device; the data acquisition device sends a confirmation message to the management edge storage device, wherein the confirmation message carries the start time; the management edge storage device establishes the corresponding relationship between the device identification of the data acquisition device, the device identification of the edge storage device and the start time based on the confirmation messages received from each data acquisition device. Specifically, the processing functions of the above steps 701, 702, 703, 704, 705, and other implicit steps can be implemented.
[0165] In a possible implementation, the device also includes a query module 960, which is used to: manage the edge storage device to receive the query request sent by the terminal device, wherein the query request carries the query time information and the device identification of the data acquisition device to be queried; manage the edge storage device to determine the device identification of the edge storage device to be queried based on the corresponding relationship, the query time information, and the device identification of the data acquisition device to be queried; manage the edge storage device to send a query request to the edge storage device to be queried; the edge storage device to be queried queries the query time information and the status data corresponding to the device identification of the data acquisition device to be queried based on the collection time corresponding to the locally stored status data and the device identification of the data acquisition device; the edge storage device to be queried sends the queried status data to the terminal device. Specifically, the processing functions of the above steps 801, 802, 803, 804, and 805, as well as other implicit steps, can be implemented.
[0166] The above-mentioned acquisition module 910, determination module 920, sending module 930, storage module 940, establishment module 950 and query module 960 can be implemented by a processor, or by a processor in conjunction with a memory and a display.
[0167] In the disclosed embodiment, a data storage system is used to store status data. The data storage system includes multiple edge storage devices and a central storage device. In this way, the corresponding processing pressure is shared by multiple storage devices, reducing the processing pressure of a single data storage device. A large amount of status data generated in a short time can be processed in time, preventing the status data from not being stored quickly and in time, and preventing the status data from being lost.
[0168] When the device for storing state data provided in the above embodiment is in operation, only the division of the above functional modules is used as an example. In actual application, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the data storage system is divided into different functional modules to complete all or part of the functions described above. In addition, the device for storing state data provided in the above embodiment and the method embodiment for storing state data belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0169] The embodiments of the present disclosure also provide a computer-readable storage medium. The computer-readable storage medium may be any available medium that can be stored by a computing device or a data storage device such as a data center that includes one or more available media. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a digital video disk (DVD)), or a semiconductor medium (e.g., a solid-state hard disk). The computer-readable storage medium includes instructions that instruct a computing device to perform a business processing method, or instructs a computing device to perform a business processing method.
[0170] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the protection scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for storing status data, characterized in that: The method is applied to a data storage system, the data storage system includes a central storage device, multiple edge storage devices and multiple data acquisition devices, and the method includes: The data acquisition device acquires status data; The data acquisition device determines a target edge storage device among the bound multiple edge storage devices; The data acquisition device sends the status data to the target edge storage device; The target edge storage device stores the state data; The target edge storage device sends the status data to the central storage device; The central storage device stores the status data.
2. The method according to claim 1, characterized in that: The state data includes at least one of pressure, temperature, flow, liquid level and vibration information.
3. The method according to claim 1, characterized in that The data acquisition device determines a target edge storage device among the bound multiple edge storage devices, including: The data acquisition device determines a target edge storage device among the bound multiple edge storage devices based on a round-robin manner.
4. The method according to claim 1, characterized in that The data acquisition device determines a target edge storage device among the bound multiple edge storage devices, including: Based on the pre-established correspondence between the state type and the edge storage device and the state type of the state data, a corresponding target edge storage device is determined.
5. The method according to claim 1, characterized in that: The plurality of edge storage devices in the data storage system include a management edge storage device; The method further comprises: The managing edge storage device obtains storage space occupancy information of each edge storage device; For each data acquisition device, the management edge storage device determines a first edge storage device among the multiple edge storage devices bound to the data acquisition device based on the storage space occupancy information of the multiple edge storage devices bound to the data acquisition device and the load balancing mechanism, and sends a notification message carrying the device identification of the first edge storage device to the data acquisition device; The data acquisition device records the device identification of the first edge storage device; The data collection device determines a first edge storage device from among the bound multiple edge storage devices, including: The data collection device determines the first edge storage device from among the bound multiple edge storage devices based on the recorded device identification of the first edge storage device.
6. The method according to claim 5, characterized in that After the data collection device determines a first edge storage device among the bound multiple edge storage devices, the method further includes: The data acquisition device sends the acquisition time corresponding to the status data and the device identifier of the data acquisition device to the first edge storage device; The first edge storage device stores the collection time, the device identifier of the data collection device and the status data in correspondence; After the data collection device records the device identification of the first edge storage device, the method further includes: The data acquisition device records the time of the device identification of the first edge storage device, and determines it as the start time of sending the status data to the first edge storage device; The data collection device sends a confirmation message to the management edge storage device, wherein the confirmation message carries the start time; The edge storage management device establishes a correspondence between the device identification of the data acquisition device, the device identification of the edge storage device and the start time based on the confirmation messages received from the data acquisition devices.
7. The method according to claim 6, characterized in that The method further comprises: The management edge storage device receives a query request sent by a terminal device, wherein the query request carries query time information and a device identifier of a data acquisition device to be queried; The management edge storage device determines the device identification of the edge storage device to be queried based on the corresponding relationship, the query time information, and the device identification of the data acquisition device to be queried; The management edge storage device sends the query request to the edge storage device to be queried; The edge storage device to be queried queries the query time information and the status data corresponding to the device identification of the data acquisition device to be queried based on the collection time corresponding to the locally stored status data and the device identification of the data acquisition device; The edge storage device to be queried sends the queried status data to the terminal device.
8. A device for storing status data, characterized in that: The device is applied to a data storage system, the data storage system includes a central storage device, multiple edge storage devices and multiple data acquisition devices, and the device includes: A collection module, used for the data collection device to collect status data; A determination module, used for the data acquisition device to determine a target edge storage device among a plurality of bound edge storage devices; A sending module, used for the data acquisition device to send the status data to the target edge storage device; A storage module, used for storing the state data in the target edge storage device; The sending module is also used for the target edge storage device to send the status data to the central storage device; The storage module is also used in the central storage device to store the status data.
9. A computer device, characterized in that: The computer device comprises a memory and a processor, wherein the memory is used to store computer instructions; The processor executes the computer instructions stored in the memory to enable the computer device to perform the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program code. In response to the computer program code being executed by a computer device, the computer device executes the method according to any one of claims 1 to 7.