Multi-task scheduling system and method based on national cryptographic algorithm
Through a multi-task scheduling system based on Guomi algorithm, the Guomi algorithm encrypts and decrypts interface tokens and task results are used to dynamically adjust task scheduling, solving the problems of resource waste and data security, and achieving efficient and secure data processing.
Patent Information
- Application Number
- CN202411348750.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-26
- Publication Date
- 2025-01-14
AI Technical Summary
In the prior art, multiple servers configure the same scheduling tasks to cause waste of resources, fail to execute tasks, and there is a risk of data leakage and tampering during network transmission. How to ensure the efficiency of the API interface and the confidentiality of data has become an urgent problem.
Using a multi-task scheduling system based on the Guomi algorithm, including task storage module, task monitoring module, Guomi module and task scheduling module, monitor server load in real time, and use Guomi algorithm to encrypt and decrypt interface tokens and task results, and dynamic based on monitoring indicators Adjust task scheduling plan to ensure data security.
It improves server usage efficiency, improves data security and confidentiality, prevents data leakage and tampering, and improves data reliability.
Smart Images

Figure CN119311388A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of dynamic multi-task scheduling, and in particular to a multi-task scheduling system and method based on a national secret algorithm. Background Art
[0002] With the development of technology, various systems are closely connected to each other, and information will not become isolated islands. It has become the norm for major systems to release public interfaces, especially for government departments to share government data.
[0003] If multiple servers are configured with the same scheduling task, it will cause duplication and waste of resources; if multiple scheduling tasks are run on the same server, it may lead to insufficient resources and task execution failure. When data is transmitted over the network, there is also a risk of being stolen, resulting in information leakage. At the same time, unencrypted data is extremely vulnerable to network fraud, and criminals may tamper with the data, causing losses to users. In this process, how to ensure the efficiency of calling the API interface and how to ensure the confidentiality and security of the data have become urgent issues to be solved. Summary of the invention
[0004] The purpose of the present invention is to provide a multi-task scheduling system and method based on a national secret algorithm to solve the problems raised in the above background technology.
[0005] To achieve the above object, the present invention provides the following technical solution: a multi-task scheduling system based on a national secret algorithm, the system comprising:
[0006] The task storage module is used to store the API interface addresses that need to be called for different tasks and the parsing strategies for the returned results, and to parse and store the tasks uploaded by users;
[0007] The task monitoring module monitors the CPU, memory, network and disk load of each server running the task in real time, and sends the monitoring indicators to the task scheduling module in real time;
[0008] The national secret module uses the national secret algorithm to implement the encryption and decryption functions of the interface authorization token and the returned task results. It encrypts the plaintext token of the interface into ciphertext and saves the ciphertext to the configuration file, and decrypts the ciphertext token into plaintext and returns it to the task execution module;
[0009] The task scheduling module obtains the monitoring indicator information sent by the task monitoring module, parses the indicator information and automatically generates a task scheduling plan based on the information of the task storage module, and sends the scheduling plan to the task execution module;
[0010] The task execution module calls different API interfaces according to the task scheduling plan, and parses the data returned by the API interface and encrypts and stores it in the database.
[0011] Preferably, the task storage module further includes:
[0012] The system administrator configures the API interface addresses to be called for different tasks and the parsing strategies for the returned results;
[0013] The user calls the task template download interface of the task storage module to download the template file;
[0014] The user fills in the template file content according to the specified format;
[0015] The user calls the upload interface of the task storage module to upload the template file;
[0016] The task storage module parses the task file and stores the tasks in the database.
[0017] Preferably, the task monitoring module further includes:
[0018] Real-time monitoring of server performance indicators;
[0019] Send monitoring indicators to the task scheduling module;
[0020] The task scheduling module receives monitoring indicators and automatically generates scheduling tasks.
[0021] Preferably, the national secret module also includes:
[0022] Encrypt the plaintext token and write the ciphertext into the configuration file;
[0023] Get token ciphertext;
[0024] Decrypt the token ciphertext and return the plaintext to the task execution module;
[0025] Get the encrypted data requested by the task execution module;
[0026] The data is encrypted and returned to the task execution module.
[0027] Preferably, the task scheduling module further includes:
[0028] Obtain monitoring indicator information sent by the task monitoring module;
[0029] Get the task information in the task storage module;
[0030] Analyze indicator information and automatically generate task scheduling plans;
[0031] The scheduling plan is sent to the task execution module.
[0032] A multi-task scheduling method based on a national secret algorithm, using a multi-task scheduling system based on a national secret algorithm, the method comprising the following steps:
[0033] Task storage, which is used to store the API interface addresses that need to be called for different tasks and the parsing strategies for the returned results, and to parse and store the tasks uploaded by users;
[0034] Task monitoring: real-time monitoring of the CPU, memory, network, and disk loads of each server running the task, and sending the monitoring indicators to the task scheduler in real time;
[0035] The national secret algorithm is used to implement the encryption and decryption functions of the interface authorization token and the returned task results. The plain text token of the interface is encrypted into cipher text and the cipher text is saved in the configuration file. The cipher text token is decrypted into plain text and returned to the task execution.
[0036] Task scheduling, obtaining the monitoring indicator information sent by task monitoring, parsing the indicator information and automatically generating a task scheduling plan based on the information stored in the task, and sending the scheduling plan to the task for execution;
[0037] Task execution, according to the task scheduling plan, calls different API interfaces, and parses the data returned by the API interface and encrypts and stores it in the database.
[0038] Preferably, the task storage further includes:
[0039] The system administrator configures the API interface addresses to be called for different tasks and the parsing strategies for the returned results;
[0040] The user calls the task template download interface of the task storage to download the template file;
[0041] The user fills in the template file content according to the specified format;
[0042] The user calls the upload interface of the task storage to upload the template file;
[0043] The task storage module parses the task file and stores the tasks in the database.
[0044] Preferably, task monitoring also includes:
[0045] Real-time monitoring of server performance indicators;
[0046] Send monitoring indicators to task scheduling;
[0047] Task scheduling receives monitoring indicators and automatically generates scheduling tasks.
[0048] Preferably, the task scheduling further includes:
[0049] Get the monitoring indicator information sent by task monitoring;
[0050] Get the task information in the task storage;
[0051] Analyze indicator information and automatically generate task scheduling plans;
[0052] The schedule is sent to the task for execution.
[0053] Preferably, the task execution further includes:
[0054] Get the task scheduling plan;
[0055] Read the configuration file and call the national encryption module to decrypt the encrypted token in the configuration file into plain text;
[0056] Call the API interface corresponding to the task and obtain the return result;
[0057] Parse the results and call the national encryption module to encrypt the results, and save the encrypted results to the database.
[0058] Compared with the prior art, the present invention has the following beneficial effects:
[0059] The multi-task scheduling system and method based on the national secret algorithm proposed in the present invention flexibly configures interface requests and result parsing strategies for different tasks, dynamically adjusts task distribution according to server load conditions, supports data encrypted and returned by the national secret algorithm, improves server utilization efficiency, improves data security, enhances data confidentiality and reliability, and prevents data leakage and tampering. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] Figure 1 is a system block diagram of the present invention;
[0061] Figure 2 This is a schematic diagram of a task storage module of the present invention;
[0062] Figure 3 This is a schematic diagram of a task monitoring module of the present invention;
[0063] Figure 4 This is a schematic diagram of the national encryption module of the present invention;
[0064] Figure 5 This is a schematic diagram of a task scheduling module of the present invention;
[0065] Figure 6 It is a schematic diagram of the task execution module of the present invention. DETAILED DESCRIPTION
[0066] In order to make the purpose and technical solution of the present invention clearly and completely described, and the advantages more clearly understood, the embodiments of the present invention are further described in detail with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are part of the embodiments of the present invention, rather than all of the embodiments, and are only used to explain the embodiments of the present invention, and are not used to limit the embodiments of the present invention. All other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0067] For example, see Figures 1 to 6 The present invention provides a technical solution: a multi-task scheduling system based on a national secret algorithm, the system comprising:
[0068] (1) Task storage module implementation
[0069] This function is used to store the API interface addresses that need to be called for different tasks and the parsing strategy for the returned results, and to parse and store the tasks uploaded by users. Users call the task template download interface of the task storage module, download different task template files according to their needs, fill in the form, and then call the upload interface of the task storage module to upload the template file. After the upload is successful, the file is parsed and the task is stored in the database.
[0070] See Figure 2 :
[0071] 1. The system administrator configures the API interface addresses to be called for different tasks and the parsing strategy for the returned results.
[0072] 2. The user calls the task template download interface of the task storage module to download the template file.
[0073] 3. The user fills in the template file content according to the specified format.
[0074] 4. The user calls the upload interface of the task storage module to upload the template file.
[0075] 5. The task storage module parses the task file and stores the task in the database.
[0076] (2) Implementation of task monitoring module
[0077] This function implements the monitoring function responsible for the server. It monitors the CPU, memory, network and disk load of each server running the task in real time, and sends the monitoring indicators to the task scheduling module in real time. Figure 3 .
[0078] 1. Real-time monitoring of server performance indicators.
[0079] 2. Send monitoring indicators to the task scheduling module.
[0080] 3. The task scheduling module receives monitoring indicators and automatically generates scheduling tasks.
[0081] (3) Implementation of national encryption module
[0082] This module uses the national encryption algorithm to implement the encryption and decryption functions of the interface authorization token and the returned task results. Encrypt the plaintext token of the interface into ciphertext and save the ciphertext to the configuration file. Decrypt the ciphertext token into plaintext and return it to the task execution module. Encrypt the plaintext information returned by the task execution module and return the ciphertext information to the task execution module. See Figure 4 .
[0083] 1. Encrypt the plaintext token and write the ciphertext to the configuration file.
[0084] 2. Get the token ciphertext.
[0085] 3. Decrypt the token ciphertext and return the plaintext to the task execution module.
[0086] 3. Get the encrypted data requested by the task execution module.
[0087] 4. Encrypt the data and return it to the task execution module.
[0088] (4) Task scheduling module implementation
[0089] This module implements the function of dynamically generating and scheduling tasks based on detection indicators. It obtains the monitoring indicator information sent by the task monitoring module, parses the indicator information, and automatically generates the task scheduling plan based on the information of the task storage module, and sends the scheduling plan to the task execution module. Figure 5 .
[0090] 1. Obtain the monitoring indicator information sent by the task monitoring module.
[0091] 2. Get the task information in the task storage module.
[0092] 3. Analyze indicator information and automatically generate task scheduling plans.
[0093] 4. The scheduling plan is sent to the task execution module.
[0094] (5) Task execution module implementation
[0095] This module implements the function of executing tasks according to the task scheduling plan and saving the information returned by the tasks to the database. According to the task scheduling plan, different API interfaces are called, and the data returned by the API interfaces are parsed and encrypted and stored in the database. Figure 6 .
[0096] 1. Get the task scheduling plan.
[0097] 2. Read the configuration file and call the national encryption module to decrypt the encrypted token in the configuration file into plain text.
[0098] 3. Call the API interface corresponding to the task and obtain the return result.
[0099] 4. Parse the results and call the national encryption module to encrypt the results, and save the encrypted results to the database.
[0100] Embodiment 2, based on embodiment 1, proposes a multi-task scheduling method based on the national secret algorithm, and applies a multi-task scheduling system based on the national secret algorithm. The method includes the following steps:
[0101] Task storage is used to store the API interface addresses that need to be called for different tasks and the parsing strategy for the returned results, and to parse and store the tasks uploaded by users; it also includes:
[0102] The system administrator configures the API interface addresses to be called for different tasks and the parsing strategies for the returned results;
[0103] The user calls the task template download interface of the task storage to download the template file;
[0104] The user fills in the template file content according to the specified format;
[0105] The user calls the upload interface of the task storage to upload the template file;
[0106] The task storage module parses the task file and stores the tasks in the database.
[0107] Task monitoring: real-time monitoring of the CPU, memory, network, and disk loads of each server running the task, and sending the monitoring indicators to the task scheduler in real time; also includes:
[0108] Real-time monitoring of server performance indicators;
[0109] Send monitoring indicators to task scheduling;
[0110] Task scheduling receives monitoring indicators and automatically generates scheduling tasks.
[0111] The national secret algorithm is used to implement the encryption and decryption functions of the interface authorization token and the returned task results. The plaintext token of the interface is encrypted into ciphertext and the ciphertext is saved in the configuration file. The ciphertext token is decrypted into plaintext and returned to the task execution.
[0112] Task scheduling, obtaining the monitoring indicator information sent by task monitoring, parsing the indicator information and automatically generating a task scheduling plan based on the information stored in the task, and sending the scheduling plan to the task for execution; also includes:
[0113] Get the monitoring indicator information sent by task monitoring;
[0114] Get the task information in the task storage;
[0115] Analyze indicator information and automatically generate task scheduling plans;
[0116] The schedule is sent to the task for execution.
[0117] Task execution, according to the task scheduling plan, calls different API interfaces, and parses the data returned by the API interface and encrypts and stores it in the database; it also includes:
[0118] Get the task scheduling plan;
[0119] Read the configuration file and call the national encryption module to decrypt the encrypted token in the configuration file into plain text;
[0120] Call the API interface corresponding to the task and obtain the return result;
[0121] Parse the results and call the national encryption module to encrypt the results, and save the encrypted results to the database.
[0122] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A multi-task scheduling system based on a national secret algorithm, characterized by: The system comprises: The task storage module is used to store the API interface addresses that need to be called for different tasks and the parsing strategies for the returned results, and to parse and store the tasks uploaded by users; The task monitoring module monitors the CPU, memory, network and disk load of each server running the task in real time, and sends the monitoring indicators to the task scheduling module in real time; The national secret module uses the national secret algorithm to implement the encryption and decryption functions of the interface authorization token and the returned task results. It encrypts the plaintext token of the interface into ciphertext and saves the ciphertext to the configuration file, and decrypts the ciphertext token into plaintext and returns it to the task execution module; The task scheduling module obtains the monitoring indicator information sent by the task monitoring module, parses the indicator information and automatically generates a task scheduling plan based on the information of the task storage module, and sends the scheduling plan to the task execution module; The task execution module calls different API interfaces according to the task scheduling plan, and parses the data returned by the API interface and encrypts and stores it in the database.
2. According to claim 1, a multi-task scheduling system based on a national secret algorithm is characterized in that: The task storage module also includes: The system administrator configures the API interface addresses to be called for different tasks and the parsing strategies for the returned results; The user calls the task template download interface of the task storage module to download the template file; The user fills in the template file content according to the specified format; The user calls the upload interface of the task storage module to upload the template file; The task storage module parses the task file and stores the tasks in the database.
3. According to claim 1, a multi-task scheduling system based on a national secret algorithm is characterized in that: The task monitoring module also includes: Real-time monitoring of server performance indicators; Send monitoring indicators to the task scheduling module; The task scheduling module receives monitoring indicators and automatically generates scheduling tasks.
4. According to claim 1, a multi-task scheduling system based on a national secret algorithm is characterized in that: The national secret module also includes: Encrypt the plaintext token and write the ciphertext into the configuration file; Get token ciphertext; Decrypt the token ciphertext and return the plaintext to the task execution module; Get the encrypted data requested by the task execution module; The data is encrypted and returned to the task execution module.
5. According to claim 1, a multi-task scheduling system based on a national secret algorithm is characterized in that: The task scheduling module also includes: Obtain monitoring indicator information sent by the task monitoring module; Get the task information in the task storage module; Analyze indicator information and automatically generate task scheduling plans; The scheduling plan is sent to the task execution module.
6. A multi-task scheduling method based on a national secret algorithm, using the multi-task scheduling system based on a national secret algorithm as described in any one of claims 1 to 5, characterized in that: The method comprises the following steps: Task storage, which is used to store the API interface addresses that need to be called for different tasks and the parsing strategies for the returned results, and to parse and store the tasks uploaded by users; Task monitoring: real-time monitoring of the CPU, memory, network, and disk loads of each server running the task, and sending the monitoring indicators to the task scheduler in real time; The national secret algorithm is used to implement the encryption and decryption functions of the interface authorization token and the returned task results. The plain text token of the interface is encrypted into cipher text and the cipher text is saved in the configuration file. The cipher text token is decrypted into plain text and returned to the task execution. Task scheduling, obtaining the monitoring indicator information sent by task monitoring, parsing the indicator information and automatically generating a task scheduling plan based on the information stored in the task, and sending the scheduling plan to the task for execution; Task execution, according to the task scheduling plan, calls different API interfaces, and parses the data returned by the API interface and encrypts and stores it in the database.
7. The multi-task scheduling method based on the national secret algorithm according to claim 6 is characterized in that: The task store also includes: The system administrator configures the API interface addresses to be called for different tasks and the parsing strategies for the returned results; The user calls the task template download interface of the task storage to download the template file; The user fills in the template file content according to the specified format; The user calls the upload interface of the task storage to upload the template file; The task storage module parses the task file and stores the tasks in the database.
8. The multi-task scheduling method based on the national secret algorithm according to claim 6 is characterized in that: Mission monitoring also includes: Real-time monitoring of server performance indicators; Send monitoring indicators to task scheduling; Task scheduling receives monitoring indicators and automatically generates scheduling tasks.
9. The multi-task scheduling method based on the national secret algorithm according to claim 6 is characterized in that: Task scheduling also includes: Get the monitoring indicator information sent by task monitoring; Get the task information in the task storage; Analyze indicator information and automatically generate task scheduling plans; The schedule is sent to the task for execution.
10. The multi-task scheduling method based on the national secret algorithm according to claim 6 is characterized in that: Task execution also includes: Get the task scheduling plan; Read the configuration file and call the national encryption module to decrypt the encrypted token in the configuration file into plain text; Call the API interface corresponding to the task and obtain the return result; Parse the results and call the national encryption module to encrypt the results, and save the encrypted results to the database.