Dynamic management method for digital twin application configuration

By providing dynamic configuration management methods in digital twin applications, and using the Web console and API interface for unified management, the security risks, complexity and real-time problems of configuration management in the existing technology are solved, and flexible and unified configuration management and real-time dynamic updates are achieved.

CN119621176APending Publication Date: 2025-03-14INSPUR SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411688084.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-25
Publication Date
2025-03-14

AI Technical Summary

Technical Problem

The configuration management of existing digital twin applications poses problems such as security risks, high complexity, poor real-time configuration effectiveness, lack of version control and audit logs.

Method used

It provides a dynamic management method for digital twin application configuration, unified and centralized visual management through the web console, uses RESTful API and gRPC interface for automated tools or script operations, integrates authentication and authorization mechanisms, and supports publishing and subscription mode, version management and audit log management.

Benefits of technology

It realizes flexible and unified configuration management of digital twin applications, supports real-time dynamic updates, enhances configuration flexibility and transparency, and reduces the unstable factors caused by repeated configuration item writing and frequent system restarts.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119621176A_ABST
    Figure CN119621176A_ABST
Patent Text Reader

Abstract

The invention discloses a dynamic management method for digital twinning application configuration, and belongs to the technical field of digital twinning. Comprising the steps of performing unified and centralized visual management; isolating different environments or different projects through the namespace, creating basic configuration information of the configuration file, and integrating or covering the basic configuration information according to the data ID and grouping in a specific environment; the digital twin application acquires information of the configuration file in a publishing and subscribing mode; version management is added to the configuration file; a new version number is automatically generated after the configuration file is modified every time, and a historical version is reserved for query and rollback; auditing log management is added, detailed information, including a timestamp, an operator ID and an IP address, of each configuration file change is recorded through an auditing log, and a log retrieval interface is provided for tracing the historical updating process of the configuration file.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention discloses a dynamic management method for digital twin application configuration, which relates to the technical field of digital twin. Background Art

[0002] Digital twins are data-driven and comprehensively present the entire life cycle of physical entities. They have become an important basic technology for achieving efficient interconnection between the real and virtual worlds, and have effectively promoted the deep integration and development of the digital economy with real economies such as industrial manufacturing and urban management.

[0003] In the development of digital twin applications, there are usually many parameterized configuration requirements, such as database connection address, server port, etc. The application also needs to have different behaviors in different operating environments. For example, in the development environment, logging needs to be turned on to facilitate debugging, while in the production environment, logging output needs to be turned off to improve performance. Therefore, developers often separate the configuration information from the code and extract it into a separate configuration file. When certain configurations need to be changed, it can avoid rebuilding the entire program. However, there are still some problems with the configuration of digital twin applications, such as:

[0004] The configuration method based on local files is simple to modify, but there is a security risk that sensitive information is easily leaked, and there is no permission control;

[0005] The configuration method based on database storage requires the design of additional logic to handle configuration storage, update, consistency and other issues, which increases the complexity of the system;

[0006] The configuration method based on the combination of database and local cache has a complex configuration management process and no audit log is retained for configuration operations. The real-time performance of the configuration is poor. When adjusting the configuration, it is often necessary to restart the application and re-read the configuration, which has a great impact on the online services and causes business interruptions to users. There is a lack of version control and the configuration information is scattered and redundant. If multiple digital twin applications on multiple machines need to use the same configuration information, they must be configured separately on each machine, repeating the configuration operation. Summary of the invention

[0007] In view of the problems of the prior art, the present invention provides a dynamic management method for digital twin application configuration, and provides configuration-related open interface services to realize flexible and unified digital twin application configuration management.

[0008] The specific scheme proposed by the present invention is:

[0009] The present invention provides a dynamic management method for digital twin application configuration, which performs unified and centralized visual management: providing an interface to interact with users through a Web console, and using RESTful API and gRPC interface to perform automated tools or scripts to add, delete, modify, and query configuration files, integrating identity authentication and authorization mechanisms, and granting the digital twin application corresponding to the authorized user the authority to access the configuration files in a specific environment or namespace;

[0010] Isolate different environments or projects through namespaces, create basic configuration information for configuration files, and integrate or overwrite basic configuration information based on data IDs and groups in specific environments;

[0011] The digital twin application uses a publish-subscribe model to obtain information from configuration files;

[0012] Add version management to configuration files: automatically generate a new version number each time the configuration file is modified, and retain historical versions for query and rollback;

[0013] Added audit log management: The audit log records detailed information of each configuration file change, including timestamp, operator ID, and IP address, and provides a log retrieval interface for tracing the historical update process of the configuration file.

[0014] Furthermore, the dynamic management method of a digital twin application configuration overwrites the basic configuration information according to the attribute level overwriting strategy, so that the application uses the default values ​​and performs parameter customization at the same time.

[0015] Furthermore, in the dynamic management method of a digital twin application configuration, when a modification operation is made to the configuration file, a notification is actively sent to the digital twin application that has subscribed to the configuration file. After the digital twin application receives the notification, it requests the latest configuration file from the Web console system again. After receiving the request, the Web console system returns the latest configuration file. After receiving the latest configuration file, the digital twin application updates the local configuration file.

[0016] Furthermore, the dynamic management method for configuring a digital twin application detects the digital twin application: heartbeats are periodically sent between the digital twin application and the Web console system to monitor the health of both parties. If one party does not receive the other party's heartbeat for more than a preset time, the other party is marked as unhealthy.

[0017] The present invention also provides a dynamic management device for digital twin application configuration, including a visualization management module, an isolation module, a subscription module, a version management module and an audit log management module.

[0018] The visual management module performs unified and centralized visual management: The Web console interacts with users through the visual management module, and the visual management module uses automated tools or scripts to add, delete, modify, and query configuration files through the RESTful API and gRPC interface. The visual management module integrates identity authentication and authorization mechanisms to grant the digital twin applications corresponding to authorized users permission to access configuration files in a specific environment or namespace.

[0019] The isolation module isolates different environments or projects through namespaces, creates basic configuration information for configuration files, and integrates or overwrites the basic configuration information based on data IDs and groups in specific environments;

[0020] The digital twin application uses the publish-subscribe model to obtain the information of the configuration file through the subscription module;

[0021] The version management module adds version management to the configuration files: a new version number is automatically generated each time the configuration file is modified, and the historical version is retained for query and rollback;

[0022] The audit log management module adds audit log management: the audit log records detailed information of each configuration file change, including timestamp, operator ID, IP address, and provides a log retrieval interface for tracing the historical update process of the configuration file.

[0023] Furthermore, when the isolation module of the dynamic management device for the digital twin application configuration overwrites the basic configuration information, it enables the application to use the default values ​​and perform parameter customization at the same time according to the attribute level overwriting strategy.

[0024] Furthermore, when a modification operation is made to a configuration file in the dynamic management device for a digital twin application configuration, the system of the Web console actively sends a notification to the digital twin application that has subscribed to the configuration file through a subscription module. After the digital twin application receives the notification, it requests the latest configuration file from the system of the Web console again. After receiving the request, the system of the Web console returns the latest configuration file through the subscription module. After receiving the latest configuration file, the digital twin application updates the local configuration file.

[0025] Furthermore, the dynamic management device for a digital twin application configuration also includes a detection module, which detects the digital twin application: heartbeats are periodically sent between the digital twin application and the Web console system to monitor the health of both parties. If one of the parties does not receive the other party's heartbeat within a preset time, the other party is marked as unhealthy.

[0026] The benefits of the present invention are:

[0027] Configuration integration management: It can provide unified configuration management for different environments and different digital twin applications, allowing automated tools or scripts to add, delete, modify, and query configuration files, integrate authentication and authorization mechanisms, support sharing and personalized coverage of the same configuration information, enhance configuration flexibility, and reduce the writing of repeated configuration items.

[0028] Dynamic configuration: It adopts a publish-subscribe model and supports real-time dynamic updates of configurations. After the configuration modification is published, the digital twin application does not need to be restarted to make the latest configuration effective. Users are unaware of the configuration update process, which improves system availability and user experience. It also reduces the instability factors introduced by frequent system restarts.

[0029] Version control: supports historical version management of configurations. Managers can roll back to specified historical versions. In terms of team collaboration, it allows multiple developers to work simultaneously without worrying about configuration conflicts.

[0030] Improve overall configuration control capabilities: The present invention provides the ability to monitor and display the usage of configuration information in each instance in real time, thereby improving the overall control capabilities of managers over the system configuration status and improving the transparency of configuration information.

[0031] Audit log: All configuration operations are recorded in the audit log. In the scenario where multiple managers are performing configuration maintenance, it is convenient to trace and locate all configuration operations and reduce manual operation and maintenance costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 It is a schematic flow chart of the method of the present invention.

[0033] Figure 2 It is a schematic diagram of the deployment and application of the present invention.

[0034] Figure 3 It is a schematic diagram of the hot update flow of the method of the present invention. DETAILED DESCRIPTION

[0035] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments so that those skilled in the art can better understand the present invention and implement it, but the embodiments are not intended to limit the present invention.

[0036] Example 1

[0037] The present invention provides a dynamic management method for digital twin application configuration:

[0038] Conduct unified and centralized visual management: Provide an interface to interact with users through the Web console, and use RESTful API and gRPC interface to perform automated tools or scripts to add, delete, modify, and query configuration files. Integrate authentication and authorization mechanisms to grant digital twin applications corresponding to authorized users permission to access configuration files in specific environments or namespaces.

[0039] Isolate different environments through namespaces, such as development, test, production environments or different projects, create basic configuration information for configuration files, and integrate or overwrite basic configuration information based on data IDs and groups in specific environments. When overwriting basic configuration information, use the overwriting strategy at the attribute level to enable the application to use default values ​​and customize parameters at the same time.

[0040] The digital twin application uses a publish-subscribe model to obtain configuration file information. When a configuration file is modified, a notification is actively sent to the digital twin application that has subscribed to the configuration file. After the digital twin application receives the notification, it requests the latest configuration file from the Web console system again. After receiving the request, the Web console system returns the latest configuration file. After receiving the latest configuration file, the digital twin application updates the local configuration file.

[0041] Detect digital twin applications: Heartbeats are sent periodically between the digital twin application and the web console system to monitor the health of both parties. If one party does not receive the other party's heartbeat within the preset time, the other party is marked as unhealthy.

[0042] Add version management to configuration files: automatically generate a new version number each time the configuration file is modified, and retain historical versions for query and rollback. You can also set snapshot points to manually save the current configuration status at important nodes for quick recovery.

[0043] Add audit log management: The audit log records detailed information of each configuration file change, including timestamp, operator ID, IP address, and provides a log retrieval interface to trace the historical update process of the configuration file.

[0044] In addition, the Web console system in the method of the present invention can support multiple formats, and has built-in parsers for processing multiple common configuration formats, such as ini, JSON, XML, etc. For non-standard formats, support can be extended through a plug-in mechanism to ensure the consistency and correctness of the configuration content during the conversion process.

[0045] Example 2

[0046] The present invention also provides a dynamic management device for digital twin application configuration, including a visualization management module, an isolation module, a subscription module, a version management module and an audit log management module.

[0047] The visual management module performs unified and centralized visual management: The Web console interacts with users through the visual management module, and the visual management module uses automated tools or scripts to add, delete, modify, and query configuration files through the RESTful API and gRPC interface. The visual management module integrates identity authentication and authorization mechanisms to grant the digital twin applications corresponding to authorized users permission to access configuration files in a specific environment or namespace.

[0048] The isolation module isolates different environments or projects through namespaces, creates basic configuration information for configuration files, and integrates or overwrites the basic configuration information based on data IDs and groups in specific environments;

[0049] The digital twin application uses the publish-subscribe model to obtain the information of the configuration file through the subscription module;

[0050] The version management module adds version management to the configuration files: a new version number is automatically generated each time the configuration file is modified, and the historical version is retained for query and rollback;

[0051] The audit log management module adds audit log management: the audit log records detailed information of each configuration file change, including timestamp, operator ID, IP address, and provides a log retrieval interface for tracing the historical update process of the configuration file.

[0052] As the information interaction and execution process between the modules of the above-mentioned device are based on the same concept as the embodiment of the method of the present invention, the specific contents can be found in the description of the embodiment of the method of the present invention and will not be repeated here.

[0053] Likewise, the benefits of the device of the present invention are:

[0054] Configuration integration management: It can provide unified configuration management for different environments and different digital twin applications, allowing automated tools or scripts to add, delete, modify, and query configuration files, integrate authentication and authorization mechanisms, support sharing and personalized coverage of the same configuration information, enhance configuration flexibility, and reduce the writing of repeated configuration items.

[0055] Dynamic configuration: It adopts a publish-subscribe model and supports real-time dynamic updates of configurations. After the configuration modification is published, the digital twin application does not need to be restarted to make the latest configuration effective. Users are unaware of the configuration update process, which improves the system availability and user experience of the Web console. It also reduces the instability factors introduced by frequent system restarts.

[0056] Version control: supports historical version management of configurations. Managers can roll back to specified historical versions. In terms of team collaboration, it allows multiple developers to work simultaneously without worrying about configuration conflicts.

[0057] Improve overall configuration control capabilities: The present invention provides the ability to monitor and display the usage of configuration information in each instance in real time, thereby improving the overall control capabilities of managers over the system configuration status and improving the transparency of configuration information.

[0058] Audit log: All configuration operations are recorded in the audit log. In the scenario where multiple managers are performing configuration maintenance, it is convenient to trace and locate all configuration operations and reduce manual operation and maintenance costs.

[0059] It should be noted that not all steps and modules in the above-mentioned processes and device structures are necessary, and some steps or modules can be ignored according to actual needs. The execution order of each step is not fixed and can be adjusted as needed. The system structure described in the above-mentioned embodiments can be a physical structure or a logical structure, that is, some modules may be implemented by the same physical entity, or some modules may be implemented by multiple physical entities, or some components in multiple independent devices may be implemented together.

[0060] The above-described embodiments are only preferred embodiments for fully illustrating the present invention, and the protection scope of the present invention is not limited thereto. Equivalent substitutions or changes made by those skilled in the art based on the present invention are within the protection scope of the present invention. The protection scope of the present invention shall be subject to the claims.

Claims

1. A dynamic management method for digital twin application configuration, characterized by Conduct unified and centralized visual management: Provide an interface to interact with users through the Web console, and use RESTful API and gRPC interface to perform automated tools or scripts to add, delete, modify, and query configuration files. Integrate authentication and authorization mechanisms to grant digital twin applications corresponding to authorized users permission to access configuration files in specific environments or namespaces. Isolate different environments or projects through namespaces, create basic configuration information for configuration files, and integrate or overwrite basic configuration information based on data IDs and groups in specific environments; The digital twin application uses a publish-subscribe model to obtain information from configuration files; Add version management to configuration files: automatically generate a new version number each time the configuration file is modified, and retain historical versions for query and rollback; Added audit log management: The audit log records detailed information of each configuration file change, including timestamp, operator ID, and IP address, and provides a log retrieval interface for tracing the historical update process of the configuration file.

2. According to claim 1, a dynamic management method for digital twin application configuration is characterized by When overwriting basic configuration information, the application uses default values ​​and customizes parameters at the same time according to the attribute-level overwriting strategy.

3. According to claim 1, a dynamic management method for digital twin application configuration is characterized by: When a modification operation is made to the configuration file, a notification is actively sent to the digital twin application that has subscribed to the configuration file. After receiving the notification, the digital twin application requests the latest configuration file from the Web console system again. After receiving the request, the Web console system returns the latest configuration file. After receiving the latest configuration file, the digital twin application updates the local configuration file.

4. According to claim 1, a dynamic management method for digital twin application configuration is characterized by: Detect digital twin applications: Heartbeats are sent periodically between the digital twin application and the web console system to monitor the health of both parties. If one party does not receive the other party's heartbeat within the preset time, the other party is marked as unhealthy.

5. A dynamic management device for digital twin application configuration, characterized in that Including visual management module, isolation module, subscription module, version management module and audit log management module, The visual management module performs unified and centralized visual management: The Web console interacts with users through the visual management module, and the visual management module uses automated tools or scripts to add, delete, modify, and query configuration files through the RESTful API and gRPC interface. The visual management module integrates identity authentication and authorization mechanisms to grant the digital twin applications corresponding to authorized users permission to access configuration files in a specific environment or namespace. The isolation module isolates different environments or projects through namespaces, creates basic configuration information for configuration files, and integrates or overwrites the basic configuration information based on data IDs and groups in specific environments; The digital twin application uses the publish-subscribe model to obtain the information of the configuration file through the subscription module; The version management module adds version management to the configuration files: a new version number is automatically generated each time the configuration file is modified, and the historical version is retained for query and rollback; The audit log management module adds audit log management: the audit log records detailed information of each configuration file change, including timestamp, operator ID, IP address, and provides a log retrieval interface for tracing the historical update process of the configuration file.

6. A dynamic management device for digital twin application configuration according to claim 5, characterized in that When the isolation module overwrites the basic configuration information, it uses the attribute-level overwriting strategy to enable the application to use the default values ​​and customize the parameters at the same time.

7. A dynamic management device for digital twin application configuration according to claim 5, characterized in that When the configuration file is modified, the Web console system actively sends a notification to the digital twin application that has subscribed to the configuration file through the subscription module. After the digital twin application receives the notification, it requests the latest configuration file from the Web console system again. After receiving the request, the Web console system returns the latest configuration file through the subscription module. After receiving the latest configuration file, the digital twin application updates the local configuration file.

8. A dynamic management device for digital twin application configuration according to claim 5, characterized in that It also includes a detection module, which detects the digital twin application: heartbeats are sent periodically between the digital twin application and the Web console system to monitor the health of both parties. If one party does not receive the other party's heartbeat for more than a preset time, the other party will be marked as unhealthy.