Distributed architecture-based software operation method and system, electronic device and medium

By introducing detectors and controllers into a distributed architecture to detect the connection status between the PLC and industrial equipment, continuous integration and continuous delivery are achieved. This solves the problems of configuration complexity and difficulty in collaborative operation in distributed computing systems, and improves the system's automation, stability and security.

CN115576566BActive Publication Date: 2026-05-01CHINA UNITED NETWORK COMM GRP CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
CHINA UNITED NETWORK COMM GRP CO LTD
Filing Date
2022-10-08
Publication Date
2026-05-01

AI Technical Summary

Technical Problem

In distributed computing systems, the computing environment is complex and cumbersome to configure, requires a high degree of human intervention, is difficult to operate collaboratively, lacks automation, and has difficulty communicating with industrial control and IT systems, resulting in unstable system deployment and insufficient security.

Method used

A software operation and maintenance method based on a distributed architecture is adopted. The connection status between PLC and industrial equipment is detected by detectors and controllers, the environmental configuration is recorded, and the expected status is compared with the actual status in real time to achieve continuous integration and continuous delivery. Role access control is set to ensure the automation and stability of system deployment.

Benefits of technology

It improves the automation and stability of system deployment, ensures system security, enables continuous integration and continuous delivery, enhances system standardization and visualization, reduces manual intervention, and solves the problems of configuration complexity and collaborative operation in distributed computing systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115576566B_ABST
    Figure CN115576566B_ABST
Patent Text Reader

Abstract

The present disclosure provides a software operation and maintenance method and system based on a distributed architecture, an electronic device and a readable storage medium to solve the problem that the software operation and maintenance system is not automated enough. The method comprises: setting a detector and a controller in the software operation and maintenance system; taking the configuration in the environment configuration library as a standard, performing the basic construction of the deployment environment; when the application of the pull-based industrial Internet of Things system is deployed, detecting whether the PLC and the industrial equipment are in a passable state through the detector; if so, recording the industrial equipment environment and the corresponding environment configuration in the environment configuration library, and storing a corresponding environment configuration template of a standard state in the environment configuration library; comparing the expected state in the environment configuration library with the actual state in the deployment environment through the controller; updating the state in the deployment environment according to the comparison result to match the environment configuration library, and completing the continuous integration and continuous delivery of the application. The automation and standardization of system deployment can be ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Software operation and maintenance methods, systems, electronic devices, and media based on distributed architecture Technical Field

[0001] This disclosure relates to the field of distributed computing technology, specifically to a software operation and maintenance method based on a distributed architecture, a software operation and maintenance system based on a distributed architecture, an electronic device, and a computer-readable storage medium. Background Technology

[0002] With the development of mobile internet and the widespread adoption of smart terminals, computer systems have long since transitioned from stand-alone operation to multi-machine collaborative operation. Computers exist in clusters, building massive and complex application services guided by distributed computing theory. Distributed computing systems consist of multiple distributed computers connected via a network. Due to the dispersed nature of the terminal nodes performing computational tasks in distributed computing, configuring the computing environment during the construction of a distributed computing system is a complex and tedious task. First, configuring the computing environment requires multiple people to collaboratively operate the dispersed terminal nodes, such as starting up, setting up, deploying computational tasks, and configuring software. However, in practical applications, communication between people in different spatial locations is difficult, making it hard to ensure efficient collaboration. Second, for repeated calculations in multi-sample experiments, operators need to test and configure the computing environment for each sample, resulting in a heavy workload and high degree of manual intervention; the system lacks automation. Furthermore, when applied to industrial interconnection, there are still difficulties in how the IT system and control system communicate, and in connecting system deployment with industrial control. Summary of the Invention

[0003] To address the aforementioned technical problems in the existing technology, this disclosure provides a software operation and maintenance method based on a distributed architecture, a software operation and maintenance system based on a distributed architecture, an electronic device, and a computer-readable storage medium, which can effectively ensure the security and stability of the system, thereby ensuring the automation of system deployment.

[0004] In a first aspect, this disclosure provides a software operation and maintenance method based on a distributed architecture, applied to a software operation and maintenance system based on a distributed architecture. The software operation and maintenance system includes an application code repository and an environment configuration repository. The application code repository contains the source code of the application and a list of deployed applications. The environment configuration repository contains a list of all deployments of the infrastructure currently required by the environment. The method includes:

[0005] Install detectors and controllers in the software operation and maintenance system;

[0006] The basic setup of the deployment environment is carried out based on the configuration in the environment configuration library;

[0007] When deploying pull-based industrial IoT systems, detectors are used to check whether the PLC (Programmable Logic Controller) on the industrial equipment is connected to the industrial equipment.

[0008] If the detector detects a pathway, the corresponding industrial equipment environment and its configuration are recorded in the environment configuration library, and stored in the environment configuration library as a standard state corresponding environment configuration template; and,

[0009] The controller continuously compares the desired state in the environment configuration library with the actual state in the deployment environment.

[0010] Update the state in the deployment environment based on the comparison results to match the environment configuration library, thus completing the continuous integration and continuous delivery of the application.

[0011] Furthermore, the detection of whether the PLC on the industrial equipment and the industrial equipment are connected includes:

[0012] Perform object mapping between the PLC and the connected industrial equipment;

[0013] After the object mapping is completed, the detector checks whether the transmission network between the PLC and the industrial equipment is a pass.

[0014] Furthermore, the method also includes:

[0015] If the detector detects that there is no path between the PLC and the industrial equipment, then it is determined whether the environmental configuration needs to be modified.

[0016] If the environment configuration needs to be modified, the environment configuration is changed through the controller, and the environment configuration library is notified to record the environment configuration status of the corresponding industrial equipment environment after the change in the environment configuration library.

[0017] If the environment configuration does not need to be modified, configure it according to the initial deployment environment configuration.

[0018] Furthermore, the method also includes:

[0019] When the industrial equipment environment is changed, the system determines whether an environmental configuration standard corresponding to the changed industrial equipment environment can be found based on the records in the environment configuration library.

[0020] If found, the application will be deployed directly by the controller according to the corresponding environment configuration standard in the environment configuration library.

[0021] Furthermore, the method also includes:

[0022] Always set the controller in the same application environment as the application to be deployed;

[0023] Set up a role-based access control mechanism so that users can be assigned to various corresponding roles and obtain the corresponding role permissions.

[0024] Secondly, this disclosure provides a software operation and maintenance system based on a distributed architecture. The software operation and maintenance system includes an application code repository and an environment configuration repository. The application code repository contains the source code of the application and a list of deployed applications. The environment configuration repository contains a list of all deployments of the infrastructure currently required by the environment. The software operation and maintenance system also includes:

[0025] The configuration module allows you to set up detectors and controllers in the software operation and maintenance system.

[0026] The basic build module is configured to build the basic deployment environment based on the configuration in the environment configuration library;

[0027] The detection module is configured to detect whether the PLC on the industrial equipment and the industrial equipment are connected by a detector when deploying a pull-based industrial IoT system.

[0028] The recording module is configured to record the corresponding industrial equipment environment and the corresponding environment configuration in the environment configuration library if the detector detects a path, and store it in the environment configuration library as a standard state corresponding environment configuration template.

[0029] The comparison module is configured to continuously compare the desired state in the environment configuration library with the actual state in the deployment environment through the controller.

[0030] The update module is configured to update the state in the deployment environment based on the comparison results to match the environment configuration library, thereby completing the continuous integration and continuous delivery of the application.

[0031] Furthermore, the detection module is specifically configured as follows:

[0032] Perform object mapping between the PLC and the connected industrial equipment;

[0033] After the object mapping is completed, the detector checks whether the transmission network between the PLC and the industrial equipment is a pass.

