Disclosure of Invention
The invention mainly aims to provide a real-time container arrangement and scheduling framework based on 4DIAC and a container resource management method, so as to solve the problem that the industrial real-time container is not reasonably managed in the prior art.
To achieve the above objective, a first aspect of the embodiments of the present invention provides a real-time container scheduling framework based on 4DIAC, including a real-time container operation tool, an industrial automation control framework 4DIAC, a server system, a container agent operation environment, a real-time container, and a super-fusion control platform;
The server system comprises a real-time operating system and a non-real-time operating system;
The super-fusion control platform is internally provided with a real-time container created by the 4DIAC, a container agent operating environment is deployed in the real-time container, and the real-time operating environment is directly embedded into the container agent operating environment for operation;
the container agent running environment is used for interconnecting the real-time running environment and the 4DIAC, so that the real-time container is subjected to resource management in the real-time running environment through the real-time container operation and maintenance tool.
Optionally, the 4DIAC is a 61499 network framework.
Optionally, the container agent operating environment is an operating environment based on the IEC61499 standard, and the real-time operating environment is an operating environment based on the IEC61131-3 standard.
Optionally, the real-time running environment and the 4DIAC are interconnected in an interworking manner, including:
The address of the real-time running environment is the address of the real-time container, and other containers access the real-time container through the address.
Optionally, performing resource management on the real-time container in the real-time running environment through the real-time container operation and maintenance tool includes:
The real-time container operation and maintenance tool integrates the container agent operation environment and the real-time container, and the container agent operation environment directly operates in the real-time container;
the real-time container operation and maintenance tool embeds the real-time operation environment into a container agent operation environment to generate a final real-time container mirror image;
The real-time container is configured and managed by modifying the 4DIAC interface.
A second aspect of an embodiment of the present invention provides a container resource management method using the 4 DIAC-based real-time container orchestration scheduling framework according to the first aspect, comprising the steps of:
S1, creating a real-time container through an industrial automation control framework 4DIAC, and deploying a container agent running environment in the real-time container;
S2, capturing an operation command of the 4DIAC to the real-time container through the container agent running environment, packaging and forwarding the operation command to a super fusion control platform, and executing the operation command through the super fusion control platform;
S3, packaging all operation interfaces of the real-time container through the container agent running environment, calling the operation interfaces, generating corresponding Shell commands, and forwarding the Shell commands to the real-time running environment for execution;
S4, the container agent running environment actively acquires the physical resource using environment of the real-time operating system and the resource using condition of the real-time container through the real-time container operation and maintenance tool, and reports the monitoring data to the 4DIAC.
Optionally, the operation command includes at least one of creation, resource elastic scaling, deletion, and monitoring.
Optionally, configuring and managing the real-time container by modifying a management interface of the 4DIAC is also included.
The invention has the beneficial effects that the 4DIAC framework is adopted, and on the premise of slightly changing codes, the existing real-time operation system is hardly changed and the space occupation is as small as possible, so that the real-time container can be uniformly scheduled and managed.
The invention optimizes and simplifies the configuration operation and the use mode of the real-time container, and satisfies the requirement that different application scenes can be used for the environment of the real-time container.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In this document, suffixes such as "module", "component" or "unit" used to represent elements are used only for facilitating the description of the present invention, and have no particular meaning in themselves. Thus, "module" and "component" may be used in combination.
As shown in fig. 1, a real-time 4 DIAC-based container orchestration scheduling framework 100 comprises a real-time container operation and maintenance tool 101, an industrial automation control framework 4DIAC102, a server system 103, a container agent running environment 104, a real-time running environment 105, a real-time container 106, and a super fusion control platform 107;
The server system 103 comprises a real-time operating system 1031 and a non-real-time operating system 1032, wherein the super fusion control platform 107 is operated on the real-time operating system 1031, and the non-real-time operating system 1032 is operated by the 4DIAC102.
The 4DIAC102 is used to create a real-time container 106, the real-time container 106 deploys a container proxy runtime environment 104, the real-time runtime environment 105 is directly embedded into the container proxy runtime environment 104 to run, and the real-time container 106 is provided in a super-fusion control platform 107.
The container proxy runtime environment 104 is used to interconnect the real-time runtime environment 105 and the 4DIAC102 to enable resource management of the real-time container 106 in the real-time runtime environment 105 via the real-time container runtime tool 101.
In the embodiment of the invention, the 4DIAC is 61499 network framework. The container agent running environment is a running environment based on the IEC61499 standard, and the real-time running environment is a running environment based on the IEC61131-3 standard.
One implementation of the interconnection of the real-time operating environment and the 4DIAC is:
The address of the real-time running environment is the address of the real-time container, and other containers access the real-time container through the address.
In an embodiment of the present invention, a real-time container operation tool can implement the following functions to perform resource management of the real-time container by the real-time operation environment, including:
The real-time container operation and maintenance tool integrates the container agent operation environment and the real-time container, and the container agent operation environment directly operates in the real-time container;
the real-time container operation and maintenance tool embeds the real-time operation environment into a container agent operation environment to generate a final real-time container mirror image;
The real-time container is configured and managed by modifying the management interface of the 4 DIAC.
The working principle of the real-time 4 DIAC-based container scheduling framework 100 is also described by the working process of the container agent running environment.
Firstly, the 4DIAC creates a real-time container, a container agent running environment is deployed in the container, the container agent running environment realizes the intercommunication between the real-time running environment and the 4DIAC, specifically, the address of the real-time running environment is the address of the real-time container, and other containers access the real-time container through the address. Based on the above, the working process of the container agent running environment is as follows:
(1) The container agent running environment captures all operations (creation, resource elastic expansion, deletion, monitoring and the like) of the 4DIAC on the container, and then encapsulates and forwards the operation commands to the super fusion control platform so that the super fusion control platform can specifically execute the operation commands;
(2) The container proxy running environment encapsulates all operation interfaces of the real-time container, generates corresponding Shell commands by calling the interfaces, and forwards the Shell commands to the real-time running environment for execution;
(3) The container agent running environment actively acquires the physical resource use condition of the real-time operating system and the resource use condition of the real-time container, and reports the monitoring data to the 4DIAC.
It should be noted that the Shell command is an application command, and the application is used to provide an interface through which a user accesses a service of the operating system kernel.
According to the embodiment of the invention, the real-time operation environment is directly embedded into the preset container agent operation environment to operate through the real-time container operation and maintenance tool and the container agent operation environment, so that unified dispatching management is carried out on the real-time container. The real-time container scheduling framework based on the 4DIAC can be used for different real-time containers, and the real-time container environment in different application scenes can be fetched and used.
The embodiment of the invention also describes the working principle of the real-time container arranging and scheduling framework based on the 4DIAC by practical application:
Firstly, in the same network environment, a physical server and an industrial control device are used, a non-real-time operating system is installed on the physical server, and a real-time operating system is installed on the industrial control device in an operating mode. Then, the super fusion control platform of the invention is started on a real-time operating system, a real-time container is operated on the super fusion control platform, and 4DIAC is deployed on a non-real-time operating system. Secondly, the mirror image of the container agent running environment manufactured by the method is prepared in advance and deployed in the real-time container, wherein the container agent running environment automatically establishes connection with the real-time container, sends instructions and is correspondingly configured to the real-time container, and creates the IEC61131-3 standard real-time running environment. And finally, the container proxy running environment mirror image returns the monitoring state of the real-time running environment corresponding to the IEC61131-3 standard to the 4DIAC, so that the 4DIAC is uniformly displayed.
As shown in fig. 2, the embodiment of the present invention further provides a container resource management method using the real-time 4 DIAC-based container scheduling framework, which includes the following steps:
S1, creating a real-time container through an industrial automation control framework 4DIAC, and deploying a container agent running environment in the real-time container;
S2, capturing an operation command of the 4DIAC to the real-time container through the container agent running environment, packaging and forwarding the operation command to a super fusion control platform, and executing the operation command through the super fusion control platform;
S3, packaging all operation interfaces of the real-time container through the container agent running environment, calling the operation interfaces, generating corresponding Shell commands, and forwarding the Shell commands to the real-time running environment for execution;
S4, the container agent running environment actively acquires the physical resource using environment of the real-time operating system and the resource using condition of the real-time container through the real-time container operation and maintenance tool, and reports the monitoring data to the 4DIAC.
In one embodiment, the operation command includes at least one of creation, resource elastic scaling, deletion, and monitoring.
In one embodiment, after step S4, configuring and managing the real-time container by modifying the management interface of the 4DIAC is further included.
The foregoing embodiments are merely illustrative of the technical solutions of the present invention, and not restrictive, and although the foregoing embodiments have been described in detail, it should be understood by those skilled in the art that the technical solutions described in the foregoing embodiments may be modified or some of the technical features may be replaced with other technical solutions, and that the modifications or the replacements do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.