Data acquisition method, device, equipment and storage medium

By configuring management nodes to monitor and dynamically adjust acquisition nodes in real time, the problem of unreliable data acquisition caused by single node failure is solved, and task balancing and improved stability and reliability of data acquisition are achieved.

CN117675548BActive Publication Date: 2026-11-20TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211048439.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-30
Publication Date
2026-11-20
Estimated Expiration
2042-08-30

AI Technical Summary

Technical Problem

In industrial internet scenarios, data acquisition is unreliable when a single node fails, and existing distributed data acquisition methods cannot dynamically adjust tasks, resulting in poor data acquisition reliability.

Method used

By configuring the management node to obtain node information of multiple collection nodes in real time, the target collection node is dynamically determined, and the data collection task is sent to the target node to achieve task balancing and load balancing, thereby improving the stability and reliability of data collection.

Benefits of technology

It enables the migration and redistribution of data acquisition tasks in the event of node failure, improving the reliability and efficiency of data acquisition and ensuring the continuous and stable operation of data acquisition tasks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117675548B_ABST
    Figure CN117675548B_ABST
Patent Text Reader

Abstract

This application provides a data acquisition method, apparatus, device, and storage medium. The method includes: a configuration management node acquiring node information of N first acquisition nodes within a first time period; determining a target data acquisition task to be issued; determining a target acquisition node based on the node information of the N first acquisition nodes within the first time period; and issuing the target data acquisition task to the target acquisition node. In other words, this application's configuration management node monitors the node information of the first acquisition nodes in real time, and dynamically controls the allocation of acquisition tasks based on the node information, achieving task balance and improving the stability and reliability of data acquisition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a data acquisition method, apparatus, device, and storage medium. Background Technology

[0002] In industrial internet scenarios, equipment data acquisition is a core and critical aspect. Currently, in some factories, data is collected from multiple industrial devices using a single node, meaning one node simultaneously collects data from multiple devices. However, when this single node fails, the data acquisition task cannot be executed, making data acquisition unreliable.

[0003] To improve the reliability of data acquisition in industrial settings, distributed data acquisition methods are used in some factories to collect data from multiple industrial devices within the factory area. However, current distributed data acquisition methods cannot dynamically adjust data acquisition tasks, resulting in poor data acquisition reliability. Summary of the Invention

[0004] This application provides a data acquisition method, apparatus, device, and storage medium to improve the reliability of data acquisition.

[0005] In a first aspect, embodiments of this application provide a data acquisition method applied to a configuration management node, comprising:

[0006] Obtain node information of N first collection nodes within a first time period, where N is a positive integer greater than 1;

[0007] Identify the target data collection tasks to be issued;

[0008] The target acquisition node is determined based on the node information of the N first acquisition nodes within the first time period;

[0009] The target data acquisition task is sent to the target acquisition node so that the target acquisition node can perform data acquisition according to the target data acquisition task.

[0010] Secondly, embodiments of this application provide a data acquisition device applied to a configuration management node, comprising:

[0011] The acquisition unit is used to acquire node information of N first acquisition nodes within a first time period, where N is a positive integer greater than 1;

[0012] The task determination unit is used to determine the target data acquisition tasks to be issued.

[0013] The node determination unit is used to determine the target acquisition node based on the node information of the N first acquisition nodes in the first time period;

[0014] The sending unit is used to send the target data acquisition task to the target acquisition node, so that the target acquisition node can perform data acquisition according to the target data acquisition task.

[0015] Thirdly, embodiments of this application provide an electronic device, including: a processor and a memory, the memory being used to store a computer program, and the processor being used to call and run the computer program stored in the memory to perform the method of the first aspect.

[0016] Fourthly, embodiments of this application provide a computer-readable storage medium for storing a computer program that causes a computer to perform the method of the first aspect.

[0017] Fifthly, embodiments of this application provide a chip for implementing the methods of any one of the first aspects or their respective implementations. Specifically, the chip includes a processor for calling and running a computer program from a memory, causing a device equipped with the chip to perform the methods of any one of the first aspects or their respective implementations.

[0018] In a sixth aspect, embodiments of this application provide a computer program product, including computer program instructions that cause a computer to perform the methods in any of the first aspects or their implementations described above.

[0019] In a seventh aspect, embodiments of this application provide a computer program that, when run on a computer, causes the computer to perform the methods in any of the first aspects or their implementations described above.

[0020] In summary, in this application, the configuration management node obtains node information from N first acquisition nodes within a first time period; determines the target data acquisition task to be issued; determines the target acquisition node based on the node information of the N first acquisition nodes within the first time period; and issues the target data acquisition task to the target acquisition node. That is, the configuration management node in this application monitors the node information of the first acquisition nodes in real time, and dynamically controls the allocation of acquisition tasks based on this information, achieving task balance, increasing data acquisition throughput and processing capacity, and improving the stability and reliability of data acquisition. Attached Figure Description

[0021] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0022] Figure 1This is a schematic diagram of a data acquisition platform according to an embodiment of this application;

[0023] Figure 2 A flowchart illustrating a data acquisition method provided in an embodiment of this application;

[0024] Figure 3 This is a schematic diagram illustrating the acquisition of resource usage indicators according to an embodiment of this application;

[0025] Figure 4 This is a schematic diagram of an automatic node scaling process according to an embodiment of this application;

[0026] Figure 5 This is a schematic diagram of another automatic node scaling process involved in an embodiment of this application;

[0027] Figure 6 This is a schematic diagram of a data acquisition platform involved in an embodiment of this application;

[0028] Figure 7 A schematic diagram of the interaction flow of a data acquisition method provided in an embodiment of this application;

[0029] Figure 8 This is a schematic diagram of the structure of a data acquisition device provided in an embodiment of this application;

[0030] Figure 9 This is a schematic block diagram of the electronic device provided in the embodiments of this application. Detailed Implementation

[0031] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0032] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or server that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or devices.

[0033] To facilitate understanding of the embodiments of this application, the relevant concepts involved in the embodiments of this application will first be introduced:

[0034] This application provides a data acquisition method that applies cloud-native technology to industrial IoT scenarios, enabling containerized deployment, distributed scheduling, and cloud-edge collaboration of the data acquisition module in device IoT, and applying cloud-native technology to enterprise digital factories.

[0035] Cloud technology refers to a hosting technology that unifies a series of resources such as hardware, software, and networks within a wide area network or local area network to achieve data computing, storage, processing, and sharing.

[0036] Cloud computing is a computing model that distributes computing tasks across a large pool of computers, enabling various application systems to access computing power, storage space, and information services as needed. The network providing these resources is called the "cloud." From the user's perspective, resources in the "cloud" appear infinitely scalable, readily available, on-demand, and expandable, with payment based on usage.

[0037] Cloud storage is a new concept that extends and develops from the concept of cloud computing. A distributed cloud storage system (hereinafter referred to as a storage system) refers to a storage system that uses cluster applications, grid technology, and distributed storage file systems to bring together a large number of storage devices of various types (storage devices are also called storage nodes) in the network to work together through application software or application interfaces to provide data storage and business access functions to the outside world.

[0038] Cloud Native is a compound word, combining "Cloud" and "Native." "Cloud" indicates that the application resides in the cloud, rather than a traditional data center. "Native" means that the application was designed from the outset with the cloud environment in mind, natively designed for the cloud, and runs optimally on the cloud, fully leveraging the elasticity and distributed advantages of the cloud platform. Cloud Native technologies encompass several dimensions, including microservices, DevOps, continuous delivery, and containerization, with the deep integration of microservices and containerization technologies being the core.

[0039] The Industrial Internet is a new type of infrastructure, application model, and industrial ecosystem that deeply integrates next-generation information and communication technologies with the industrial economy. By comprehensively connecting people, machines, things, and systems, it builds a brand-new manufacturing and service system covering the entire industrial chain and value chain, providing a way to realize the digital, networked, and intelligent development of industry and even the entire industrial sector. It is an important cornerstone of the Fourth Industrial Revolution. The Industrial Internet revolves around concepts such as intelligent manufacturing, intelligent equipment, and digital factories.

[0040] The Internet of Things (IoT) refers to the use of various information sensors, radio frequency identification (RFID) technology, global positioning systems (GPS), infrared sensors, laser scanners, and other devices and technologies to collect real-time information on any object or process that needs to be connected or interacted with. This information includes sound, light, heat, electricity, mechanics, chemistry, biology, location, and other necessary data. Through various possible network access methods, it enables ubiquitous connectivity between things and between things and people, achieving intelligent perception, identification, and management of objects and processes.

[0041] Distributed computing studies how to break down a problem requiring enormous computing power into many smaller parts, distribute these parts among multiple computers for processing, and finally combine the results to obtain the final outcome. In modern massive data processing, data acquisition, and data analysis, distributed architectures can improve system fault tolerance, processing power, and computing capacity by breaking down large tasks into smaller ones.

