A distributed scheduling method for remote sensing data processing plug-in based on workflow engine

Through the remote sensing data processing plug-in distributed scheduling method based on the workflow engine, the logic control service and the master-slave node scheduling mechanism are used to solve the problem of low resource scheduling efficiency in the satellite data processing system and achieve parallel scheduling and high efficiency of complex data processing. Process orchestration improves the flexibility and processing capabilities of the system.

CN114691233BActive Publication Date: 2024-10-29THE 54TH RESEARCH INSTITUTE OF CHINA ELECTRONICS TECHNOLOGY GROUP CORPORATION
View PDF 12 Cites 0 Cited by

Patent Information

Application Number
CN202210256586.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-16
Publication Date
2024-10-29
Estimated Expiration
2042-03-16

AI Technical Summary

Technical Problem

When faced with a large amount of satellite image data, the existing satellite data processing system is difficult to achieve reasonable resource scheduling and automated production, resulting in low processing efficiency and inability to meet complex data processing needs.

Method used

A remote sensing data processing plug-in distributed scheduling method based on a workflow engine is adopted. Through a two-level scheduling mechanism of logical control services and master-slave nodes, combined with the idea of ​​microservices, it realizes logical scheduling management, business plug-in management and resource coordination, and supports load balancing strategies. Ensure reasonable distribution of tasks and parallel execution of processing processes.

Benefits of technology

It realizes distributed parallel scheduling capabilities for complex remote sensing data processing, improves processing efficiency and flexibility, simplifies the development process, and provides WYSIWYG process orchestration capabilities to meet the combination needs of multiple execution strategies.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114691233B_ABST
    Figure CN114691233B_ABST
Patent Text Reader

Abstract

The present invention provides a distributed scheduling method for remote sensing data processing plug-ins based on a workflow engine. Among them, the logic control service performs logical scheduling management on the execution process, arranges the entire operation process, configures the operation parameters and initiates the entire process; the master node service is responsible for business plug-in management and performs business scheduling, receives the parameter information to be executed transmitted by the logic control service, collects the execution result information and feeds it back to the logic control service, and coordinates the computing resources in the cluster at the same time, and executes the load balancing strategy; the slave node service is responsible for receiving the execution task parameters sent by the master node service, calling the relevant plug-in execution, and reporting the execution results and the use of slave node resources to the master node service. The present invention makes full use of the flexible scheduling capabilities of workflow technology, simplifies the development process, provides a WYSIWYG process scheduling capability, and realizes the distributed parallel scheduling capability of complex remote sensing data processing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of remote sensing data processing, and in particular refers to a distributed scheduling method for remote sensing data processing plug-ins based on a workflow engine. Background Art

[0002] At present, the number of satellites launched is increasing, and with it comes an increasing number of satellite image data processing plug-ins. The supporting satellite data processing system needs to adapt to the data processing and product production capabilities of various satellites. For remote sensing data from raw code streams to data product production at all levels and subsequent application needs, it is urgent to use new technical architectures, design distributed scheduling methods, complete the reasonable scheduling of various processing plug-ins in a cluster resource environment, and realize the automatic production and processing of remote sensing data.

[0003] As a computational model of the workflow, workflow technology represents the logic and rules of how the work in the workflow is organized in an appropriate model in the computer and performs calculations on them. The current mainstream workflow engines include Activiti, OSWorkflow, and JBPM. Summary of the invention

[0004] In order to solve the above problems, the present invention introduces an open source workflow engine, proposes a distributed scheduling method for remote sensing data processing plug-in based on the workflow engine, and designs a two-level scheduling mechanism of logic control service + master-slave nodes based on the workflow engine based on the microservice idea.

[0005] In order to achieve the above object, the technical solution adopted by the present invention is:

[0006] A distributed scheduling method for remote sensing data processing plug-in based on a workflow engine comprises the following steps:

[0007] (1) Logically schedule and manage the execution process through the logic control service, arrange the entire operation process, configure the operation parameters and initiate the entire process;

