Edge computing service distribution design and alignment method, system and terminal

By generating service instance virtual sub-device and issuing it to the edge gateway, the problem of alignment and batch operation of cloud and sub-device is solved, rapid deployment and stable operation are achieved, and service response speed and device management efficiency are improved.

CN119182643APending Publication Date: 2024-12-24深圳开鸿数字产业发展有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411202318.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-29
Publication Date
2024-12-24

AI Technical Summary

Technical Problem

In the prior art, the alignment and batch operations between the cloud and the sub-device cannot be effectively implemented, resulting in separate processing of hardware devices when loading program contents, and unstable after loading, resulting in inconvenient device management and control.

Method used

By obtaining deployment service information, generating service instance virtual sub-device, issuing instructions to the edge gateway for online launch, receiving deployment results in real time and monitoring them, and using built-in components of the container engine to achieve rapid deployment and stable operation.

Benefits of technology

Achieve seamless integration between the cloud and the edge layer, quickly deploy service instance virtual sub-device, reduce deployment time and data transmission delay, improve service response speed, and ensure stable data capture of sub-device by edge gateways, making it convenient for cloud Monitoring and control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119182643A_ABST
    Figure CN119182643A_ABST
Patent Text Reader

Abstract

The invention discloses an edge computing service distribution design and alignment method, system and terminal, and the method comprises the steps: obtaining a plurality of pieces of uploaded deployment service information, and generating a plurality of service instance virtual sub-devices according to the deployment service information; generating an issuing instruction, and according to the issuing instruction, issuing all the deployment service information and all the service instance virtual sub-devices to an edge gateway device for online of each service instance virtual sub-device; receiving a service instance deployment result reported by the edge gateway, and when the result is that deployment is completed, receiving information of each service instance virtual sub-device regularly reported by the edge gateway device in real time according to preset reporting time; and monitoring each service instance virtual sub-device according to the information of each service instance virtual sub-device. According to the invention, a plurality of sub-devices can be quickly and stably deployed to the corresponding edge gateways, so that alignment between the cloud and the sub-devices is realized, and the cloud can conveniently manage the corresponding sub-devices.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of edge computing technology, and in particular to an edge computing service distribution design and alignment method, system and terminal. Background Art

[0002] Distribution design and alignment between the cloud and virtual sub-devices help the cloud to perform batch operations on multiple sub-devices at the same time. However, the alignment between the cloud and sub-devices and the subsequent batch operations are not well implemented, resulting in the need for separate processing when loading program content to hardware devices, and the loading is not stable, which makes it extremely inconvenient to implement device management and control.

[0003] Therefore, the prior art still needs to be improved and developed. Summary of the invention

[0004] The main purpose of the present invention is to provide an edge computing service distribution design and alignment method, system, terminal and computer-readable storage medium, aiming to solve the problem that the alignment between the cloud and sub-devices and the subsequent batch operations are not well implemented in the prior art, resulting in the need for separate processing when loading program content to hardware devices, and the program content is not stable after loading, which leads to great inconvenience in device management and control.

[0005] To achieve the above object, the present invention provides an edge computing service distribution design and alignment method, the edge computing service distribution design and alignment method comprising the following steps:

[0006] Acquire the uploaded multiple deployment service information, and generate multiple service instance virtual sub-devices according to the deployment service information;

[0007] Generate a sending instruction, and send all the deployment service information and all the service instance virtual sub-devices to the edge gateway device according to the sending instruction to bring each service instance virtual sub-device online;

[0008] Receive the service instance deployment result reported by the edge gateway, and when the result is that the deployment is completed, receive the information of each service instance virtual sub-device regularly reported by the edge gateway device in real time according to the preset reporting time;

[0009] Each of the service instance virtual sub-devices is monitored according to the information of each of the service instance virtual sub-devices.

[0010] Optionally, the acquiring of the uploaded multiple deployment service information and generating multiple service instance virtual sub-devices according to the deployment service information further includes:

[0011] According to user needs, multiple deployment service information are pre-generated in the preset network, wherein each of the deployment service information includes a version number, a deployment mode, a container image, a container address, an environment variable, a directory mapping, and a network type;

[0012] The deployment service information is uploaded to the local computer according to the cloud management platform.

[0013] Optionally, the acquiring of the uploaded multiple deployment service information and generating multiple service instance virtual sub-devices according to the deployment service information further includes:

[0014] Generate a service instance ID for each service instance virtual sub-device according to the multiple service instance virtual sub-devices generated by the deployment service information;

[0015] Each of the service instance virtual sub-devices and the corresponding service instance ID are recorded in a database.

[0016] Optionally, the generating and issuing instructions, according to which all the deployment service information and all the service instance virtual sub-devices are issued to the edge gateway device to bring each service instance virtual sub-device online, specifically includes:

[0017] Generate a sending instruction, and send each of the deployment service information and all of the service instance virtual sub-devices to the edge gateway device according to the sending instruction;

[0018] The edge gateway device brings the corresponding service instance virtual sub-device online according to each of the deployment service information.

[0019] Optionally, sending all the deployment service information and all the service instance virtual sub-devices to an edge gateway device to bring each service instance virtual sub-device online may further include:

[0020] The edge gateway device obtains the deployment mode of each of the service instance virtual sub-devices according to the deployment service information;

[0021] When the deployment mode is loading using a warehouse mode, determining whether the first parameter configuration content is empty;

[0022] When the first parameter configuration content is not empty, log in to the private warehouse, convert the format of the installation configuration deployment file and save it;

[0023] After saving, execute the deployment command and bring the service instance virtual sub-device online.

[0024] Optionally, the edge gateway device obtains the deployment mode of each of the service instance virtual sub-devices according to the deployment service information, and then further includes:

[0025] When the deployment mode is local download and installation, the image package is downloaded locally according to the container address and loaded;

[0026] Convert the loaded installation configuration deployment file into a new format and save it;

[0027] After saving, execute the deployment command and bring the service instance virtual sub-device online.

[0028] Optionally, the receiving of the service instance deployment result reported by the edge gateway, when the result is that the deployment is completed, receiving in real time according to a preset reporting time the information of each service instance virtual sub-device regularly reported by the edge gateway device, specifically includes:

[0029] Receive the service instance deployment result reported by the edge gateway through the event, and when the result is that the deployment is completed, issue an information receiving instruction, wherein the service instance deployment result includes the deployment result of each service instance virtual sub-device and the corresponding service instance ID;

[0030] Receive in real time the information of each service instance virtual sub-device reported by the edge gateway device according to the preset reporting time.

[0031] In addition, to achieve the above-mentioned purpose, the present invention also provides an edge computing service distribution design and alignment system, wherein the edge computing service distribution design and alignment system comprises:

[0032] An information acquisition module, used to acquire a plurality of uploaded deployment service information, and generate a plurality of service instance virtual sub-devices according to the deployment service information;

[0033] An online module, used for generating a sending instruction, and sending all the deployment service information and all the service instance virtual sub-devices to the edge gateway device according to the sending instruction to bring each service instance virtual sub-device online;

[0034] A receiving module is used to receive the service instance deployment result reported by the edge gateway. When the result is that the deployment is completed, the information of each service instance virtual sub-device regularly reported by the edge gateway device is received in real time according to the preset reporting time;

[0035] The control module is used to monitor each of the service instance virtual sub-devices according to the information of each of the service instance virtual sub-devices.

[0036] In addition, to achieve the above-mentioned purpose, the present invention also provides a terminal, wherein the terminal includes: a memory, a processor, and an edge computing service distribution design and alignment program stored in the memory and runnable on the processor, and when the edge computing service distribution design and alignment program is executed by the processor, the steps of the edge computing service distribution design and alignment method as described above are implemented.

[0037] In addition, to achieve the above-mentioned objectives, the present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores an edge computing service distribution design and alignment program, and when the edge computing service distribution design and alignment program is executed by a processor, the steps of the edge computing service distribution design and alignment method as described above are implemented.

[0038] In the present invention, multiple uploaded deployment service information is obtained, and multiple service instance virtual sub-devices are generated according to the deployment service information; a sending instruction is generated, and according to the sending instruction, all the deployment service information and all the service instance virtual sub-devices are sent to the edge gateway device to bring each service instance virtual sub-device online; the service instance deployment result reported by the edge gateway is received, and when the result is that the deployment is completed, the information of each service instance virtual sub-device periodically reported by the edge gateway device is received in real time according to the preset reporting time; and each service instance virtual sub-device is monitored according to the information of each service instance virtual sub-device. The present invention generates corresponding service instance virtual sub-devices in the cloud based on user needs, thereby seamlessly integrating the cloud and edge layers through the service instance virtual sub-devices, and then instructs the edge gateway through instructions on how to receive, process and distribute services to the corresponding edge devices, thereby realizing rapid deployment of services, so that the edge devices respond accordingly, and efficiently deploy and run the corresponding service instance virtual sub-devices. This process completes the deployment of multiple sub-devices, thereby saving deployment time. At the same time, the built-in components of the application container engine are used to significantly reduce the delay in data transmission, improve the response speed of the service, and enable the edge gateway after deployment to stably and quickly capture data from the sub-devices, thereby allowing the cloud to monitor and control accordingly. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 It is a flow chart of a preferred embodiment of the edge computing service distribution design and alignment method of the present invention;