[0034] Furthermore, the software operation and maintenance system also includes:

[0035] The judgment module is configured to determine whether the environmental configuration needs to be modified if the detector detects that there is no path between the PLC and the industrial equipment.

[0036] The modification module is configured to, if the judgment module determines that the environment configuration needs to be modified, modify the environment configuration through the controller and notify the environment configuration library to record the environment configuration status of the corresponding industrial equipment environment after the modification in the environment configuration library.

[0037] The configuration module is configured to configure the environment according to the initial deployment environment configuration if the judgment module determines that the environment configuration does not need to be modified.

[0038] Thirdly, this disclosure provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and when the processor runs the computer program stored in the memory, the processor executes a software operation and maintenance method based on a distributed architecture as described in any of the first aspects.

[0039] Fourthly, this disclosure provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the software operation and maintenance method based on a distributed architecture as described in any of the first aspects above.

[0040] Beneficial effects:

[0041] The software operation and maintenance method, system, electronic equipment, and computer-readable storage medium based on a distributed architecture disclosed herein, during pull-based deployment, utilize detectors to check whether the PLC and industrial equipment have a communication path, whether data transmission is smooth, and whether the connection is correct. The controller not only updates the environment when the environment configuration library changes, but also restores the actual environment when there are differences between the actual environment and the environment configuration library. Simultaneously, industrial equipment records different environment configurations in the environment configuration library under different states. When the industrial equipment environment changes, the corresponding environment configuration is looked up in the library, and the environment is deployed through the controller. Every environment configuration change corresponding to an industrial equipment environment change is recorded, ensuring that all changes are tracked in the distributed architecture platform logs. Through continuous monitoring, continuous integration, and continuous deployment of industrial IoT devices via detectors and controllers, the system's security and stability are well guaranteed, and the automation and standardization of system deployment are improved. Attached Figure Description

[0042] Figure 1 is a flowchart illustrating a software operation and maintenance method based on a distributed architecture provided in Embodiment 1 of this disclosure;

[0043] Figure 2 is a flowchart illustrating a software operation and maintenance control process based on a distributed architecture, as provided in Embodiment 1 of this disclosure.

[0044] Figure 3 is an architecture diagram of a software operation and maintenance system based on a distributed architecture provided in Embodiment 2 of this disclosure;

[0045] Figure 4 is an architecture diagram of an electronic device provided in Embodiment 3 of this disclosure. Detailed Implementation

[0046] To enable those skilled in the art to better understand the technical solutions of this disclosure, the disclosure will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments and drawings described herein are merely for explaining the invention and are not intended to limit the invention.

[0047] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this disclosure are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence; furthermore, in the absence of conflict, the embodiments and features in the embodiments of this disclosure can be arbitrarily combined with each other.

[0048] The terminology used in the embodiments of this disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of this disclosure. The singular forms “a,” “the,” and “the” as used in the embodiments of this disclosure and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise.

[0049] In the following description, the use of suffixes such as “module,” “part,” or “unit” to denote elements is solely for the purpose of illustrative purposes and has no specific meaning in itself. Therefore, “module,” “part,” or “unit” may be used interchangeably.

[0050] The following detailed embodiments illustrate the technical solutions of this disclosure and how they solve the aforementioned technical problems existing in the prior art. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments.

[0051] Figure 1 is a flowchart illustrating a software operation and maintenance method based on a distributed architecture according to Embodiment 1 of this disclosure. This method is applied to a software operation and maintenance system based on a distributed architecture. The software operation and maintenance system includes an application code repository and an environment configuration repository. The application code repository contains the source code of the application and a list of deployed applications. The environment configuration repository contains a list of all deployments of the infrastructure currently required by the environment. As shown in Figure 1, the method includes:

[0052] Step S101: Configure detectors and controllers in the software operation and maintenance system;

[0053] Step S102: Based on the configuration in the environment configuration library, perform basic construction of the deployment environment;

[0054] Step S103: When deploying a pull-based industrial IoT system, a detector is used to check whether the PLC on the industrial equipment and the industrial equipment are connected.

[0055] Step S104: If the detector detects a pathway, the corresponding industrial equipment environment and its configuration are recorded in the environment configuration library, and stored in the environment configuration library as a standard state corresponding environment configuration template; and,

[0056] Step S105: The controller continuously compares the desired state in the environment configuration library with the actual state in the deployment environment;

[0057] Step S106: Update the state in the deployment environment according to the comparison results to match the environment configuration library, and complete the continuous integration and continuous delivery of the application.

[0058] This disclosure discloses an embodiment for deploying industrial IoT devices based on GitOps technology. GitOps is a method for managing Kubernetes clusters and delivering applications. The core idea of ​​GitOps is to have a Git repository containing a declarative description of the infrastructure currently required in the target environment, and an automated process to match the target environment with the state described in the Git repository. With GitOps, alerts can be issued for any discrepancies between the Git repository and the content running in the cluster. If discrepancies exist, Kubernetes reconcilers will automatically update or roll back the cluster as appropriate. Using Git as the central hub of the pipeline, developers can use their familiar tools to issue pull requests (PRs) to accelerate and simplify application deployment and operation tasks in Kubernetes. Pull-based and push-based approaches are two ways of consuming data in software, describing how data producers (or holders) and data consumers communicate. In a pull system, the data consumer decides when to request and receive data; the data holder can only passively respond to requests. In a push system, the data producer decides when to push data to the consumer. The data consumer is unaware of when it will receive data updates.

[0059] A distributed architecture software operation and maintenance system is a system organized and deployed around a code repository. The system requires at least two code repositories: an application code repository and an environment configuration code repository. The application code repository contains the application's source code and a manifest for deploying the application. The environment configuration repository contains a manifest of all deployments required by the current infrastructure of the environment. To maintain consistency in environment configuration, the deployment manifests are managed automatically, and the configuration in the environment configuration repository is used as the standard for basic construction when creating an environment. The control process for application deployment in an industrial IoT system is shown in Figure 2. When using the pull method, a controller and a detector are added. The detector is used to detect connections within the industrial IoT system, and the controller is used for automated deployment and detection. The detector, containing a network adapter and detection device, checks whether the PLC on the industrial equipment is connected to the equipment. If connected, the detector passes, notifies the automatic deployment controller, which then deploys the equipment and records the corresponding device status and environment configuration in the environment configuration library, storing it as a standard environment configuration template. If not connected, the detector detects the cause of the disconnection, makes modifications, and records the corresponding status. After the detector passes, the controller continuously compares the expected status in the environment configuration library with the actual status in the deployment environment, acting as a pipeline for continuous integration / continuous delivery to complete a series of continuous integration and continuous delivery steps. Continuous integration (CI) refers to continuously (frequently multiple times a day) integrating code into the main branch. Its main benefits are twofold: rapid error detection; integrating each update into the main branch allows for rapid error detection and location, preventing branches from deviating significantly from the main branch; infrequent integration, especially with a constantly updating main branch, increases the difficulty of future integrations, potentially making integration impossible. Continuous delivery refers to the continuous (frequent) delivery of new software versions to the quality team or users for review; if the review is passed, the code enters the production phase. The controller contains various operations and expected code files required for maintenance, giving the entire system different role configuration files, startup sequences, dependencies, and automated operations. When a discrepancy is detected between the environment configuration repository and the actual deployment environment, the controller updates the state in the deployment environment to match the environment configuration repository. The controller can also monitor the image registry to find new image versions to deploy.

[0060] This disclosed embodiment is based on an industrial IoT device deployment process that incorporates continuous monitoring, continuous integration, and continuous deployment with added detector and controller structures. This process effectively ensures the security and stability of the system, thereby guaranteeing the automation (using automated tools to drive code preparation environment; including environment creation, updating, and destruction), standardization (using code to define the environment, achieving standardization of development, testing, and production environments), and visualization (using monitoring to visualize environment information; the current state of the environment is visible, the history of environment changes is visible, and traceability is possible), resulting in highly mature continuous delivery.

[0061] Furthermore, the detection of whether the PLC on the industrial equipment and the industrial equipment are connected includes:

[0062] Perform object mapping between the PLC and the connected industrial equipment;

[0063] After the object mapping is completed, the detector checks whether the transmission network between the PLC and the industrial equipment is a pass.

[0064] After object mapping is performed between the PLC and the connected industrial equipment, the detector is responsible for checking whether the PLC and the industrial equipment have a communication path, determining whether data transmission is smooth, and whether the connection is correct. If the connection is not smooth, the problem is detected and modified. This could be due to changes in physical conditions, environmental configuration changes, or changes in the order of other applications. After detecting the problem, the transmission network between the PLC and the industrial equipment is restored by modifying the environmental configuration or application order. The corresponding status is recorded during the detection and modification process; after the detector passes the test, deployment is carried out through the controller.

[0065] By adding detectors to monitor the connection path between the PLC and industrial equipment, data transmission, and other issues, the system can connect to the environment deployment in real time, form the corresponding system environment configuration settings, and record them in the database for easy configuration later, thus solving the problem of connection between system deployment and industrial control.

[0066] Furthermore, the method also includes:

[0067] If the detector detects that there is no path between the PLC and the industrial equipment, then it is determined whether the environmental configuration needs to be modified.

[0068] If the environment configuration needs to be modified, the environment configuration is changed through the controller, and the environment configuration library is notified to record the environment configuration status of the corresponding industrial equipment environment after the change in the environment configuration library.

[0069] If the environment configuration does not need to be modified, configure it according to the initial deployment environment configuration.

[0070] The detector checks if the transmission network between the PLC and the industrial equipment is functional. If not, it first determines if the environment configuration needs modification. If modification is required, it is implemented via the controller, then deployed, and the environment configuration library is notified to record the corresponding standard configuration in the library. If the environment configuration does not need modification, it is configured according to the original deployment environment. Alternatively, if the current industrial equipment environment is the environment after the status change recorded in the environment configuration library, it is configured according to the previously recorded configuration environment for the industrial equipment. Other issues are then identified and addressed based on the actual cause to resolve the transmission network problem between the PLC and the industrial equipment.

[0071] Furthermore, the method also includes:

[0072] When the industrial equipment environment is changed, the system determines whether an environmental configuration standard corresponding to the changed industrial equipment environment can be found based on the records in the environment configuration library.

[0073] If found, the application will be deployed directly by the controller according to the corresponding environment configuration standard in the environment configuration library.

[0074] During application deployment, if both the industrial equipment and its corresponding environment configuration change simultaneously, the changed industrial equipment portion and the corresponding changed environment configuration portion are stored in the environment configuration library as a standard state environment configuration library template. By recording the different environment configurations corresponding to industrial equipment in different states in the environment configuration library, if the industrial equipment state changes later, once it reverts to the previous state, the corresponding environment configuration standard can be found based on the records in the environment configuration library, and deployment can be performed through the controller. If the industrial equipment reverts to state A, because the environment configuration corresponding to state A has been recorded before, it can be directly changed to the environment configuration corresponding to state A. The controller can not only update the environment when the environment configuration library changes, but also restore it when there are differences between the actual environment and the environment configuration library. At the same time, the different environment configurations of industrial equipment in different states are recorded in the environment configuration library. When the industrial equipment environment changes, the corresponding environment configuration is found in the corresponding environment configuration library, and the environment is deployed through the controller. Every environment configuration change corresponding to industrial equipment environment change is recorded, which ensures that all changes are tracked in the distributed architecture platform logs. No one can directly modify the cluster. The system's monitoring points are formed on the detectors, controllers, and various components (such as whether the image repository can pull images normally).