[0008] Manage business plug-ins and perform business scheduling through the master node service, receive the parameter information to be executed transmitted by the logic control service, collect the execution result information and feed it back to the logic control service, coordinate the computing resources in the cluster, execute the load balancing strategy, and ensure the reasonable distribution of tasks;

[0009] Receive the execution task parameters sent by the master node service through the slave node service, call and execute the relevant plug-in, and report the execution results and slave node resource usage to the master node service;

[0010] (2) For remote sensing data processing plug-ins, the plug-in related information is described according to a unified template. The master node service catalogs and stores the plug-ins, manages the plug-ins in a visual manner, and provides plug-in addition, deletion, modification, and query functions;

[0011] (3) The logic control service is based on the workflow engine, reads and processes the plug-in database table, parses the stored processing plug-in information, organizes and manages various processing plug-ins in a visual manner, and completes the process arrangement and parameter transfer setting of the processing plug-ins by dragging and dropping;

[0012] (4) After the process orchestration is completed, the process scheduling is executed according to the process input parameters. During the execution process, the logic control service determines the task plug-in to be executed next based on the process orchestration results, and passes the parameters to the master node service. The master node service generates call parameters based on the polling scheduling strategy, according to the deployment of the processing plug-in and the resource usage of each slave node, and sends them to the slave node service that needs to be scheduled;

[0013] (5) The slave node service generates specific plug-in call parameters based on the parameter information sent by the master node service and completes the call to the plug-in.

[0014] Furthermore, in step (1), the logic control service implements multiple execution strategies such as merging, splitting, parallelization, asynchronization, and parameter pairing by extending and transforming the workflow engine, and supports any combination of these execution strategies; for the same plug-in processing steps in the processing process, business instantiation is split to ensure that the same plug-in can generate multiple business instances, each instance is independent of each other and can be processed in parallel.

[0015] Furthermore, in step (2), the resource information occupied by each type of plug-in during execution is clarified according to the business plug-in type, including the number of CPU cores and memory capacity. The plug-in related information includes the plug-in name, plug-in function description, the number of CPUs occupied, the number of memory occupied, and the plug-in calling service interface.

[0016] Furthermore, in step (4), firstly, it is determined in which slave nodes the plug-in to be called is deployed. The master node service calculates the current resource usage reported by these slave node services, that is, the number of idle CPUs and memory capacity of the slave nodes, combined with the resource information occupied when the plug-in to be called is executed, and finally determines which node to call. The calculation formula is as follows:

[0017] C = Cn -Ca

[0018] M = Mn-Ma

[0019] Among them, Cn is the total number of CPU cores of the current polling slave node, Ca is the number of cores occupied when the processing plug-in to be called is executed, Mn is the total memory of the slave node, and Ma is the memory capacity occupied when the processing plug-in to be called is executed; when M and C are both greater than 0, it is determined to call the processing plug-in of the current slave node.

[0020] The advantages of the present invention compared to the prior art are:

[0021] 1. The present invention makes full use of the flexible scheduling capability of workflow technology, which not only simplifies the development process, but also provides a WYSIWYG process orchestration capability, and realizes the distributed parallel scheduling capability of complex remote sensing data processing.

[0022] 2. The present invention designs a two-level scheduling mechanism of logic control service + master-slave node based on workflow engine, realizes the control of the entire processing flow through a multi-level progressive scheduling method, and implements scheduling modules at all levels based on the microservice concept, thereby improving the flexibility of scheduling.

[0023] 3. The present invention fully combines the characteristics of the remote sensing data processing plug-in and formulates a plug-in load balancing scheduling strategy. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 Schematic diagram of the principle of the method of the present invention.

[0025] Figure 2 This is a diagram showing the relationship between master and slave node module deployment in a cluster environment according to the method of the present invention.

[0026] Figure 3 This is a flow chart for remote sensing image data from raw code stream data reception, product production to image intelligent processing. DETAILED DESCRIPTION