[0040] Figure 2 It is an interactive schematic diagram of a preferred embodiment of the edge computing service distribution design and alignment method of the present invention;

[0041] Figure 3 It is a schematic diagram of the relationship between the service instance virtual sub-device and the edge gateway of the preferred embodiment of the edge computing service distribution design and alignment method of the present invention;

[0042] Figure 4 It is a structural diagram of a preferred embodiment of the edge computing service distribution design and alignment system of the present invention;

[0043] Figure 5 It is a structural diagram of a preferred embodiment of the terminal of the present invention. DETAILED DESCRIPTION

[0044] In order to make the purpose, technical solution and advantages of the present invention clearer and more specific, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0045] Distribution design and alignment between the cloud and virtual sub-devices help the cloud to perform batch operations on multiple sub-devices at the same time. However, the alignment between the cloud and sub-devices and the subsequent batch operations are not well implemented, resulting in the need for separate processing when loading program content to hardware devices, and the loading is not stable, which makes it extremely inconvenient to implement device management and control.

[0046] In response to one or more of the above-mentioned problems, the present invention obtains multiple uploaded deployment service information, generates multiple service instance virtual sub-devices according to the deployment service information; generates a sending instruction, and according to the sending instruction, sends all of the deployment service information and all of the service instance virtual sub-devices to the edge gateway device to bring each service instance virtual sub-device online; receives the service instance deployment result reported by the edge gateway, and when the result is that the deployment is completed, receives the information of each service instance virtual sub-device reported periodically by the edge gateway device in real time according to a preset reporting time; and monitors each of the service instance virtual sub-device according to the information of each of the service instance virtual sub-device.

[0047] The edge computing service distribution design and alignment method described in the preferred embodiment of the present invention is as follows: Figure 1 As shown, the edge computing service distribution design and alignment method includes the following steps:

[0048] Step S10: Acquire the uploaded multiple deployment service information, and generate multiple service instance virtual sub-devices according to the deployment service information.

[0049] Specifically, in this application, the cloud is used to perform these operations, and devices with cloud server functions can also be used to perform them. In this application, multiple virtual sub-devices, namely service instance virtual sub-devices, are constructed in the cloud according to multiple deployment service information uploaded by the customer management platform. These service instance virtual sub-devices are closely associated with the corresponding application service instances and are configured to be mounted under the edge gateway device, thereby ensuring seamless integration between the cloud and the edge layer.

[0050] Furthermore, the step of acquiring the uploaded multiple deployment service information and generating multiple service instance virtual sub-devices according to the deployment service information may also include:

[0051] According to user needs, multiple deployment service information are pre-generated in the preset network, wherein each of the deployment service information includes a version number, a deployment mode, a container image, a container address, an environment variable, a directory mapping, and a network type;

[0052] The deployment service information is uploaded to the local computer according to the cloud management platform.

[0053] Specifically, in the present application, before obtaining the corresponding multiple deployment service information in the cloud, the Docker image source address or the exported image tar compressed package is first uploaded to the cloud through the cloud management platform interface, wherein the preset network is the address of the Docker image source address or the exported image tar compressed package that the user obtains in advance, and by correspondingly obtaining the Docker image source address or the exported image tar compressed package in the preset network, multiple deployment service information can be generated, each deployment information includes version number, deployment method, container image, container address, environment variables, directory mapping, network type and other information; the deployment service information is simultaneously uploaded to the local cloud through the cloud management platform, so as to facilitate the cloud to obtain the corresponding information.

[0054] Among them, Docker, the application container engine, is a set of Platform as a Service (PaaS) products; it is based on virtualization technology at the operating system level to package software and its dependencies into containers; the software that hosts the container is called the Docker engine; Docker can help developers automatically deploy applications in lightweight containers, and isolate applications in different containers from each other to work efficiently.

