CN111800285B - Instance migration method and device and electronic equipment - Google Patents

Instance migration method and device and electronic equipment Download PDF

Info

Publication number
CN111800285B
CN111800285B CN201910277968.1A CN201910277968A CN111800285B CN 111800285 B CN111800285 B CN 111800285B CN 201910277968 A CN201910277968 A CN 201910277968A CN 111800285 B CN111800285 B CN 111800285B
Authority
CN
China
Prior art keywords
instance
edge cloud
cloud node
data
migrated
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910277968.1A
Other languages
Chinese (zh)
Other versions
CN111800285A (en
Inventor
杜凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201910277968.1A priority Critical patent/CN111800285B/en
Publication of CN111800285A publication Critical patent/CN111800285A/en
Application granted granted Critical
Publication of CN111800285B publication Critical patent/CN111800285B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/148Migration or transfer of sessions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/21Design, administration or maintenance of databases
    • G06F16/214Database migration support
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0668Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0823Configuration setting characterised by the purposes of a change of settings, e.g. optimising configuration for enhancing reliability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention provides an instance migration method and device and electronic equipment. The method comprises the following steps: generating a migration instruction, and informing target edge cloud nodes except for a source edge cloud node to acquire instance data of an instance to be migrated; and acquiring configuration information of the target edge cloud node for the instance to be migrated, and generating an instance creation instruction to control the target edge cloud node to create an instance based on the acquired instance data. According to the embodiment of the invention, the instance migration process among different edge cloud nodes is coordinated through the central management and control function of the central cloud, so that the advantages of a two-stage cloud architecture consisting of the central cloud and the edge cloud are fully exerted, and the performance of the instance can be ensured through an inter-node instance migration mode when a part of edge cloud nodes or a network has problems.

Description

Instance migration method and device and electronic equipment
Technical Field
The present invention relates to the field of cloud computing technologies, and in particular, to an instance migration method and apparatus, and an electronic device.
Background
The edge node can provide near-end services by being closer to the user or data source. Thus, faster network service response can be generated, and the edge side requirements of users in real-time service, security, privacy protection and the like can be met.
In recent years, as the development of networks also appears based on edge nodes at the near user side, edge nodes near the user are changed into edge nodes available to the user by using the network, so that an edge node network similar to a cloud network appears. The high response speed of near-user calculation at the user side can be better exerted, and the elastic change of the user requirement can be met.
In the process of implementing the present invention, the inventors have found that at least the following problems exist in the prior art: in practical use, since the edge cloud node is a node arranged at the near-user side, when a problem occurs in the performance of the edge cloud node used by the user or a problem occurs in the network used, the example performance of the user is directly affected.
Disclosure of Invention
The embodiment of the invention provides an instance migration method and device and electronic equipment, which are used for solving the defect that the instance performance of a user is influenced when the performance of a physical node is problematic or a network used is problematic in the prior art.
To achieve the above object, an embodiment of the present invention provides an instance migration method, including:
generating a migration instruction, and informing target edge cloud nodes except for a source edge cloud node to acquire instance data of an instance to be migrated;
And acquiring configuration information of the target edge cloud node for the instance to be migrated, and generating an instance creation instruction to control the target edge cloud node to create an instance based on the acquired instance data.
The embodiment of the invention also provides an example migration method, which comprises the following steps:
according to the received migration instruction, obtaining instance data of instances to be migrated currently running on other edge cloud nodes;
and according to the received instance creation instruction, creating an instance based on the acquired instance data.
The embodiment of the invention also provides an example migration device, which comprises:
the migration instruction generation module is used for generating a migration instruction and notifying target edge cloud nodes except the source edge cloud node to acquire instance data of an instance to be migrated;
the creation instruction generation module is used for acquiring configuration information of the target edge cloud node aiming at the instance to be migrated and generating an instance creation instruction so as to control the target edge cloud node to create an instance based on the acquired instance data.
The embodiment of the invention also provides an example migration device, which comprises:
the data acquisition module is used for acquiring instance data of instances to be migrated currently running on other edge cloud nodes according to the received migration instruction;
And the instance creation module is used for creating an instance based on the acquired instance data according to the received instance creation instruction.
The embodiment of the invention also provides electronic equipment, which comprises:
a memory for storing a program;
a processor for running the program stored in the memory for:
generating a migration instruction, and informing target edge cloud nodes except for a source edge cloud node to acquire instance data of an instance to be migrated;
and acquiring configuration information of the target edge cloud node for the instance to be migrated, and generating an instance creation instruction to control the target edge cloud node to create an instance based on the acquired instance data.
The embodiment of the invention also provides electronic equipment, which comprises:
a memory for storing a program;
a processor for running the program stored in the memory for:
according to the received migration instruction, obtaining instance data of an instance to be migrated currently running on the source edge cloud node;
and according to the received instance creation instruction, creating an instance based on the acquired instance data.
According to the instance migration method and device and the electronic equipment provided by the embodiment of the invention, when the instance is migrated among a plurality of edge cloud nodes in the edge cloud, the center cloud controls the target edge cloud node to acquire the instance data of the instance to be migrated, and then a new instance is created in the target edge cloud node according to the instance information of the instance to be migrated and the configuration information of the target edge cloud node for the instance to be migrated, and the instance migration process among different edge cloud nodes is coordinated through the center management and control function of the center cloud, so that the advantages of a two-stage cloud architecture consisting of the center cloud and the edge cloud are fully exerted, and the performance of the instance can be ensured in a mode of instance migration among nodes when a part of edge cloud nodes or a network has problems.
The foregoing description is only an overview of the present invention, and is intended to be implemented in accordance with the teachings of the present invention in order that the same may be more clearly understood and to make the same and other objects, features and advantages of the present invention more readily apparent.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the application. Also, like reference numerals are used to designate like parts throughout the figures. In the drawings:
fig. 1a is a schematic structural diagram of a network system according to an exemplary embodiment of the present application;
fig. 1b is a schematic structural diagram of another network system according to an exemplary embodiment of the present application;
FIG. 2 is a flow chart of one embodiment of an example migration method provided by the present invention;
FIG. 3 is a flow chart of another embodiment of an example migration method provided by the present invention;
FIG. 4 is a flow chart of yet another embodiment of an example migration method provided by the present invention;
FIG. 5 is a flow chart of yet another embodiment of an example migration method provided by the present invention;
FIG. 6 is a flow chart of yet another embodiment of an example migration method provided by the present invention;
FIG. 7 is a flow chart of yet another embodiment of an example migration method provided by the present invention;
FIG. 8 is a flow chart of yet another embodiment of an example migration method provided by the present invention;
FIG. 9 is a flow chart of yet another embodiment of an example migration method provided by the present invention;
FIG. 10 is a schematic diagram illustrating an exemplary migration apparatus according to an embodiment of the present invention;
FIG. 11 is a schematic diagram of another embodiment of an example migration apparatus according to the present invention;
FIG. 12 is a schematic view of another embodiment of an example migration apparatus provided by the present invention;
FIG. 13 is a schematic view of a further embodiment of an example migration apparatus according to the present invention;
FIG. 14 is a schematic structural diagram of an embodiment of an electronic device according to the present invention;
fig. 15 is a schematic structural diagram of another embodiment of an electronic device according to the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
In the prior art, in the actual use of the edge cloud, since the edge cloud node is a physical node disposed at the near-user side, when the physical node resources used by the user are limited, or the network resources used by the user are limited and the network quality is unstable, the example performance of the user is directly affected. Therefore, the application proposes an example migration scheme, the main principle of which is: and selecting one of a plurality of edge cloud nodes in the edge cloud from all edge cloud nodes except a source edge cloud node of a currently operated instance to be migrated as a target edge cloud node, controlling the target edge cloud node by using the center cloud to acquire instance data of the instance to be migrated, creating a new instance in the target edge cloud node according to instance information of the instance to be migrated and configuration information of the target edge cloud node for the instance to be migrated, and coordinating different edge cloud nodes by using a center management function of the center cloud to realize instance migration, so that the advantages of a two-stage cloud architecture consisting of the center cloud and the edge cloud are fully exerted, and the performance of the instance can be ensured by adopting an inter-node instance migration mode when a problem occurs in part of edge cloud nodes or networks.
The method provided by the embodiment of the invention can be applied to any business system with data processing capability. Fig. 1a is a schematic structural diagram of a network system according to an exemplary embodiment of the present application. As shown in fig. 1a, the network system 100 includes: a central management and control device 101 and at least one edge cloud node 102; at least one edge cloud node 102 is network connected to the central management and control apparatus 101.
The network system 100 of the present embodiment is a cloud computing platform built on an edge infrastructure based on the cloud computing technology and the capability of edge computing, and is a cloud platform with the capabilities of computing, networking, storage, security, and the like at an edge location.
The network system 100 of the present embodiment may be regarded as an edge cloud network system, corresponding to a central cloud or a conventional cloud computing platform. The edge cloud is a relative concept, and the edge cloud is a cloud computing platform relatively close to a terminal, or is different from a central cloud or a traditional cloud computing platform, the central cloud or the traditional cloud computing platform can comprise a data center with large resource scale and concentrated position, and the edge cloud node covers a wider network range, so that the edge cloud node has the characteristic of being closer to the terminal, the resource scale of a single edge cloud node is smaller, but the number of the edge cloud nodes is large, and a plurality of edge cloud nodes form a component part of the edge cloud in the embodiment. The terminal in this embodiment refers to a demand end of a cloud computing service, and may be, for example, a terminal or a user end in the internet, or a terminal or a user end in the internet of things. An edge cloud network is a network built based on the infrastructure between a central cloud or a conventional cloud computing system and terminals. Wherein the network system 100 comprises at least one edge cloud node 102, each edge cloud node 102 comprising a series of edge infrastructures including, but not limited to: distributed Data Center (DC), wireless room or cluster, operator's communication network, core network devices, base stations, edge gateways, home gateways, computing devices, storage devices, etc., and corresponding network environments, etc. Here, the location, capabilities, and contained infrastructure of the different edge cloud nodes 102 may or may not be the same.
The network system 100 of this embodiment, in combination with a central network such as a central cloud or a traditional cloud computing platform, and a terminal, may form a network architecture of "cloud edge end three-body collaboration", where tasks such as network forwarding, storage, computation, and intelligent data analysis may be placed in each edge cloud node 102 in the network system 100 for processing, and since each edge cloud node 102 is closer to the terminal, response delay may be reduced, pressure of the central cloud or the traditional cloud computing platform may be reduced, and bandwidth cost may be reduced.
How to reasonably schedule multiple edge cloud node resources, and how to manage multiple edge cloud nodes for cloud computing services with correct and stable logic, is an important challenge. In the network system 100 of the present embodiment, a central management and control device 101 is deployed, where the central management and control device 101 uses the edge cloud nodes 102 as management and control objects, and in aspects of resource scheduling, mirror image management, instance management, operation and maintenance, network, security, and the like, at least one edge cloud node 102 in the network system 100 is uniformly managed and controlled, so that cloud computing services are put into each edge cloud node 102 for processing. In deployment implementation, the central management and control device 101 may be deployed in one or more cloud computing data centers, or may be deployed in one or more traditional data centers, where the central management and control device 101 and at least one edge cloud node managed by the central management and control device may together form an edge cloud network, and this embodiment is not limited to this.
For one edge cloud node 102, various resources, such as computing resources of CPU, GPU, etc., memory, storage resources of hard disk, network resources of bandwidth, etc., may be provided externally. In addition, the edge Yun Jiedian 102 can also create corresponding instances from the mirror image, through which various cloud computing services are provided outside. The image is a basic file required for creating an instance in the edge cloud node, for example, may be an image file of an operating system, an application, or an operation configuration required for providing cloud computing service for a user, and may be a file manufactured according to a specific series of files and a certain format, which meets the computing deployment requirement of the edge cloud node. In addition, the image forms are various, and may be Virtual Machine (VM) image files, container (Docker) image files, application package files of various types, and the like, and the image forms may be related to a virtualization technology that needs to be used by the cloud computing service, which is not limited in this embodiment. Corresponding to the mirror image, the implementation form of the instance may be a virtual machine, a container, an application program, or the like.
It should be noted that, in the network system 100, the central controlling device 101 may directly control and schedule the at least one edge cloud node 102, but is not limited thereto. Fig. 1b is a schematic structural diagram of another network system according to an exemplary embodiment of the present application. As shown in fig. 1b, in the network system 100, an edge management and control device 103 is included in addition to the central management and control device 101 and the at least one edge cloud node 102. The number of the edge management and control devices 103 may be one or more. In addition, edge management and control device 103 may be deployed in one or more edge cloud nodes 102. In an alternative embodiment, as shown in fig. 1b, edge management and control devices 103 are deployed in each edge cloud node 102. Further, each edge cloud node includes one or more resource devices, and optionally, the edge management and control device 103 may be deployed on one resource device in a centralized manner, or may be deployed on multiple resource devices in a decentralized manner. In addition, each edge cloud node may include one or more proprietary devices in addition to the resource devices, where the edge management device 103 may be deployed centrally on one proprietary device or distributed across multiple proprietary devices. Where proprietary devices refer to physical devices used to deploy edge management devices 103, as opposed to resource devices. In addition, the edge management and control device 103 may also be deployed with the center management and control device 101, which is not limited herein. The central management and control device 101 may be deployed in one or more cloud computing data centers or traditional data centers, or may be deployed in an edge cloud network together with at least one edge cloud node.
In this embodiment, the edge management and control device 103 may assist, cooperate with the central management and control device 101 to manage and schedule at least one edge cloud node 102. With the assistance of the edge management and control device 103, the central management and control device 101 can manage and schedule at least one edge cloud node 102 more conveniently and efficiently, so as to achieve the purpose of fully utilizing edge resources.
According to an embodiment of the present application, the central management and control apparatus 101 in fig. 1a and 1b may comprise: the migration instruction generation module and the creation instruction generation module may be used to execute the process flows shown in fig. 2 and 3 described below. In addition, the network system 100 further includes a target edge cloud node, where the target edge cloud node includes: the data acquisition module and the instance creation module may be used to perform the process flows shown in fig. 4 and 5 described below. For example, in the network system, the central management and control device may generate a migration instruction and send the migration instruction to a target edge cloud node other than the source edge cloud node, where the target edge cloud node obtains instance data of an instance to be migrated according to the received migration instruction; then, the central control equipment generates an instance creation instruction according to the configuration information of the target edge cloud node for the instance to be migrated and sends the instance creation instruction to the target edge cloud node, and the target edge cloud node creates an instance based on the acquired instance data according to the received instance creation instruction. The central control equipment 101 is used for coordinating the instance migration process among different edge cloud nodes, so that the advantages of the edge cloud architecture are fully exerted, and when a part of edge cloud nodes or a network has problems, the use of the instance by a user can be ensured in an inter-node instance migration mode.
For example, in practical applications, migration of an instance is required in some cases. For example, in the event that an entire edge cloud node fails or is unavailable, instances in that edge cloud node need to be migrated into other edge cloud nodes. For another example, in the event that a physical machine carrying an instance fails or is down, the instance on that physical machine needs to be migrated to other physical machines. As another example, some or some instances may need to be migrated from one edge cloud node to other edge cloud nodes because of traffic needs. For another example, in the case where resource merge is required, migration of one or some instances is also required. Instances in the edge cloud nodes may be migrated under the control of the central control device 101.
The instance to be migrated may be one or more; if the number of the to-be-migrated instances is multiple, the multiple to-be-migrated instances can be deployed in the same edge cloud node or in different edge cloud nodes.
In some application scenarios, the central management and control device 101 may monitor a state of at least one instance deployed in at least one edge cloud node 102, and obtain, according to the state of at least one instance, a failed instance and/or an instance having a specified event in operation as an instance to be migrated, thereby migrating the instance to be migrated. The failed instance refers to an instance that cannot normally run, for example, an instance on a physical machine that is down, an instance that is down itself, and the like, where the instance needs to be migrated so as to be able to continue to provide cloud computing service for a service demander. The specified events mainly refer to events which can still normally run after some examples appear, and the specified events can be flexibly set according to application requirements, so that the specified events are not limited. For example, the specified events may be early warning or alarm events, and the examples are still operational (i.e. not failed) although some early warning or alarm events occur, but have hidden trouble, and can be timely migrated before failure, so as to avoid the problems of service interruption and the like caused by failure. In addition, the central management and control device 101 maintains information of each edge cloud node and information of each instance deployed in each edge cloud node, based on which, an edge cloud node to which an instance to be migrated belongs can be determined, and for convenience of description and distinction, an edge Yun Jiedian to which the instance to be migrated belongs before migration is denoted as a first edge cloud node.
In other application scenarios, as time is accumulated, some resource fragments appear in the edge cloud node, or an instance with larger resource specification needs to be deployed, but available resources meeting the resource specification requirements may not be available on the resource equipment in the edge cloud node, and under these conditions, the resources in the edge cloud node can be merged through instance migration, so that the resource fragments can be fully utilized, further, resource blocks with larger specification are produced, and the improvement of the resource utilization rate is facilitated. Based on this, the central controlling device 101 may determine an instance to be migrated from at least one instance according to the resource merging requirement, and further migrate the instance to be migrated. The resource merging is mainly a process of integrating resource fragments through instance migration, and after integration, the resource fragments in the edge cloud nodes are reduced or even absent, which is beneficial to improving the resource utilization rate in the edge cloud nodes. It should be noted that the resource merging requirement may be system level or node level. The system-level resource merging refers to integrating resource fragments in the whole network system through instance migration from the dimension consideration of the whole network system; node-level resource merging refers to integrating resource fragments in edge cloud nodes through instance migration from the dimension consideration of the edge cloud nodes.
Alternatively, the resource merge requirement may be provided by the service demander. For example, when a service demander needs to deploy a new instance, if available resources on each resource device in an edge cloud node serving the service demander are insufficient to carry the new instance, migration of the instance in the edge cloud node may be required to implement resource integration, so as to provide sufficient resources for the new instance. Alternatively, the resource merge requirement may be provided by an operator of the edge cloud node. For example, an operation and maintenance person may periodically initiate a resource merging requirement to the central management and control device 101, integrate resource fragments in each edge cloud node, and improve the resource utilization rate in the edge cloud node.
The resource merging requirement comprises information related to resource merging. For example, the resource merging requirement may include information of an instance that needs to be migrated for achieving the resource merging purpose, based on which an instance to be migrated may be directly determined according to the resource merging requirement. For another example, the resource merging requirement may include information of an edge cloud node that needs resource merging. Based on the above, according to the resource merging requirement, the edge cloud node needing resource merging can be determined, and in the embodiment, the edge cloud node needing resource merging is called a first edge cloud node; and then, the to-be-migrated instance can be determined by combining the available resources remained on each resource device in the first edge cloud node and the resources required by each instance in the first edge cloud node.
Optionally, the central controlling device 101 may determine whether a first edge cloud node other than the source edge cloud node is currently in an available state; if the first edge cloud node is currently in an available state, judging whether available resources of the first edge cloud node are enough to bear an instance to be migrated; if the available resources of the first edge cloud node are enough to bear the instance to be migrated, determining that the first edge cloud node meets the intra-node migration condition, and then the first edge cloud node can be used as the target edge cloud node. The available resources of the first edge cloud node mainly refer to available resources on each station of resource equipment in the first edge cloud node; accordingly, determining whether the available resources of the first edge cloud node are sufficient to carry the instance to be migrated mainly refers to determining whether the available resources exist in the first edge cloud node to be sufficient to carry the resource device of the instance to be migrated.
In addition, the to-be-migrated instance is migrated to the target edge cloud node, and attribute information of the to-be-migrated instance in the target edge cloud node is sent to the service demand side, so that the service demand side can conduct service scheduling on the to-be-migrated instance based on the attribute information. The attribute information of the to-be-migrated instance in the target edge cloud node may refer to information required by the outside (e.g., a service demander or a third party authorized by the service demander) to perform service scheduling on the to-be-migrated instance after the to-be-migrated instance migrates to the target edge cloud node, and may include, for example, but not limited to: the information of the region, the operator information and/or the public network IP and the like where the target edge cloud node is located. Taking a service demand party as an example, according to the region and the operator information of the target edge cloud node in the attribute information, and combining the information of the operator information, the region and the like of a network used by a terminal initiating the service request, whether the service request is distributed to an instance to be migrated in the target edge cloud node can be judged; if the service request is determined to be distributed to the to-be-migrated instance in the target edge cloud node, the public network IP in the attribute information can be provided for the terminal, so that the terminal can access the to-be-migrated instance in the target edge cloud node, and the purpose of scheduling the service request of the terminal to the to-be-migrated instance in the target edge cloud node is achieved.
Alternatively, in selecting the target edge cloud node, the following may be employed, but is not limited to:
mode 1: according to the distances between other edge cloud nodes and the source edge cloud node, selecting an edge cloud node with the distance from the source edge cloud node smaller than a set distance threshold value, or selecting an edge cloud node closest to the source edge cloud node, or selecting one edge cloud node from N edge cloud nodes closest to the source edge cloud node as a target edge cloud node. In the mode 1, the target edge cloud node is closest to or nearer to the first source edge cloud node, so that the data transmission time can be saved, and the migration efficiency can be improved. Optionally, the distance between the other edge cloud nodes and the source edge cloud node may be an average distance between the other edge cloud nodes and the source edge cloud node, a distance between the centers of the other edge cloud nodes and the source edge cloud node, a distance between the closest outer edge of the other edge cloud nodes and the source edge cloud node, and the like, which may be adaptively defined according to requirements.
Mode 2: the edge cloud node with relatively sufficient bandwidth resources can be selected from the other edge cloud nodes according to the bandwidth resources of the other edge cloud nodes, for example, the edge Yun Jiedian with the largest bandwidth resource or the bandwidth resource larger than the set bandwidth threshold or the edge with lower bandwidth utilization rate is selected as the target edge cloud node. In the mode 2, the bandwidth resources of the target edge cloud node are sufficient, so that the data transmission rate can be improved, and the migration efficiency can be improved.
Mode 3: according to the current load conditions of other edge cloud nodes, an edge cloud node with relatively lighter load can be selected, for example, an edge Yun Jiedian with the smallest load or with the load smaller than a set load threshold is selected as a target edge cloud node. In the mode 3, the load of the target edge cloud node is lighter, enough resources can be provided, and the migration of the instance can be processed in time, so that the migration efficiency is improved.
Optionally, when migrating the to-be-migrated instance to the target edge cloud node, the central management and control device 101 may reserve or allocate resources for the to-be-migrated instance in the target edge cloud node according to the resource requirement of the to-be-migrated instance; and after the resource reservation or allocation is successful, migrating the instance to be migrated to the reserved or allocated resource in the target edge cloud node. For example, the information such as the type of the resource, the amount of the resource and/or the performance requirement of the resource equipment required by the instance to be migrated can be determined according to the resource requirement of the instance to be migrated, and the resource reservation or the allocation can be performed in the target edge cloud node according to the information, so that the resource guarantee can be provided for the successful migration of the instance.
Optionally, if the instance to be migrated is a failed instance, i.e. an instance that cannot operate normally, the central controlling device 101 may also notify the service demander of the migration event, so that the service demander may perform an appropriate response action, such as updating information of the instance in the service demander, or performing a disaster recovery response for a downtime condition in the process of migrating the instance. Further, the attribute information of the instance to be migrated in the target edge cloud node can be provided to the service demander together in the process of notifying the migration event. Of course, after the to-be-migrated instance is successfully migrated to the target edge cloud node, attribute information of the to-be-migrated instance in the target edge cloud node may be provided to the service demander.
Optionally, if the to-be-migrated instance is an instance in which a specified event occurs in the operation process, that is, an instance in which the specified event occurs but still can operate normally, the central control device 101 may further send a migration request to the service demander, so that the service demander determines a migration policy for the to-be-migrated instance in combination with the service condition on the to-be-migrated instance; and receiving a migration strategy sent by the service demand party, and migrating the instance to be migrated to the target edge cloud node according to the migration strategy. The migration policy mainly includes at least one of information of whether to migrate, migration time and migration mode. Alternatively, the service demander may determine when to migrate according to the number of the stock service requests and the incremental service requests on the to-be-migrated instance and the response state, for example, may determine to migrate the instance if the stock service requests on the to-be-migrated instance have been responded, and the incremental service requests are not more.
Further alternatively, the central managing and controlling device 101 may send the attribute information of the instance to be migrated in the target edge cloud node to the service demander together with the above-mentioned migration request. Or, after the to-be-migrated instance is successfully migrated to the target edge cloud node, the attribute information of the to-be-migrated instance in the target edge cloud node can be provided to the service demander.
Further optionally, if the to-be-migrated instance is an instance that has a specified event but still can operate normally, in the migration process, the to-be-migrated instance can continue to operate in the source edge cloud node, so that the service request in the migration process can be continuously scheduled to the to-be-migrated instance in the source edge cloud node, and service continuity is ensured. And under the condition that the to-be-migrated instance is successfully migrated to the target edge cloud node, and the service demander ensures that new service requests are all scheduled to the target edge cloud node, and the service requests in the source edge cloud node are gradually reduced and finally no new service request exists, namely, no service request exists on the to-be-migrated instance in the source edge cloud node, the central management and control equipment can release the to-be-migrated instance in the source edge cloud node. Optionally, after determining that there are no more service requests on the to-be-migrated instance running in the source edge cloud node, the service demander may send a release notification to the central management and control device 101 after determining that there are neither stock service requests nor incremental service requests; the central control device 101 receives a release notification sent by the service demander, and releases the instance to be migrated running in the source edge cloud node according to the release notification. Further, the central management and control device 101 may synchronize the running state of the instance to be migrated running in the source edge cloud node to the instance to be migrated in the target edge cloud node.
Further, no matter what kind of instance is to be migrated, the migration of the instance to be migrated to the target edge cloud node is mainly a process of controlling corresponding resource equipment in the target edge cloud node to create the instance to be migrated on reserved or allocated resources according to the mirror image or instance snapshot corresponding to the instance to be migrated. Optionally, the central management and control device 101 may provide an application image or an instance snapshot corresponding to the instance to be migrated to the corresponding resource device in the target edge cloud node, so that the corresponding resource device in the target edge cloud node creates the instance to be migrated on the reserved or allocated resource according to the application image or the instance snapshot, which is not limited thereto.
Optionally, the central control device 101 of the present embodiment may encapsulate its own control functions such as instance upgrade, instance migration, and the like into a series of application programming interfaces (Application Programming Interface, APIs) and open to the service demander for use. These open APIs are referred to as open APIs (openapis) through which central controlling device 101 may interact with service requesters.
In the case that the edge management and control device 103 is included in the network system, the central management and control device 101 and the edge management and control device 103 cooperate with each other, and may also migrate an instance in at least one edge cloud node 102.
Optionally, in the process of migrating the to-be-migrated instance, the edge management and control device 103 may assist the central management and control device 101 to control the corresponding resource device in the target edge cloud node to reserve or allocate resources for the to-be-migrated instance. The central management and control device 101 may determine, according to the resource requirement of the instance to be migrated, the scheduled resource information in the target edge cloud node, provide the resource information to the edge management and control device 103, and control, by the edge management and control device 103, the corresponding resource device in the target edge cloud node to reserve or allocate resources for the instance to be migrated according to the resource information. Further, if the edge management and control device 103 is deployed in the target edge cloud node, the central management and control device 101 may provide resource information to the edge management and control device 103 in the target edge cloud node, and according to the resource information, the edge management and control device 103 in the target edge cloud node controls a corresponding resource device in the target edge cloud node to reserve or allocate resources for the instance to be migrated.
In addition, in the process of migrating the instance to be migrated, the edge management and control device 103 may also assist the central management and control device 101 to migrate the instance to be migrated to the resource reserved or allocated by the corresponding resource device in the target edge cloud node. The central management and control device 101 may send a migration instruction to the edge management and control device 103, where the migration instruction instructs the edge management and control device 103 to obtain a mirror image or an instance snapshot corresponding to the instance to be migrated and provide the mirror image or the instance snapshot to corresponding resource devices in the target edge cloud node, so that the corresponding resource devices in the target edge cloud node create the instance to be migrated on the reserved or allocated resources according to the mirror image or the instance snapshot. Further, if the edge management and control device 103 is deployed in the target edge cloud node, the central management and control device 101 may send a migration instruction to the edge management and control device 103 in the target edge cloud node, instruct the edge management and control device 103 in the target edge cloud node to obtain a mirror image or a snapshot corresponding to the instance to be migrated and provide the mirror image or the snapshot to corresponding resource devices in the target edge cloud node, so that the corresponding resource devices in the target edge cloud node create the instance to be migrated on the reserved or allocated resources according to the mirror image or the snapshot.
Alternatively, if the instance migration process uses snapshots, the manner in which the edge management and control device 103 obtains the snapshots may be different depending on the storage manner of the snapshots. If the snapshot is stored in the source edge cloud node, whether the state of the source edge cloud node is available or not is checked, if the source edge cloud node is in an unavailable state, the snapshot is not suitable for instance migration, and the mirror image is needed to be used for instance migration instead; if the source edge cloud node is in an available state, the edge management and control device may obtain a snapshot from the source edge cloud node. If the snapshots are stored in other edge cloud nodes in a scattered manner, the process of taking the snapshots is irrelevant to the state of the source edge cloud node, and the edge management and control device can take the snapshots from the other edge cloud nodes under the condition that the other edge cloud nodes are in an available state. After the edge management and control equipment acquires the snapshot, the snapshot copy is provided for corresponding resource equipment in the target edge cloud node, and the corresponding resource equipment creates an instance to be migrated through the snapshot. The data saved during snapshot can be restored through the snapshot creation instance.
Optionally, if the instance migration process uses a mirror image, when the edge management and control device 103 obtains the mirror image, it may first determine whether the mirror image corresponding to the instance to be migrated is stored in the target edge cloud node. If the target edge cloud node has a corresponding mirror image, the edge management and control device can directly provide the corresponding mirror image in the target edge cloud node for corresponding resource devices in the target edge cloud node, so that the corresponding resource devices can create an instance to be migrated through the mirror image. If the target edge cloud node does not have the corresponding mirror image, the edge management and control equipment can request the corresponding mirror image from the central management and control equipment; the central control equipment can acquire the mirror image from the mirror image library and provide the mirror image for the edge control equipment, or instruct the edge control equipment to acquire the mirror image from other edge cloud nodes storing the corresponding mirror image; the edge management and control equipment is provided for corresponding resource equipment in the target edge cloud node after obtaining the corresponding mirror image, and the corresponding resource equipment is provided with an instance to be migrated through the mirror image.
The foregoing embodiments are illustrative of the technical principles and exemplary application frameworks of embodiments of the present invention, and the detailed description of specific technical solutions of the embodiments of the present invention will be further described below by means of a plurality of embodiments.
Example 1
Fig. 2 is a flowchart of an embodiment of an example migration method provided by the present invention, where an execution body of the method may be a central management device in the network system, or may be various servers with data processing capabilities, or may be a device or a chip integrated on the devices. As shown in fig. 2, the example migration method includes the steps of:
s201, the central control equipment generates a migration instruction, and notifies target edge cloud nodes except the source edge cloud nodes to acquire instance data of an instance to be migrated.
The instance migration method provided by the embodiment of the invention can be applied to instance migration among all edge cloud nodes in the network system as shown in fig. 1a or 1 b. When a certain edge cloud node is limited in resources or the used network resources are limited and the network quality is unstable, the instance running on the edge cloud node can be migrated to other edge cloud nodes in the edge cloud through instance migration among the edge cloud nodes. In the embodiment of the invention, the source edge cloud node refers to an edge cloud node of a current running instance to be migrated.
S202, the central control equipment acquires configuration information of the target edge cloud node for an instance to be migrated, and generates an instance creation instruction to control the target edge cloud node to create an instance based on the acquired instance data.
In the embodiment of the invention, since the edge cloud nodes in the edge cloud are physical nodes arranged on the near user side, when the instance is migrated, the central control equipment firstly generates a migration instruction to be sent to the target edge cloud node serving as a migration destination, and controls the target edge cloud node to acquire the instance data of the instance to be migrated; then, the central control equipment acquires configuration information of the target edge cloud node for the instance to be migrated, and generates an instance creation instruction to control the target edge cloud node to create an instance based on the acquired instance data.
According to the instance migration method provided by the embodiment of the invention, when the instance migration is carried out among a plurality of edge cloud nodes in the edge cloud, the center cloud management and control equipment controls the target edge cloud node to acquire the instance data of the instance to be migrated, and further, the configuration information of the target edge cloud node for the instance to be migrated is acquired, so that a new instance is created in the target edge cloud node, the instance migration process among different edge cloud nodes is coordinated through the center cloud management and control equipment, the advantages of the edge cloud architecture are fully exerted, and when a problem occurs in part of edge cloud nodes or a network, the performance of the instance can be ensured through the mode of instance migration among the nodes.
Example two
Fig. 3 is a flowchart of another embodiment of an example migration method provided by the present invention, where an execution body of the method may be a central management device in the network system, or may be various servers with data processing capabilities, or may be a device or a chip integrated on the devices. As shown in fig. 3, the example migration method includes the steps of:
s301, the central management and control equipment generates a migration instruction, and notifies edge cloud management and control equipment of target edge cloud nodes except the source edge cloud node to acquire instance data of an instance to be migrated.
The instance migration method provided by the embodiment of the invention can be applied to instance migration among all edge cloud nodes in the network system as shown in fig. 1a or 1 b. When a certain edge cloud node is limited in resources or the used network resources are limited and the network quality is unstable, the edge cloud management and control equipment can be utilized to migrate the instance running on the source edge cloud node to other edge cloud nodes in the edge cloud. In the embodiment of the invention, the source edge cloud node refers to an edge cloud node of a current running instance to be migrated.
In addition, in the embodiment of the application, after the edge cloud management and control device of the target edge cloud node obtains the instance data of the instance to be migrated, the instance data of the instance to be migrated may be stored in the storage device of the target edge cloud node, and may also be stored in the memory of the edge cloud management and control device.
S302, the central management and control equipment acquires configuration information of the target edge cloud node for an instance to be migrated, and generates an instance creation instruction to control the edge cloud management and control equipment of the target edge cloud node to create an instance based on the acquired instance data.
In the embodiment of the invention, because the edge cloud node is a physical node arranged on the near user side, when performing instance migration, the central control equipment firstly generates a migration instruction to send to the edge cloud control equipment of the target edge cloud node serving as a migration destination, and controls the edge cloud control equipment of the target edge cloud node to acquire instance data of an instance to be migrated; then, the central management and control equipment acquires configuration information of the target edge cloud node for the instance to be migrated, and generates an instance creation instruction to control the edge cloud management and control equipment of the target edge cloud node to create an instance based on the acquired instance data.
According to the instance migration method provided by the embodiment of the invention, when the instance migration is carried out among a plurality of edge cloud nodes in the edge cloud, the edge cloud management and control equipment of the target edge cloud node is controlled by the central cloud management and control equipment to acquire the instance data of the instance to be migrated, and further the configuration information of the target edge cloud node for the instance to be migrated is acquired, so that a new instance is created in the target edge cloud node, and the instance migration process among different edge cloud nodes is coordinated by the central cloud management and control equipment, so that the advantages of the edge cloud architecture are fully exerted, and when a problem occurs in part of the edge cloud nodes or the network, the performance of the instance is ensured by the mode of instance migration among the nodes.
Example III
FIG. 4 is a flow chart of yet another embodiment of an example migration method provided by the present invention. As shown in fig. 4, on the basis of the embodiment shown in fig. 2, the example migration method provided in this embodiment may further include the following steps:
s401, the central management and control equipment determines target edge cloud nodes from edge cloud nodes outside the source edge cloud nodes according to node information of the source edge cloud nodes.
In the embodiment of the invention, the central management and control equipment for managing a plurality of edge cloud nodes in the edge cloud can inform a user when an instance migration starting event is generated, then a target edge cloud node is determined in the plurality of edge cloud nodes, namely, the central management and control equipment can select the target edge cloud node meeting the requirements in an intelligent point selection mode according to node information (such as resource information, network information, geographical position information and the like of the edge cloud node) of the source edge cloud node to which the instance to be migrated belongs, and can refer to the preference of the user in the aspect of using the edge cloud node.
S402, the central management and control equipment generates a resource reservation instruction according to the instance data of the instance to be migrated so as to control the target edge cloud node to reserve resources for the instance to be migrated.
In the embodiment of the invention, in order to avoid conflict (for example, a plurality of to-be-migrated examples migrate an example to a target edge cloud node at the same time, so that resources of the target edge cloud node are not enough, etc.), after the central control equipment selects the target node, a resource reservation instruction can be generated according to example data (for example, the type of resources and the quantity of resources required by the example) of the to-be-migrated example and sent to the target edge cloud node, so that the target edge cloud node reserves corresponding resources for the to-be-migrated example according to the received resource reservation instruction, and the availability of the resources of the target edge cloud node is ensured.
S403, the central control equipment generates a mirror image acquisition instruction to control the target edge cloud node to acquire mirror image data of the instance to be migrated.
In the embodiment of the present invention, the instance data of the instance to be migrated may include mirror image data, and the mirror image data of the instance may be stored in the central management and control device and/or in an edge cloud node in the edge cloud, so the migration instruction in the embodiment of the present invention may include a mirror image acquisition instruction. When the instance is migrated, the central control equipment generates a mirror image acquisition instruction and sends the mirror image acquisition instruction to the target edge cloud node, so that the target edge cloud node acquires the mirror image data of the instance to be migrated from the central control equipment and/or the edge cloud node storing the mirror image data according to the instruction after receiving the mirror image acquisition instruction.
Further, before generating the mirror image obtaining instruction, the central management and control device may also query whether mirror image data of the instance to be migrated is stored in the target edge cloud node, and execute, according to the query result, an operation of generating the mirror image migration instruction for the target edge cloud node that does not store the mirror image data of the instance to be migrated. That is, if the mirror image data is stored in the target edge cloud node, directly performing subsequent operations; and if the mirror image data is not stored in the target edge cloud node, the central control equipment controls the target edge cloud node to acquire the mirror image data from the central control equipment and/or the edge cloud node storing the mirror image data. After the mirror data is available, the target edge cloud node may notify the central control device to proceed with the subsequent flow.
Optionally, after step S402, instead of step S403, S404 may also be executed, where the central controlling device generates a snapshot migration instruction to control the target edge cloud node to obtain snapshot data of the instance to be migrated.
In the embodiment of the present invention, the instance data of the instance to be migrated may include snapshot data, and the snapshot data of the instance may be stored in the central management and control device and/or in an edge cloud node in the edge cloud, so the migration instruction in the embodiment of the present invention may include a snapshot migration instruction. The central control equipment can control the target edge cloud node to generate a snapshot migration instruction and send the snapshot migration instruction to the target edge cloud node so as to control the target edge cloud node to acquire snapshot data of an instance to be migrated according to the instruction.
Further, before generating the snapshot migration instruction, the central control device may also first obtain the latest available snapshot information of the migration instance, and then execute the operation of generating the snapshot migration instruction according to the latest available snapshot information. The central control equipment generates a snapshot migration instruction according to the latest snapshot information of the instance to be migrated so as to control the target edge cloud node to acquire snapshot data of the instance to be migrated from the central control equipment and/or the edge cloud node storing the latest snapshot. After the snapshot data is acquired, the target edge cloud node may notify the central control device to perform subsequent flows.
And S405, the central management and control equipment generates an instance creation instruction according to the configuration information of the target edge cloud node for the instance to be migrated so as to control the target edge cloud node to create the instance based on the acquired instance data.
In the embodiment of the invention, after the target edge cloud node creates the instance, the instance start can be attempted. After confirming that the instance is successfully created and started, the target edge cloud node can inform the central control equipment, trigger informing a user event and wait for the user to process migration actions; if the creation or the starting of the instance fails, scheduling may be performed in the source edge cloud node, or the step S401 may be returned to perform the point selection operation again. Specifically, step S405 is the same as step S202 in the embodiment shown in fig. 2, and is not described herein.
S406, the central control equipment generates an instance release instruction to control the source edge cloud node to release the instance.
In the embodiment of the present invention, after the creation of a new instance is completed by the target edge cloud node (for example, after the migration logic is completed by the user, the OpenAPI actively calls back the central control device to confirm that the migration is completed, or the migration event is completed, but the user callback is not received, and then the instance migration is considered to be completed), the central control device may generate an instance release instruction and send the instance release instruction to the source edge cloud node, so that after the source edge cloud node receives the instance release instruction, the instance to be migrated is deleted according to the instruction. Meanwhile, the central control equipment can also release the resource inventory information occupied by the original instance.
S407, the central management and control equipment generates a state modification instruction according to the node information of the target edge cloud node so as to modify the state information of the instance to be migrated.
Further, in the embodiment of the present invention, after the source edge cloud node releases the original instance, the central management and control device may generate a state modification instruction according to node information (for example, node ID, IP information, disk information, etc.) of the target node, so as to modify the state information of the instance to be migrated (which is currently migrated to the target edge cloud node). Finally, the central control device can generate an instance migration completion event to inform a user, so that an instance migration flow among the edge cloud nodes is completed.
According to the instance migration method provided by the embodiment of the invention, when the instance migration is carried out among a plurality of edge cloud nodes, the central management and control equipment is used for selecting the target edge cloud node meeting the requirements from the edge cloud nodes except the source edge cloud node, controlling the target edge cloud node to acquire the mirror image data or snapshot data of the instance to be migrated, further acquiring the configuration information of the target edge cloud node for the instance to be migrated, creating a new instance in the target edge cloud node based on the acquired mirror image data and snapshot data, and coordinating the instance migration process among different edge cloud nodes through the central management and control function, so that the advantages of the edge cloud architecture are fully exerted, and the performance of the instance can be ensured in an instance migration mode among the edge cloud nodes when a part of edge cloud nodes or a network has problems.
Example IV
FIG. 5 is a flow chart of yet another embodiment of an example migration method provided by the present invention. As shown in fig. 5, on the basis of the embodiment shown in fig. 3, the example migration method provided in this embodiment may further include the following steps:
s501, the central control equipment determines a target edge cloud node from edge cloud nodes outside the source edge cloud node according to node information of the source edge cloud node.
In the embodiment of the invention, the central management and control equipment for managing a plurality of edge cloud nodes in the edge cloud can inform a user when an instance migration starting event is generated, then a target edge cloud node is determined in the plurality of edge cloud nodes, namely, the central management and control equipment can select the target edge cloud node meeting the requirements in an intelligent point selection mode according to node information (such as resource information, network information, geographical position information and the like of the edge cloud node) of the source edge cloud node to which the instance to be migrated belongs, and can refer to the preference of the user in the aspect of using the edge cloud node.
S502, the central management and control equipment generates a resource reservation instruction according to the instance data of the instance to be migrated so as to control the edge cloud management and control equipment of the target edge cloud node to reserve resources for the instance to be migrated.
In the embodiment of the invention, in order to avoid conflict (for example, a plurality of to-be-migrated examples migrate an example to a target edge cloud node at the same time, so that resources of the target edge cloud node are not enough, etc.), after the central control equipment selects the target node, a resource reservation instruction can be generated according to example data (for example, the type of resources and the quantity of resources required by the example) of the to-be-migrated example and sent to the edge cloud control equipment of the target edge cloud node, so that the edge cloud control equipment of the target edge cloud node reserves corresponding resources for the to-be-migrated example according to the received resource reservation instruction, and the availability of the resources of the target edge cloud node is ensured.
S503, the central control equipment generates a mirror image acquisition instruction to control the edge cloud control equipment of the target edge cloud node to acquire mirror image data of the instance to be migrated.
In the embodiment of the present invention, the instance data of the instance to be migrated may include mirror image data, and the mirror image data of the instance may be stored in the central management and control device and/or in the edge cloud node, so the migration instruction in the embodiment of the present invention may include a mirror image acquisition instruction. When the instance is migrated, the central control equipment generates a mirror image acquisition instruction and sends the mirror image acquisition instruction to the edge cloud control equipment of the target edge cloud node, so that after the edge cloud control equipment of the target edge cloud node receives the mirror image acquisition instruction, the mirror image data of the instance to be migrated is acquired from the central control equipment and/or the edge cloud node storing the mirror image data according to the instruction.
Further, before generating the mirror image obtaining instruction, the central management and control device may also query whether mirror image data of the instance to be migrated is stored in the target edge cloud node, and execute, according to the query result, an operation of generating the mirror image migration instruction for the target edge cloud node that does not store the mirror image data of the instance to be migrated. That is, if the mirror image data is stored in the target edge cloud node, directly performing subsequent operations; if the mirror image data is not stored in the target edge cloud node, the central control equipment controls the edge cloud control equipment of the target edge cloud node to acquire the mirror image data from the central control equipment and/or the edge cloud node storing the mirror image data. After the mirror image data is available, the edge cloud management and control device of the target edge cloud node can inform the central management and control device of the target edge cloud node to conduct subsequent flows.
Optionally, after step S502, instead of executing step S503, S504 may also be executed, where the central controlling device generates a snapshot migration instruction to control the edge cloud controlling device of the target edge cloud node to obtain snapshot data of the instance to be migrated.
In the embodiment of the present invention, the instance data of the instance to be migrated may include snapshot data, and the snapshot data of the instance may be stored in the central management and control device and/or in the edge cloud node, so the migration instruction in the embodiment of the present invention may include a snapshot migration instruction. The central management and control equipment can control the edge cloud management and control equipment of the target edge cloud node to generate a snapshot migration instruction and send the snapshot migration instruction to the target edge cloud node so as to control the edge cloud management and control equipment of the target edge cloud node to acquire snapshot data of an instance to be migrated according to the instruction.
Further, before generating the snapshot migration instruction, the central control device may also first obtain the latest available snapshot information of the migration instance, and then execute the operation of generating the snapshot migration instruction according to the latest available snapshot information. The central control equipment generates a snapshot migration instruction according to the latest snapshot information of the instance to be migrated so as to control the edge cloud control equipment of the target edge cloud node to acquire snapshot data of the instance to be migrated from the central control equipment and/or the edge cloud node storing the latest available snapshot. After the snapshot data is obtained, the edge cloud management and control device of the target edge cloud node can inform the central management and control device to conduct subsequent flows.
S505, the central management and control equipment generates an instance creation instruction according to the configuration information of the target edge cloud node for the instance to be migrated so as to control the edge cloud management and control equipment of the target edge cloud node to create the instance based on the acquired instance data.
In the embodiment of the invention, the edge cloud management and control equipment of the target edge cloud node can attempt to start the instance after creating the instance. After confirming that the instance is successfully created and started, the edge cloud management and control equipment of the target edge cloud node can inform the central management and control equipment, trigger and inform a user event, and wait for the user to process migration actions; if the creation or the starting of the instance fails, scheduling may be performed in the source edge cloud node, or the step S501 may be returned to perform the point selection operation again. Specifically, step S505 is the same as step S302 in the embodiment shown in fig. 3, and will not be described herein.
S506, the central control equipment generates an instance release instruction to control the edge cloud control equipment of the source edge cloud node to release the instance.
In the embodiment of the invention, after the edge cloud management and control device of the target edge cloud node completes the creation of a new instance (for example, after a user completes migration logic, an OpenAPI actively recalls the central management and control device to confirm that migration is completed, or a migration event is completed, but a user callback is not received, and then the instance migration can be considered to be completed), the central management and control device can generate an instance release instruction and send the instance release instruction to the edge cloud management and control device of the source edge cloud node, so that the edge cloud management and control device of the source edge cloud node deletes the instance to be migrated according to the instruction after receiving the instance release instruction. Meanwhile, the central control equipment can also release the resource inventory information occupied by the original instance.
S507, the central management and control equipment generates a state modification instruction according to the node information of the target edge cloud node so as to modify the state information of the instance to be migrated.
Further, in the embodiment of the present invention, after the edge cloud management and control device of the source edge cloud node releases the original instance, the central management and control device may generate a state modification instruction according to node information (for example, node ID, IP information, disk information, etc.) of the target node, so as to modify the state information of the instance to be migrated (which has been migrated to the target edge cloud node currently). Finally, the central control device can generate an instance migration completion event to inform a user, so that an instance migration flow among the edge cloud nodes is completed.
According to the instance migration method provided by the embodiment of the invention, when the instance migration is carried out among a plurality of edge cloud nodes, the central management and control equipment is used for selecting the target edge cloud node meeting the requirements from the edge cloud nodes except the source edge cloud node, the edge cloud management and control equipment of the target edge cloud node is controlled to acquire the mirror image data or snapshot data of the instance to be migrated, further the configuration information of the target edge cloud node for the instance to be migrated is acquired, a new instance is created in the target edge cloud node based on the acquired mirror image data and snapshot data, and the instance migration process among the edge cloud management and control equipment of different edge cloud nodes is coordinated through the central management and control function, so that the advantages of the edge cloud architecture are fully exerted, and the performance of the instance can be ensured in an instance migration mode among the edge cloud nodes when a part of edge cloud nodes or a network has problems.
Example five
Fig. 6 is a flowchart of another embodiment of an example migration method provided by the present invention, where an execution body of the method may be a target edge cloud node in the above service system, or may be various servers with data processing capabilities, or may be a device or a chip integrated on these devices. As shown in fig. 6, the example migration method includes the steps of:
s601, the target edge cloud node acquires instance data of an instance to be migrated currently running on the source edge cloud node according to the received migration instruction.
The instance migration method provided by the embodiment of the invention can be applied to instance migration among all edge cloud nodes. When a certain edge cloud node is limited in resources or the used network resources are limited and the network quality is unstable, an instance running on the edge cloud node can be migrated to a target edge cloud node selected from the edge cloud through instance migration among the edge cloud nodes. In the embodiment of the invention, after receiving the migration instruction, the target edge cloud node acquires the instance data of the instance to be migrated currently running on other edge cloud nodes according to the instruction.
S602, the target edge cloud node creates an instance based on the acquired instance data according to the received instance creation instruction.
In the embodiment of the invention, because the edge cloud node is a physical node arranged at the near user side, when the instance is migrated, the target edge cloud node firstly acquires the instance data of the instance to be migrated according to the received migration instruction; then, according to the instance creation instruction sent by the central control device, a new instance is created based on the obtained instance data.
According to the instance migration method provided by the embodiment of the invention, when instance migration is carried out among a plurality of edge cloud nodes, the central control equipment controls the target edge cloud nodes to acquire the instance data of the instance to be migrated, so that the configuration information of the target edge cloud nodes for the instance to be migrated is acquired, a new instance is created in the target edge cloud nodes, and the instance migration process among different edge cloud nodes is coordinated through the central control equipment, so that the advantages of an edge cloud architecture are fully exerted, and when a part of edge cloud nodes or a network has problems, the performance of the instance can be ensured in an inter-node instance migration mode.
Example six
Fig. 7 is a flowchart of another embodiment of an example migration method provided by the present invention, where an execution body of the method may be an edge cloud management and control device of a target edge cloud node in the above service system, or may be various servers with data processing capabilities, or may be a device or a chip integrated on these devices. As shown in fig. 7, the example migration method includes the steps of:
S701, the edge cloud management and control equipment acquires instance data of an instance to be migrated currently running on a source edge cloud node according to the received migration instruction.
The instance migration method provided by the embodiment of the invention can be applied to instance migration among all edge cloud nodes. When a certain edge cloud node is limited in resources or the used network resources are limited and the network quality is unstable, an instance running on the edge cloud node can be migrated to a target edge cloud node selected from the edge cloud through instance migration among the edge cloud nodes. In the embodiment of the invention, after the edge cloud management and control equipment of the target edge cloud node receives the migration instruction, the instance data of the instance to be migrated currently running on other edge cloud nodes is obtained according to the instruction.
S702, the edge cloud management and control equipment creates an instance based on the acquired instance data according to the received instance creation instruction.
In the embodiment of the invention, because the edge cloud node is a physical node arranged at the near user side, when the instance migration is performed, the edge cloud management and control equipment of the target edge cloud node firstly acquires the instance data of the instance to be migrated according to the received migration instruction; then, according to the instance creation instruction sent by the central control device, a new instance is created based on the obtained instance data.
According to the instance migration method provided by the embodiment of the invention, when the instance migration is carried out among a plurality of edge cloud nodes, the edge cloud management and control equipment of the target edge cloud node is controlled by the central management and control equipment to acquire the instance data of the instance to be migrated, so that the configuration information of the target edge cloud node for the instance to be migrated is acquired, a new instance is created in the target edge cloud node, the instance migration process among the edge cloud management and control equipment of different edge cloud nodes is coordinated by the central management and control equipment, the advantages of the edge cloud architecture are fully exerted, and when a part of edge cloud nodes or a network has problems, the performance of the instance can be ensured by the mode of instance migration among the nodes.
Example seven
FIG. 8 is a flow chart of yet another embodiment of an example migration method provided by the present invention. As shown in fig. 8, on the basis of the embodiment shown in fig. 6, the example migration method provided in this embodiment may further include the following steps:
s801, the target edge cloud node reserves resources for the instance to be migrated according to the received resource reservation instruction.
In the embodiment of the present invention, in order to avoid a conflict (for example, a plurality of to-be-migrated instances migrate an instance to a target edge cloud node at the same time, so that resources of the target edge cloud node are not used enough, etc.), after the central control device selects the target node, a resource reservation instruction may be generated according to the instance information (for example, the type of resources, the amount of resources, etc. required by the instance) of the to-be-migrated instance. After receiving the resource reservation instruction, the target edge cloud node can reserve corresponding resources for the instance to be migrated according to the instruction so as to ensure that the resources of the target edge cloud node are available.
S802, the target edge cloud node acquires mirror image data of an instance to be migrated according to the received mirror image migration instruction.
In the embodiment of the present invention, the instance data of the instance to be migrated may include mirror image data, and the mirror image data of the instance may be stored in a central management device for managing a plurality of edge cloud nodes and/or in the edge cloud nodes, so the migration instruction in the embodiment of the present invention may include a mirror image migration instruction. When the instance migration is performed, the central control device first generates a mirror image acquisition instruction. And after receiving the mirror image acquisition instruction, the target edge cloud node acquires the mirror image data of the instance to be migrated from the central control equipment and/or the edge cloud node storing the mirror image data of the instance to be migrated according to the instruction. And if the mirror image data is stored in the target edge cloud node, directly performing subsequent operation. After the mirror data is available, the target edge cloud node may notify the central control device to proceed with the subsequent flow.
Or S803, the target edge cloud node acquires snapshot data of the instance to be migrated according to the received snapshot migration instruction.
In the embodiment of the present invention, the instance data of the instance to be migrated may include snapshot data, and the snapshot data of the instance may be stored in the central management and control device and/or in the edge cloud node, so the migration instruction in the embodiment of the present invention may include a snapshot migration instruction. After the central control equipment controls the target edge cloud node to acquire the mirror image data of the instance to be migrated, a snapshot migration instruction can be further generated, and after the target edge cloud node receives the snapshot migration instruction, the target edge cloud node can acquire the snapshot data of the instance to be migrated according to the instruction.
Further, the target edge cloud node may obtain a slice of snapshot data (i.e., part or all of the snapshot data) of the instance to be migrated from the central control device and/or the edge cloud node according to the received snapshot migration instruction; then, the slices of the acquired snapshot data are subjected to an instantiation process to form snapshot data. In the embodiment of the invention, the snapshot data can be stored in a distributed manner in a slice manner based on different edge cloud nodes, so that each slice of the snapshot data can be acquired from a plurality of edge cloud nodes, and each slice is subjected to instantiation processing so as to prepare for creating a virtual machine instance disk. After the snapshot data is obtained, the edge cloud management and control device of the target edge cloud node can inform the central management and control device to conduct subsequent flows.
S804, the target edge cloud node creates an instance based on the acquired instance data according to the received instance creation instruction.
In the embodiment of the invention, after the target edge cloud node creates the instance, the instance start can be attempted. After confirming that the instance is successfully created and started, the target edge cloud node can inform the central control equipment, trigger informing a user event and wait for the user to process migration actions; if the creation or starting of the instance fails, scheduling can be performed in the source edge cloud node, or the point selection operation can be performed again.
According to the instance migration method provided by the embodiment of the invention, when the instance migration is carried out among a plurality of edge cloud nodes, the central management and control equipment is used for selecting the target edge cloud node meeting the requirements from the edge cloud nodes except the source edge cloud node, controlling the target edge cloud node to acquire the mirror image data and the snapshot data of the instance to be migrated, further acquiring the configuration information of the target edge cloud node for the instance to be migrated, creating a new instance in the target edge cloud node based on the acquired mirror image data and the snapshot data, and coordinating the instance migration process among different edge cloud nodes through the central management and control function, so that the advantages of the edge cloud architecture are fully exerted, and the performance of the instance can be ensured in an instance migration mode among the edge cloud nodes when a part of edge cloud nodes or a network has problems.
Example eight
FIG. 9 is a flowchart of a further embodiment of an example migration method provided by the present invention. As shown in fig. 9, on the basis of the embodiment shown in fig. 7, the example migration method provided in this embodiment may further include the following steps:
s901, the edge cloud management and control equipment of the target edge cloud node reserves resources for the instance to be migrated according to the received resource reservation instruction.
In the embodiment of the present invention, in order to avoid a conflict (for example, a plurality of to-be-migrated instances migrate an instance to a target edge cloud node at the same time, so that resources of the target edge cloud node are not used enough, etc.), after the central control device selects the target node, a resource reservation instruction may be generated according to the instance information (for example, the type of resources, the amount of resources, etc. required by the instance) of the to-be-migrated instance. After receiving the resource reservation instruction, the edge cloud management and control device of the target edge cloud node can reserve corresponding resources for the instance to be migrated according to the instruction so as to ensure that the resources of the target edge cloud node are available.
S902, the edge cloud management and control equipment of the target edge cloud node acquires mirror image data of an instance to be migrated according to the received mirror image migration instruction and stores the mirror image data in the storage equipment.
In the embodiment of the present invention, the instance data of the instance to be migrated may include mirror image data, and the mirror image data of the instance may be stored in a central management device for managing a plurality of edge cloud nodes and/or in the edge cloud nodes, so the migration instruction in the embodiment of the present invention may include a mirror image migration instruction. When the instance migration is performed, the central control device first generates a mirror image acquisition instruction. After receiving the mirror image obtaining instruction, the edge cloud control equipment of the target edge cloud node obtains the mirror image data of the instance to be migrated from the central control equipment and/or the edge cloud node storing the mirror image data of the instance to be migrated according to the instruction. And if the mirror image data is stored in the target edge cloud node, directly performing subsequent operation. After the mirror image data is available, the edge cloud management and control device of the target edge cloud node can inform the central management and control device of the target edge cloud node to conduct subsequent flows.
Or S903, the edge cloud management and control equipment of the target edge cloud node acquires snapshot data of the instance to be migrated according to the received snapshot migration instruction and stores the snapshot data in the storage equipment.
In the embodiment of the present invention, the instance data of the instance to be migrated may include snapshot data, and the snapshot data of the instance may be stored in the central management and control device and/or in the edge cloud node, so the migration instruction in the embodiment of the present invention may include a snapshot migration instruction. After the central control device controls the edge cloud control device of the target edge cloud node to acquire the mirror image data of the instance to be migrated, a snapshot migration instruction can be further generated, and after the edge cloud control device of the target edge cloud node receives the snapshot migration instruction, the edge cloud control device of the target edge cloud node can acquire the snapshot data of the instance to be migrated according to the instruction.
Further, according to the received snapshot migration instruction, the edge cloud management and control device of the target edge cloud node may obtain a slice of snapshot data (i.e., part or all of snapshot data) of the instance to be migrated from the central management and control device and/or the edge cloud node; then, the slices of the acquired snapshot data are subjected to an instantiation process to form snapshot data. In the embodiment of the invention, the snapshot data can be stored in a distributed manner in a slice manner based on different edge cloud nodes, so that each slice of the snapshot data can be acquired from a plurality of edge cloud nodes, and each slice is subjected to instantiation processing so as to prepare for creating a virtual machine instance disk. After the snapshot data is obtained, the edge cloud management and control device of the target edge cloud node can inform the central management and control device to conduct subsequent flows.
S904, the edge cloud management and control equipment of the target edge cloud node creates an instance based on the acquired instance data according to the received instance creation instruction.
In the embodiment of the invention, the edge cloud management and control equipment of the target edge cloud node can attempt to start the instance after creating the instance. After confirming that the instance is successfully created and started, the edge cloud management and control equipment of the target edge cloud node can inform the central management and control equipment, trigger and inform a user event, and wait for the user to process migration actions; if the creation or the starting of the instance fails, scheduling may be performed in the source edge cloud node, or the step S601 may be returned to perform the point selection operation again.
According to the instance migration method provided by the embodiment of the invention, when the instance migration is carried out among a plurality of edge cloud nodes, the central management and control equipment is used for selecting the target edge cloud node meeting the requirements from the edge cloud nodes except the source edge cloud node, the edge cloud management and control equipment of the target edge cloud node is controlled to acquire the mirror image data and the snapshot data of the instance to be migrated, further the configuration information of the target edge cloud node for the instance to be migrated is acquired, a new instance is created in the target edge cloud node based on the acquired mirror image data and the snapshot data, and the instance migration process among different edge cloud nodes is coordinated through the central management and control function, so that the advantages of the edge cloud architecture are fully exerted, and the performance of the instance can be ensured through the instance migration mode among the edge cloud nodes when a part of edge cloud nodes or a network has problems.
Example nine
Fig. 10 is a schematic structural diagram of an embodiment of an example migration apparatus provided in the present invention, which may be used to perform the method steps shown in fig. 2 or fig. 3. As shown in fig. 10, the example migration apparatus may include: a migration instruction generation module 61 and a creation instruction generation module 62.
The migration instruction generating module 61 is configured to generate a migration instruction to notify a target edge cloud node or an edge cloud management and control device thereof outside a source edge cloud node to obtain instance data of an instance to be migrated, where the instance to be migrated is currently running on the source edge cloud node; the creation instruction generating module 62 is configured to obtain configuration information of the target edge cloud node for an instance to be migrated, and generate an instance creation instruction to control the target edge cloud node or an edge cloud management and control device thereof to create an instance based on the obtained instance data.
The instance migration device provided by the embodiment of the invention can be applied to instance migration among all edge cloud nodes. When a certain edge cloud node is limited in resources or the used network resources are limited and the network quality is unstable, the instance running on the edge cloud node can be migrated to other edge cloud nodes in the edge cloud through instance migration among the edge cloud nodes. In the embodiment of the invention, the source edge cloud node refers to an edge cloud node of an instance to be migrated currently running. In the embodiment of the present invention, since the edge cloud node is a physical node disposed on the near-user side, when performing instance migration, the migration instruction generating module 61 generates a migration instruction first, so as to send the migration instruction to the migrated target edge cloud node, and notifies the target edge cloud node or the edge cloud management and control device thereof to acquire the instance data of the instance to be migrated; then, the creating instruction generating module 62 acquires configuration information of the target edge cloud node for the instance to be migrated, and generates an instance creating instruction to send the instance creating instruction to the target edge cloud node or the edge cloud management and control device thereof, so as to control the target edge cloud node or the edge cloud management and control device thereof to create a new instance based on the acquired instance data.
According to the instance migration device provided by the embodiment of the invention, when the instance migration is carried out among a plurality of edge cloud nodes in the edge cloud, the central control equipment controls the target edge cloud node to acquire the instance data of the instance to be migrated, so that the configuration information of the target edge cloud node for the instance to be migrated is acquired, a new instance is created in the target edge cloud node, and the instance migration process among different edge cloud nodes is coordinated through the central control function, so that the advantages of the edge cloud architecture are fully exerted, and when a problem occurs in part of edge cloud nodes or a network, the performance of the instance can be ensured through the mode of instance migration among the nodes.
Examples ten
Fig. 11 is a schematic structural diagram of another embodiment of an example migration apparatus provided in the present invention, which may be used to perform the method steps shown in fig. 4 or fig. 5. As shown in fig. 11, in the example migration apparatus provided in the embodiment of the present invention on the basis of the embodiment shown in fig. 10, the migration instruction generating module 61 may include: the first instruction generation unit 611. The first instruction generating unit 611 may be configured to generate an image obtaining instruction to notify the target edge cloud node or the edge cloud management and control device thereof to obtain image data of an instance to be migrated.
In the embodiment of the present invention, the instance data of the instance to be migrated may include mirror image data, and the mirror image data of the instance may be stored in the central management and control device and/or in the edge cloud node, so the migration instruction in the embodiment of the present invention may include a mirror image migration instruction. When performing instance migration, the first instruction generating unit 611 may generate an image obtaining instruction and send the image obtaining instruction to the target edge cloud node or the edge cloud management and control device thereof, so that after the target edge cloud node or the edge cloud management and control device thereof receives the image migration instruction, the image data of the instance to be migrated is obtained from the central management and control device and/or the edge cloud node storing the image data according to the instruction.
In an embodiment of the present invention, the migration instruction generation module 61 may further include: a query unit 612. The querying unit 612 may be configured to query whether the image data of the instance to be migrated is stored in the target edge cloud node before the first instruction generating unit 611 generates the image obtaining instruction; the first instruction generating unit 611 is configured to execute, according to the query result of the query unit 612, the above operation of generating the image obtaining instruction, for the target edge cloud node that does not store the image data of the instance to be migrated.
Further, in the example migration device provided by the embodiment of the present invention, the migration instruction generating module 61 may further include: the second instruction generating unit 613. The second instruction generating unit 613 may be configured to generate a snapshot migration instruction to control the target edge cloud node or the edge cloud management and control device thereof to obtain snapshot data of an instance to be migrated.
In the embodiment of the present invention, the instance data of the instance to be migrated may include snapshot data, and the snapshot data of the instance may be stored in the central control device and/or in the edge cloud node, so the migration instruction in the embodiment of the present invention may further include a snapshot migration instruction. Instead of the first instruction generating unit 611 controlling the target edge cloud node or the edge cloud management and control device thereof to obtain the mirror image data of the instance to be migrated, the second instruction generating unit 613 may generate a snapshot migration instruction and send the snapshot migration instruction to the target edge cloud node or the edge cloud management and control device thereof, so as to control the target edge cloud node or the edge cloud management and control device thereof to obtain the snapshot data of the instance to be migrated according to the instruction.
In an embodiment of the present invention, the migration instruction generation module 61 may further include: the first acquisition unit 614. The first obtaining unit 614 may be configured to obtain, before the second instruction generating unit 613 generates the snapshot migration instruction, latest available snapshot information of the instance to be migrated; the second instruction generating unit 613 may be configured to perform an operation of generating a snapshot migration instruction according to the latest available snapshot information acquired by the first acquiring unit 614.
Further, the example migration apparatus provided by the embodiment of the present invention may further include: the node selection module 71. The node selection module 71 may be configured to select, before the migration instruction generation module 61 generates the migration instruction, the target edge cloud node according to the instance information of the instance to be migrated and the node information of the source edge cloud node.
In the embodiment of the present invention, the central management and control device for managing multiple edge cloud nodes in the edge cloud may select a target edge cloud node from the multiple edge cloud nodes, that is, the node selection module 71 may select, according to node information (for example, resource information, network information, geographical location information, etc. of the edge cloud node) of the source edge cloud node to which the instance to be migrated currently belongs, a target edge cloud node meeting the requirements by an intelligent point selection manner with reference to a preference of a user in using the edge cloud node.
Still further, the example migration apparatus provided by the embodiment of the present invention may further include: reservation instruction generation module 72. The reservation instruction generating module 72 may be configured to generate, after the node selecting module 71 selects the target edge cloud node, a resource reservation instruction according to the instance data of the instance to be migrated, so as to control the target edge cloud node or the edge cloud control device thereof to reserve resources for the instance to be migrated.
In the embodiment of the present invention, in order to avoid a conflict (for example, a plurality of to-be-migrated instances migrate an instance to one target edge cloud node at the same time, so that resources of the target edge cloud node are not enough, etc.), after the central management and control device selects the target node, the reservation instruction generating module 72 may generate a resource reservation instruction according to the instance data (for example, the type of resources and the amount of resources required by the instance) of the to-be-migrated instance, and send the resource reservation instruction to the target edge cloud node or the edge cloud control device thereof, so that the target edge cloud node or the edge cloud control device thereof reserves corresponding resources for the to-be-migrated instance according to the received resource reservation instruction, so as to ensure that the resources of the target edge cloud node are available.
Still further, the example migration apparatus provided by the embodiment of the present invention may further include: the instruction generation module 73 is released. The release instruction generation module 73 may be configured to generate an instance release instruction to control the source edge cloud node or its edge cloud control device to release the instance after the creation instruction generation module 62 generates the instance creation instruction.
Still further, the example migration apparatus provided by the embodiment of the present invention may further include: the instruction generation module 74 is modified. The modification instruction generating module 74 may be configured to generate, after the release instruction generating module 73 generates the instance release instruction, a state modification instruction according to node information of the target edge cloud node, so as to modify state information of the instance to be migrated.
The functions of each module in the embodiment of the present invention are detailed in the above method embodiment, and are not described herein.
According to the instance migration device provided by the embodiment of the invention, when the instance is migrated among a plurality of edge cloud nodes, the central management and control equipment is used for selecting the target edge cloud node meeting the requirements from the edge cloud nodes except the source edge cloud node, controlling the target edge cloud node or the edge cloud control equipment thereof to acquire mirror image data or snapshot data of the instance to be migrated, further creating a new instance in the target edge cloud node based on the acquired mirror image data or snapshot data according to the instance information of the instance to be migrated and configuration information of the target edge cloud node for the instance to be migrated, and coordinating the instance migration process among different edge cloud nodes through the central management and control function, so that the advantages of an edge cloud architecture are fully exerted, and the performance of the instance can be ensured in a mode of instance migration among the edge cloud nodes when a part of edge cloud nodes or a network has problems.
Example eleven
Fig. 12 is a schematic diagram of another embodiment of an example migration apparatus provided by the present invention, which may be used to perform the method steps shown in fig. 6 or 7. As shown in fig. 12, the example migration apparatus may include: a data acquisition module 81 and an instance creation module 82.
The data obtaining module 81 is configured to obtain, according to the received migration instruction, instance data of an instance to be migrated currently running on other edge cloud nodes; the instance creation module 82 is configured to create an instance based on the obtained instance data according to the received instance creation instruction.
The instance migration device provided by the embodiment of the invention can be applied to instance migration among all edge cloud nodes. When a certain edge cloud node is limited in resources or the used network resources are limited and the network quality is unstable, an instance running on the edge cloud node can be migrated to a target edge cloud node selected from the edge cloud through instance migration among the edge cloud nodes. In the embodiment of the present invention, after the target edge cloud node or the edge cloud management and control module thereof receives the migration instruction, the data acquisition module 81 acquires, according to the instruction, the instance data of the instance to be migrated currently running on other edge cloud nodes. In the embodiment of the present invention, since the edge cloud node is a physical node disposed on the near-user side, when performing the instance migration, the data obtaining module 81 obtains the instance data of the instance to be migrated according to the received migration instruction; then, the instance creation module 82 creates a new instance based on the instance data acquired by the data acquisition module 81 according to the instance creation instruction sent by the central control device.
According to the instance migration device provided by the embodiment of the invention, when the instance migration is carried out among a plurality of edge cloud nodes, the center cloud is used for controlling the target edge cloud node or an edge cloud management module thereof to acquire the instance data of the instance to be migrated, so that the configuration information of the target edge cloud node for the instance to be migrated is acquired, a new instance is created in the target edge cloud node, and the instance migration process among different edge cloud nodes is coordinated through the center management function, so that the advantages of the edge cloud architecture are fully exerted, and when a problem occurs in part of edge cloud nodes or a network, the performance of the instance can be ensured through the mode of instance migration among the nodes.
Example twelve
Fig. 13 is a schematic diagram of a further embodiment of an example migration apparatus provided by the present invention, which may be used to perform the method steps shown in fig. 8 or 9. As shown in fig. 13, in the example migration apparatus provided in the embodiment of the present invention based on the embodiment shown in fig. 12, the data obtaining module 81 may include: a second acquisition unit 811. The second obtaining unit 811 may be configured to obtain, according to the received image obtaining instruction, image data of the instance to be migrated.
In the embodiment of the present invention, the instance data of the instance to be migrated may include mirror image data, and the mirror image data of the instance may be stored in a central management device for managing a plurality of edge cloud nodes and/or in the edge cloud nodes, so the migration instruction in the embodiment of the present invention may include a mirror image migration instruction. When the instance migration is performed, the central control device first generates a mirror image acquisition instruction. After receiving the mirror image obtaining instruction, the second obtaining unit 811 obtains the mirror image data of the instance to be migrated from the central control device and/or the edge cloud node storing the mirror image data of the instance to be migrated according to the instruction.
Further, in the example migration apparatus provided in the embodiment of the present invention, the data obtaining module 81 may further include: a third acquisition unit 812. The third obtaining unit 812 may be configured to obtain snapshot data of the instance to be migrated according to the received snapshot migration instruction.
In the embodiment of the invention, the instance data of the instance to be migrated can also comprise snapshot data, and the snapshot data of the instance can be stored in the central control equipment and/or the edge cloud node, so that the migration instruction in the embodiment of the invention can also comprise snapshot migration instruction. Instead of the second obtaining unit 811 obtaining the mirror image data of the instance to be migrated, the central control device may generate a snapshot migration instruction, and the third obtaining unit 812 may obtain the snapshot data of the instance to be migrated according to the instruction after receiving the snapshot migration instruction.
Specifically, in the embodiment of the present invention, the third obtaining unit 812 may be configured to obtain, according to the received snapshot migration instruction, a slice of snapshot data of the instance to be migrated from the central control device and/or the edge cloud node; and carrying out instantiation processing on the obtained slices of the snapshot data to form the snapshot data. In the embodiment of the present invention, the snapshot data may be stored in a distributed manner based on different edge cloud nodes in a slice manner, so the third obtaining unit 812 may obtain each slice of the snapshot data from multiple edge cloud nodes, and perform an instantiation process on each slice to prepare for creating a virtual machine instance disk.
Additionally, in embodiments of the present invention, the instance creation module 82 may attempt to initiate instance starting after the instance is created. After confirming that the instance is successfully created and started, the target edge cloud node or the edge cloud management and control equipment thereof can inform the central management and control equipment and trigger informing a user event to wait for the user to process the migration action; if the instance creation module 82 fails to create or start an instance, scheduling may be performed in the source edge cloud node, or the point selection operation may be performed again through the central control device.
Further, the example migration apparatus provided by the embodiment of the present invention may further include: a resource reservation module 91. The resource reservation module 91 may be configured to reserve resources for the instance to be migrated according to the received resource reservation instruction before the data acquisition module 81 acquires the instance data of the instance to be migrated.
In the embodiment of the present invention, in order to avoid a conflict (for example, a plurality of to-be-migrated instances migrate an instance to a target edge cloud node at the same time, so that resources of the target edge cloud node are not used enough, etc.), after the central control device selects the target node, a resource reservation instruction may be generated according to the instance information (for example, the type of resources, the amount of resources, etc. required by the instance) of the to-be-migrated instance. After receiving the resource reservation instruction, the resource reservation module 91 may reserve corresponding resources for the instance to be migrated according to the resource reservation instruction, so as to ensure that the resources of the target edge cloud node are available.
The functions of each module in the embodiment of the present invention are detailed in the above method embodiment, and are not described herein.
According to the instance migration device provided by the embodiment of the invention, when the instance migration is carried out among a plurality of edge cloud nodes, the central management and control equipment is used for selecting the target edge cloud node meeting the requirements from the edge cloud nodes except the source edge cloud node, controlling the target edge cloud node or the edge cloud management and control equipment thereof to acquire the mirror image data or snapshot data of the instance to be migrated, further acquiring the configuration information of the target edge cloud node for the instance to be migrated, creating a new instance in the target edge cloud node based on the acquired mirror image data and snapshot data, and coordinating the instance migration process among different edge cloud nodes through the central management and control function, so that the advantages of the edge cloud architecture are fully exerted, and the performance of the instance can be ensured in an instance migration mode among the edge cloud nodes when a part of edge cloud nodes or a network has problems.
Example thirteen
The internal functions and structures of an example migration apparatus are described above, which may be implemented as an electronic device. Fig. 14 is a schematic structural diagram of an embodiment of an electronic device provided by the present invention. As shown in fig. 14, the electronic device includes a memory 141 and a processor 142.
A memory 141 for storing a program. In addition to the programs described above, the memory 141 may also be configured to store other various data to support operations on the electronic device. Examples of such data include instructions for any application or method operating on the electronic device, contact data, phonebook data, messages, pictures, videos, and the like.
The memory 141 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
A processor 142 coupled to the memory 141, executing programs stored in the memory 141 for:
Generating a migration instruction, and informing target edge cloud nodes except for a source edge cloud node to acquire instance data of an instance to be migrated;
and acquiring configuration information of the target edge cloud node for the instance to be migrated, and generating an instance creation instruction to control the target edge cloud node to create an instance based on the acquired instance data.
According to an embodiment of the present application, the processor 142 may include, for example, a migration instruction generating module 61 and a creation instruction generating module 62 shown in fig. 10, so that when executing a program stored in the memory 141, a migration instruction is generated by using the migration instruction generating module 61 to notify a target edge cloud node or an edge cloud management device thereof other than the source edge cloud node to acquire instance data of an instance to be migrated, and a creation instruction generating module 62 to acquire configuration information of the target edge cloud node for the instance to be migrated, to generate an instance creation instruction to control the target edge cloud node or the edge cloud management device thereof to create an instance based on the acquired instance data. Further, the processor 142 may include, for example, a first instruction generating unit 611 shown in fig. 11, so that when executing a program stored in the memory 141, an image acquisition instruction is generated by using the first instruction generating unit 611 to notify the target edge cloud node or the edge cloud management device thereof to acquire image data of an instance to be migrated.
Further, as shown in fig. 14, the electronic device may further include: communication component 143, power supply component 144, audio component 145, display 146, and other components. Only some of the components are schematically shown in fig. 14, which does not mean that the electronic device only comprises the components shown in fig. 14.
The communication component 143 is configured to facilitate communication between the electronic device and other devices, either wired or wireless. The electronic device may access a wireless network based on a communication standard, such as WiFi,2G, or 3G, or a combination thereof. In one exemplary embodiment, the communication component 143 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 143 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
A power supply assembly 144 provides power to the various components of the electronic device. The power components 144 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for electronic devices.
The audio component 145 is configured to output and/or input audio signals. For example, the audio component 145 includes a Microphone (MIC) configured to receive external audio signals when the electronic device is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 141 or transmitted via the communication component 143. In some embodiments, audio component 145 further comprises a speaker for outputting audio signals.
The display 146 includes a screen, which may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation.
Examples fourteen
The internal functions and structures of an example migration apparatus are described above, which may be implemented as an electronic device. Fig. 15 is a schematic structural diagram of another embodiment of an electronic device according to the present invention. As shown in fig. 15, the electronic device includes a memory 151 and a processor 152.
And a memory 151 for storing a program. In addition to the programs described above, the memory 151 may be configured to store various other data to support operations on the electronic device. Examples of such data include instructions for any application or method operating on the electronic device, contact data, phonebook data, messages, pictures, videos, and the like.
The memory 151 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
A processor 152 coupled to the memory 151, executing a program stored in the memory 151 for:
the migration instruction generation module is used for generating a migration instruction and notifying target edge cloud nodes except the source edge cloud node to acquire instance data of an instance to be migrated;
the creation instruction generation module is used for acquiring configuration information of the target edge cloud node aiming at the instance to be migrated and generating an instance creation instruction so as to control the target edge cloud node to create an instance based on the acquired instance data.
According to an embodiment of the present application, the processor 152 may, for example, include the data acquisition module 81 and the instance creation module 82 shown in fig. 12, so that when executing the program stored in the memory 151, the data acquisition module 81 is used to acquire instance data of an instance to be migrated currently running on other edge cloud nodes according to the received migration instruction, and the instance creation module 82 is used to create an instance based on the acquired instance data according to the received instance creation instruction. Wherein, during the execution of the above operations, the acquired instance data may be stored in the memory 151.
Further, as shown in fig. 15, the electronic device may further include: communication component 153, power supply component 154, audio component 155, display 156, and the like. Only some of the components are schematically shown in fig. 15, which does not mean that the electronic device only comprises the components shown in fig. 15.
The communication component 153 is configured to facilitate communication between the electronic device and other devices in a wired or wireless manner. The electronic device may access a wireless network based on a communication standard, such as WiFi,2G, or 3G, or a combination thereof. In one exemplary embodiment, the communication component 153 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 153 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
A power supply assembly 154 provides power to the various components of the electronic device. The power supply components 154 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for electronic devices.
The audio component 155 is configured to output and/or input audio signals. For example, the audio component 155 includes a Microphone (MIC) configured to receive external audio signals when the electronic device is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 151 or transmitted via the communication component 153. In some embodiments, the audio component 155 further comprises a speaker for outputting audio signals.
The display 156 includes a screen, which may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the method embodiments described above may be performed by hardware associated with program instructions. The foregoing program may be stored in a computer readable storage medium. The program, when executed, performs steps including the method embodiments described above; and the aforementioned storage medium includes: various media that can store program code, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the 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 scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the invention.

Claims (26)

1. An instance migration method applied to central control equipment of a central cloud is characterized by comprising the following steps:
generating a migration instruction, and informing target edge cloud nodes except for a source edge cloud node to acquire instance data of an instance to be migrated;
Acquiring configuration information of the target edge cloud node for the instance to be migrated, and generating an instance creation instruction to control the target edge cloud node to create an instance based on the acquired instance data;
the instance data comprises snapshot data which is stored in the central control equipment and/or in an edge cloud node; the migration instruction comprises a snapshot migration instruction, and according to the received snapshot migration instruction, slices of snapshot data of the instance to be migrated are obtained from the central management and control equipment and/or the edge cloud node;
under the condition that the snapshot data are stored in the source edge cloud node, if the state of the source edge cloud node is unavailable, using a mirror image to migrate; if the state of the source edge cloud node is available, directly migrating; under the condition that the snapshot data are stored in other edge cloud nodes except the source edge cloud node, if the states of the other edge cloud nodes are available, directly acquiring the snapshot data, and copying the acquired snapshot data to the target edge cloud node;
carrying out instantiation processing on the acquired slices of the snapshot data to form the snapshot data, wherein the snapshot data is used as instance data of the instance to be migrated;
And generating an instance release instruction to control the source edge cloud node to release an instance under the condition that no service request exists on the instance to be migrated running in the source edge cloud node.
2. The instance migration method according to claim 1, wherein the instance data includes mirror data, the mirror data being stored in a central management device for managing a plurality of edge cloud nodes and/or in the edge cloud nodes, the migration instruction includes a mirror data acquisition instruction, the generating a migration instruction to notify a target edge cloud node other than a source edge cloud node to acquire the instance data of the instance to be migrated, including:
and generating a mirror image data acquisition instruction to inform the target edge cloud node of acquiring the mirror image data of the instance to be migrated.
3. The instance migration method of claim 2, further comprising, prior to the generating the mirror data acquisition instruction to notify the target edge cloud node to acquire the mirror data of the instance to be migrated:
inquiring whether mirror image data of the instance to be migrated is stored in the target edge cloud node;
and executing the operation of generating the mirror image data acquisition instruction on the target edge cloud node which does not store the mirror image data of the instance to be migrated according to the query result.
4. The instance migration method of claim 3, further comprising, prior to generating a snapshot migration instruction to notify the target edge cloud node to obtain snapshot data of the instance to be migrated:
obtaining latest available snapshot information of the instance to be migrated;
and executing the operation of generating the snapshot migration instruction according to the latest available snapshot information.
5. The instance migration method of any one of claims 1 to 4, further comprising, before the generating a migration instruction to notify a target edge cloud node other than the source edge cloud node to obtain instance data of an instance to be migrated:
and determining the target edge cloud node from edge cloud nodes outside the source edge cloud node according to the node information of the source edge cloud node.
6. The instance migration method of claim 5, wherein,
the node information comprises at least one of resource information, network information and geographic position information of the node to which the instance belongs, and user use preference.
7. The instance migration method according to claim 5, further comprising, after the determining the target edge cloud node from edge cloud nodes other than the source edge cloud node according to the node information of the source edge cloud node:
And generating a resource reservation instruction according to the instance data of the instance to be migrated so as to control the target edge cloud node to reserve resources for the instance to be migrated.
8. The instance migration method of claim 1, further comprising, after the generating an instance release instruction to control the source edge cloud node to release an instance:
and generating a state modification instruction according to the node information of the target edge cloud node so as to modify the state information of the instance to be migrated.
9. The instance migration method of claim 1, wherein determining whether a first edge cloud node of edge cloud nodes other than the source edge cloud node is in an available state;
if the first edge cloud node is in an available state, judging whether available resources of the first edge cloud node are enough to bear the instance to be migrated;
and taking the first edge cloud node which is enough to bear the instance to be migrated as the target edge cloud node.
10. An instance migration method is characterized by being applied to an edge cloud node and comprising the following steps:
according to the received migration instruction, obtaining instance data of an instance to be migrated currently running on the source edge cloud node;
According to the received instance creation instruction, controlling a target edge cloud node to create an instance based on the acquired instance data; the instance creation instruction is generated according to the configuration information of the target edge cloud node for the instance to be migrated;
the instance data comprises snapshot data which is stored in the central control equipment and/or the edge cloud node; the migration instruction comprises a snapshot migration instruction, and according to the received snapshot migration instruction, slices of snapshot data of the instance to be migrated are obtained from the central management and control equipment and/or the edge cloud node;
under the condition that the snapshot data are stored in the source edge cloud node, if the state of the source edge cloud node is unavailable, using a mirror image to migrate; if the state of the source edge cloud node is available, directly migrating; under the condition that the snapshot data are stored in other edge cloud nodes except the source edge cloud node, if the states of the other edge cloud nodes are available, directly acquiring the snapshot data, and copying the acquired snapshot data to the target edge cloud node;
carrying out instantiation processing on the acquired slices of the snapshot data to form the snapshot data, wherein the snapshot data is used as instance data of the instance to be migrated;
And generating an instance release instruction to control the source edge cloud node to release an instance under the condition that no service request exists on the instance to be migrated running in the source edge cloud node.
11. The instance migration method according to claim 10, wherein the instance data includes mirror data, the mirror data is stored in a central management device for managing a plurality of edge cloud nodes and/or in the edge cloud nodes, the migration instruction includes a mirror acquisition instruction, and the acquiring, according to the received migration instruction, the instance data of the instance to be migrated currently running on the source edge cloud node includes:
and acquiring the mirror image data of the instance to be migrated according to the received mirror image acquisition instruction.
12. The instance migration method according to any one of claims 10 to 11, further comprising, before the obtaining, according to the received migration instruction, instance data of an instance to be migrated currently running on the source edge cloud node:
and reserving resources for the instance to be migrated according to the received resource reservation instruction.
13. An instance migration apparatus, comprising:
The migration instruction generation module is used for generating a migration instruction and notifying target edge cloud nodes except the source edge cloud node to acquire instance data of an instance to be migrated;
the creation instruction generation module is used for acquiring configuration information of the target edge cloud node aiming at the instance to be migrated and generating an instance creation instruction so as to control the target edge cloud node to create an instance based on the acquired instance data;
the instance data comprises snapshot data which is stored in the central control equipment and/or the edge cloud node; the migration instruction comprises a snapshot migration instruction, and according to the received snapshot migration instruction, slices of snapshot data of the instance to be migrated are obtained from the central management and control equipment and/or the edge cloud node;
under the condition that the snapshot data are stored in the source edge cloud node, if the state of the source edge cloud node is unavailable, using a mirror image to migrate; if the state of the source edge cloud node is available, directly migrating; under the condition that the snapshot data are stored in other edge cloud nodes except the source edge cloud node, if the states of the other edge cloud nodes are available, directly acquiring the snapshot data, and copying the acquired snapshot data to the target edge cloud node;
Carrying out instantiation processing on the acquired slices of the snapshot data to form the snapshot data, wherein the snapshot data is used as an instance data release instruction generation module of the instance to be migrated,
and generating an instance release instruction to control the source edge cloud node to release an instance under the condition that no service request exists on the instance to be migrated running in the source edge cloud node.
14. The instance migration apparatus of claim 13, wherein the instance data comprises mirrored data stored in a central management device for managing a plurality of edge cloud nodes and/or in the edge cloud nodes, the migration instructions comprise mirrored acquisition instructions, and the migration instruction generation module comprises:
the first instruction generating unit is used for generating an image acquisition instruction to inform the target edge cloud node of acquiring image data of the instance to be migrated.
15. The instance migration apparatus of claim 14, wherein the migration instruction generation module further comprises:
the query unit is used for querying whether the mirror image data of the instance to be migrated is stored in the target edge cloud node or not before the first instruction generation unit generates the mirror image acquisition instruction;
The first instruction generating unit is configured to execute, according to a query result, the operation of generating the image acquisition instruction on the target edge cloud node that does not store the image data of the instance to be migrated.
16. The instance migration apparatus of claim 13, wherein the instance data comprises snapshot data stored in a central management device and/or in the edge cloud node, the migration instructions comprise snapshot migration instructions, and the migration instruction generation module comprises:
and the second instruction generating unit is used for generating a snapshot migration instruction to inform the target edge cloud node of acquiring snapshot data of the instance to be migrated.
17. The instance migration apparatus of claim 16, wherein the migration instruction generation module further comprises:
the first acquisition unit is used for acquiring the latest available snapshot information of the instance to be migrated before the second instruction generation unit generates the snapshot migration instruction;
the second instruction generating unit is used for executing the operation of generating the snapshot migration instruction according to the latest available snapshot information.
18. The instance migration apparatus of any one of claims 13 to 17, further comprising:
The node selection module is used for determining the target edge cloud node from the edge cloud nodes except the source edge cloud node according to the node information of the source edge cloud node before the migration instruction is generated by the migration instruction generation module.
19. The instance migration apparatus of claim 18, wherein,
the node information comprises at least one of resource information, network information and geographic position information of the node to which the instance belongs, and user use preference.
20. The instance migration apparatus of claim 18, further comprising:
and the reservation instruction generation module is used for generating a resource reservation instruction according to the instance data of the instance to be migrated after the node selection module determines the target edge cloud node so as to control the target edge cloud node to reserve resources for the instance to be migrated.
21. The instance migration apparatus of claim 13, further comprising:
and the modification instruction generation module is used for generating a state modification instruction according to the node information of the target edge cloud node after the release instruction generation module generates the instance release instruction so as to modify the state information of the instance to be migrated.
22. An instance migration apparatus, comprising:
the data acquisition module is used for acquiring instance data of an instance to be migrated currently running on the source edge cloud node according to the received migration instruction;
the instance creation module is used for controlling the target edge cloud node to create an instance based on the acquired instance data according to the received instance creation instruction; the instance creation instruction is generated according to configuration information of the target edge cloud node for the instance to be migrated,
the instance data comprises snapshot data which is stored in the central control equipment and/or the edge cloud node; the migration instruction comprises a snapshot migration instruction, and according to the received snapshot migration instruction, slices of snapshot data of the instance to be migrated are obtained from the central management and control equipment and/or the edge cloud node;
under the condition that the snapshot data are stored in the source edge cloud node, if the state of the source edge cloud node is unavailable, using a mirror image to migrate; if the state of the source edge cloud node is available, directly migrating; under the condition that the snapshot data are stored in other edge cloud nodes except the source edge cloud node, if the states of the other edge cloud nodes are available, directly acquiring the snapshot data, and copying the acquired snapshot data to the target edge cloud node;
Carrying out instantiation processing on the acquired slices of the snapshot data to form the snapshot data, wherein the snapshot data is used as instance data of the instance to be migrated;
and generating an instance release instruction to control the source edge cloud node to release an instance under the condition that no service request exists on the instance to be migrated running in the source edge cloud node.
23. The instance migration apparatus of claim 22, wherein the instance data comprises mirrored data stored in a central management device for managing a plurality of edge cloud nodes and/or in the edge cloud nodes, the migration instructions comprise mirrored acquisition instructions, and the data acquisition module comprises:
and the second acquisition unit is used for acquiring the mirror image data of the instance to be migrated according to the received mirror image acquisition instruction.
24. The instance migration apparatus of any one of claims 22 to 23, further comprising:
and the resource reservation module is used for reserving resources for the instance to be migrated according to the received resource reservation instruction before the data acquisition module acquires the instance data of the instance to be migrated.
25. An electronic device, comprising:
a memory for storing a program;
a processor for running the program stored in the memory for:
generating a migration instruction, and informing target edge cloud nodes except for a source edge cloud node to acquire instance data of an instance to be migrated;
acquiring configuration information of the target edge cloud node for the instance to be migrated, and generating an instance creation instruction to control the target edge cloud node to create an instance based on the acquired instance data;
the instance data comprises snapshot data which is stored in the central control equipment and/or the edge cloud node; the migration instruction comprises a snapshot migration instruction, and according to the received snapshot migration instruction, slices of snapshot data of the instance to be migrated are obtained from the central management and control equipment and/or the edge cloud node;
under the condition that the snapshot data are stored in the source edge cloud node, if the state of the source edge cloud node is unavailable, using a mirror image to migrate; if the state of the source edge cloud node is available, directly migrating; under the condition that the snapshot data are stored in other edge cloud nodes except the source edge cloud node, if the states of the other edge cloud nodes are available, directly acquiring the snapshot data, and copying the acquired snapshot data to the target edge cloud node;
Carrying out instantiation processing on the acquired slices of the snapshot data to form the snapshot data, wherein the snapshot data is used as instance data of the instance to be migrated;
and generating an instance release instruction to control the source edge cloud node to release an instance under the condition that no service request exists on the instance to be migrated running in the source edge cloud node.
26. An electronic device, comprising:
a memory for storing a program;
a processor for running the program stored in the memory for:
according to the received migration instruction, obtaining instance data of an instance to be migrated currently running on the source edge cloud node;
according to the received instance creation instruction, controlling a target edge cloud node to create an instance based on the acquired instance data; the instance creation instruction is generated according to configuration information of the target edge cloud node for the instance to be migrated,
the instance data comprises snapshot data which is stored in the central control equipment and/or the edge cloud node; the migration instruction comprises a snapshot migration instruction, and according to the received snapshot migration instruction, slices of snapshot data of the instance to be migrated are obtained from the central management and control equipment and/or the edge cloud node;
Under the condition that the snapshot data are stored in the source edge cloud node, if the state of the source edge cloud node is unavailable, using a mirror image to migrate; if the state of the source edge cloud node is available, directly migrating; under the condition that the snapshot data are stored in other edge cloud nodes except the source edge cloud node, if the states of the other edge cloud nodes are available, directly acquiring the snapshot data, and copying the acquired snapshot data to the target edge cloud node;
carrying out instantiation processing on the acquired slices of the snapshot data to form the snapshot data, wherein the snapshot data is used as instance data of the instance to be migrated;
and generating an instance release instruction to control the source edge cloud node to release an instance under the condition that no service request exists on the instance to be migrated running in the source edge cloud node.
CN201910277968.1A 2019-04-08 2019-04-08 Instance migration method and device and electronic equipment Active CN111800285B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910277968.1A CN111800285B (en) 2019-04-08 2019-04-08 Instance migration method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910277968.1A CN111800285B (en) 2019-04-08 2019-04-08 Instance migration method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN111800285A CN111800285A (en) 2020-10-20
CN111800285B true CN111800285B (en) 2024-04-09

Family

ID=72805635

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910277968.1A Active CN111800285B (en) 2019-04-08 2019-04-08 Instance migration method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN111800285B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112511649B (en) * 2020-12-21 2022-08-26 新疆品宣生物科技有限责任公司 Multi-access edge calculation method and equipment
CN113114716B (en) * 2021-02-25 2022-09-09 浙江工商大学 Edge cloud collaborative control system and method
CN112995682B (en) * 2021-04-21 2021-08-03 军事科学院系统工程研究院网络信息研究所 Method and device for deploying and migrating video cloud service
CN113452756B (en) * 2021-06-02 2022-02-25 鹏城实验室 Service chain flow migration method and device, terminal equipment and storage medium
CN114070851A (en) * 2021-11-15 2022-02-18 中国电信集团系统集成有限责任公司 Service recovery method, storage medium and system based on MEC edge cloud
CN115361349B (en) * 2022-07-26 2023-08-15 支付宝(杭州)信息技术有限公司 Resource using method and device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101977242A (en) * 2010-11-16 2011-02-16 西安电子科技大学 Layered distributed cloud computing architecture and service delivery method
CN102521071A (en) * 2011-11-24 2012-06-27 广州杰赛科技股份有限公司 Private cloud-based virtual machine maintaining method
CN103677967A (en) * 2012-09-03 2014-03-26 阿里巴巴集团控股有限公司 Remote data service system of data base and task scheduling method
TW201523281A (en) * 2013-10-24 2015-06-16 Power All Networks Ltd System and method for migrating virtual machines
CN106610863A (en) * 2015-10-21 2017-05-03 华为技术有限公司 Virtual machine trusted migration method and apparatus
WO2017206001A1 (en) * 2016-05-28 2017-12-07 华为技术有限公司 Method for migrating application in mobile edge system, and related device and system
CN108282527A (en) * 2018-01-22 2018-07-13 北京百度网讯科技有限公司 Generate the distributed system and method for Service Instance
CN109358967A (en) * 2018-09-26 2019-02-19 中国联合网络通信集团有限公司 A kind of ME platform APP instantiation moving method and server

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11128705B2 (en) * 2017-09-15 2021-09-21 Nec Corporation Application function management using NFV MANO system framework

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101977242A (en) * 2010-11-16 2011-02-16 西安电子科技大学 Layered distributed cloud computing architecture and service delivery method
CN102521071A (en) * 2011-11-24 2012-06-27 广州杰赛科技股份有限公司 Private cloud-based virtual machine maintaining method
CN103677967A (en) * 2012-09-03 2014-03-26 阿里巴巴集团控股有限公司 Remote data service system of data base and task scheduling method
TW201523281A (en) * 2013-10-24 2015-06-16 Power All Networks Ltd System and method for migrating virtual machines
CN106610863A (en) * 2015-10-21 2017-05-03 华为技术有限公司 Virtual machine trusted migration method and apparatus
WO2017206001A1 (en) * 2016-05-28 2017-12-07 华为技术有限公司 Method for migrating application in mobile edge system, and related device and system
CN108282527A (en) * 2018-01-22 2018-07-13 北京百度网讯科技有限公司 Generate the distributed system and method for Service Instance
CN109358967A (en) * 2018-09-26 2019-02-19 中国联合网络通信集团有限公司 A kind of ME platform APP instantiation moving method and server

Also Published As

Publication number Publication date
CN111800285A (en) 2020-10-20

Similar Documents

Publication Publication Date Title
CN111800285B (en) Instance migration method and device and electronic equipment
CN111800282B (en) Network system, instance management and control method, device and storage medium
CN115633050B (en) Mirror image management method, device and storage medium
CN116170317A (en) Network system, service providing and resource scheduling method, device and storage medium
WO2022161430A1 (en) Edge cloud system, edge management and control method, management and control node, and storage medium
CN113726846B (en) Edge cloud system, resource scheduling method, equipment and storage medium
US20230281037A1 (en) Cross-device task relay method, cloud platform, and non-transitory storage medium
CN111405055A (en) Multi-cluster management method, system, server and storage medium
CN113301078B (en) Network system, service deployment and network division method, device and storage medium
WO2020207265A1 (en) Network system, management and control method and device, and storage medium
WO2019001421A1 (en) Method, device, and computer readable storage medium for managing network slice
CN111638935B (en) Mirror image management method, network system, device, and storage medium
CN111045745A (en) Method and system for managing configuration information
EP3588852B1 (en) Method, apparatus and system for managing network slice instance
CN106790092B (en) Remote procedure call server control system and method
CN110908774B (en) Resource scheduling method, equipment, system and storage medium
CN113296882A (en) Container arranging method, device, system and storage medium
Dautov et al. Stream processing on clustered edge devices
CN111459749A (en) Prometous-based private cloud monitoring method and device, computer equipment and storage medium
EP3457668B1 (en) Clustering in unified communication and collaboration services
CN113300865B (en) Management and control method, network system, equipment and storage medium
CN112910937A (en) Object scheduling method and device in container cluster, server and container cluster
CN114866570A (en) Information processing method and device, electronic equipment and storage medium
CN113382032B (en) Cloud node changing, network expanding and service providing method, device and medium
CN114301909B (en) Edge distributed management and control system, method, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant