Streaming computing system treatment method and system based on rule configuration scheme

Through the governance method based on the rule configuration scheme, the management problems caused by the increase in the number of rules in the flow computing system are solved, the dependency management and conflict reduction of the rules are realized, and the maintainability and ease of operation of the system are improved.

CN118708233APending Publication Date: 2024-09-27INSPUR TIANYUAN COMM INFORMATION SYST CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410875673.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-02
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

The order of magnitude of rules in streaming computing systems continues to increase, making it difficult for users to remember and manage the dependencies between different types of rules, resulting in complex and error-prone operations. The possibility of conflicts between new batch requirements and existing rules increases.

Method used

Provides a governance method based on rule configuration plans. By creating rule configuration plans, querying dependency trees, starting and stopping rule configuration plans, testing rule configuration plans, and importing and exporting plans, it is convenient for users to manage and maintain rules.

Benefits of technology

Effectively manages the rule configuration of different operators in the flow computing system, simplifying the creation, start, stop, and testing of rules, reducing conflicts, and improving the maintainability and scalability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118708233A
    Figure CN118708233A
Patent Text Reader

Abstract

The invention relates to the technical field of streaming computing systems, in particular to a streaming computing system treatment method and system based on a rule configuration scheme, and the method comprises the following steps: creating the rule configuration scheme; querying a scheme dependency tree, recursively searching the dependency of the scheme, and organizing the dependency tree of the scheme to facilitate viewing and management; starting and stopping a rule configuration scheme; testing a rule configuration scheme; importing and exporting the scheme; the flow-oriented computing system treatment method and system based on the rule configuration scheme have the advantages that rule configuration of different operators in the flow-oriented computing system is managed by creating and using the rule configuration scheme, and the problem that an existing flow-oriented computing system is evolved along with function requirements and is not easy to operate is solved. And the rule is difficult to effectively manage due to the increase of the number of operator rules.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of stream computing systems, and in particular to a stream computing system governance method and system based on a rule configuration scheme. Background Art

[0002] Stream computing, also known as stream processing, is a real-time data processing technology. Unlike batch processing, it can receive data streams in real time and process each data immediately. In stream computing, data is regarded as an unbounded data set, which means that the data source will continuously generate new data. Compared with traditional batch processing, stream computing has the advantages of low latency, high throughput, and high scalability. Therefore, it has been widely used in real-time analysis, real-time recommendation, real-time monitoring and other fields.

[0003] Stream computing operators are the basic functional units in the stream processing framework, used to perform specific computing tasks in the data stream. They consume data from the input, perform calculations, and output results for further processing. The stream computing system is connected by multiple operators. Usually the first operator is the source operator (source), that is, the input operator, and the last operator is the sink operator (sink), that is, the output operator. In the middle are one or more operator chains, each of which contains multiple ordered operators.

[0004] In order to adapt to changes in software requirements, software system functions usually support configurable rules. The rules of a streaming computing system refer to the rule data based on which a specific operator runs. For example, a relatively simple field value conversion rule is used by an operator to convert the field value of the input data into another value according to the rule and output it after conversion. Different operators in the system have different functions, and the corresponding operator operations need to be based on different types of rules.

[0005] Complex streaming computing systems usually include many operators, that is, many types of rules. The system can manage each type of rule separately through an interactive UI. System users can configure various types of rules according to their own needs, and customize the system through configuration. It should be noted that there is a sequential relationship between operators. The output of the previous operator is the input of the next operator, so different types of rules also have dependencies. The output of the previous rule is a necessary condition for the input of the next rule.

[0006] As time goes by, the system will access more and more streaming data, and the business demand batches will increase, which will bring the following problems:

[0007] 1. The number of rules of each type continues to increase, and it is difficult for users to remember every rule

[0008] 2. It is difficult for users to distinguish the dependencies between different types of rules

[0009] 3. A complex requirement requires configuring multiple types of rules. Each type of rule needs to be adjusted separately when the requirement is launched, which is complex and error-prone.

[0010] 4. The new rules required by new batches are more and more likely to conflict with existing rules. This conflict may be a conflict between rules of different batches of the same type, or a cross-conflict between different batches of different types. Summary of the invention

[0011] The purpose of the present invention is to provide a streaming computing system governance method and system based on a rule configuration scheme to solve the problems raised in the above background technology.

[0012] To achieve the above object, the present invention provides the following technical solution: a stream computing system governance method based on a rule configuration scheme, the method comprising the following steps:

[0013] Create a rule configuration scheme;

[0014] Query the solution dependency tree, recursively search for solution dependencies, and organize them into a solution dependency tree for easy viewing and management;

[0015] Start and stop rule configuration scheme;

[0016] Test rule configuration scheme;

[0017] Import and export of plans.

[0018] Preferably, the specific operations of creating a rule configuration scheme include:

[0019] Specify basic information, including plan name, plan description, and activation time range;

[0020] Configure the dependency of this solution, that is, the parent solution. The new solution depends on 0 or more existing solutions.

[0021] Configure this scheme to include one or more rule types;

[0022] Configure specific rules for each rule type. Each rule type contains one or more rules.

[0023] Configure the test cases of the solution. You can configure multiple groups of test cases. Each test case contains input data, expected output, and expected time.

[0024] Preferably, the specific operations of the start-stop rule configuration scheme include:

[0025] The user operates to enable or disable the rule configuration scheme. When the scheme is enabled or disabled, the rule content contained in the enabled or disabled scheme is notified to the corresponding operator in real time, and the operator immediately makes the rule effective or invalid. If the scheme is configured with an activation time range, the system automatically determines whether to enable or disable the scheme. When enabling or disabling, if the scheme depends on other schemes, the parent scheme and the parent of the parent are enabled at the same time when the current scheme is enabled, and so on recursively. If the parent scheme has been enabled, it is skipped. When stopping the current scheme, it is determined whether there are other enabled sub-schemes that depend on this scheme. It is necessary to stop the sub-schemes before stopping the current scheme.

[0026] Preferably, the specific operations of the test rule configuration scheme include:

[0027] By combining multiple solutions and conducting multiple comparative tests, it is possible to identify the faulty solutions.

[0028] Select one or more solutions and start testing;

[0029] Complete the preparation work, initialize the test environment, and clear the rules and status data;

[0030] Enable the selected solution and its parent solution in the test environment. After completion, the rule content of the relevant solution has been loaded;

[0031] You can choose to perform manual testing or automatic testing. Manual testing requires testers to manually operate the test environment to perform;

[0032] If automatic testing is selected, the system automatically tests each solution and each use case one by one, sends the input data of the use case, and waits until the expected output is detected, that is, the test passes, or it times out and fails; the status data in the environment must be cleared before starting each test case.

[0033] Preferably, the specific operations of importing and exporting the scheme include:

[0034] Import and export plans in json format, which is used to back up plans, migrate plans to new environments, and share plans between teams;

[0035] Select a solution to export, and choose whether to export the parent solution at the same time. After the export is completed, a json file is generated. The json file contains the basic information of the solution, parent information, rule information, and test cases.

[0036] According to the json file import plan, choose whether to import the parent plan at the same time;

[0037] It facilitates users to create and maintain rules, copy or move existing rules to a specified plan, within a plan or between plans.

[0038] A stream computing system management system based on a rule configuration scheme, the system is composed of a creation module, a query module, a start and stop rule configuration module, a test rule configuration module and a scheme processing module;

[0039] Create a module to create a rule configuration scheme;

[0040] The query module is used to query the solution dependency tree, recursively search for solution dependencies, and organize them into a solution dependency tree for easy viewing and management;

[0041] Start and stop rule configuration module, used for start and stop rule configuration scheme;

[0042] Test rule configuration module, used to test rule configuration scheme;

[0043] The solution processing module is used to import and export solutions.

[0044] Preferably, the creation module specifies basic information, including a scheme name, a scheme description, and an activation time range;

[0045] Configure the dependency of this solution, that is, the parent solution. The new solution depends on 0 or more existing solutions.

[0046] Configure this scheme to include one or more rule types;

[0047] Configure specific rules for each rule type. Each rule type contains one or more rules.

[0048] Configure the test cases of the solution. You can configure multiple groups of test cases. Each test case contains input data, expected output, and expected time.

[0049] Preferably, in the start and stop rule configuration module, the user operates to enable or disable the rule configuration scheme. When the scheme is enabled or disabled, the rule content contained in the enabled and disabled scheme is notified to the corresponding operator in real time, and the operator immediately makes the rule effective or invalid. If the scheme is configured with an activation time range, the system automatically determines whether to start and stop the scheme. When starting and stopping, if the scheme depends on other schemes, the parent scheme and the parent of the parent are enabled at the same time when the current scheme is enabled, and so on recursively. If the parent scheme has been started, it is skipped. When stopping the current scheme, it is determined whether there are other enabled sub-schemes that depend on this scheme, and it is necessary to stop the sub-schemes before stopping the current scheme.

[0050] Preferably, the test rule configuration module can identify erroneous solutions by combining multiple solutions and performing multiple comparative tests;

[0051] Select one or more solutions and start testing;

[0052] Complete the preparation work, initialize the test environment, and clear the rules and status data;

[0053] Enable the selected solution and its parent solution in the test environment. After completion, the rule content of the relevant solution has been loaded;

[0054] You can choose to perform manual testing or automatic testing. Manual testing requires testers to manually operate the test environment to perform;

[0055] If automatic testing is selected, the system automatically tests each solution and each use case one by one, sends the input data of the use case, and waits until the expected output is detected, that is, the test passes, or it times out and fails; the status data in the environment must be cleared before starting each test case.

[0056] Preferably, the solution processing module imports and exports solutions in json format, which is used for backing up solutions, migrating solutions to a new environment, and sharing solutions between teams;

[0057] Select a solution to export, and choose whether to export the parent solution at the same time. After the export is completed, a json file is generated. The json file contains the basic information of the solution, parent information, rule information, and test cases.

[0058] According to the json file import plan, choose whether to import the parent plan at the same time;

[0059] It facilitates users to create and maintain rules, copy or move existing rules to a specified plan, within a plan or between plans.

[0060] Compared with the prior art, the present invention has the following beneficial effects:

[0061] The streaming computing system governance method and system based on rule configuration scheme proposed in the present invention manage the rule configuration of different operators in the streaming computing system by creating and using the rule configuration scheme, thereby solving the problem that the existing streaming computing system is difficult to effectively manage the rules due to the increase in the number of operator rules as the functional requirements evolve. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] Figure 1 This is a schematic diagram of the dependency relationship of the solution of the present invention;

[0063] Figure 2 This is a schematic diagram of the effect of the application configuration scheme of the present invention;

[0064] Figure 3 The figure is a flow chart of the method of the present invention. DETAILED DESCRIPTION

[0065] 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.

[0066] Embodiment 1

[0067] See also Figures 1 to 3 The present invention provides a technical solution: a stream computing system governance method based on a rule configuration scheme, the method comprising the following steps:

[0068] 1. Create a rule configuration plan

[0069] (1) Specify basic information, including solution name, solution description, and activation time range

[0070] (2) Configure the dependency of this solution, that is, the parent solution. The new solution depends on 0 or more existing solutions.

[0071] (3) Configure this solution to include one or more rule types

[0072] (4) Specific rules are configured for each rule type. Each rule type contains one or more rules. Note: Specific rules have different data structures depending on the type.

[0073] (5) Configure the test cases of the solution. You can configure multiple groups of test cases. Each test case contains input data, expected output, and expected time. Note: When there are multiple system inputs (source operators) or outputs (sink operators), they can be further distinguished here.

[0074] 2. Query solution dependency tree

[0075] Recursively search for the dependencies of the solution and organize them into a dependency tree for easy viewing and management.

[0076] 3. Start and stop rule configuration scheme

[0077] The user enables or disables the rule configuration scheme. When the scheme is enabled or disabled, the rule content contained in the enabled or disabled scheme needs to be notified to the corresponding operator in real time, and the operator immediately makes the rule effective or invalid.

[0078] If the plan is configured with an activation time range, the system will automatically determine whether to start or stop the plan.

[0079] When starting or stopping, if a solution depends on other solutions, the parent solution and the parent of the parent will be enabled at the same time when this solution is enabled, and so on recursively. If the parent solution has been started, it will be skipped. When stopping this solution, determine whether there are other enabled sub-solutions that depend on this solution. You need to stop the sub-solutions first and then stop this solution.

[0080] 4. Test rule configuration scheme

[0081] By combining multiple solutions and conducting multiple comparative tests, faulty solutions can be identified.

[0082] (1) Select one or more solutions and start testing.

[0083] (2) Complete the preparation work, initialize the test environment, and clear the rules and status data.

[0084] (3) Enable the selected solution and its parent solution in the test environment. After completion, the rule content of the relevant solution has been loaded.

[0085] (4) You can choose to perform manual testing or automatic testing. Manual testing requires testers to manually operate the test environment to perform.

[0086] (5) If automatic testing is selected, the system automatically tests each scenario and each use case, sends the input data of the use case, and waits until the expected output is detected, that is, the test passes, or times out and fails. Before starting each test case, the status data in the environment must be cleared.

[0087] 5. Import and export of solutions

[0088] The imported and exported plans are in json format, which can be used to back up plans, migrate plans to a new environment, and share plans between teams.

[0089] Select a solution to export, and you can choose whether to export the parent solution at the same time. After the export is completed, a json format file is generated. The json contains the basic information of the solution, parent information, rule information, and test cases.