[0042] The core capability of a distributed scheduling framework is to enable the splitting and parallel execution of multiple tasks in a distributed environment, atomically splitting massive processing tasks. In this embodiment, the distributed scheduling framework implements key core capabilities such as task configuration, node scheduling, task allocation, and state management. Among these, the scheduling algorithm is the core capability, ensuring that tasks are evenly distributed across task nodes. Furthermore, when a node fails, tasks can be migrated to ensure continuous and stable task operation.

[0043] IoT data acquisition is the ability of IoT platforms to directly connect devices, indirectly connect devices, and use third-party channels to establish data channels, access industrial equipment via protocols, collect, parse, and store equipment data in the industrial field, and map the relationships of equipment asset models. Data acquisition is the core capability and foundation of the Industrial Internet.

[0044] Kubernetes, or K8s for short, is an abbreviation of "ubernete," which uses the number 8 to represent the eight characters in its name. It is an open-source application used to manage containerized applications across multiple hosts in a cloud platform. Kubernetes aims to make deploying containerized applications simple and powerful, providing a mechanism for application deployment, planning, updating, and maintenance.

[0045] The following describes a data acquisition platform involved in an embodiment of this application.

[0046] Figure 1 This is a schematic diagram of a data acquisition platform according to an embodiment of this application. Figure 1 As shown, it includes a cloud client 101, a configuration management node 102, multiple collection nodes 103 and multiple devices to be collected 104. The cloud client 101, configuration management node 102 and multiple collection nodes 103 can be understood as being located in the local cloud.

[0047] In some embodiments, the cloud client 101 can be installed on a terminal device, which includes, but is not limited to, desktop computers, laptops, smartphones, tablets, IoT devices, and portable wearable devices. IoT devices can be smart speakers, smart TVs, smart air conditioners, smart in-vehicle systems, etc. Portable wearable devices can be smartwatches, smart bracelets, head-mounted devices, etc. Terminal device 101 is often equipped with a display device, which can also be a monitor, display screen, touchscreen, etc., and the touchscreen can also be a touchscreen, touch panel, etc.

[0048] In some embodiments, the management node 102 and the multiple collection nodes 103 can be configured on different servers. For example, the management node 102 can be configured on a single server, and each of the multiple collection nodes 103 can be configured on a single server.

[0049] In some embodiments, at least one of the configuration management node 102 and the plurality of acquisition nodes 103 can be configured on the same server.

[0050] The aforementioned servers can be one or more. When there are multiple servers, at least two servers are used to provide different services, and / or at least two servers are used to provide the same service, such as providing the same service in a load-balanced manner. This application embodiment does not limit this. The aforementioned servers can be independent physical servers, server clusters or distributed systems composed of multiple physical servers, or cloud servers providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. Servers can also become nodes in a blockchain.

[0051] The cloud client 101 installed on the terminal device communicates with each node configured on the server through the terminal device and the server. The terminal device and the server can be connected directly or indirectly via wired or wireless communication, and this application does not impose any restrictions on this.

[0052] This application does not limit the specific type of the device to be collected in the embodiments. In some embodiments, the device to be collected is any industrial equipment in a smart factory.

[0053] In this embodiment, the cloud client 101 is used to collect task configuration, collect task management and Actor-system configuration distribution system, and maintain cloud task distribution, that is, to perform tasks such as task distribution, task cancellation and task update to the configuration management node 102.

[0054] Configuration management node 102 is the intermediate node of the data acquisition platform and its core. Its core capabilities include adapter-system, task-manager, adapter-status, and schedule. Adapter-system provides basic support services for the core scheduling module; task-manager provides acquisition task management services; adapter-status provides status detection services; and schedule provides acquisition task scheduling algorithm services. These are the platform's core capabilities. Configuration management node 102 is not concerned with the specific implementation of acquisition node 103; it only needs to be deployed according to a cloud-native architecture, handling task retrieval and distribution, and status management.

[0055] The data acquisition node 103 is the core module for executing data acquisition tasks, including a node management module (node-system), a task management module (task-manager), a task execution module (task-exec), and a task status management module (task-status). In this embodiment, the data acquisition task does not need to be deeply bound to a specific programming language; it only needs to be implemented according to the entire standard. That is, the data acquisition task in this embodiment can be executed by a data acquisition node using any programming language. The data acquisition node reports its node status, task status, and resource usage metrics to the configuration management node 102.

[0056] The data acquisition node 103 is connected to the device to be acquired and can acquire data from the device 104.

[0057] In this embodiment, the data acquisition device 103 can support at least one communication protocol. For example, acquisition node 1 supports the OPC communication protocol and the Modbus communication protocol. Therefore, acquisition device 1 can acquire data from the device 104 that supports the OLE (OLE for Process Control) communication protocol and the Modbus serial communication protocol. Acquisition node 2 supports the S7 communication protocol and the MC communication protocol. Therefore, acquisition device 2 can acquire data from the device 104 that supports both the S7 and MC communication protocols.

[0058] Depend on Figure 1 As can be seen, the data flow of the data acquisition platform provided in this application embodiment is as follows: the cloud client 101 sends acquisition tasks to the configuration management node 102. The configuration management node 102 periodically obtains the node information of the acquisition node 103, determines the target acquisition node based on the node information, and then sends the acquisition task to the target acquisition node so that the target acquisition node can execute the acquisition task. That is to say, in this application embodiment, the configuration management node 102 obtains the node information of each acquisition node in real time, such as the node status information, task status information, and resource usage indicators of the acquisition node, and then dynamically adjusts the acquisition tasks based on the node information of each acquisition node. For example, when an acquisition node goes offline, the acquisition tasks on that acquisition node are reassigned to other acquisition nodes, or when the resource usage indicators of an acquisition node exceed the limit, the acquisition tasks on that acquisition node are migrated to other acquisition nodes. In addition, this application embodiment determines the target acquisition node based on the node status information and resource usage indicators of each acquisition node to achieve load balancing, avoids sending acquisition tasks to acquisition nodes with excessive resource usage indicators, and thus improves the reliability and efficiency of data acquisition.

[0059] In some embodiments, the cluster also includes other nodes, such as a first intermediate node. The data collection node can report its resource usage metrics to the first intermediate node, which then sends the data collection node's resource usage metrics to the configuration management node.

[0060] It should be noted that the application scenarios of this application embodiment include, but are not limited to, those of other applications. Figure 1 As shown.

[0061] The technical solutions of the embodiments of this application will be described in detail below through some examples. The following embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments.

[0062] Figure 2 A flowchart of a data acquisition method provided in an embodiment of this application.

[0063] The execution subject of this application's embodiment is the aforementioned... Figure 1 The configuration management node shown can be a standalone server or part of a server.

[0064] like Figure 2 As shown, the method includes the following steps:

[0065] S201. Configure the management node to obtain node information of N first collection nodes in the first time period, where N is a positive integer greater than 1.

[0066] It should be noted that the number of first acquisition nodes in the data acquisition platform of this application embodiment can be scaled up or down as needed. For example, if there are many data acquisition tasks in a certain period of time, the number of first acquisition nodes can be increased to ensure the reliable execution of data acquisition tasks. If there are fewer data acquisition tasks in a certain period of time, the number of first acquisition nodes can be reduced to save resources. That is to say, in this application embodiment, the number of first acquisition nodes running in the data acquisition platform may be different in different time periods.

[0067] This application uses a first time period as an example for illustration. The first time period can be any preset time period.

[0068] In some embodiments of this application, the configuration management node periodically acquires node information of the first acquisition node in the data acquisition platform. For example, it acquires the node status information and task status information of the acquisition node every 15 seconds, and acquires the resource usage index of the acquisition node every 1 minute. Therefore, the first time period can be 1 minute. Thus, the first time period in this application embodiment can be understood as one acquisition cycle of the node information of the acquisition node.

[0069] In some embodiments, the first time period can be understood as the current time period or the current cycle.

[0070] For each online first data acquisition node in the data acquisition platform, the first data acquisition node periodically reports its node information at the current moment. For example, within a first time period, the data acquisition platform includes N first data acquisition nodes, and each of these N first data acquisition nodes periodically reports its node information. In this way, the configuration management node can obtain the node information of these N first data acquisition nodes within the first time period.

[0071] This application embodiment does not restrict the specific method by which the configuration management node obtains node information of N first collection nodes within a first time period.

[0072] Method 1: Each of the N first acquisition nodes directly reports its node information for the first time period to the configuration management node.

[0073] Method 2: Each of the N first acquisition nodes reports its node information for the first time period to other nodes in the data acquisition platform, and the configuration management node pulls the node information of the N first acquisition nodes for the first time period from the other nodes.

[0074] Method 3: The node information includes a first part of node information and a second part of node information. N first collection nodes directly report the first part of node information to the configuration management node, while reporting the second part of node information to other nodes in the data collection platform. The configuration management node pulls the second part of node information of the N first collection nodes within the first time period from other nodes.

[0075] For example, the node information of the first data collection node includes at least one of the following: node status information, task status information, and resource usage indicators.