[0055] Further, the step of acquiring the uploaded multiple deployment service information and generating multiple service instance virtual sub-devices according to the deployment service information further includes:

[0056] Generate a service instance ID for each service instance virtual sub-device according to the multiple service instance virtual sub-devices generated by the deployment service information;

[0057] Each of the service instance virtual sub-devices and the corresponding service instance ID are recorded in a database.

[0058] Specifically, after the uploaded deployment service information is obtained, a corresponding service instance ID is generated for each generated service instance virtual sub-device, and these service instance virtual sub-devices and the corresponding service instance IDs are recorded in the database.

[0059] Step S20: Generate a sending instruction, and according to the sending instruction, send all the deployment service information and all the service instance virtual sub-devices to the edge gateway device to bring each service instance virtual sub-device online.

[0060] Specifically, in this application, after generating multiple service instance virtual sub-devices, the cloud needs to deploy the corresponding sub-devices on the edge gateway device, and in this process, it is necessary to generate and send detailed deployment and installation instruction information, that is, send instructions, to the edge gateway device. These instructions guide the edge gateway device on how to receive, process and distribute services to the corresponding edge devices to achieve rapid deployment of services.

[0061] Further, the generating and issuing instructions, according to the issuing instructions, issuing all the deployment service information and all the service instance virtual sub-devices to the edge gateway device to bring each service instance virtual sub-device online, specifically includes:

[0062] Generate a sending instruction, and send each of the deployment service information and all of the service instance virtual sub-devices to the edge gateway device according to the sending instruction;

[0063] The edge gateway device brings the corresponding service instance virtual sub-device online according to each of the deployment service information.

[0064] Specifically, in the present application, after the issuance instruction is generated, the corresponding deployment service information and service instance virtual sub-device are simultaneously issued to the edge gateway device. After the edge gateway device receives the issuance instruction from the cloud, it can use the built-in Docker component to efficiently pull the required service image, so that the service can be successfully deployed and run on the edge device. This process significantly reduces the delay in data transmission and improves the response speed of the service.

[0065] The step of sending all the deployment service information and all the service instance virtual sub-devices to the edge gateway device to bring each service instance virtual sub-device online also includes:

[0066] The edge gateway device obtains the deployment mode of each of the service instance virtual sub-devices according to the deployment service information;

[0067] When the deployment mode is loading using a warehouse mode, determining whether the first parameter configuration content is empty;

[0068] When the first parameter configuration content is not empty, log in to the private warehouse, convert the format of the installation configuration deployment file and save it;

[0069] After saving, execute the deployment command and bring the service instance virtual sub-device online.

[0070] Specifically, in the present application, after the edge gateway device receives the corresponding issuance instructions and all the deployment service information and all the service instance virtual sub-devices, the corresponding service instance virtual sub-device is deployed, that is, the device is deployed through the Docker image source address or the exported image tar compressed package.

[0071] When deploying the corresponding service instance virtual sub-device on the edge gateway device, the edge gateway first determines that the deployType parameter is the docker deployment method, and then determines the type of packageLoad Type, where packageLoadType is the installation package loading method, including hub (loading using the warehouse method) and download (using the direct download and installation method). When packageLoadType is hub type, the docker image warehouse method is used for deployment and installation. That is, when the deployment mode is to load using the warehouse mode, when the docker deployment mode is used and the first parameter configuration content is entered, that is, the authConfig configuration content is not empty, it means that the private hub warehouse is used for this deployment. You need to execute dockerlogin${authConfig.registry}-u${authConfig.userna me}-p${authConfig.password} to log in to the private hub warehouse and convert the installation configuration deployment file format, that is, convert the config json into a docker-composite yaml deployment file and save it; then execute the deployment command docker-compose-fdocker-compose.yml up-d--build to bring the service instance virtual sub-device online; among them, when saving the deployment file in the docker-composite yaml format, the yaml deployment file of each instance needs to be named and saved separately. Among them, authConfig.registry is the docker repository address, authConfig.username is the docker repository username, authConfig.password is the docker repository password or token, and for config (configuration file for installation and deployment), json is the corresponding format. In the process of using docker deployment, the installation configuration deployment file is formatted, that is, json is converted into a standard docker-compose yaml file.

[0072] Further, the edge gateway device obtains the deployment mode of each of the service instance virtual sub-devices according to the deployment service information, and then further includes:

[0073] When the deployment mode is local download and installation, the image package is downloaded locally according to the container address and loaded;

[0074] Convert the loaded installation configuration deployment file into a new format and save it;

[0075] After saving, execute the deployment command and bring the service instance virtual sub-device online.

[0076] Specifically, when the deployment mode is local download and installation, that is, when packageLoadType is the download type, the local download image package is used, and the docker load image tar package is deployed and installed locally. In the specific deployment process, according to the container address, the downloadUrl image tar package, that is, the image package, is downloaded to the local, and the name of the image package can be set to gender-det ection.tar; then execute the docker command docker load-i gender-detection.tar to load the image to the local; then perform format conversion, that is, convert config json into docker-compon ose yaml deployment file. In this process, the yaml deployment file of each instance is also named and saved separately; then execute the deployment command and bring the service instance virtual sub-device online.

[0077] Step S30: receiving the service instance deployment result reported by the edge gateway. When the result is that the deployment is completed, receiving the information of each service instance virtual sub-device regularly reported by the edge gateway device in real time according to the preset reporting time.

[0078] Specifically, after receiving the service instance deployment result reported by the edge gateway, the service instance deployment result includes each service instance ID, namely instanceId, and each corresponding service instance virtual sub-device deployment result, wherein each service instance virtual sub-device deployment result includes result, and result includes success indicating success and fail indicating failure. In addition, when an error message occurs, an error parameter is returned.

[0079] Further, the receiving of the service instance deployment result reported by the edge gateway, when the result is that the deployment is completed, receiving the information of each service instance virtual sub-device regularly reported by the edge gateway device in real time according to the preset reporting time, specifically includes:

[0080] Receive the service instance deployment result reported by the edge gateway through the event, and when the result is that the deployment is completed, issue an information receiving instruction, wherein the service instance deployment result includes the deployment result of each service instance virtual sub-device and the corresponding service instance ID;

[0081] Receive in real time the information of each service instance virtual sub-device reported by the edge gateway device according to the preset reporting time.

[0082] Specifically, when the service instance deployment result reported by the edge gateway through an event is deployment completion, that is, the result is success, a corresponding information receiving instruction can be issued to allow the receiving edge gateway device to report the information of each service instance virtual sub-device in real time.

[0083] That is, after the deployment is completed, the edge gateway device collects the deployment results and monitoring status of the service instance virtual sub-devices and reports this key information to the cloud.

[0084] Step S40: monitor each of the service instance virtual sub-devices according to the information of each of the service instance virtual sub-devices.

[0085] It should be noted that the information of the service instance virtual sub-device includes the service instance status, service instance ID, start time and end time of each service instance virtual sub-device. Among them, the service instance status includes the service instance status value, which includes initialization: init; deployment: deploying; instance exception: exception; deletion completed: deleted; created: Docker object has been created but not started; restarting: Docker object is restarting; running: Docker object is running; removing: Docker object is being deleted; paused: Docker object has been paused; exited: Docker object has stopped and exited; dead: Docker object has stopped and been deleted. The start time and end time are reported to the cloud only when there is a change.

[0086] Specifically, the cloud uses the reported data to achieve real-time monitoring and situational awareness of edge service instances, that is, real-time monitoring and dynamic awareness of service instance virtual sub-devices. This not only improves the transparency of the system, but also provides users with valuable insights to quickly respond to any potential problems or needs.

[0087] Furthermore, this application is Figure 2The edge computing service distribution design and alignment method of the present invention is further described. Specifically, in this method, the user chooses to deploy the service and version to the edge gateway device, that is, according to the user's needs, multiple deployment service information is pre-generated in the preset network and uploaded; the cloud receives the deployment service information submitted by the user; the cloud stores the corresponding information in the database, generates a unique service instance ID, and generates a service instance virtual sub-device; calls and sends instructions, and sends the installation configuration to the edge gateway device; the edge gateway device receives the instruction, binds and manages the service instance virtual sub-device, and makes the service instance virtual sub-device online; the edge gateway device calls the docker component to deploy the service instance of the specific service instance virtual sub-device; then the edge gateway device reports the service instance deployment result through an event; the front-end page displays the relevant status and results; the edge gateway device reports information to the cloud at a regular interval; the cloud monitors and perceives the situation of the service instance based on the reported status.

[0088] This application is also Figure 3 Further describing the relationship between the service instance virtual sub-device and the edge gateway, it can be seen that the cloud communicates with the edge gateway device through the MQTT communication protocol, and the edge gateway device manages multiple service instance virtual sub-devices accordingly.

[0089] The present invention obtains a plurality of uploaded deployment service information, generates a plurality of service instance virtual sub-devices according to the deployment service information; generates a sending instruction, and sends all the deployment service information and all the service instance virtual sub-devices to an edge gateway device according to the sending instruction to bring each service instance virtual sub-device online; receives the service instance deployment result reported by the edge gateway, and when the result is that the deployment is completed, receives the information of each service instance virtual sub-device reported regularly by the edge gateway device in real time according to a preset reporting time; and monitors each service instance virtual sub-device according to the information of each service instance virtual sub-device. The present invention generates corresponding service instance virtual sub-devices in the cloud based on user needs, thereby seamlessly integrating the cloud and edge layers through the service instance virtual sub-devices, and then instructs the edge gateway through instructions on how to receive, process and distribute services to the corresponding edge devices, thereby realizing rapid deployment of services, so that the edge devices respond accordingly, and efficiently deploy and run the corresponding service instance virtual sub-devices. This process completes the deployment of multiple sub-devices, thereby saving deployment time. At the same time, the built-in components of the application container engine are used to significantly reduce the delay in data transmission, improve the response speed of the service, and enable the edge gateway after deployment to stably and quickly capture data from the sub-devices, thereby allowing the cloud to monitor and control accordingly.

[0090] Furthermore, if Figure 4As shown, based on the above-mentioned edge computing service distribution design and alignment method, the present invention also provides an edge computing service distribution design and alignment system accordingly, wherein the edge computing service distribution design and alignment system includes:

[0091] The information acquisition module 41 is used to acquire the uploaded multiple deployment service information and generate multiple service instance virtual sub-devices according to the deployment service information;

[0092] The online module 42 is used to generate a sending instruction, and according to the sending instruction, all the deployment service information and all the service instance virtual sub-devices are sent to the edge gateway device to carry out the online of each service instance virtual sub-device;

[0093] The receiving module 43 is used to receive the service instance deployment result reported by the edge gateway. When the result is that the deployment is completed, the information of each service instance virtual sub-device regularly reported by the edge gateway device is received in real time according to the preset reporting time;

[0094] The control module 44 is used to monitor each of the service instance virtual sub-devices according to the information of each of the service instance virtual sub-devices.

[0095] Furthermore, if Figure 5 As shown, based on the above-mentioned edge computing service distribution design and alignment method and system, the present invention also provides a terminal accordingly, and the terminal includes a processor 10, a memory 20 and a display 30. Figure 5 Only some components of the terminal are shown, but it should be understood that it is not required to implement all of the components shown, and more or fewer components may be implemented instead.

[0096] In some embodiments, the memory 20 may be an internal storage unit of the terminal, such as a hard disk or memory of the terminal. In other embodiments, the memory 20 may also be an external storage device of the terminal, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (SecureDigital, SD) card, a flash card (Flash Card), etc. equipped on the terminal. Furthermore, the memory 20 may also include both an internal storage unit of the terminal and an external storage device. The memory 20 is used to store application software and various types of data installed on the terminal, such as the program code of the installation terminal. The memory 20 can also be used to temporarily store data that has been output or is to be output. In one embodiment, an edge computing service distribution design and alignment program 40 is stored on the memory 20, and the edge computing service distribution design and alignment program 40 can be executed by the processor 10, thereby realizing the edge computing service distribution design and alignment method in the present application.

[0097] In some embodiments, the processor 10 may be a central processing unit (CPU), a microprocessor or other data processing chip, used to run the program code or process data stored in the memory 20, such as executing the edge computing service distribution design and alignment method.

[0098] In some embodiments, the display 30 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, etc. The display 30 is used to display information on the terminal and to display a visual user interface. The components 10-30 of the terminal communicate with each other via a system bus.

[0099] In one embodiment, when the processor 10 executes the edge computing service distribution design and alignment program 40 in the memory 20, the steps in the above edge computing service distribution design and alignment method are implemented.

[0100] The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores an edge computing service distribution design and alignment program, and when the edge computing service distribution design and alignment program is executed by a processor, the following steps of the edge computing service distribution design and alignment method are implemented:

[0101] Acquire the uploaded multiple deployment service information, and generate multiple service instance virtual sub-devices according to the deployment service information;

[0102] Generate a sending instruction, and send all the deployment service information and all the service instance virtual sub-devices to the edge gateway device according to the sending instruction to bring each service instance virtual sub-device online;

[0103] Receive the service instance deployment result reported by the edge gateway, and when the result is that the deployment is completed, receive the information of each service instance virtual sub-device regularly reported by the edge gateway device in real time according to the preset reporting time;

[0104] Each of the service instance virtual sub-devices is monitored according to the information of each of the service instance virtual sub-devices.

[0105] The step of acquiring the uploaded multiple deployment service information and generating multiple service instance virtual sub-devices according to the deployment service information may also include:

[0106] According to user needs, multiple deployment service information are pre-generated in the preset network, wherein each of the deployment service information includes a version number, a deployment mode, a container image, a container address, an environment variable, a directory mapping, and a network type;

[0107] The deployment service information is uploaded to the local computer according to the cloud management platform.

[0108] The step of acquiring the uploaded multiple deployment service information and generating multiple service instance virtual sub-devices according to the deployment service information further includes:

[0109] Generate a service instance ID for each service instance virtual sub-device according to the multiple service instance virtual sub-devices generated by the deployment service information;

[0110] Each of the service instance virtual sub-devices and the corresponding service instance ID are recorded in a database.

[0111] The generating and issuing instructions, according to which all the deployment service information and all the service instance virtual sub-devices are issued to the edge gateway device to bring each service instance virtual sub-device online, specifically includes:

[0112] Generate a sending instruction, and send each of the deployment service information and all of the service instance virtual sub-devices to the edge gateway device according to the sending instruction;

[0113] The edge gateway device brings the corresponding service instance virtual sub-device online according to each of the deployment service information.

[0114] The method of sending all the deployment service information and all the service instance virtual sub-devices to the edge gateway device to bring each service instance virtual sub-device online also includes:

[0115] The edge gateway device obtains the deployment mode of each of the service instance virtual sub-devices according to the deployment service information;

[0116] When the deployment mode is loading using a warehouse mode, determining whether the first parameter configuration content is empty;

[0117] When the first parameter configuration content is not empty, log in to the private warehouse, convert the format of the installation configuration deployment file and save it;

[0118] After saving, execute the deployment command and bring the service instance virtual sub-device online.

[0119] The edge gateway device obtains the deployment mode of each of the service instance virtual sub-devices according to the deployment service information, and then further includes:

[0120] When the deployment mode is local download and installation, the image package is downloaded locally according to the container address and loaded;

[0121] Convert the loaded installation configuration deployment file into a new format and save it;

[0122] After saving, execute the deployment command and bring the service instance virtual sub-device online.

[0123] The receiving of the service instance deployment result reported by the edge gateway, when the result is that the deployment is completed, receiving the information of each service instance virtual sub-device regularly reported by the edge gateway device in real time according to the preset reporting time, specifically includes:

[0124] Receive the service instance deployment result reported by the edge gateway through the event, and when the result is that the deployment is completed, issue an information receiving instruction, wherein the service instance deployment result includes the deployment result of each service instance virtual sub-device and the corresponding service instance ID;

[0125] Receive in real time the information of each service instance virtual sub-device reported by the edge gateway device according to the preset reporting time.

[0126] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the existence of other identical elements in the process, method, article or terminal including the element.

[0127] Of course, those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing related hardware (such as a processor, a controller, etc.) through a computer program, and the program can be stored in a computer-readable storage medium that can be read by a computer, and the program can include the processes of the above-mentioned method embodiments when executed. The computer-readable storage medium can be a memory, a disk, an optical disk, etc.

[0128] It should be understood that the application of the present invention is not limited to the above examples. For ordinary technicians in this field, improvements or changes can be made based on the above description. All these improvements and changes should fall within the scope of protection of the claims attached to the present invention.

Claims

1. A method for designing and aligning edge computing service distribution, characterized in that: The edge computing service distribution design and alignment method includes: Acquire the uploaded multiple deployment service information, and generate multiple service instance virtual sub-devices according to the deployment service information; Generate a sending instruction, and send all the deployment service information and all the service instance virtual sub-devices to the edge gateway device according to the sending instruction to bring each service instance virtual sub-device online; Receive the service instance deployment result reported by the edge gateway, and when the result is that the deployment is completed, receive the information of each service instance virtual sub-device regularly reported by the edge gateway device in real time according to the preset reporting time; Each of the service instance virtual sub-devices is monitored according to the information of each of the service instance virtual sub-devices.