[0075] Furthermore, the method also includes:

[0076] Always set the controller in the same application environment as the application to be deployed;

[0077] Set up a role-based access control mechanism so that users can be assigned to various corresponding roles and obtain the corresponding role permissions.

[0078] The controller must always be in the same environment as the application to be deployed. This allows the controller to record and continuously monitor the deployment process in real time.

[0079] Simultaneously, a role-based access control mechanism is set up, allowing cluster administrators to exercise more precise control over resource access by assigning roles to users. In this access control mechanism, permissions are associated with roles, and users acquire the permissions of those roles by becoming members of the appropriate roles.

[0080] The embodiments disclosed herein, by adding detectors and controllers for continuous monitoring, continuous integration, and continuous deployment of industrial IoT devices, can effectively ensure the security and stability of the system, thereby ensuring the automation, standardization, and visualization of system deployment, and enabling highly mature continuous delivery.

[0081] Embodiment 2 of this disclosure provides a software operation and maintenance system based on a distributed architecture. The software operation and maintenance system includes an application code repository and an environment configuration repository. The application code repository contains the source code of the application and a list of deployed applications. The environment configuration repository contains a list of all deployments of the infrastructure currently required by the environment, as shown in Figure 3. The software operation and maintenance system further includes:

[0082] Configure module 11 to set up detectors and controllers in the software operation and maintenance system;

[0083] Basic build module 12 is configured to build the basic deployment environment based on the configuration in the environment configuration library;

[0084] The detection module 13 is configured to detect whether the PLC on the industrial equipment and the industrial equipment are connected by a detector when the application deployment of the pull-based industrial Internet of Things system is carried out.

[0085] The recording module 14 is configured to record the corresponding industrial equipment environment and the corresponding environment configuration in the environment configuration library if the detector detects a path, and store it in the environment configuration library as a standard state corresponding environment configuration template.

[0086] Comparison module 15 is configured to continuously compare the desired state in the environment configuration library with the actual state in the deployment environment through the controller;

[0087] Update module 16, which is set to update the state in the deployment environment based on the comparison results to match the environment configuration library, thus completing the continuous integration and continuous delivery of the application.

[0088] Furthermore, the detection module 13 is specifically configured as follows:

[0089] Perform object mapping between the PLC and the connected industrial equipment;

[0090] After the object mapping is completed, the detector checks whether the transmission network between the PLC and the industrial equipment is a pass.

[0091] Furthermore, the software operation and maintenance system also includes:

[0092] The judgment module 17 is configured to determine whether the environmental configuration needs to be modified if the detector detects that there is no path between the PLC and the industrial equipment.

[0093] The modification module 18 is configured to modify the environment configuration through the controller if the judgment module 17 determines that the environment configuration needs to be modified, and to notify the environment configuration library to record the environment configuration status of the corresponding industrial equipment environment after the modification in the environment configuration library.

[0094] The configuration module 19 is configured to configure the environment according to the initial deployment environment configuration if the judgment module 17 determines that the environment configuration does not need to be modified.

[0095] Furthermore, the software operation and maintenance system also includes a judgment module 17 and a configuration module 19:

[0096] The judgment module 17 is configured to determine whether an environmental configuration standard corresponding to the changed industrial equipment environment can be found based on the records in the environmental configuration library when the industrial equipment environment is changed.

[0097] The configuration module 19 is configured to deploy the corresponding application directly according to the corresponding environment configuration standard in the environment configuration library if the judgment module determines that it can be found.

[0098] Furthermore, the setting module 11 is also configured as follows:

[0099] Always set the controller in the same application environment as the application to be deployed;

[0100] Set up a role-based access control mechanism so that users can be assigned to various corresponding roles and obtain the corresponding role permissions.

[0101] This disclosure, through the addition of detectors and controllers for continuous monitoring, continuous integration, and continuous deployment of industrial IoT devices, effectively ensures system security and stability. This guarantees automated (automated tools drive code preparation, including environment creation, updating, and destruction), standardized (code defines the environment, standardizing development, testing, and production environments), and visualized (monitoring environmental information; current environment status, change history, and traceability are all visible), resulting in highly mature continuous delivery.

[0102] The software operation and maintenance system based on distributed architecture in this disclosure is used to implement the software operation and maintenance method based on distributed architecture in the first embodiment of the method. Therefore, the description is relatively simple. For details, please refer to the relevant description in the first embodiment of the method above, which will not be repeated here.

[0103] Furthermore, as shown in FIG4, Embodiment 4 of this disclosure also provides an electronic device, including a memory 100 and a processor 200. The memory 100 stores a computer program. When the processor 200 runs the computer program stored in the memory 100, the processor 200 executes the various possible methods described above.

[0104] The memory 100 is connected to the processor 200. The memory 100 can be a flash memory, a read-only memory, or another type of memory. The processor 200 can be a central processing unit or a microcontroller.

[0105] Furthermore, embodiments of this disclosure also provide a computer-readable storage medium storing a computer program, which is executed by a processor using the various possible methods described above.