[0076] The node status information indicates whether a node is online. For example, a node sends a heartbeat when it is online, and stops sending heartbeats when it is offline. In this way, the configuration management node can determine whether a data collection node is online or offline based on the node's heartbeat.

[0077] Task status information indicates whether a data acquisition node is executing its assigned data acquisition task. If a data acquisition node is executing its assigned task, it reports the task status information; otherwise, it does not report it. This allows the configuration management node to determine whether the data acquisition task assigned to that node is being executed. For example, if the configuration management node receives task status information from a data acquisition node, it determines that the data acquisition task is being executed, meaning the node is collecting data from the device to be acquired. Conversely, if the configuration management node does not receive task status information from a data acquisition node, it determines that the data acquisition task is not being executed, meaning the node is not collecting data from the device to be acquired.

[0078] In some embodiments, if a data acquisition node is assigned multiple data acquisition tasks, the task status information reported by the data acquisition node includes the identifier of the currently executing data acquisition task. In this way, the configuration management node can determine the data acquisition task currently being executed by the data acquisition node based on the data acquisition task identifier in the task status information.

[0079] Resource utilization metrics can be understood as the usage of resources such as CPU and Mem on the server by a data collection node. Each data collection node corresponds to a minimum resource utilization threshold and a maximum resource utilization threshold. When a data collection node has many data collection tasks, causing its resource utilization metric to exceed the maximum resource utilization threshold, it indicates that the node's resource utilization is excessive. In this case, data collection tasks on the node can be migrated to reduce the node's resource utilization. Conversely, if a data collection node has few data collection tasks, causing its resource utilization metric to be below the minimum resource utilization threshold, it indicates that the node's resources are being wasted. In this case, data collection tasks can be assigned to the node to improve its resource utilization.

[0080] In one possible implementation of method 3, if the node information includes resource occupancy indicators, then the resource occupancy indicators of N first collection nodes within the first time period are obtained from the first intermediate node. If the node information includes at least one of the node status and task status of the first collection node, then at least one of the node status and task status of the first collection node reported by the first collection node is received.

[0081] For example, such as Figure 3 As shown, the data acquisition platform includes the cAdvisor module, the kubelet module, and the metricserver node.

[0082] In this embodiment, one or more data collection nodes are configured on a server, and a kubelet module is installed on the server. Kubelet is the primary node agent, monitoring the data collection nodes assigned to the server. These nodes can be pods, which are the smallest execution unit in Kubernetes and the actual runners of applications and workloads. They are created by kubelet and the container runtime (the running container) according to control plane instructions. cAdvisor is integrated into kubelet and automatically starts when kubelet starts. cAdvisor performs real-time monitoring of server resources, including CPU usage, memory usage, network throughput, and file system usage.

[0083] Metrics Server is an aggregator of core monitoring data for Kubernetes clusters. It collects resource metrics from Kubelet and provides these metrics to the Scaled Resource Object (HPA).

[0084] like Figure 3 As shown in this embodiment, the cAdvisor module in the server periodically retrieves resource usage metrics from the collection nodes on the server, for example, every 5 seconds. The collection nodes send their resource usage metrics to the cAdvisor module. Next, the metric server node periodically (e.g., every 30 seconds) retrieves the resource usage metrics of the collection nodes on each server from the cAdvisor module in the kubelet module of each server and stores the retrieved metrics. Finally, the configuration management node periodically (e.g., every 60 seconds) retrieves the resource usage metrics of each collection node in the data collection platform from the metric server node. For example, the configuration management node obtains the resource usage metrics of N first collection nodes within a first time period from the metric server node.

[0085] It should be noted that the periods for each node or module to retrieve resource usage indicators may be the same or different, and this application embodiment does not impose any restrictions on this.

[0086] like Figure 3 As shown, the configuration management node pulls the resource usage metrics of N first collection nodes within the first time period from the first intermediate node, i.e., the metric server node.

[0087] Continue to refer to Figure 3As shown, the data collection node periodically reports at least one of the node status information and task status information directly to the configuration management node, for example, reporting the node status information and task status information once every 15 seconds.

[0088] In some embodiments, the above N first acquisition nodes are obtained by scaling up and down the nodes based on the resource occupancy indicators of M first acquisition nodes in the second time period, where M is a positive integer and the second time period is the time period preceding the first time period.

[0089] During the second time period, the data acquisition platform includes M first acquisition nodes. Based on the resource usage indicators of the M first acquisition nodes, the acquisition nodes are scaled up to obtain N first acquisition nodes. Thus, during the first time period, the data acquisition platform includes N first acquisition nodes.

[0090] In one example, if the resource occupancy index of at least one of the M first acquisition nodes is greater than the maximum resource utilization threshold in the second time period, then an additional first acquisition node is added, that is, the number of M first acquisition nodes on the data acquisition platform is increased to N first acquisition nodes, where N is greater than M.

[0091] In another example, if the resource occupancy index of at least one of the M first acquisition nodes is less than the minimum resource utilization rate in the second time period, then the number of first acquisition nodes is reduced, that is, the number of M first acquisition nodes on the data acquisition platform is reduced to N first acquisition nodes, where N is less than M.

[0092] This application does not limit the specific method of obtaining N first collection nodes by scaling the nodes based on the resource occupancy index of M first collection nodes in the second time period.

[0093] For example, each time a node is scaled up or down, a first data collection node is added or removed.

[0094] In some embodiments, the number of N first acquisition nodes is determined based on the product of the number of M first acquisition nodes and a first ratio, wherein the first ratio is the ratio of the resource occupancy index of the M first acquisition nodes in the second time period to the expected resource occupancy value of the M first acquisition nodes.

[0095] In one example, the first ratio is the ratio of the average resource usage index of the M first acquisition nodes in the first time period to the average expected resource usage value of the M first acquisition nodes.

[0096] In another example, the first ratio is the ratio of the sum of the resource usage indicators of the M first acquisition nodes in the first time period to the sum of the expected resource usage values ​​of the M first acquisition nodes.

[0097] For example, the number N of the first acquisition nodes is determined according to the following formula (1):

[0098] N = cell[M * (Resource occupancy index of M first acquisition nodes in the second time period / Expected resource occupancy value of M first acquisition nodes)] (1)

[0099] Here, cell is a cell array that integrates related data of different types into a single variable, making it simple and convenient to reference and process large amounts of related data.

[0100] This application does not restrict the execution entity for node scaling in its embodiments.

[0101] In some embodiments, the configuration management node scales up and down the nodes based on the resource usage indicators of the M first collection nodes in the second time period to obtain N first collection nodes.

[0102] In some embodiments, such as Figure 4 and Figure 5 As shown, the data acquisition platform also includes an AutoScalar module, which automatically sets the number of acquisition nodes running on the platform (horizontal autoscaling). Specifically, the AutoScalar module specifies Deployment and ReplicaSet, where ReplicaSet controls the number of nodes, and Deployment creates the actual nodes. Simultaneously, the AutoScalar module creates an autoscaler with predefined resources. Using the autoscaler, the number of acquisition nodes deployed on the data acquisition platform can be automatically increased or decreased as needed.

[0103] In other words, in this embodiment of the application, the AutoScalar module scales the nodes based on the resource usage indicators of the M first collection nodes in the second time period to obtain N first collection nodes.

[0104] For example, such as Figure 4 As shown, the AutoScalar module periodically, for example, every 15 seconds, pulls resource usage metrics for M first-level data collection nodes within a second time period from the metric server node. Based on these metrics, it scales the nodes up and down, increasing the number of first-level data collection nodes from M to N. Thus, in the next time period (i.e., within the first time period), the configuration management node can obtain node information for the N first-level data collection nodes.

[0105] In this embodiment of the application, after the configuration management node obtains the node information of N first collection nodes in the first time period according to the above method, it performs the following step S202.

[0106] S202. Configure the management node to determine the target data collection task to be issued.

[0107] In this embodiment, the configuration management node monitors the node information of the acquisition nodes in the data acquisition platform in real time. When there is a new target data acquisition task, the configuration management node can determine the target acquisition node from multiple acquisition nodes based on the node information of the acquisition nodes, and then send the target data acquisition task to the target acquisition node for execution, thereby achieving load balancing and improving the reliability and efficiency of data acquisition.

[0108] To facilitate the management of data acquisition tasks, this application embodiment maintains a list of tasks to be issued, which includes at least one task to be issued.

[0109] In some embodiments, the tasks to be sent in the current period are determined by periodically scanning the task list. Once a task is successfully sent, it is removed from the task list. If a new task becomes available, it is added to the list to await sending.

[0110] Based on the above description, the configuration management node can obtain the target data acquisition task through the steps in S202-A:

[0111] S202-A: The configuration management node scans the list of tasks to be issued to obtain the target data collection task.

[0112] For example, if the scanning order of each task in the task list is first-in-first-out, then the first task in the task list (i.e. the first task stored in the task list) can be identified as the target data acquisition task.

[0113] In some embodiments, the list of tasks to be issued may be updated. In this case, S202-A above includes the following steps S202-A1 and S202-A2:

[0114] S202-A1: The configuration management node updates the list of tasks to be issued, and obtains the updated list of tasks to be issued.