[0027] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0028] A distributed scheduling method for remote sensing data processing plug-in based on a workflow engine specifically includes the following steps:

[0029] (1) The logic control service performs logical scheduling management on the execution process, orchestrates the entire operation process, and is responsible for configuring the operation parameters and initiating the entire process. The master node service is responsible for business plug-in management and business scheduling, receives the parameter information to be executed transmitted by the logic control service, and collects the execution result information and feeds it back to the logic control service. At the same time, it coordinates the computing resources in the cluster, executes the load balancing strategy, and ensures the reasonable distribution of tasks. The slave node service is responsible for receiving the execution task parameters sent by the master node service, calling the relevant plug-ins for execution, and reporting the execution results and slave node resource usage to the master node service;

[0030] (2) For remote sensing data processing plug-ins, the plug-in related information is described according to a unified template. The master node service catalogs and stores the plug-ins, manages the plug-ins in a visual manner, and provides plug-in addition, deletion, modification and query functions;

[0031] (3) The logic control service is transformed based on the workflow engine, reads the processing plug-in database table, parses the information of the processing plug-ins that have been stored in the database, visually organizes and manages various processing plug-ins, and completes the process arrangement and parameter transfer setting of the processing plug-ins by dragging and dropping;

[0032] (4) After the process is orchestrated, the process is scheduled for execution according to the process input parameters. During the execution process, the logic control service determines the task plug-in to be executed next based on the process orchestration results, and passes the parameters to the master node service. The master node service generates call parameters based on the polling scheduling strategy, according to the deployment of the processing plug-in and the resource usage of each slave node, and sends them to the slave node service that needs to be scheduled;

[0033] (5) The slave node service generates specific plug-in call parameters based on the parameter information sent by the master node service and completes the call to the plug-in.

[0034] In step (1), the logic control service implements multiple execution strategies such as merging, splitting, parallelization, asynchronous, and parameter pairing by extending and transforming the workflow engine, and supports any combination of the above execution strategies. The business instantiation is split for the same plug-in processing steps in the processing process to ensure that the same plug-in can generate multiple business instances, each instance is independent of each other, and can be processed in parallel.

[0035] In step (2), the resource information occupied by each type of plug-in during execution is clarified according to the business plug-in type, including the number of CPU cores and memory capacity. The plug-in description information includes the plug-in name, plug-in function description, the number of CPUs occupied, the number of memory occupied, the plug-in calling service interface and other information.

[0036] In step (4), first determine which slave nodes the plug-in to be called is deployed on. The master node service calculates the current resource usage reported by these slave node services, that is, the number of idle CPUs and memory capacity of the slave nodes, combined with the resource information occupied when the plug-in to be called is executed, and finally determines which node to call. The calculation formula is as follows:

[0037] C = Cn -Ca

[0038] M = Mn-Ma

[0039] Among them, Cn is the total number of CPU cores of the current polling slave node, Ca is the number of cores occupied when the processing plug-in to be called is executed, Mn is the total memory of the slave node, and Ma is the memory capacity occupied when the processing plug-in to be called is executed. When M and C are both greater than 0, it is determined to call the processing plug-in of the current slave node.

[0040] Here is a more specific example:

[0041] A distributed scheduling method for remote sensing data processing plug-in based on workflow engine is proposed. This method introduces open source workflow engine, proposes a distributed scheduling method for remote sensing data processing plug-in based on workflow engine, and designs a two-level scheduling mechanism of logic control service + master-slave node based on workflow engine based on microservice idea. The overall principle framework of this method is as follows Figure 1 As shown, it mainly includes three parts: logic control service, master node service and slave node service.

[0042] Among them, the logic control service performs logical scheduling management on the execution process, orchestrates the entire operation process, and is responsible for configuring the operation parameters. The master node service is responsible for business plug-in management and business scheduling, receives the parameter information to be executed transmitted by the logic control service, and collects the execution result information and feeds it back to the logic control service. At the same time, it manages cluster resources, coordinates the computing resources in the cluster, executes load balancing strategies, and ensures the reasonable distribution of tasks. The slave node service is responsible for receiving the execution task parameters sent by the master node service, calling the relevant plug-in execution, and reporting the execution results and slave node resource usage to the master node service.