2. The edge computing service distribution design and alignment method according to claim 1, characterized in that: The step of acquiring the uploaded multiple deployment service information and generating multiple service instance virtual sub-devices according to the deployment service information may also include: According to user needs, multiple deployment service information are pre-generated in the preset network, wherein each of the deployment service information includes a version number, a deployment mode, a container image, a container address, an environment variable, a directory mapping, and a network type; The deployment service information is uploaded to the local computer according to the cloud management platform.

3. The edge computing service distribution design and alignment method according to claim 1, characterized in that: The step of acquiring the uploaded multiple deployment service information and generating multiple service instance virtual sub-devices according to the deployment service information further includes: Generate a service instance ID for each service instance virtual sub-device according to the multiple service instance virtual sub-devices generated by the deployment service information; Each of the service instance virtual sub-devices and the corresponding service instance ID are recorded in a database.

4. The edge computing service distribution design and alignment method according to claim 1, characterized in that: The generating and issuing instructions, and according to the issuing instructions, issuing all the deployment service information and all the service instance virtual sub-devices to the edge gateway device to bring each service instance virtual sub-device online, specifically includes: Generate a sending instruction, and send each of the deployment service information and all of the service instance virtual sub-devices to the edge gateway device according to the sending instruction; The edge gateway device brings the corresponding service instance virtual sub-device online according to each of the deployment service information.

5. The edge computing service distribution design and alignment method according to claim 2, characterized in that: The step of sending all the deployment service information and all the service instance virtual sub-devices to the edge gateway device to bring each service instance virtual sub-device online also includes: The edge gateway device obtains the deployment mode of each of the service instance virtual sub-devices according to the deployment service information; When the deployment mode is loading using a warehouse mode, determining whether the first parameter configuration content is empty; When the first parameter configuration content is not empty, log in to the private warehouse, convert the format of the installation configuration deployment file and save it; After saving, execute the deployment command and bring the service instance virtual sub-device online.

6. The edge computing service distribution design and alignment method according to claim 5, characterized in that: The edge gateway device acquires the deployment mode of each of the service instance virtual sub-devices according to the deployment service information, and then further includes: When the deployment mode is local download and installation, the image package is downloaded locally according to the container address and loaded; Convert the loaded installation configuration deployment file into a new format and save it; After saving, execute the deployment command and bring the service instance virtual sub-device online.

7. The edge computing service distribution design and alignment method according to claim 1, characterized in that: The receiving of the service instance deployment result reported by the edge gateway, when the result is that the deployment is completed, receiving in real time according to the preset reporting time the information of each service instance virtual sub-device regularly reported by the edge gateway device, specifically includes: Receive the service instance deployment result reported by the edge gateway through the event, and when the result is that the deployment is completed, issue an information receiving instruction, wherein the service instance deployment result includes the deployment result of each service instance virtual sub-device and the corresponding service instance ID; Receive in real time the information of each service instance virtual sub-device reported by the edge gateway device according to the preset reporting time.

8. An edge computing service distribution design and alignment system, characterized in that: The edge computing service distribution design and alignment system includes: An information acquisition module, used to acquire a plurality of uploaded deployment service information, and generate a plurality of service instance virtual sub-devices according to the deployment service information; An online module, used for generating a sending instruction, and sending all the deployment service information and all the service instance virtual sub-devices to the edge gateway device according to the sending instruction to bring each service instance virtual sub-device online; A receiving module is used to receive the service instance deployment result reported by the edge gateway. When the result is that the deployment is completed, the information of each service instance virtual sub-device regularly reported by the edge gateway device is received in real time according to the preset reporting time; The control module is used to monitor each of the service instance virtual sub-devices according to the information of each of the service instance virtual sub-devices.

9. A terminal, characterized in that: The terminal includes: a memory, a processor, and an edge computing service distribution design and alignment program stored in the memory and executable on the processor. When the edge computing service distribution design and alignment program is executed by the processor, the steps of the edge computing service distribution design and alignment method as described in any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores an edge computing service distribution design and alignment program, and when the edge computing service distribution design and alignment program is executed by a processor, the steps of the edge computing service distribution design and alignment method as described in any one of claims 1-7 are implemented.