[0115] S202-A2: The configuration management node scans the updated list of tasks to be issued to obtain the target data collection tasks.

[0116] In some cases, the list of tasks to be distributed may be updated. For example, when a task is canceled or added by the cloud client, the task to be distributed is deleted or added to the list. Based on this, when determining the target data collection task, the configuration management node first updates the list of tasks to be distributed to obtain the updated list, and then scans the updated list to obtain the target data collection task.

[0117] The execution methods of S202-A1 mentioned above include, but are not limited to, the following situations:

[0118] Scenario 1: If the configuration management node receives a new data collection task from the cloud client within the first time period, it will add the new data collection task to the list of tasks to be issued, thus obtaining an updated list of tasks to be issued.

[0119] Scenario 2: Configure the management node to update the list of tasks to be issued using the following methods (S202-A11 to S202-A13):

[0120] S202-A11: Configure the management node to obtain node information of M first collection nodes in the second time period, where M is a positive integer and the second time period is the time period preceding the first time period.

[0121] S202-A12. If N is less than M, the configuration management node will determine the first collection node other than the N first collection nodes among the M first collection nodes as the deregistered node, and add the data collection tasks on the deregistered node to the list of tasks to be issued, thus obtaining the updated list of tasks to be issued.

[0122] S202-A12. If N is greater than M, the configuration management node will add at least one data acquisition task from the first acquisition node with the resource consumption index exceeding the limit among the M first acquisition nodes to the list of tasks to be distributed, thus obtaining the updated list of tasks to be distributed.

[0123] In scenario 2, the data acquisition platform scales up and down the number of M first acquisition nodes based on their node information within the second time period, increasing the number of first acquisition nodes from M to N. The configuration management node obtains the node information of the N first acquisition nodes within the first time period. It then compares the M first acquisition nodes in the second time period with the N first acquisition nodes in the first time period to determine whether to add or remove first acquisition nodes. For example, if N is greater than M, it indicates that a new first acquisition node has been added, and its node status is marked as idle. If N is less than M, it indicates that a first acquisition node has been removed, and the data acquisition tasks on the removed first acquisition node are migrated.

[0124] In one example of Case 2, if M is less than N, then the first collection node other than the N first collection nodes among the M first collection nodes is determined as the deregistered node, and the data collection task on the deregistered node is determined as the collection task to be issued.

[0125] In this example, if N is less than M after node scaling, it means that the number of first acquisition nodes on the data acquisition platform was reduced during the first time period, that is, the number of first acquisition nodes was reduced from M to N, and then MN first acquisition nodes were deregistered. In this way, the configuration management node will identify the data acquisition tasks on the deregistered nodes as acquisition tasks to be issued and add them to the list of tasks to be issued for reallocation.

[0126] In another example of scenario 2, if N is greater than M, it means that at least one of the M first acquisition nodes has too many acquisition tasks, causing its resource consumption index to exceed the limit. In this case, to ensure the reliable execution of data acquisition tasks, it is necessary to increase the number of first acquisition nodes on the data acquisition platform from M to N, and identify at least one data acquisition task on the first acquisition node with the excessive resource consumption index among the M first acquisition nodes as an acquisition task to be issued, and add it to the list of tasks to be issued for reallocation.

[0127] Case 3: Node information includes node status information. In this case, if the node status information reported by the fourth acquisition node among the N first acquisition nodes is not received within the first preset time period, the data acquisition task on the fourth acquisition node is added to the list of tasks to be sent, and the updated list of tasks to be sent is obtained.

[0128] In scenario 3, the data acquisition nodes report node status information, such as node heartbeats, to the configuration management node in real time. If the configuration management node does not receive node status information reported by the fourth data acquisition node among the N first data acquisition nodes within the first preset time period, it determines that the fourth data acquisition node is offline, and the task is removed. The data acquisition task on the fourth data acquisition node is identified as a data acquisition task to be issued and added to the list of tasks to be issued.

[0129] For example, suppose a data collection node reports its status information every 15 seconds. If the configuration management node does not receive the node status information reported by the fourth data collection node within 3*15 seconds, it determines that the fourth data collection node is offline and adds the data collection tasks on the fourth data collection node to the list of tasks to be distributed for reallocation.

[0130] Scenario 4: Node information includes node task status information. In this case, if no task status information and node status information are received from the fifth acquisition node among the N first acquisition nodes within the second preset time period, the data acquisition task on the fifth acquisition node is added to the list of tasks to be sent, resulting in an updated list of tasks to be sent. If no task status information is received from the fifth acquisition node among the N first acquisition nodes within the second preset time period, and node status information is received from the fifth acquisition node, then wait for a third preset time period. If no task status information is received from the fifth acquisition node within the third preset time period, the data acquisition task on the fifth acquisition node is added to the list of tasks to be sent, resulting in an updated list of tasks to be sent.

[0131] In scenario 4, the first acquisition node reports task status information to the configuration management node in real time. If the configuration management node does not receive task status information and node status information reported by the fifth acquisition node among the N first acquisition nodes within the second preset time period, it determines that the fifth acquisition node is offline, and the task is removed. The data acquisition task on the fifth acquisition node is determined as a pending acquisition task and added to the pending task list.

[0132] If the configuration management node does not receive the task status information reported by the fifth collection node among the N first collection nodes within the second preset time period, but receives the node status information reported by the fifth collection node, then the configuration management node will wait for the third preset time period. If it still does not receive the task status information reported by the fifth collection node within the third preset time period, then it will determine that the fifth collection node is offline, and then the data collection task on the fifth collection node will be determined as a collection task to be issued and added to the list of tasks to be issued.

[0133] For example, suppose the first data acquisition node reports task status information to the configuration management node every 15 seconds. If the configuration management node does not receive task status and node status information from the fifth data acquisition node within 3*15 seconds, it determines that the fifth data acquisition node is offline and adds the acquisition tasks on the fifth data acquisition node to the list of tasks to be distributed for reallocation. If the configuration management node does not receive task status information from the fifth data acquisition node within 3*15 seconds, but receives node status information from the fifth data acquisition node, it waits another 3*15 seconds. If it still does not receive task status information from the fifth data acquisition node within 3*15 seconds, it determines that the fifth data acquisition node is offline and adds the data acquisition tasks on the fifth data acquisition node to the list of tasks to be distributed.

[0134] As described above, in this embodiment, after the first data acquisition node is developed, the number and scaling of nodes are implemented using cloud-native methods, thus eliminating the need for node monitoring. Node monitoring is performed by the configuration management node, which monitors the node status and task status of the data acquisition nodes in real time. When a node anomaly or fault is detected, or a task anomaly is detected, task migration and reallocation are performed to ensure the reliability of the data acquisition tasks.

[0135] After determining the target data collection task to be issued based on the above steps, execute the following step S203.

[0136] S203. The configuration management node determines the target acquisition node based on the node information of N first acquisition nodes in the first time period.

[0137] The embodiments of this application do not limit the specific implementation process of S203 described above.

[0138] In some embodiments, any one of the N first acquisition nodes is determined as the target acquisition node.

[0139] In some embodiments, if N is greater than M, the first acquisition node among the N first acquisition nodes that is in an idle state, i.e. the first acquisition node newly added within the first time period, is determined as the target acquisition node.

[0140] In some embodiments, if the node information includes node status information and resource occupancy indicators, the configuration management node obtains R first collection nodes whose node status information is online based on the node status information and resource occupancy indicators of N first collection nodes in the first time period. From these R online first collection nodes, S first collection nodes whose resource occupancy indicators have not exceeded the limit are selected, and then the target collection node is selected from the S first collection nodes whose resource occupancy indicators have not exceeded the limit.

[0141] For example, the configuration management node can determine any one of the S first acquisition nodes as the target acquisition node.

[0142] For example, the configuration management node determines the first collection node with the smallest resource consumption index among the S first collection nodes as the first collection node.

[0143] In some embodiments, the node information includes resource occupancy indicators. In this case, S203 includes the following steps S203-A and S203-B:

[0144] S203-A: The configuration management node sorts the N first acquisition nodes according to the resource consumption index of the N first acquisition nodes in the order of smallest to largest, and obtains the sorted N first acquisition nodes.

[0145] S203-B: The configuration management node determines the target acquisition node from the sorted N first acquisition nodes.

[0146] In this embodiment, the N first collection nodes are sorted in order of increasing resource consumption index to obtain the sorted N first collection nodes. The first collection node with the smallest resource consumption index is ranked first and can be assigned tasks first.

[0147] This application does not limit the specific method for determining the target acquisition node from the sorted N first acquisition nodes.

[0148] In some embodiments, the first acquisition node ranked first among the N sorted first acquisition nodes is determined as the target acquisition node.

[0149] In some embodiments, the node information further includes node status information, in which case S203-B includes the following steps S203-B1 to S203-B5:

[0150] S203-B1: Configure the management node to perform a hash operation on the identifier of the target data acquisition task to obtain the first value.

[0151] S203-B2, The configuration management node obtains P first collection nodes from the sorted N first collection nodes.

[0152] It should be noted that there is no specific order in which S203-B2 and S203-B1 are executed. That is, S203-B1 can be executed before S203-B2, after S203-B1, or simultaneously with S203-B1.

[0153] Among them, the communication protocols supported by the P first acquisition nodes are the same as the communication protocols corresponding to the target data acquisition task, and P is a positive integer greater than 1.

[0154] In the N first acquisition nodes of this application embodiment, at least two first acquisition nodes support different communication protocols. That is to say, the N first acquisition nodes of this application embodiment can realize data acquisition from the device under at least two communication protocols.

[0155] For example, such as Figure 6 As shown, among the N first acquisition nodes, acquisition node 1 supports OPC and Modbus communication protocols, and the programming language of acquisition node 1 is Go. Acquisition node 2 among the N first acquisition nodes supports mc and S7 communication protocols, and the programming language of acquisition node 2 is JAVA.

[0156] In other words, in this embodiment of the application, the first collection nodes in different languages ​​do not need to pay attention to resource usage index information, but only need to focus on task issuance, task generation, and task execution. At the same time, heartbeat interfaces and task status reporting interfaces are developed. The interfaces realize scheduling in different languages. Under this standard system, the first collection node only needs to focus on its own business implementation. Through standard abstraction capabilities, cross-language and cross-platform scheduling support can be achieved.

[0157] Specifically, assuming the target acquisition task is to instruct data acquisition from industrial equipment 1, where industrial equipment 1 supports communication protocol 1, then when selecting the target acquisition node corresponding to the target acquisition task, it is necessary to select from the first acquisition nodes that support communication protocol 1. For example, firstly, from the sorted N first acquisition nodes, P first acquisition nodes that support communication protocol 1 are obtained. These P first acquisition nodes are sorted in ascending order according to their resource consumption indicators.

[0158] S203-B3: The configuration management node obtains the node status information of Q first collection nodes that are online from P first collection nodes.

[0159] S203-B4: The configuration management node uses the first value to take the remainder of Q to obtain the second value.

[0160] S203-B5. Based on the second value, determine the target acquisition node from the Q first acquisition nodes.

[0161] Based on the above steps, the configuration management node performs a hash operation on the identifier of the target data collection task to obtain a first value. Then, from the P first collection nodes, it selects Q online first collection nodes. Next, it takes the remainder of Q using the first value to obtain a second value. Finally, based on the second value, it determines the target collection node from the Q first collection nodes.

[0162] For example, the configuration management node selects the second acquisition node with the second node number from the Q first acquisition nodes and identifies the second acquisition node as the target acquisition node.

[0163] In some embodiments, the resource occupancy of the second acquisition node may exceed the limit. Therefore, after the configuration management node obtains the second acquisition node with the second node number from the Q first acquisition nodes, it determines whether the resource occupancy of the second acquisition node exceeds the limit. If the resource occupancy of the second acquisition node does not exceed the limit, the second acquisition node is determined as the target acquisition node.

[0164] In some embodiments, if the resource usage index of the second collection node exceeds the limit, the configuration management node performs a hash operation on the second value to obtain a third value; uses the third value to take the remainder of Q to obtain a fourth value; obtains the third collection node with the fourth value from the Q first collection nodes; and determines whether the resource usage index of the third collection node exceeds the limit. If the resource usage index of the third collection node does not exceed the limit, then the third collection node is determined as the target collection node.

[0165] In some embodiments, if the resource usage index of the third acquisition node exceeds the limit, the configuration management node will determine the first acquisition node with the smallest resource usage index among the Q first acquisition nodes as the target acquisition node.

[0166] After determining the target acquisition node according to the above steps, the configuration management node executes the following step S204.

[0167] S204. The configuration management node sends the target data acquisition task to the target acquisition node so that the target acquisition node can perform data acquisition according to the target data acquisition task.

[0168] After determining the target acquisition task and the target acquisition node according to the above steps, the target acquisition task is sent to the target acquisition node so that the target acquisition node can acquire data from the corresponding device according to the target acquisition task.

[0169] After receiving the target acquisition task, the target acquisition node collects data from the corresponding device according to the target acquisition task and reports the collected data to the cloud client.

[0170] In some embodiments, after the configuration management node sends the target data acquisition task to the target acquisition node, if the task sending fails and the target acquisition node is abnormal, the target acquisition node is removed from the N first acquisition nodes to obtain N-1 first acquisition nodes; from the N-1 first acquisition nodes, a new target acquisition node is determined and the target data acquisition task is sent to the new target acquisition node.

[0171] In this embodiment, after the configuration management node sends the target data acquisition task to the target acquisition node, the target acquisition node sends a response message to the configuration management node, which indicates that the target acquisition task has been received. If the configuration management node does not receive the response message, it means that the target data acquisition task has failed to be sent.

[0172] At this point, it is necessary to determine whether the target acquisition node is functioning correctly. If no node status information is received from the target acquisition node within a preset time period, the target acquisition node is considered abnormal. If the target acquisition node is found to be abnormal, the status of the target acquisition task is marked as failed or pending, and a new target acquisition node is determined for re-acquisition. Specifically, the current target acquisition node is removed from the N first acquisition nodes, resulting in N-1 first acquisition nodes. From these N-1 first acquisition nodes, a new target acquisition node is determined, and the target data acquisition task is assigned to the new target acquisition node. The process of selecting a new target acquisition node is the same as the target acquisition node determination process described above, and will not be repeated here.

[0173] In some embodiments, after the configuration management node sends the target data acquisition task to the target acquisition node, if it does not receive the task status information and node status information sent by the target acquisition node within the fourth preset time period, the target acquisition node is removed from the N first acquisition nodes to obtain N-1 first acquisition nodes; from the N-1 first acquisition nodes, a new target acquisition node is determined and the target data acquisition task is sent to the new target acquisition node.

[0174] In some embodiments, if no task status information is received from the target acquisition node within the fourth preset time period, and the node status information reported by the target acquisition node is received, then wait for the fifth preset time period. If no task status information is received within the fifth preset time period, then a new target acquisition node is determined from N-1 first acquisition nodes, and the target data acquisition task is sent to the new target acquisition node.

[0175] For example, if the configuration management node does not receive task status information and node status information from the target acquisition node within 30 seconds after issuing the target data acquisition task to the target acquisition node, it indicates that the target acquisition node is abnormal and needs to be re-identified. If the configuration management node does not receive task status information from the target acquisition node within 30 seconds, but receives node status information from the target acquisition node, it waits another 30 seconds. If it still does not receive task status information within these 30 seconds, it re-identifies a new target acquisition node from the N-1 first acquisition nodes and issues the target data acquisition task to the new target acquisition node.

[0176] In this embodiment, the configuration management node monitors the node status and task status of the data acquisition node in real time. When a node or task is abnormal, the data acquisition task is reassigned in a timely manner, ensuring the reliability of the data acquisition task execution.

[0177] The data acquisition method provided in this application involves configuring a management node to acquire node information of N first acquisition nodes within a first time period, where N is a positive integer greater than 1; determining the target data acquisition task to be issued; determining the target acquisition node based on the node information of the N first acquisition nodes within the first time period; and issuing the target data acquisition task to the target acquisition node so that the target acquisition node can perform data acquisition according to the target data acquisition task. In other words, this application embodiment configures the management node to monitor the node information of the first acquisition nodes in real time, such as node status, task status, and resource usage indicators. Through the node information of the first acquisition nodes, the management node dynamically controls the allocation of acquisition tasks, achieving task balance, increasing the throughput and processing capacity of data acquisition, and improving the stability and reliability of data acquisition.

[0178] Figure 7 This is a schematic diagram of the interaction flow of a data acquisition method provided in an embodiment of this application, as shown below. Figure 7 As shown, it includes:

[0179] S301. During the second time period, M first acquisition nodes send node status information to the configuration management node.

[0180] In this embodiment of the application, once the first data collection node comes online, it periodically sends node status information to the configuration management node in order to maintain contact with the configuration management node.

[0181] For example, the M first collection nodes report their respective node status information every 15 seconds.

[0182] For example, the first data acquisition node reports node status information in the form of a heartbeat.

[0183] S302. After receiving the node status information, the configuration management node sends a response to the first acquisition node.

[0184] After receiving the node status information sent by the first data acquisition node, the configuration management node updates the node list. For example, if it is a new first data acquisition node, it registers the node.

[0185] S303 and cAdvisor retrieve the resource usage metrics of the M first data collection nodes.

[0186] The resource usage metrics include the CPU and memory usage of the server where the first data acquisition node is located.

[0187] S304, M first collection nodes send resource usage indicators to cAdvisor.

[0188] For example, cAdvisor sends first information to M first collection nodes, which is used to request the resource usage indicators of the M first collection nodes.

[0189] After receiving the first information, the M first collection nodes send their respective resource usage indicators to cAdvisor.

[0190] In some embodiments, cAdvisor retrieves the resource usage metrics of the M first collection nodes every 5 seconds.