[0043] This method is applicable to calling applications in a distributed cluster environment. In a cluster environment, computing resources are divided into two types of clusters: master nodes and slave nodes. The master node cluster deploys logical control services and master node services, and the slave node cluster deploys slave node services and various business plug-ins. Both the master and slave node clusters interact with distributed shared storage. Combined with remote sensing data processing services, the module deployment relationship in the cluster environment is as follows: Figure 2 shown.

[0044] According to the characteristics of various remote sensing data processing plug-ins, the plug-in description information of fixed format is configured. The plug-in description information includes the plug-in name, plug-in function description, the number of CPUs occupied, the number of memory occupied, etc. Among them, the number of CPUs occupied and the number of memory occupied are the peak resources occupied when the plug-in is executed. When the relevant plug-in is running, it is necessary to ensure that the CPU resources and memory resources can meet the requirements of the description information.

[0045] Normally, the master node cluster requires two computing resources to form the master and standby nodes, and each computing resource is deployed with the logic control service and the master node service. The master node service completes the cataloging and storage of the plug-in according to the plug-in description information, and manages the plug-in in a visual way, providing visual plug-in addition, deletion, modification and query functions. The logic control service is based on the open source activiti workflow engine. By reading the database information, it parses the stored remote sensing data processing plug-ins, visually organizes and manages various remote sensing data processing plug-ins, forms a plug-in orchestration warehouse, designs visual parameter transfer and configuration functions, and completes the process orchestration and parameter transfer settings of the remote sensing data processing plug-in by dragging and dropping. After the process is orchestrated, the scheduling capability of the workflow engine is used to schedule the process according to the input parameters. During the execution process, the master node service determines the processing plug-in that needs to be called in the next step based on the process orchestration results, and performs polling scheduling on each slave node. According to the deployment of the processing plug-in and resource usage (number of idle CPU cores and amount of idle memory) of each slave node, the scheduling parameters are generated and sent to the slave node services that need to be scheduled. The scheduling parameter information includes key information such as the name of the plug-in to be executed, the input and output of the plug-in, the number of CPUs and the amount of memory required for the execution of the plug-in, etc.

[0046] Deploy slave node services and various business plug-ins in the slave node cluster. There is no requirement for the number of computing resources in the cluster. It is determined according to the cluster size and business processing conditions. Each slave node deploys different plug-ins according to its own resource configuration. Figure 2 As shown in the figure, decryption and decompression, formatting and splitting plug-ins are deployed from nodes 1 and 2. Such plug-ins need to occupy more memory resources and have relatively less CPU resource requirements; geometric correction, radiation correction and image orthophoto plug-ins are deployed from node 3. The processing objects of such plug-ins are mostly single-view remote sensing data, and they involve parallel processing, which requires a high number of CPU cores and relatively less memory resources; target detection, target tracking, and ground object classification plug-ins are deployed from node 4. Such plug-ins are based on deep learning algorithms and require GPU resources. Among them, the decryption and decompression plug-in completes the processing of the original code stream data, and the processing object is one track of original code stream data; the formatting and splitting plug-in completes the processing of the decrypted and decompressed data, and the processing object is several decompressed files; the processing objects of the radiation correction, geometric correction, image orthophoto, target detection, ground object classification and other plug-ins are single-view remote sensing image data.

[0047] The slave node service generates specific plug-in execution parameters locally and completes the scheduling and execution of the plug-in based on the plug-in call parameter information sent by the master node service. After the processing is completed, the execution result information is sent to the master node service to inform the master node service of the success or failure of the execution.

[0048] The original code stream data and the file data generated during the execution process are stored in the distributed shared storage, which interacts with the master-slave node cluster through a 10G network.

