Disclosure of Invention
The invention mainly aims to provide an edge cloud cluster service system and an implementation method thereof, and aims to solve the technical problems of how to realize the beneficial effects of calling other edge resources by a single cluster, improving the resource utilization rate and reducing disaster tolerance.
The first aspect of the present invention provides an edge cloud cluster service system, including a central cloud and a plurality of virtual workload nodes, where the central cloud includes a central control node, each virtual workload node is associated with an edge machine room, and a host of each edge machine room is deployed with a plurality of container group instances, and the edge cloud cluster service system further includes:
the central cloud cluster service is used for receiving a workload creating request initiated by a client and forwarding the workload creating request to a central control node for analysis to obtain a container group description file; generating a container group creation request and allocating the container group creation request to a target virtual workload node based on the container group description file;
the central cloud scheduling service is used for receiving and analyzing a container group creation request initiated by the target virtual workload node to obtain a container group instance description file; generating a container group instance creation request based on the container group instance description file;
and the edge container service is used for receiving a container group instance creation request initiated by the central cloud scheduling service, creating a new container group instance in a host machine of an edge machine room associated with the target virtual workload node according to the container group instance creation request, and operating the new container group instance.
Optionally, in a first implementation manner of the first aspect of the present invention, the central cloud cluster service includes:
the access sub-service is used for receiving a workload creation request initiated by a client and analyzing the workload creation request based on a preset workload template to obtain a container group description file;
the distribution sub-service is used for generating a container group creation request and distributing the container group creation request to a target virtual workload node based on the container group description file;
and the sub-service is called and used for calling the central cloud scheduling service and forwarding the container group description file to the central cloud scheduling service through the target virtual workload node.
Optionally, in a second implementation manner of the first aspect of the present invention, the central cloud scheduling service is further configured to encapsulate resources available to each edge machine room and provide an API interface call service to the outside.
Optionally, in a third implementation manner of the first aspect of the present invention, the API interface calling service includes:
the system comprises a container group management service, a synchronization server and a server, wherein the container group management service is used for creating, deleting or starting a container group, and acquiring a container group log and a synchronization container group state;
a container group scheduling service for allocating hosts of container group instances based on required resources when creating the container group instances;
the container group migration service is used for migrating the container group instance creation request to a new host machine and re-creating a new container group instance when the host machine for operating the container group instance is down; and when the edge machine room where the container group instance is positioned fails, the container group instance creating request is transferred to a new edge machine room, and a new host is scheduled in the new edge machine room to create a new container group instance again.
Optionally, in a fourth implementation manner of the first aspect of the present invention, the edge container service is further configured to:
and accessing container group examples corresponding to different users in each host machine of the same edge machine room into virtual extensible local area networks corresponding to different users so as to realize network isolation of the container group examples corresponding to different users.
Optionally, in a fifth implementation manner of the first aspect of the present invention, the edge container service is further configured to:
and reporting the container group state in the host machine of each edge machine room to the central scheduling service at regular time so that the central scheduling service can be synchronized to the central cloud through the virtual workload nodes.
Optionally, in a sixth implementation manner of the first aspect of the present invention, the edge container service includes an edge container service control end and an edge container service client, where the edge container service client is deployed on each host of an edge machine room, and the edge container service control end is configured to manage the edge container service client and provide functions of resource caching, request distribution, monitoring and scheduling for a container group instance to the outside based on the edge container service client.
The second aspect of the present invention provides a method for implementing an edge cloud cluster service system, including: the edge cloud cluster service system comprises a center cloud and a plurality of virtual workload nodes, the center cloud comprises a center control node, each virtual workload node is respectively associated with an edge machine room, a host of each edge machine room is respectively provided with a plurality of container group instances, and the implementation method of the edge cloud cluster service system comprises the following steps:
the method comprises the steps that a central cloud cluster service receives a workload creating request initiated by a client and forwards the workload creating request to a central control node for analysis to obtain a container group description file; generating a container group creation request and distributing the container group creation request to a target virtual workload node based on the container group description file;
the central cloud scheduling service receives and analyzes a container group creation request initiated by the target virtual workload node to obtain a container group instance description file; generating a container group instance creation request based on the container group instance description file;
and the edge container service receives a container group instance creation request initiated by the central cloud scheduling service, and creates a new container group instance in a host machine of an edge machine room associated with the target virtual workload node and operates the new container group instance according to the container group instance creation request.
Optionally, in a first implementation manner of the second aspect of the present invention, the central cloud cluster service includes: the method for realizing the edge cloud cluster service system comprises the following steps of accessing a sub-service, distributing the sub-service and calling the sub-service, wherein the method for realizing the edge cloud cluster service system further comprises the following steps:
the access sub-service receives a workload creating request initiated by a client, and analyzes the workload creating request based on a preset workload template to obtain a container group description file;
the distribution sub-service generates a container group creation request and distributes the container group creation request to a target virtual workload node based on the container group description file;
and the calling sub-service calls the central cloud scheduling service and forwards the container group description file to the central cloud scheduling service through the target virtual workload node.
Optionally, in a second implementation manner of the second aspect of the present invention, the method for implementing a central cloud scheduling service further includes encapsulating resources available to each edge machine room and providing an API interface call service to the outside.
Optionally, in a third implementation manner of the second aspect of the present invention, the API interface calling service includes: the implementation method of the API interface calling service further comprises the following steps:
the container group management service creates, deletes or starts a container group, and acquires a container group log and a synchronous container group state;
when the container group scheduling service creates the container group instance, the host machine of the container group instance is allocated based on the required resources;
when a host running the container group instance is down, the container group migration service migrates the container group instance creation request to a new host and re-creates a new container group instance; and when the edge machine room where the container group instance is positioned fails, the container group instance creating request is transferred to a new edge machine room, and a new host is scheduled in the new edge machine room to create a new container group instance again.
Optionally, in a fourth implementation manner of the second aspect of the present invention, the method for implementing an edge container service further includes:
and accessing container group examples corresponding to different users in each host machine of the same edge machine room into virtual extensible local area networks corresponding to different users so as to realize network isolation of the container group examples corresponding to different users.
Optionally, in a fifth implementation manner of the second aspect of the present invention, the method for implementing an edge container service further includes:
and reporting the container group state in the host machine of each edge machine room to the central scheduling service at regular time so that the central scheduling service can be synchronized to the central cloud through the virtual workload nodes.
Optionally, in a sixth implementation manner of the second aspect of the present invention, the edge container service includes an edge container service control end and an edge container service client, where the edge container service client is deployed on each host of an edge machine room, and the edge container service control end is configured to manage the edge container service client and provide functions of resource caching, request distribution, monitoring and scheduling for a container group instance to the outside based on the edge container service client.
In the technical scheme provided by the invention, an edge cluster service system is designed, a center cloud cluster service, a center cloud scheduling service and an edge container service are provided, a workload creating request is analyzed to obtain a container group description file, then a container group creating request is generated and forwarded to a target virtual workload node, a container group instance creating request is generated, and a container group instance is created in an edge machine room associated with the target virtual workload node according to the container group instance creating request and is operated. The invention realizes that a single cluster calls other edge resources, improves the resource utilization rate and reduces disaster tolerance.
Detailed Description
The embodiment of the invention provides an edge cloud cluster service system and an implementation method thereof, which comprises the steps of providing a center cloud cluster service, a center cloud scheduling service and an edge container service, analyzing a workload creating request to obtain a container group description file, generating a container group creating request, forwarding the container group creating request to a target virtual workload node, generating a container group instance creating request, creating a container group instance in an edge machine room associated with the target virtual workload node according to the container group instance creating request, and operating the container group instance. The invention realizes that a single cluster calls other edge resources, improves the resource utilization rate and reduces disaster tolerance.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims, as well as in the drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises," "comprising," or "having," and any variations thereof, are intended to cover non-exclusive inclusions, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
For convenience of understanding, a specific flow of the embodiment of the present invention is described below, and with reference to fig. 1, an embodiment of an edge cloud cluster service system in the embodiment of the present invention includes a center cloud and a plurality of virtual workload nodes, where the center cloud includes a center control node, each virtual workload node is respectively associated with an edge machine room, a host of each edge machine room is respectively deployed with a plurality of container group instances, and the edge cloud cluster service system further includes:
the centralcloud cluster service 101 is used for receiving a workload creation request initiated by a client and forwarding the workload creation request to a central control node for analysis to obtain a container group description file; generating a container group creation request and distributing the container group creation request to a target virtual workload node based on the container group description file;
in this embodiment, the workload is an application running on kubernets, and includes a parsing template of a container group description file. Workloads include, but are not limited to, a single component, multiple components working together. Kubernets, a portable, extensible, open source platform for managing containerized workloads and services, where workloads may be run through a set of container groups.
In this embodiment, the central control node is a control node of the cluster and is responsible for management and control of the whole cluster.
In this embodiment, the Virtual workload node creation method is not limited, and includes, but is not limited to, developing a Virtual workload node using a Virtual-Kubelet technology, and creating a Virtual workload node using a Virtual machine.
The centralcloud scheduling service 102 is configured to receive and analyze a container group creation request initiated by the target virtual workload node to obtain a container group instance description file; generating a container group instance creation request based on the container group instance description file;
in this embodiment, the container group description file refers to a description file of a group of containers on a kubernets platform, and the container group instance description file refers to a description file of a group of container instances on a UEC edge cloud platform.
And theedge container service 103 is configured to receive a container group instance creation request initiated by the central cloud scheduling service, and create and run a new container group instance in a host of an edge machine room associated with the target virtual workload node according to the container group instance creation request.
In this embodiment, each virtual workload node is associated with one edge machine room, and the container instance creation request allocated to the virtual workload node is scheduled to the corresponding edge machine room through the central cloud scheduling service to run, so as to physically isolate each edge machine room, but actually remain in the intranet constructed by the virtual workload node.
The embodiment of the invention provides an edge cluster service system, which provides a center cloud cluster service, a center cloud scheduling service and an edge container service, analyzes a workload creating request to obtain a container group description file, generates a container group creating request, forwards the container group creating request to a target virtual workload node, generates a container group instance creating request, creates a container group instance in an edge machine room associated with the target virtual workload node according to the container group instance creating request, and operates the container group instance. The invention realizes the beneficial effects of calling other edge resources by a single cluster, improving the resource utilization rate and reducing disaster tolerance.
Referring to fig. 2, another embodiment of the edge cloud cluster service system in the embodiment of the present invention includes:
the centralcloud cluster service 101 is used for receiving a workload creation request initiated by a client and forwarding the workload creation request to a central control node for analysis to obtain a container group description file; generating a container group creation request and distributing the container group creation request to a target virtual workload node based on the container group description file;
optionally, the centralcloud cluster service 101 further includes:
theaccess sub-service 1011 is configured to receive a workload creation request initiated by a client, and parse the workload creation request based on a preset workload template to obtain a container group description file;
anallocation sub-service 1012 for generating a container group creation request based on the container group description file and allocating to a target virtual workload node;
and acalling sub-service 1013, configured to call the central cloud scheduling service, and forward the container group description file to the central cloud scheduling service through the target virtual workload node.
In this embodiment, the controller of the load resource generally uses a workload Template (Pod Template) to create and manage the container group. The workload template is used to specify a portion of the target state of specified load resources when running the workload, including but not limited to, deployments, Job and Daemon Sets, etc.
The centralcloud scheduling service 102 is configured to receive and analyze a container group creation request initiated by the target virtual workload node to obtain a container group instance description file; generating a container group instance creation request based on the container group instance description file;
optionally, the centralcloud scheduling service 102 is further configured to encapsulate resources available to each edge machine room and provide an API interface calling service to the outside.
Further optionally, the API interface call service includes:
a containergroup management service 1021 for creating, deleting, or starting a container group, and acquiring a container group log and a synchronization container group state;
a containergroup scheduling service 1022 for allocating hosts of container group instances based on required resources when creating container group instances;
the containergroup migration service 1023 is used for migrating the container group instance creation request to a new host and re-creating a new container group instance when the host running the container group instance goes down; and when the edge machine room where the container group instance is positioned fails, the container group instance creating request is transferred to a new edge machine room, and a new host is scheduled in the new edge machine room to create a new container group instance again.
And theedge container service 103 is configured to receive a container group instance creation request initiated by the central cloud scheduling service, and create and run a new container group instance in a host of an edge machine room associated with the target virtual workload node according to the container group instance creation request.
Optionally, theedge container service 103 further includes: and reporting the container group state in the host machine of each edge machine room to the central scheduling service at regular time so that the central scheduling service can be synchronized to the central cloud through the virtual workload nodes.
Optionally, theedge container service 103 further includes: the system comprises an edge container service control end and an edge container service client, wherein the edge container service client is deployed on each host machine of an edge machine room, and the edge container service control end is used for managing the edge container service client and providing resource caching, request distribution, monitoring and scheduling functions of container group instances based on the edge container service client.
In this embodiment, one Edge machine room includes a plurality of hosts, and each Edge machine room is deployed with a container service, which is not limited to Edge servers; and the Edge computer room externally exposes the API through the Edge Server so as to enable the central scheduling service to call and control the Edge container service. And Edge agents are deployed in each host machine and are responsible for calling the bottom-layer container group service to ensure that the container group is in a normal running state. The Edge Agent manages and executes the related operations of the container group by calling the Containerd service: containerd uses a preset run or kata as a tool to start a container group at runtime, wherein the kata uses a lightweight virtualization technique to make the container group running on the same host computer not need to share a kernel, thereby providing a more secure isolation environment. Each container group is accessed into a corresponding VXLAN, so that different user network isolation is realized, and cross-machine network intercommunication of the same user is realized.
The embodiment of the invention provides sub-services of an edge cluster service system, which comprise an access sub-service, a distribution sub-service and a calling sub-service of a central cloud cluster service, a container group management service, a container group scheduling service and a container group migration service under the central cloud scheduling service, and an edge container service control end and an edge container service client under the edge container service. The edge cluster system analyzes the workload creating request to obtain a container group description file, then generates a container group creating request and forwards the container group creating request to a target virtual workload node, generates a container group instance creating request, and creates and operates a container group instance in an edge machine room associated with the target virtual workload node according to the container group instance creating request.
With reference to fig. 3, the edge cloud cluster service system in the embodiment of the present invention is described above, and an implementation method of the edge cloud service system in the embodiment of the present invention is described below, where an embodiment of the implementation method of the edge cloud service system in the embodiment of the present invention includes:
301. the method comprises the steps that a central cloud cluster service receives a workload creating request initiated by a client and forwards the workload creating request to a central control node for analysis to obtain a container group description file; generating a container group creation request and distributing the container group creation request to a target virtual workload node based on the container group description file;
it is to be understood that an execution subject of the present invention may be an edge cloud cluster service device, and may also be a terminal or a server, which is not limited herein. The embodiment of the present invention is described by taking a server as an execution subject.
302. The central cloud scheduling service receives and analyzes a container group creation request initiated by the target virtual workload node to obtain a container group instance description file; generating a container group instance creation request based on the container group instance description file;
303. and the edge container service receives a container group instance creation request initiated by the central cloud scheduling service, and creates a new container group instance in a host machine of an edge machine room associated with the target virtual workload node and operates the new container group instance according to the container group instance creation request.
The embodiment of the invention provides a method for realizing edge cluster service, which comprises the steps of providing center cloud cluster service, center cloud scheduling service and edge container service, analyzing a workload creating request to obtain a container group description file, generating a container group creating request, forwarding the container group creating request to a target virtual workload node, generating a container group instance creating request, creating a container group instance in an edge machine room associated with the target virtual workload node according to the container group instance creating request, and operating the container group instance. The invention realizes the beneficial effects of calling other edge resources by a single cluster, improving the resource utilization rate and reducing disaster tolerance.
Referring to fig. 4, another embodiment of the implementation method of the edge cloud cluster service system in the embodiment of the present invention includes:
301. the method comprises the steps that a central cloud cluster service receives a workload creating request initiated by a client and forwards the workload creating request to a central control node for analysis to obtain a container group description file; generating a container group creation request and distributing the container group creation request to a target virtual workload node based on the container group description file;
302. the access sub-service receives a workload creating request initiated by a client, and analyzes the workload creating request based on a preset workload template to obtain a container group description file;
303 generating a container group creation request and allocating the container group creation request to a target virtual workload node by an allocation sub-service based on the container group description file;
304, invoking a sub-service to invoke the central cloud scheduling service, and forwarding the container group description file to the central cloud scheduling service through the target virtual workload node;
optionally, the method for implementing the central cloud scheduling service instep 304 further includes encapsulating available resources of each edge machine room and providing an API interface calling service to the outside.
Further optionally, the API interface call service includes: the implementation method of the API interface calling service further comprises the following steps:
the container group management service creates, deletes or starts a container group, and acquires a container group log and a synchronous container group state;
when the container group scheduling service creates the container group instance, the host machine of the container group instance is allocated based on the required resources;
when a host running the container group instance is down, the container group migration service migrates the container group instance creation request to a new host and re-creates a new container group instance; and when the edge machine room where the container group instance is positioned fails, the container group instance creating request is transferred to a new edge machine room, and a new host is scheduled in the new edge machine room to create a new container group instance again.
305. And the edge container service receives a container group instance creation request initiated by the central cloud scheduling service, and creates a new container group instance in a host machine of an edge machine room associated with the target virtual workload node and operates the new container group instance according to the container group instance creation request.
Optionally, the method for implementing the edge container service instep 305 further includes:
and accessing container group examples corresponding to different users in each host machine of the same edge machine room into virtual extensible local area networks corresponding to different users so as to realize network isolation of the container group examples corresponding to different users.
Optionally, the method for implementing the edge container service instep 305 further includes:
and reporting the container group state in the host machine of each edge machine room to the central scheduling service at regular time so that the central scheduling service can be synchronized to the central cloud through the virtual workload nodes.
Optionally, instep 305, the edge container service includes an edge container service control end and an edge container service client, where the edge container service client is deployed on each host of an edge machine room, and the edge container service control end is configured to manage the edge container service client and provide resource caching, request distribution, monitoring, and scheduling functions of a container group instance to the outside based on the edge container service client.
In the embodiment of the invention, a method for realizing edge cluster service is provided, a workload creating request is analyzed to obtain a container group description file, then a container group creating request is generated and forwarded to a target virtual workload node, a container group instance creating request is generated, and a container group instance is created in an edge machine room associated with the target virtual workload node according to the container group instance creating request and runs.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working process of the method described above may refer to the corresponding process in the foregoing system embodiment, and is not described herein again.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.