[0191] S305, the metric server node pulls the resource usage metrics of the M first collection nodes from the cAdvisor module.

[0192] For example, the metric server node pulls the resource usage metrics of the M first collection nodes from the cAdvisor module every 30 seconds.

[0193] The S306 and cAdvisor modules send the resource usage metrics of the M first data collection nodes to the metric server node.

[0194] The S307 AutoScalar module pulls resource usage metrics from the M first data collection nodes from the metric server node.

[0195] For example, the AutoScalar module pulls the resource usage metrics of the first collection nodes from the metric server node every 15 seconds.

[0196] The S308 metric server node sends the resource usage metrics of the M first data collection nodes to the AutoScalar module.

[0197] The S309 and AutoScalar modules scale the nodes based on the resource usage metrics of the M first acquisition nodes to obtain N first acquisition nodes.

[0198] S310, N first acquisition nodes report node status information to the configuration management node.

[0199] S311. After receiving the node status information, the configuration management node sends a response to the first acquisition node.

[0200] For example, N first collection nodes report node status information to the configuration management node every 15 seconds.

[0201] S312. The configuration management node updates the node status information based on the node status information of the N first collection nodes.

[0202] For example, the configuration management node updates the node list, maintains the node number, and maintains the node status based on the node status information of the N first collection nodes. Optionally, the node status includes active, running, and idle.

[0203] For example, N first data acquisition nodes are compared with M first data acquisition nodes. If N is greater than M, the newly added node is marked as idle. If N is less than M, the MN first data acquisition nodes other than the N first data acquisition nodes are identified as deregistered nodes, and the data acquisition tasks on the deregistered nodes are added to the list of tasks to be issued.

[0204] S313, N first acquisition nodes report task status information to the configuration management node.

[0205] S314. After receiving the task status information, the configuration management node sends a response to the first acquisition node.

[0206] For example, N first collection nodes report task status information to the configuration management node every 15 seconds.

[0207] S315. The configuration management node updates the task status information based on the task status information of the N first collection nodes.

[0208] For example, the configuration management node updates the task status based on the task status information of N first collection nodes.

[0209] For example, if the node status information of the first acquisition node is not updated within 3*15 seconds and the first acquisition node is abnormal, the data acquisition task on the first acquisition node will be removed and added to the list of tasks to be issued.

[0210] For example, if the node status information of the first collection node is not updated within 3*15 seconds, and the first collection node is normal, then wait another 3*15 seconds. If no task status information is received within 3*15 seconds, then remove the data collection task on the first collection node and add it to the list of tasks to be sent.

[0211] S316. Configure the management node to scan the list of tasks to be issued and determine the target data collection tasks to be issued.

[0212] S317. Configure the management node to pull the resource usage metrics of N first collection nodes within the first time period from the metric server node.

[0213] S318, the metric server node sends the resource usage metrics of N first collection nodes within the first time period to the configuration management node.

[0214] For example, the configuration management node pulls resource usage metrics from the metric server node every minute.

[0215] S319. The configuration management node sorts the N first acquisition nodes according to the resource usage index of the N first acquisition nodes in ascending order, and obtains the sorted N first acquisition nodes.

[0216] S320: The configuration management node determines the target acquisition node from the sorted N first acquisition nodes.

[0217] For example, from the sorted N first acquisition nodes, P first acquisition nodes are obtained, and the communication protocol supported by the P first acquisition nodes is the same as the communication protocol corresponding to the target data acquisition task, where P is a positive integer greater than 1; the identifier of the target data acquisition task is hashed to obtain a first value; from the P first acquisition nodes, Q first acquisition nodes whose node status information is online are obtained, where Q is a positive integer greater than 1; the first value is moduloed by Q to obtain a second value, and the target acquisition node is determined from the Q first acquisition nodes based on the second value.

[0218] In one possible implementation, determining the target acquisition node from the Q first acquisition nodes based on the second value includes: obtaining the second acquisition node with the second value as its node number from the Q first acquisition nodes; if the resource occupancy index of the second acquisition node does not exceed the limit, then the second acquisition node is determined as the target acquisition node.

[0219] In some embodiments, if the resource occupancy index of the second collection node exceeds the limit, a hash operation is performed on the second value to obtain a third value; the third value is moduloed by Q to obtain a fourth value; the third collection node with the fourth value is obtained from the Q first collection nodes; if the resource occupancy index of the third collection node does not exceed the limit, the third collection node is determined as the target collection node.

[0220] In some embodiments, if the resource occupancy index of the third acquisition node exceeds the limit, the first acquisition node with the smallest resource occupancy index among the Q first acquisition nodes is determined as the target acquisition node.

[0221] The specific implementation process of S320 described above can be referred to the description of the above embodiments, and will not be repeated here.

[0222] S321. The configuration management node sends the target data acquisition task to the target acquisition node so that the target acquisition node can perform data acquisition according to the target data acquisition task.

[0223] S322, The target acquisition node sends the acquired device data to the cloud client.

[0224] In some embodiments, after the configuration management node sends the target data acquisition task to the target acquisition node, if the task sending fails and the target acquisition node is abnormal, the target acquisition node is removed from the N first acquisition nodes to obtain N-1 first acquisition nodes; from the N-1 first acquisition nodes, a new target acquisition node is determined and the target data acquisition task is sent to the new target acquisition node.

[0225] In some embodiments, after the configuration management node sends the target data acquisition task to the target acquisition node, if it does not receive the task status information and node status information sent by the target acquisition node within a fourth preset time period, the target acquisition node is removed from the N first acquisition nodes to obtain N-1 first acquisition nodes; from the N-1 first acquisition nodes, a new target acquisition node is determined, and the target data acquisition task is sent to the new target acquisition node.

[0226] In some embodiments, if the configuration management node does not receive the task status information sent by the target acquisition node within the fourth preset time period, but receives the node status information reported by the target acquisition node, it waits for the fifth preset time period. If it still does not receive the task status information within the fifth preset time period, it re-determines a new target acquisition node from the N-1 first acquisition nodes and sends the target data acquisition task to the new target acquisition node.

[0227] It should be noted that the specific retrieval time, reporting time, or waiting time mentioned above are all examples, and the embodiments of this application include, but are not limited to, these specific time data.

[0228] In some embodiments, the data acquisition platform also includes a database node Redis, in which node status information, task status information, resource usage indicators, task information, etc. can be stored, and the configuration management node can read and write the data in Redis.

[0229] The data acquisition method provided in this application embodiment completes acquisition management by the configuration management node and acquisition tasks by the acquisition nodes, thereby decoupling acquisition management from acquisition tasks. This eliminates the need for deep language binding; the entire task management, distribution, and status maintenance are completed by the configuration management node. Acquisition nodes only need to focus on their own acquisition tasks and status interfaces, enabling cross-language data acquisition. Furthermore, in this application embodiment, the configuration management node monitors the node status, task status, and resource usage indicators of the acquisition nodes in real time. Based on the node information, it distributes data acquisition tasks to achieve load balancing. This enables cloud-native acquisition task allocation and scheduling, abnormal scheduling, and overload rebalancing, improving the reliability and efficiency of data acquisition.

[0230] Furthermore, in this embodiment, the nodes can be automatically scaled up or down based on their resource usage indicators. This reduces the number of data collection nodes while ensuring sufficient nodes are available for data collection, thus avoiding resource waste. Simultaneously, by dynamically adjusting the number of data collection nodes, a balanced distribution of data collection tasks is ensured.

[0231] As can be seen from the above, the embodiments of this application can greatly improve the performance and transmission rate of data acquisition in industrial systems through automatic task scheduling and automatic operation and maintenance, reduce enterprise operation and maintenance, and promote the successful digital transformation of enterprises.

[0232] It should be understood that Figures 2 to 7 This is merely an example of what is being done and should not be construed as limiting the scope of this application.

[0233] The preferred embodiments of this application have been described in detail above with reference to the accompanying drawings. However, this application is not limited to the specific details of the above embodiments. Within the scope of the technical concept of this application, various simple modifications can be made to the technical solutions of this application, and these simple modifications all fall within the protection scope of this application. For example, the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. To avoid unnecessary repetition, this application will not describe the various possible combinations separately. Furthermore, various different embodiments of this application can also be arbitrarily combined, as long as they do not violate the spirit of this application, they should also be considered as the content disclosed in this application.

[0234] The above text combined Figures 2 to 7 The method embodiments of this application have been described in detail below, and the device embodiments of this application are described in detail below.

[0235] Figure 8 This is a schematic diagram of a data acquisition device provided in one embodiment of this application. The data acquisition device 10 is applied to a configuration management node, which is a server or part of a server.

[0236] like Figure 8 As shown, the data acquisition device 10 includes:

[0237] Acquisition unit 11 is used to acquire node information of N first acquisition nodes within a first time period, where N is a positive integer greater than 1;

[0238] Task determination unit 12 is used to determine the target data acquisition task to be issued;

[0239] The node determination unit 13 is used to determine the target acquisition node based on the node information of the N first acquisition nodes in the first time period;