[0049] Figure 3 For the entire process of remote sensing image data from raw code stream to level 2 products and then to image intelligent processing, the following is combined with Figure 3 The whole scheduling process is described as follows:

[0050] When calling a processing plug-in from a node, necessary operating parameters need to be passed. In this method, an XML format document is specially designed to pass the operating parameters of all professional processing plug-ins, and the meaning of tags in the document is standardized. By using the characteristics of extensible markup language, it is possible to modify tags and express hierarchically according to the operating parameter requirements of different plug-ins, and accurately pass complex operating parameter information to the processing plug-in, ensuring the stability of plug-in operation and the accuracy of processing results. Taking the decryption, decompression and radiation correction operating parameter transfer documents as an example, the specific content of the formulated XML file is as follows:

[0051]

[0052] After obtaining a track of original code stream data, the logic control service parses the original code stream parameter information, clarifies the business process to be executed, generates parameter information to be executed and sends it to the master node service. The master node service determines the slave node service to be scheduled according to the load balancing strategy, and sends the parameter information to be executed to the slave node service. The slave node service generates a parameter document and calls the decryption and decompression plug-in of the current slave node to process the original code stream data file, generates a number of scenes to be divided according to the number of sensors, and the generated data files are stored in the distributed shared storage, and the execution results are fed back to the master node service. After receiving the feedback information, the master node service generates a formatted scene instance for each scene to be divided according to the number of scenes to be divided. The master node service uses each instance as a scheduling unit and determines the slave node to be used by each instance according to the load balancing strategy. Each slave node service calls the local formatted scene plug-in to complete the processing. The generated scene data files are stored in the distributed shared storage, and the execution results are fed back to the master node service to continue to complete the scheduling and execution of subsequent plug-ins. Each formatted scene instance is independent of each other and processed in parallel. Based on the scene data files generated by each instance, subsequent product production and intelligent processing instances are created respectively, and the specific plug-in calls are completed according to the load balancing strategy. Through the continuous iteration of the above process, the entire process is finally completed, realizing the production of satellite raw data to data products and intelligent processing products.

[0053] The above method has been implemented in JAVA and JS languages, where the front-end interface is implemented in JS and the back-end is implemented in JAVA. At the same time, it integrates processing plug-ins such as decryption and decompression, formatting and segmentation, radiation correction, geometric correction, image orthophoto, target detection and recognition, and object classification, and has been verified in a distributed cluster environment.

[0054] The present invention designs a two-level scheduling mechanism of logic control service + master-slave node based on workflow engine, realizes the control of the whole processing flow through multi-level progressive scheduling, and implements scheduling modules at all levels based on microservice concept, thus improving the flexibility of scheduling; and formulates a plug-in load balancing scheduling strategy by fully combining the characteristics of remote sensing data processing plug-in.

[0055] In summary, the present invention makes full use of the flexible scheduling capability of workflow technology, which not only simplifies the development process, but also provides a WYSIWYG process orchestration capability, and realizes the distributed parallel scheduling capability of complex remote sensing data processing.

Claims