[0106] The computer-readable storage medium includes volatile or non-volatile, removable or non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, computer program modules or other data). Computer-readable storage media includes, but is not limited to, RAM (Random Access Memory), ROM (Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash memory or other memory technologies, CD-ROM (Compact Disc Read-Only Memory), Digital Video Disc (DVD) or other optical disc storage, cartridges, magnetic tapes, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and is accessible to a computer.

[0107] It is understood that the above embodiments are merely exemplary embodiments used to illustrate the principles of this disclosure, and this disclosure is not limited thereto. For those skilled in the art, various modifications and improvements can be made without departing from the spirit and substance of this disclosure, and these modifications and improvements are also considered to be within the scope of protection of this disclosure.

Claims

1. A software operation and maintenance method based on a distributed architecture, characterized in that, This method is applied to a software operation and maintenance system based on a distributed architecture. The system includes an application code repository and an environment configuration repository. The application code repository contains the source code of the applications and a list of deployed applications. The environment configuration repository contains a list of all deployments required for the current infrastructure of the environment. The method includes: setting up detectors and controllers in the software operation and maintenance system; the detectors include network adapters and detection devices, used to detect in real time the physical connection status between a programmable logic controller (PLC) on an industrial device and the industrial device; using the configuration in the environment configuration repository as a standard, constructing the basic deployment environment; during the application deployment of a pull-based industrial IoT system, detecting whether the PLC on the industrial device and the industrial device are connected via the detectors; if the detectors detect a connection, recording the corresponding industrial device environment and its configuration in the environment configuration repository, and using it as a basis for deployment. A standard state corresponding environment configuration template is stored in the environment configuration library; and the controller continuously compares the expected state in the environment configuration library with the actual state in the deployment environment, replacing the role of the continuous integration / continuous delivery pipeline; the state in the deployment environment is updated according to the comparison results to match the environment configuration library, completing the continuous integration and continuous delivery of the application; during application deployment, if the industrial equipment and the corresponding environment configuration are changed simultaneously, the changed industrial equipment part is matched with the corresponding changed environment configuration part and stored in the environment configuration library as a standard state corresponding environment configuration library template; when the industrial equipment environment is changed, it is determined whether an environment configuration standard corresponding to the changed industrial equipment environment can be found according to the records in the environment configuration library; if it can be found, the controller directly performs the corresponding application deployment according to the corresponding environment configuration standard in the environment configuration library.

2. The software operation and maintenance method according to claim 1, characterized in that, The process of detecting whether the PLC and the industrial equipment are connected includes: mapping the PLC to the connected industrial equipment; and after the mapping is completed, detecting whether the transmission network between the PLC and the industrial equipment is connected using a detector.

3. The software operation and maintenance method according to claim 1 or 2, characterized in that, The method further includes: if the detector detects that there is no path between the PLC and the industrial equipment, then it is determined whether the environmental configuration needs to be modified; if the environmental configuration needs to be modified, the environmental configuration is changed through the controller, and the environmental configuration library is notified to record the environmental configuration status of the corresponding industrial equipment environment after the change in the environmental configuration library; if the environmental configuration does not need to be modified, the configuration is performed according to the initial deployed environmental configuration.

4. The software operation and maintenance method according to claim 3, characterized in that, The method further includes: always setting the controller in the same application environment as the application to be deployed; setting a role-based access control mechanism so that users become various corresponding roles and obtain the corresponding role permissions.

5. A software operation and maintenance system based on a distributed architecture, characterized in that, The software operation and maintenance system includes an application code library and an environment configuration library. The application code library contains the source code of the applications and a list of deployed applications. The environment configuration library contains a list of all deployments of the infrastructure required for the current environment. The software operation and maintenance system also includes: a setting module, configured to set detectors and controllers in the software operation and maintenance system. The detectors include network adapters and detection devices for real-time detection of the physical connection status between the PLC on the industrial equipment and the industrial equipment; a basic construction module, configured to perform basic construction of the deployment environment based on the configuration in the environment configuration library; a detection module, configured to detect whether the PLC on the industrial equipment and the industrial equipment are connected via detectors during the application deployment of the pull-based industrial IoT system; and a recording module, configured to record the corresponding industrial equipment environment and the corresponding environment configuration in the environment configuration library if the detector detects a connection, and use this as a standard status pair. The system includes: an environment configuration template stored in an environment configuration library; a comparison module configured to continuously compare the desired state in the environment configuration library with the actual state in the deployment environment via the controller; an update module configured to update the state in the deployment environment according to the comparison results to match the environment configuration library, thereby completing continuous integration and continuous delivery of the application; a recording module configured to, during application deployment, if the industrial equipment and its corresponding environment configuration are changed simultaneously, store the changed industrial equipment portion and the corresponding changed environment configuration portion in the environment configuration library as a standard state corresponding environment configuration library template; a judgment module configured to, when the industrial equipment environment is changed, determine whether an environment configuration standard corresponding to the changed industrial equipment environment can be found based on the records in the environment configuration library; and a configuration module configured to, if the judgment module determines that an environment configuration standard can be found, directly deploy the application according to the corresponding environment configuration standard in the environment configuration library via the controller.

6. The software operation and maintenance system according to claim 5, characterized in that, The detection module is specifically configured to: perform object mapping between the PLC and the connected industrial equipment; after the object mapping is completed, detect whether the transmission network between the PLC and the industrial equipment is a path through the detector.

7. The software operation and maintenance system according to claim 5 or 6, characterized in that, The software operation and maintenance system also includes a modification module; the judgment module is further configured to determine whether the environment configuration needs to be modified if the detector detects that there is no path between the PLC and the industrial equipment; the modification module is configured to modify the environment configuration through the controller if the judgment module determines that the environment configuration needs to be modified, and notify the environment configuration library to record the environment configuration status of the corresponding industrial equipment environment after the modification in the environment configuration library; the configuration module is further configured to configure according to the initial deployment environment configuration if the judgment module determines that the environment configuration does not need to be modified.

8. An electronic device, characterized in that, It includes a memory and a processor, wherein the memory stores a computer program, and when the processor runs the computer program stored in the memory, the processor executes the software operation and maintenance method based on a distributed architecture as described in any one of claims 1-4.

9. A computer-readable storage medium, comprising: A computer program, when run on a computer, causes the computer to perform a software operation and maintenance method based on a distributed architecture according to any one of claims 1-4.

Citation Information

Patent Citations

  • Industrial Internet of Things management and control method and system based on cloud-side collaboration

    CN113783953A