[0240] The sending unit 14 is used to send the target data acquisition task to the target acquisition node so that the target acquisition node can perform data acquisition according to the target data acquisition task.

[0241] In some embodiments, the node information includes resource occupancy indicators. The node determination unit 13 is specifically used to sort the N first acquisition nodes according to the resource occupancy indicators of the N first acquisition nodes in ascending order to obtain sorted N first acquisition nodes; and to determine the target acquisition node from the sorted N first acquisition nodes.

[0242] In some embodiments, the node information further includes node status information. The node determination unit 13 is specifically used to perform a hash operation on the identifier of the target data acquisition task to obtain a first value; from the sorted N first acquisition nodes, obtain P first acquisition nodes, wherein the communication protocol supported by the P first acquisition nodes is the same as the communication protocol corresponding to the target data acquisition task, and P is a positive integer greater than 1; from the P first acquisition nodes, obtain Q first acquisition nodes whose node status information is online, and Q is a positive integer greater than 1; use the first value to take the remainder of Q to obtain a second value; and determine the target acquisition node from the Q first acquisition nodes according to the second value.

[0243] In some embodiments, the node determination unit 13 is specifically used to obtain a second acquisition node with the node number of the second value from the Q first acquisition nodes; if the resource occupancy index of the second acquisition node does not exceed the standard, then the second acquisition node is determined as the target acquisition node.

[0244] In some embodiments, the node determination unit 13 is further configured to: if the resource occupancy index of the second collection node exceeds the standard, perform a hash operation on the second value to obtain a third value; use the third value to take the remainder of Q to obtain a fourth value; obtain a third collection node with the sequence number of the fourth value from the Q first collection nodes; and if the resource occupancy index of the third collection node does not exceed the standard, determine the third collection node as the target collection node.

[0245] In some embodiments, the node determination unit 13 is further configured to determine the first acquisition node with the smallest resource occupancy index among the Q first acquisition nodes as the target acquisition node if the resource occupancy index of the third acquisition node exceeds the standard.

[0246] In some embodiments, the N first acquisition nodes are obtained by scaling up and down the nodes based on the resource occupancy indicators of M first acquisition nodes in a second time period, where M is a positive integer and the second time period is the time period preceding the first time period.

[0247] In some embodiments, the number of the N first acquisition nodes is determined based on the product of the number of the M first acquisition nodes and a first ratio, wherein the first ratio is the ratio of the resource occupancy index of the M first acquisition nodes in the second time period to the expected resource occupancy value of the M first acquisition nodes.

[0248] In some embodiments, the acquisition unit 11 is specifically configured to: if the node information includes a resource occupancy indicator, acquire the resource occupancy indicator of the N first acquisition nodes within a first time period from the first intermediate node; if the node information includes at least one of the node status and task status of the first acquisition node, receive at least one of the node status and task status of the first acquisition node reported by the first acquisition node.

[0249] In some embodiments, the task determination unit 12 is specifically used to scan the list of tasks to be issued to obtain the target data acquisition task.

[0250] In some embodiments, the task determination unit 12 is specifically used to update the list of tasks to be issued to obtain an updated list of tasks to be issued; and to scan the updated list of tasks to be issued to obtain the target data acquisition task.

[0251] In some embodiments, the task determination unit 12 is specifically used to add the new collection task to the list of tasks to be issued if a new collection task is received from the cloud client within the first time period, thereby obtaining the updated list of tasks to be issued.

[0252] In some embodiments, the task determination unit 12 is specifically used to obtain node information of M first collection nodes within a second time period, where M is a positive integer and the second time period is the time period preceding the first time period; if N is less than M, then the first collection nodes other than the N first collection nodes among the M first collection nodes are determined as deregistered nodes, and the data collection tasks on the deregistered nodes are added to the task list to be issued, thus obtaining the updated task list to be issued; if N is greater than M, then at least one data collection task on the first collection node among the M first collection nodes whose resource occupancy index exceeds the limit is added to the task list to be issued, thus obtaining the updated task list to be issued.

[0253] In some embodiments, the node information includes node status information. The task determination unit 12 is specifically used to add the data acquisition task on the fourth acquisition node to the list of tasks to be issued if the node status information reported by the fourth acquisition node among the N first acquisition nodes is not received within a first preset time period, so as to obtain the updated list of tasks to be issued.

[0254] In some embodiments, the node information includes the node's task status information. The task determination unit 12 is specifically used to add the data acquisition task on the fifth acquisition node to the list of tasks to be sent, and obtain the updated list of tasks to be sent, if the task status information and node status information reported by the fifth acquisition node among the N first acquisition nodes are not received within a second preset time period; if the task status information reported by the fifth acquisition node among the N first acquisition nodes is not received within the second preset time period, and the node status information reported by the fifth acquisition node is received, then a third preset time period is waited for, and if the task status information reported by the fifth acquisition node is still not received within the third preset time period, then the data acquisition task on the fifth acquisition node is added to the list of tasks to be sent, and obtain the updated list of tasks to be sent.

[0255] In some embodiments, the node determination unit 13 is further configured to, if the task issuance fails and the target acquisition node is abnormal, remove the target acquisition node from the N first acquisition nodes to obtain N-1 first acquisition nodes; re-determine a new target acquisition node from the N-1 first acquisition nodes, and issue the target data acquisition task to the new target acquisition node.

[0256] In some embodiments, the node determination unit 13 is further configured to, if it does not receive task status information and node status information sent by the target acquisition node within a fourth preset time period, remove the target acquisition node from the N first acquisition nodes to obtain N-1 first acquisition nodes; re-determine a new target acquisition node from the N-1 first acquisition nodes, and send the target data acquisition task to the new target acquisition node.

[0257] In some embodiments, the node determination unit 13 is further configured to wait for a fifth preset time period if it does not receive the task status information sent by the target acquisition node within the fourth preset time period, and receives the node status information reported by the target acquisition node. If it still does not receive the task status information within the fifth preset time period, it will re-determine a new target acquisition node from the N-1 first acquisition nodes and send the target data acquisition task to the new target acquisition node.

[0258] It should be understood that the device embodiments and method embodiments can correspond to each other, and similar descriptions can be found in the method embodiments. To avoid repetition, further details are omitted here. Specifically, Figure 8 The apparatus 10 shown can perform the above-described method embodiments, and the foregoing and other operations and / or functions of each module in the apparatus 10 are for implementing the above-described method embodiments, which will not be described in detail here for the sake of brevity.

[0259] The apparatus of this application embodiment has been described above from the perspective of functional modules in conjunction with the accompanying drawings. It should be understood that this functional module can be implemented in hardware, in software instructions, or in a combination of hardware and software modules. Specifically, the steps of the method embodiments in this application can be completed by integrated logic circuits in the processor's hardware and / or by software instructions. The steps of the method disclosed in this application embodiment can be directly embodied as being executed by a hardware decoding processor, or by a combination of hardware and software modules in the decoding processor. Optionally, the software module can reside in a mature storage medium in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, etc. This storage medium is located in memory, and the processor reads information from the memory and, in conjunction with its hardware, completes the steps in the above method embodiments.

[0260] Figure 9 This is a schematic block diagram of an electronic device provided in an embodiment of this application. The electronic device can be the server described above.

[0261] like Figure 9 As shown, the electronic device 40 may include:

[0262] Memory 41 and memory 42 are provided. Memory 41 is used to store computer programs and to transfer the program code to memory 42. In other words, memory 42 can call and run computer programs from memory 41 to implement the methods in the embodiments of this application.

[0263] For example, the memory 42 can be used to execute the above-described method embodiments according to instructions in the computer program.

[0264] In some embodiments of this application, the memory 42 may include, but is not limited to:

[0265] General-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.

[0266] In some embodiments of this application, the memory 41 includes, but is not limited to:

[0267] Volatile memory and / or non-volatile memory. Non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDR SDRAM), Enhanced Synchronous DRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), and Direct Rambus RAM (DR RAM).

[0268] In some embodiments of this application, the computer program may be divided into one or more modules, which are stored in the memory 41 and executed by the memory 42 to perform the method provided in this application. The one or more modules may be a series of computer program instruction segments capable of performing specific functions, which describe the execution process of the computer program in the video production device.

[0269] like Figure 9 As shown, the electronic device 40 may further include:

[0270] Transceiver 40, transceiver 43 can be connected to memory 42 or memory 41.

[0271] The memory 42 can control the transceiver 43 to communicate with other devices; specifically, it can send information or data to other devices or receive information or data sent by other devices. The transceiver 43 may include a transmitter and a receiver. The transceiver 43 may further include antennas, and the number of antennas can be one or more.

[0272] It should be understood that the various components in the video production equipment are connected through a bus system, which includes a data bus, a power bus, a control bus, and a status signal bus.

[0273] This application also provides a computer storage medium storing a computer program thereon, which, when executed by a computer, enables the computer to perform the methods of the above-described method embodiments. Alternatively, embodiments of this application also provide a computer program product containing instructions that, when executed by a computer, cause the computer to perform the methods of the above-described method embodiments.