[0090] When importing a plan based on a json file, you can choose whether to import the parent plan at the same time.

[0091] 6. Copy or move rules

[0092] It is convenient for users to create and maintain rules. Existing rules can be copied or moved to a specified plan, either within a plan or between plans.

[0093] Embodiment 2

[0094] Based on the first embodiment, a stream computing system governance system based on a rule configuration scheme is proposed, the system is composed of a creation module, a query module, a start and stop rule configuration module, a test rule configuration module and a scheme processing module;

[0095] Create a module to create a rule configuration plan; specify basic information, including plan name, plan description, and activation time range;

[0096] Configure the dependency of this solution, that is, the parent solution. The new solution depends on 0 or more existing solutions.

[0097] Configure this scheme to include one or more rule types;

[0098] Configure specific rules for each rule type. Each rule type contains one or more rules.

[0099] Configure the test cases of the solution. You can configure multiple groups of test cases. Each test case contains input data, expected output, and expected time.

[0100] The query module is used to query the solution dependency tree, recursively search for solution dependencies, and organize them into a solution dependency tree for easy viewing and management;

[0101] The start and stop rule configuration module is used to start and stop the rule configuration scheme; the user operates to enable or disable the rule configuration scheme. When the scheme is enabled or disabled, the rule content contained in the enabled and disabled scheme is notified to the corresponding operator in real time, and the operator immediately makes the rule effective or invalid; if the scheme is configured with an activation time range, the system automatically determines whether to start and stop the scheme; when starting and stopping, if the scheme depends on other schemes, the parent scheme and the parent of the parent are enabled at the same time when the current scheme is enabled, and so on recursively. If the parent scheme has been started, it is skipped; when stopping the current scheme, it is determined whether there are other enabled sub-schemes that depend on this scheme, and it is necessary to stop the sub-schemes before stopping the current scheme.

[0102] The test rule configuration module is used to test the rule configuration scheme; by combining multiple schemes and performing multiple comparative tests, the wrong scheme can be identified;

[0103] Select one or more solutions and start testing;

[0104] Complete the preparation work, initialize the test environment, and clear the rules and status data;

[0105] Enable the selected solution and its parent solution in the test environment. After completion, the rule content of the relevant solution has been loaded;

[0106] You can choose to perform manual testing or automatic testing. Manual testing requires testers to manually operate the test environment to perform;

[0107] If automatic testing is selected, the system automatically tests each solution and each use case one by one, sends the input data of the use case, and waits until the expected output is detected, that is, the test passes, or it times out and fails; the status data in the environment must be cleared before starting each test case.

[0108] The solution processing module is used to import and export solutions. The imported and exported solutions are in json format and are used to back up solutions, migrate solutions to a new environment, and share solutions between teams.

[0109] Select a solution to export, and choose whether to export the parent solution at the same time. After the export is completed, a json file is generated. The json file contains the basic information of the solution, parent information, rule information, and test cases.

[0110] According to the json file import plan, choose whether to import the parent plan at the same time;

[0111] It facilitates users to create and maintain rules, copy or move existing rules to a specified plan, within a plan or between plans.

[0112] 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 stream computing system governance method based on a rule configuration scheme, characterized in that: The method comprises the following steps: Create a rule configuration scheme; Query the solution dependency tree, recursively search for solution dependencies, and organize them into a solution dependency tree for easy viewing and management; Start and stop rule configuration scheme; Test rule configuration scheme; Import and export of plans.

2. According to claim 1, a stream computing system governance method based on a rule configuration scheme is characterized by: The specific operations for creating a rule configuration scheme include: Specify basic information, including plan name, plan description, and activation time range; Configure the dependency of this solution, that is, the parent solution. The new solution depends on 0 or more existing solutions. Configure this scheme to include one or more rule types; Configure specific rules for each rule type. Each rule type contains one or more rules. Configure the test cases of the solution. You can configure multiple groups of test cases. Each test case contains input data, expected output, and expected time.

3. The method for managing a stream computing system based on a rule configuration scheme according to claim 1, characterized in that: The specific operations of the start / stop rule configuration scheme include: The user operates to enable or disable the rule configuration scheme. When the scheme is enabled or disabled, the rule content contained in the enabled or disabled scheme is notified to the corresponding operator in real time, and the operator immediately makes the rule effective or invalid. If the scheme is configured with an activation time range, the system automatically determines whether to enable or disable the scheme. When enabling or disabling, if the scheme depends on other schemes, the parent scheme and the parent of the parent are enabled at the same time when the current scheme is enabled, and so on recursively. If the parent scheme has been enabled, it is skipped. When stopping the current scheme, it is determined whether there are other enabled sub-schemes that depend on this scheme. It is necessary to stop the sub-schemes before stopping the current scheme.