1. A distributed scheduling method for remote sensing data processing plug-in based on workflow engine, characterized in that: The following steps are involved: (1) The logical control service is used to perform logical scheduling management on the execution process, arrange the entire operation process, configure the operation parameters and initiate the entire process. The specific method is as follows: after obtaining a track of original bitstream data, the logical control service parses the original bitstream parameter information, clarifies the business process to be executed, generates the parameter information to be executed and sends it to the master node service; The master node service manages business plug-ins and performs business scheduling, receives the parameter information to be executed from the logic control service, sends the parameter information to be executed to the slave node service, collects the execution result information and feeds it back to the logic control service, coordinates the computing resources in the cluster, executes the load balancing strategy, determines the slave node service to be scheduled according to the load balancing strategy, and ensures the reasonable distribution of tasks; The slave node service receives the execution task parameters sent by the master node service, calls and executes the relevant plug-ins, and reports the execution results and slave node resource usage to the master node service; the specific method is: the slave node service generates a parameter document and calls the decryption and decompression plug-in of the slave node to process the original code stream data file, generates a number of files to be divided into scenes according to the number of sensors, stores the generated data files on the distributed shared storage, and feeds back the execution results to the master node service; After receiving the feedback information, the master node service generates a formatted scene instance for each file to be divided according to the number of files to be divided. The master node service uses each instance as a scheduling unit and determines the slave node to be used by each instance according to the load balancing strategy. Each slave node service calls the local formatted scene plug-in to complete the processing. The generated scene data files are stored in the distributed shared storage, and the execution results are fed back to the master node service to continue to complete the scheduling and execution of subsequent plug-ins. Each formatted scene instance is independent of each other and processed in parallel. Based on the scene data files generated by each instance, subsequent product production and intelligent processing instances are created, and the specific plug-in call is completed according to the load balancing strategy. (2) According to the business plug-in type, the resource information occupied by each plug-in during execution shall be clarified, including the number of CPU cores and memory capacity. The plug-in related information shall include the plug-in name, plug-in function description, number of CPUs occupied, number of memory occupied, and plug-in call service interface; For remote sensing data processing plug-ins, the plug-in related information is described according to a unified template. The master node service catalogs and stores the plug-ins, manages the plug-ins in a visual way, and provides plug-in addition, deletion, modification, and query functions. (3) The logic control service is based on the workflow engine, reads and processes the plug-in database table, parses the stored processing plug-in information, organizes and manages various processing plug-ins in a visual manner, and completes the process arrangement and parameter transfer setting of the processing plug-ins by dragging and dropping; (4) After the process orchestration is completed, the process scheduling is executed according to the process input parameters. During the execution process, the logic control service determines the task plug-in to be executed next based on the process orchestration results, and passes the parameters to the master node service. The master node service generates call parameters based on the polling scheduling strategy, according to the deployment of the processing plug-in and the resource usage of each slave node, and sends them to the slave node service that needs to be scheduled; It is clear in which slave nodes the plug-in to be called is deployed. The master node service calculates the current resource usage reported by these slave node services, that is, the number of idle CPUs and memory capacity of the slave nodes, combined with the resource information occupied when the plug-in to be called is executed, and finally determines which node to call. The calculation formula is as follows: C = Cn -Ca M = Mn-Ma Among them, Cn is the total number of CPU cores of the current polling slave node, Ca is the number of cores occupied when the processing plug-in to be called is executed, Mn is the total memory of the slave node, and Ma is the memory capacity occupied when the processing plug-in to be called is executed; when M and C are both greater than 0, it is determined to call the processing plug-in of the current slave node; (5) The slave node service generates specific plug-in calling parameters based on the parameter information sent by the master node service and completes the call to the plug-in. When the slave node calls the processing plug-in, it uses XML format documents to pass the operating parameters of all professional processing plug-ins, standardizes the meaning of the tags in the document, and performs tag modification and hierarchical expression according to the operating parameter requirements of different plug-ins, and passes the operating parameter information to the processing plug-in.

2. According to the distributed scheduling method of remote sensing data processing plug-in based on workflow engine in claim 1, it is characterized in that: In step (1), the logic control service implements multiple execution strategies such as merging, splitting, parallelization, asynchrony, and parameter pairing by extending and transforming the workflow engine, and supports any combination of these execution strategies; for the same plug-in processing steps in the processing process, business instantiation is split to ensure that the same plug-in can generate multiple business instances, each instance is independent of each other and can be processed in parallel.

Citation Information

Patent Citations

  • Web model package and distributed processing method for remote-sensing image processing

    CN107423053A

  • Distributed container cluster framework resource management method based on domestic CPU and operating system

    CN108829509A

  • Service visualization arrangement system and method under micro-service architecture

    CN111142867A

  • Distributed ETL data exchange system and method based on micro-service architecture

    CN111694888A

  • Workflow processing method based on micro-service architecture system

    CN111858001A