[0274] When implemented using software, it can be implemented entirely or partially as a computer program product. This computer program product includes one or more computer instructions. When these computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., digital video disc (DVD)), or a semiconductor medium (e.g., solid-state disk (SSD)).

[0275] Those skilled in the art will recognize that the modules and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0276] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or modules may be electrical, mechanical, or other forms.

[0277] The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical modules; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. For example, the functional modules in the various embodiments of this application may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.

[0278] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A data acquisition method, characterized in that, Applied to configuration management nodes, including: The node information of N first collection nodes within a first time period is obtained. The node information includes resource occupancy indicators, node status information, and task status information. The configuration management node obtains the resource occupancy indicators of the N first collection nodes within the first time period from a first intermediate node, and receives the node status information and task status information reported by the N first collection nodes. The N first collection nodes are obtained by scaling the nodes based on the resource occupancy indicators of M first collection nodes within a second time period. The second time period is the time period preceding the first time period. N is determined by multiplying the number of M first collection nodes by a first ratio, where the first ratio is the ratio of the resource occupancy indicators of the M first collection nodes within the second time period to the expected resource occupancy value of the M first collection nodes. N is a positive integer greater than 1, and M is a positive integer. Identify the target data collection tasks to be issued; Based on the node information of the N first acquisition nodes in the first time period, P first acquisition nodes whose supported communication protocols are the same as those corresponding to the target data acquisition task are obtained from the N first acquisition nodes, and Q first acquisition nodes whose node status information is online are obtained from the P first acquisition nodes, where P and Q are both positive integers greater than 1; A hash operation is performed on the identifier of the target data acquisition task to obtain a first value, and the first value is used to take the remainder of Q to obtain a second value; Based on the second value, the target acquisition node is determined from the Q first acquisition nodes; The target data acquisition task is sent to the target acquisition node so that the target acquisition node can perform data acquisition according to the target data acquisition task.

2. The method according to claim 1, characterized in that, The step of obtaining P first acquisition nodes from the N first acquisition nodes whose supported communication protocol is the same as the communication protocol corresponding to the target data acquisition task, based on the node information of the N first acquisition nodes within the first time period, includes: Based on the resource occupancy index of the N first acquisition nodes in ascending order, the N first acquisition nodes are sorted to obtain the sorted N first acquisition nodes. From the sorted N first acquisition nodes, obtain the P first acquisition nodes.

3. The method according to claim 1, characterized in that, The step of determining the target acquisition node from the Q first acquisition nodes based on the second value includes: From the Q first acquisition nodes, obtain the second acquisition node with the node number of the second value; If the resource usage index of the second acquisition node does not exceed the standard, then the second acquisition node is determined as the target acquisition node.

4. The method according to claim 3, characterized in that, The method further includes: If the resource usage index of the second collection node exceeds the limit, then the second value is hashed to obtain the third value; The fourth value is obtained by taking the remainder of Q using the third value. From the Q first acquisition nodes, obtain the third acquisition node with the sequence number of the fourth value; If the resource usage index of the third acquisition node does not exceed the limit, then the third acquisition node will be identified as the target acquisition node.

5. The method according to claim 4, characterized in that, The method further includes: If the resource occupancy index of the third acquisition node exceeds the limit, then the first acquisition node with the smallest resource occupancy index among the Q first acquisition nodes will be determined as the target acquisition node.

6. The method according to any one of claims 1-5, characterized in that, The acquisition of node information of N first collection nodes within a first time period includes: If the node information includes resource occupancy indicators, then the resource occupancy indicators of the N first collection nodes within the first time period are obtained from the first intermediate node. If the node information includes at least one of the node status and task status of the first acquisition node, then at least one of the node status and task status of the first acquisition node reported by the first acquisition node is received.

7. The method according to any one of claims 1-5, characterized in that, The process of determining the target data collection task to be issued includes: Scan the list of tasks to be issued to obtain the target data acquisition task.

8. The method according to claim 7, characterized in that, The process of scanning the list of tasks to be issued to obtain the target data collection task includes: Update the list of tasks to be issued to obtain an updated list of tasks to be issued. Scan the updated list of tasks to be issued to obtain the target data collection task.

9. The method according to claim 8, characterized in that, The step of updating the list of tasks to be issued to obtain an updated list of tasks to be issued includes: If a new data collection task is received from the cloud client within the first time period, the new data collection task is added to the list of tasks to be issued, thus obtaining the updated list of tasks to be issued.

10. The method according to claim 8, characterized in that, The step of updating the list of tasks to be issued to obtain an updated list of tasks to be issued includes: Obtain node information of M first collection nodes within a second time period, where M is a positive integer and the second time period is the time period preceding the first time period; If N is less than M, then the first collection node other than the N first collection nodes among the M first collection nodes is determined as a deregistered node, and the data collection task on the deregistered node is added to the list of tasks to be issued, so as to obtain the updated list of tasks to be issued. If N is greater than M, then at least one data acquisition task on the first acquisition node with the resource occupancy index exceeding the limit among the M first acquisition nodes is added to the list of tasks to be issued, thus obtaining the updated list of tasks to be issued.

11. The method according to claim 8, characterized in that, The node information includes node status information. Updating the list of tasks to be dispatched to obtain an updated list of tasks to be dispatched includes: If no node status information is received from the fourth acquisition node among the N first acquisition nodes within the first preset time period, the data acquisition task on the fourth acquisition node is added to the list of tasks to be sent, and the updated list of tasks to be sent is obtained.

12. The method according to claim 8, characterized in that, The node information includes the node's task status information. Updating the list of tasks to be dispatched to obtain an updated list of tasks to be dispatched includes: If no task status information and node status information are received from the fifth collection node among the N first collection nodes within the second preset time period, the data collection task on the fifth collection node is added to the list of tasks to be sent, and the updated list of tasks to be sent is obtained. If, within the second preset time period, no task status information is received from the fifth collection node among the N first collection nodes, and node status information is received from the fifth collection node, then wait for a third preset time period. If no task status information is received from the fifth collection node within the third preset time period, then add the data collection task on the fifth collection node to the list of tasks to be sent, and obtain the updated list of tasks to be sent.

13. The method according to any one of claims 1-5, characterized in that, After the target data acquisition task is sent to the target acquisition node, the method further includes: If the task fails to be issued and the target collection node is abnormal, the target collection node is removed from the N first collection nodes to obtain N-1 first collection nodes. From the N-1 first acquisition nodes, a new target acquisition node is determined, and the target data acquisition task is sent to the new target acquisition node.

14. The method according to any one of claims 1-5, characterized in that, After the target data acquisition task is sent to the target acquisition node, the method further includes: If no task status information and node status information are received from the target acquisition node within the fourth preset time period, the target acquisition node is removed from the N first acquisition nodes to obtain N-1 first acquisition nodes. From the N-1 first acquisition nodes, a new target acquisition node is determined, and the target data acquisition task is sent to the new target acquisition node.

15. A data acquisition device, characterized in that, Applied to configuration management nodes, including: The acquisition unit is used to acquire node information of N first acquisition nodes within a first time period. The node information includes resource occupancy indicators, node status information, and task status information. The configuration management node acquires the resource occupancy indicators of the N first acquisition nodes within the first time period from a first intermediate node, and receives the node status information and task status information reported by the N first acquisition nodes. The N first acquisition nodes are obtained by scaling the nodes based on the resource occupancy indicators of M first acquisition nodes within a second time period. The second time period is the time period preceding the first time period. N is determined by multiplying the number of the M first acquisition nodes by a first ratio, where the first ratio is the ratio of the resource occupancy indicators of the M first acquisition nodes within the second time period to the expected resource occupancy value of the M first acquisition nodes. N is a positive integer greater than 1, and M is a positive integer. The task determination unit is used to determine the target data acquisition tasks to be issued. The node determination unit is configured to, based on the node information of the N first acquisition nodes within the first time period, select P first acquisition nodes whose supported communication protocols are the same as those corresponding to the target data acquisition task from the N first acquisition nodes, and select Q first acquisition nodes whose node status information is online from the P first acquisition nodes, where P and Q are both positive integers greater than 1; perform a hash operation on the identifier of the target data acquisition task to obtain a first value, and take the remainder of the first value with respect to Q to obtain a second value; and determine the target acquisition node from the Q first acquisition nodes based on the second value. The sending unit is used to send the target data acquisition task to the target acquisition node, so that the target acquisition node can perform data acquisition according to the target data acquisition task.

16. An electronic device, characterized in that, include: A processor and a memory, the memory being used to store a computer program, the processor being used to invoke and run the computer program stored in the memory to perform the method of any one of claims 1 to 14.

17. A computer-readable storage medium, characterized in that, Used to store a computer program that causes a computer to perform the method according to any one of claims 1 to 14.

Citation Information

Patent Citations

  • Large-scale distributed data collection system and method

    CN106126346A

  • Task scheduling method and device based on edge computing, equipment and storage medium

    CN113778645A