CN-116708184-B - Edge equipment business processing system and method
Abstract
The invention discloses a system and a method for processing edge equipment business. The system comprises a gateway, a container registry, a container arranging server and a working node, wherein the gateway is used for receiving service requests sent by cluster equipment and temporarily storing the service requests to a message queue, the container registry is used for storing micro service codes corresponding to service processing containers, the container arranging server is used for acquiring service processing container images from the micro service codes and sending the service processing container images to an established virtual machine for deploying the service processing containers based on the container images, and the working node is used for acquiring the service requests from the message queue and carrying out service processing on the service requests based on the service processing containers deployed to the virtual machine. According to the technical scheme, the business scene of different edge equipment clusters is simulated, so that business application management is realized through software, the limitation of hardware equipment is eliminated, the business processing requirements of mass equipment are met, and the development difficulty and the operation and maintenance cost are reduced.
Inventors
- LIN ZHICHAO
- LUO BUSHENG
- ZHONG RIPING
- YANG SHIFENG
- WANG YINGMIN
- YANG LIN
- WANG XIAOGUANG
- ZHAI ZHANZHENG
Assignees
- 广东电网有限责任公司
- 广东电网有限责任公司惠州供电局
Dates
- Publication Date
- 20260505
- Application Date
- 20230725
Claims (10)
- 1. A service processing system of edge equipment is characterized by comprising a gateway, a container registry, a container arranging server and a working node, wherein, The gateway is used for receiving the service request sent by the cluster equipment and temporarily storing the service request into a message queue; The container registry is used for storing micro service codes corresponding to the service processing containers; the container arranging server is used for acquiring a service processing container image from the micro service code and sending the service processing container image to the created virtual machine for deploying the service processing container based on the container image; The working node is configured to obtain the service request from the message queue, and perform service processing on the service request based on the service processing container deployed in the virtual machine.
- 2. The system of claim 1, wherein the container orchestration server further comprises a declarative API, a configuration file library, an API server, a control manager, and a scheduler, wherein, The declarative API is used for screening container configuration files edited based on human language; the configuration file library is used for storing the screened container configuration files; the API server is used for acquiring the container mirror image from the micro service code; The control manager is used for managing the life cycle state of the service processing container according to the container configuration file; The scheduler is configured to deploy the service processing container in the virtual machine according to the container mirror based on the container lifecycle state.
- 3. The system of claim 1, wherein the worker node further comprises a worker node component, a virtual resource pool component, and a hypervisor component, wherein, The working node assembly is used for acquiring the service request from the message queue and sending the service request to the virtual resource pool assembly; the hypervisor component is used for creating the virtual machine according to node resources; The virtual resource pool component is used for managing and scheduling node resources of the working node, and carrying out service processing on the service request according to the service processing container deployed in the virtual machine.
- 4. The system of claim 3, wherein the worker node assembly further comprises a service discovery mechanism and a service grid mechanism, wherein, The service discovery mechanism is used for creating micro-service metadata according to the service request; The service grid mechanism is used for sending the micro-service metadata to the service processing container in the virtual machine.
- 5. The system of claim 4, wherein the micro-service metadata includes collection class micro-service metadata, analysis class micro-service metadata, and control class micro-service metadata.
- 6. The system of claim 2, wherein the container lifecycle states include a creation state, an operational state, and a termination state, wherein, The API server is further used for extracting container data information from the container configuration file and creating container metadata based on the container data information; the control manager is specifically configured to: determining a container lifecycle state of the business processing container as a creation state in case the creation of the container metadata is completed; determining a container life cycle state of the service processing container as an operation state under the condition that the service processing container is deployed; And determining the container life cycle state of the service processing container as a terminal state under the condition that the container life cycle time is longer than the preset cycle time.
- 7. The system of claim 6, wherein the API server is further configured to: And deleting the created container metadata under the condition that the container life cycle state is detected to be in a final state.
- 8. The system of claim 2, wherein the scheduler is further configured to: Under the condition that the service processing containers are detected to be distributed in the virtual machine, locking the virtual machine, and prohibiting the service processing containers from sharing data; And under the condition that the life cycle state of the container is detected to be a termination state, unlocking the virtual machine, and releasing the service processing container resources.
- 9. The system of claim 3, wherein the hypervisor component is further configured to: And deleting the virtual machine under the condition that the life cycle state of the container is detected to be the ending state.
- 10. A method for processing an edge device service, the method comprising: receiving a service request sent by cluster equipment through a gateway, and temporarily storing the service request into a message queue; storing micro service codes corresponding to the service processing containers through the container registry; Acquiring a service processing container image from the micro service code through a container arrangement server, and transmitting the service processing container image to the created virtual machine for deploying the service processing container based on the container image; And acquiring the service request from the message queue through a working node, and performing service processing on the service request based on the service processing container deployed in the virtual machine.
Description
Edge equipment business processing system and method Technical Field The present invention relates to the field of computer technologies, and in particular, to a system and a method for processing an edge device service. Background Unlike the traditional dispatching service with large capacity device, long-term planning and continuous operation, dispatching of small hydropower stations and other edge equipment is mainly connected to a power grid through the distribution network terminal, and the service form is focused on short-term adjustment and real-time management. However, the existing network distribution system adopts a single application program architecture, so that all hardware devices and software functions are tightly coupled in one unit, and cannot meet the requirement of mass devices for service processing, and meanwhile, by adopting the network distribution system service based on the single application program architecture, a corresponding number of network distribution systems are required to be configured for a plurality of service applications and a plurality of terminal small hydroelectric cluster measurement and control devices, which greatly increases development difficulty and operation and maintenance cost. Disclosure of Invention The invention provides a system and a method for processing the edge equipment business, which simulate business scenes of different edge equipment clusters, enable business application management to be realized through software, get rid of the limitation of hardware equipment, and meet the business processing requirements of mass equipment, thereby reducing development difficulty and operation and maintenance cost. According to one aspect of the present invention, an edge device service processing system is provided. The system comprises a gateway, a container registry, a container orchestration server and a working node, wherein, The gateway is used for receiving the service request sent by the cluster equipment and temporarily storing the service request into a message queue; The container registry is used for storing micro service codes corresponding to the service processing containers; the container arranging server is used for acquiring a service processing container image from the micro service code and sending the service processing container image to the created virtual machine for deploying the service processing container based on the container image; The working node is configured to obtain the service request from the message queue, and perform service processing on the service request based on the service processing container deployed in the virtual machine. According to another aspect of the invention, an edge device service processing method is provided. The method comprises the following steps: receiving a service request sent by cluster equipment through a gateway, and temporarily storing the service request into a message queue; storing micro service codes corresponding to the service processing containers through the container registry; Acquiring a service processing container image from the micro service code through a container arrangement server, and transmitting the service processing container image to the created virtual machine for deploying the service processing container based on the container image; And acquiring the service request from the message queue through a working node, and performing service processing on the service request based on the service processing container deployed in the virtual machine. The technical scheme of the embodiment of the invention comprises the steps of receiving a service request sent by cluster equipment through a gateway, temporarily storing the service request into a message queue, storing micro service codes corresponding to service processing containers through a container registry, acquiring service processing container images from the micro service codes through a container arrangement server, sending the service processing container images to an established virtual machine for deploying the service processing containers based on the container images, acquiring the service request from the message queue through a working node, and carrying out service processing on the service request based on the service processing containers deployed into the virtual machine, so that service application management is realized through software by simulating service scenes of different edge equipment clusters, hardware equipment limitation is avoided, and the service processing requirements of mass equipment are met, thereby reducing development difficulty and operation and maintenance cost. It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows. Drawings In order to more