4. According to claim 1, a stream computing system governance method based on a rule configuration scheme is characterized in that: The specific operations of the test rule configuration scheme include: By combining multiple solutions and conducting multiple comparative tests, it is possible to identify the faulty solutions. Select one or more solutions and start testing; Complete the preparation work, initialize the test environment, and clear the rules and status data; Enable the selected solution and its parent solution in the test environment. After completion, the rule content of the relevant solution has been loaded; You can choose to perform manual testing or automatic testing. Manual testing requires testers to manually operate the test environment to perform; If automatic testing is selected, the system automatically tests each scenario and each use case one by one, sends the input data of the use case, and waits until the expected output is detected, that is, the test passes, or it times out and fails; the status data in the environment must be cleared before starting each test case.

5. The method for managing a stream computing system based on a rule configuration scheme according to claim 1, characterized in that: The specific operations of importing and exporting the scheme include: Import and export plans in json format, which is used to back up plans, migrate plans to new environments, and share plans between teams; Select a solution to export, and choose whether to export the parent solution at the same time. After the export is completed, a json file is generated. The json file contains the basic information of the solution, parent information, rule information, and test cases. According to the json file import plan, choose whether to import the parent plan at the same time; It facilitates users to create and maintain rules, copy or move existing rules to a specified plan, within a plan or between plans.

6. A stream computing system management system based on a rule configuration scheme according to the stream computing system management method based on a rule configuration scheme according to any one of claims 1 to 5, characterized in that: The system consists of a creation module, a query module, a start and stop rule configuration module, a test rule configuration module and a solution processing module; Create a module to create a rule configuration scheme; The query module is used to query the solution dependency tree, recursively search for solution dependencies, and organize them into a solution dependency tree for easy viewing and management; Start and stop rule configuration module, used for start and stop rule configuration scheme; Test rule configuration module, used to test rule configuration scheme; The solution processing module is used to import and export solutions.

7. A stream computing system management system based on a rule configuration scheme according to claim 6, characterized in that: The creation module specifies basic information, including the name of the solution, description of the solution, and activation time range; Configure the dependency of this solution, that is, the parent solution. The new solution depends on 0 or more existing solutions. Configure this scheme to include one or more rule types; Configure specific rules for each rule type. Each rule type contains one or more rules. Configure the test cases of the solution. You can configure multiple groups of test cases. Each test case contains input data, expected output, and expected time.

8. The stream computing system management system based on rule configuration scheme according to claim 6, characterized in that: In the start and stop rule configuration module, the user operates to enable or disable the rule configuration scheme. When the scheme is enabled or disabled, the rule content contained in the enabled or disabled scheme is notified to the corresponding operator in real time, and the operator immediately makes the rule effective or invalid. If the scheme is configured with an activation time range, the system automatically determines whether to start or stop the scheme. When starting or stopping, if the scheme depends on other schemes, the parent scheme and the parent of the parent are enabled at the same time when the current scheme is enabled, and so on recursively. If the parent scheme has been started, it is skipped. When stopping the current scheme, it is determined whether there are other enabled sub-schemes that depend on this scheme, and it is necessary to stop the sub-schemes before stopping the current scheme.

9. The stream computing system management system based on rule configuration scheme according to claim 6, characterized in that: The test rule configuration module can identify erroneous solutions by combining multiple solutions and performing multiple comparative tests; Select one or more solutions and start testing; Complete the preparation work, initialize the test environment, and clear the rules and status data; Enable the selected solution and its parent solution in the test environment. After completion, the rule content of the relevant solution has been loaded; You can choose to perform manual testing or automatic testing. Manual testing requires testers to manually operate the test environment to perform; If automatic testing is selected, the system automatically tests each scenario and each use case one by one, sends the input data of the use case, and waits until the expected output is detected, that is, the test passes, or it times out and fails; the status data in the environment must be cleared before starting each test case.

10. The stream computing system management system based on rule configuration scheme according to claim 6, characterized in that: The solution processing module imports and exports solutions in json format, which is used to back up solutions, migrate solutions to new environments, and share solutions between teams; Select a solution to export, and choose whether to export the parent solution at the same time. After the export is completed, a json file is generated. The json file contains the basic information of the solution, parent information, rule information, and test cases. According to the json file import plan, choose whether to import the parent plan at the same time; It facilitates users to create and maintain rules, copy or move existing rules to a specified plan, within a plan or between plans.