Container migration in computing systems

Through the transmission of synchronization engines, container images, and storage snapshots, the problem of container migration is solved, seamless migration of containers between local and remote devices is achieved, and resource utilization efficiency and switching flexibility are improved.

CN113196237BActive Publication Date: 2024-09-03MICROSOFT TECHNOLOGY LICENSING LLC
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN201980082561.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2018-12-12
Filing Date
2019-12-04
Publication Date
2024-09-03
Estimated Expiration
2039-12-04

AI Technical Summary

Technical Problem

Existing technologies make it difficult to effectively migrate containerized workloads, especially when containers share underlying operating system kernel resources, and it is difficult to track changes in container and operating system handles, which affects flexible switching between local and remote resources.

Method used

The synchronization engine mechanism is used to transfer container images and storage snapshots between local devices and remote servers, instantiate remote containers, and track handle tables to achieve seamless migration of containers to ensure effective utilization and switching of resources.

Benefits of technology

It achieves seamless migration of containers between local and remote devices, improves resource utilization efficiency, reduces management costs, and supports flexible switching between local and remote resources to reduce interruptions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113196237B_ABST
    Figure CN113196237B_ABST
Patent Text Reader

Abstract

Disclosed herein is a technique for migrating containerized software packages between a source computing device and a destination computing device. In one embodiment, a method includes receiving, at a target device, a request to migrate a source container currently executing on the source device to the destination device. The method also includes synchronizing between the destination device and the source device a handle list utilized by the source container on the source device, and instantiating a destination container in the destination device using a copy of the mirror of the source container on the source device, a memory snapshot, and the synchronized handle list. After completing instantiation of the destination container, the destination device transmits a remote display output of an application to be presented on the source device in place of a local display output generated by the source container.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0001] A sandbox is a software management strategy that isolates an operating system and / or an application from the computing resources of a host computer and other programs on the same host computer. For example, a data center that provides cloud computing services may include a large number of servers that each host one or more virtual machines, containers, or other types of virtualized components. Virtual machines and containers can be used to execute applications for tenants without giving direct access to the underlying resources of the server. Thus, a sandbox can provide a layer of security that prevents malware or harmful applications from negatively impacting the host computer. Summary of the invention

[0002] This Summary is provided to introduce some concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.

[0003] Although both virtual machines and containers can be used as virtualization technologies to accommodate computing, communication or other types of computing services, these virtualization technologies may have different characteristics. For example, virtual machines may bring significantly more resource overhead than containers. Virtual machines typically have an operating system, a complete set of file and directory structures, a unique configuration, virtual memory and applications, and the total size of all these files can reach tens of GB. In contrast, containers (e.g., Docker-based containers) are software packages that provide a certain number of facilities required for the operation of software applications or services, such as code, runtime, tools, system libraries, etc. Containers can share resources, such as operating system kernels, files, folders, configurations, supplies, storage devices, and networks. This can effectively utilize host computing resources and reduce management costs. Containers typically have much lower memory and disk footprint than virtual machines (e.g., the size is megabytes instead of gigabytes).

[0004] In some cases, a laptop, tablet, smartphone, or other type of computing device may benefit from the flexibility of switching between using local and remote computing resources when sandboxed. For example, a computer (e.g., a laptop) may use local computing resources when the computer is in "airplane mode," out of range of a local computer network, or without a network connection. In another example, the computer may use remote computing resources when performing computationally intensive tasks such as compiling code, or running other computationally heavy workloads. In another example, a remote embedded device may resort to local processing when partitioned from the network, but may automatically switch to remote computing resources when a network connection is reestablished. In another example, the computer may be running low on battery and need to use remote resources to save power and / or stay online.

[0005] In at least some of the foregoing scenarios, containerization can help switch between using local and remote resources by abstracting workloads from the underlying hardware and / or software. Although the migration of virtual machines is well understood, it may be difficult to migrate containerized workloads. Unlike virtual machines that contain a complete operating system, containers share resources from the underlying operating system kernel. Sometimes, containers and one or more applications executed in containers and the underlying operating system may change over time. Such changes may be the result of the following operations: applying software patches to the operating system and / or applications to fix security or functional issues, installing extensions to containers or one or more applications to add functionality, or other suitable modifications. In another example, it may also be difficult to track the various operating system handles associated with containers and one or more applications because the operating system and / or software drivers typically do not provide such functionality.

[0006] Several embodiments of the disclosed technology are intended to implement a synchronization engine for facilitating efficient migration of containers between a source computing device and a destination computing device. In certain embodiments, a computing device (e.g., a laptop, hereinafter referred to as a "local device") can determine whether to migrate a source container (referred to as a "local container") hosted on a local device to a destination device, such as a remote server located in a data center. Example criteria for determination can be based on power levels, the current state of network connectivity, the current computing load, or other suitable parameters of the local device. In other examples, the criteria can also be based on user input, device or sensor input, migration schedule, or other suitable conditions. In another example, a resource (e.g., a printer) is not locally available, and the workload is moved to a location where the resource is available (e.g., a data center). In another example, the host detects tampering with the audit log and evacuates sensitive workloads to a secure remote location.

[0007] After determining that the local container is to be migrated, the synchronization engine on the local device can be configured to transmit a migration request with appropriate credentials to the cloud computing system to indicate that the migration is about to occur. In response, the cloud computing system can be configured to authenticate the migration request based on the credentials and then select a remote server to instantiate a new container on the remote server (referred to as a "remote container"). In some embodiments, the migration request may also include data identifying the version, construction, or other suitable type of parameters of the operating system on the local device. The remote server (or the hypervisor on it) can then instantiate a virtual machine or container with an operating system using a version, construction, or other type of parameters that are compatible or identical to the version, construction, or other type of parameters in the migration request. In other implementations, the remote server can be selected to have a version, construction, or other suitable type of parameters that are compatible with the version, construction, or other suitable type of parameters in the migration request. The remote container can then be instantiated directly on the remote server.

[0008] In some implementations, the remote server may then be configured to instantiate a remote container using a pre-distributed or shared container image. Such a container image may include digital data representing a complete file system having folders, files, applications, configurations, or other suitable information for the container. The container image may be identified using a version, build, hash value, serial number, or other suitable identifier. In other embodiments, the remote server may receive a copy of the container image from the local device with or without requesting a copy of the container image from the local device.

[0009] In some embodiments, a template is used to represent a container and associated configuration parameters. Exemplary configuration parameters may include one or more of memory configuration, security settings, network settings, graphics settings, and device settings. In some embodiments, the template may have a predefined profile that is shared with computers that support container migration. The template may then be synchronized between computers, either on a schedule or as part of a container migration.

[0010] In some embodiments, the synchronization engine of the local device may also transmit the initial memory snapshot of the local container to the cloud computing system together with the migration request or after authorization to migrate the local container. The initial memory snapshot may include data of the memory state, the memory state, the shell projection handle, or other suitable information. In other embodiments, instead of receiving the initial memory snapshot from the local device, for example, during the initial boot of the local container, the base memory snapshot corresponding to the local container may be pre-distributed or shared with the remote server. Once the initial memory snapshot is obtained, the remote server may instantiate the remote container using the initial memory snapshot, or apply the initial memory snapshot to an already instantiated remote container.

[0011] Subsequently, the synchronization engine of the local device may be configured to generate one or more differences from the initial memory snapshot of the local container using copy-on-write, memory partitioning, or other suitable techniques and transmit them to the remote server. In response, the remote server may update the instantiated remote container using the differences of the received memory snapshot. In certain embodiments, after completing the instantiation of the remote container, the remote server may be configured to signal the local device that the migration of the local container to the cloud computing system is ready. In this memory update / sharing process, the images of the operating system on both the local device and the remote server must be the same version. In addition, memory repair may be performed because library files in the operating system may not be loaded at the same location on the local device and the remote server.

[0012] The remote server may provide the user of the local device with certain options regarding when to complete the migration, or proceed based on other suitable conditions. During the migration, the remote server may also force one or more processes executing on the local device to enter a dormant or quiescent state prior to the migration. Once the migration of the local container to the remote container is complete, the display output on the local device is switched from the local container to the remote container, e.g., Remote Desktop Protocol (RDP), X Window System, or other suitable technology.

[0013] During the migration process, the handles of the local container to the local operating system resources can be tracked. A "handle" generally refers to an abstract reference to a computing resource. For example, a handle can be used when an application references a memory block or object managed by an operating system or database. An example handle can be an opaque identifier or pointer that allows access to further information about the computing resource. In one embodiment, a handle table (or other suitable type of data structure) can be implemented on both the local device and the remote server to ensure that the handle of the local container is also opened on the remote server. This can be achieved by synchronizing the handle table in batches or based on each handle table. In some embodiments, the handle table can also be cached. For example, a new handle on the remote server may cause a cache miss, and remote retrieval is performed from the local device and migration is performed only as needed. In other embodiments, the handle can also be stored in a linked list, a tree, or other suitable type of data structure.

[0014] Thus, several embodiments of the disclosed technology can facilitate efficient switching between using local resources and using remote resources through containerization. By tracking the memory state of the migrated container, the container can be migrated from the local device to the remote server, and vice versa, in a seamless manner. In this way, the user can easily switch between using local resources and using remote resources with little interruption. Although the migration process is described above in the context of migrating a local container as a source container from a local device to a remote server, in other embodiments, the migration process can also be used to migrate a remote container as a source container in the opposite direction from a remote server to a local device. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1 is a schematic diagram of a distributed computing system with a server implementing container migration according to an embodiment of the disclosed technology.

[0016] Figure 2 The embodiment according to the disclosed technology is shown Figure 1 A schematic diagram of some hardware / software components of a server in a distributed computing system.

[0017] Figure 3A-3C FIG. 1 shows an example of a process for performing a container migration according to an embodiment of the disclosed technology. Figure 1 and Figure 2 A diagram of some of the hardware / software components of a server in .

[0018] Figure 4A and Figure 4B During container migration, additional embodiments according to the disclosed technology are shown. Figure 1 and Figure 2 A diagram of some of the hardware / software components of a server in .

[0019] Figure 5-Figure 7 Flowcharts showing various processes for container migration according to an embodiment of the disclosed technology.

[0020] Figure 8 Is applicable to Figure 1 A computing device that is a certain component of a distributed computing system. DETAILED DESCRIPTION

[0021] Certain embodiments of systems, devices, components, modules, routines, data structures, and processes for container migration to / from a data center or other suitable computing facility are described below. In the following description, specific details of the components are included to provide a thorough understanding of certain embodiments of the disclosed technology. Those skilled in the relevant art will also understand that the technology may have additional embodiments. It may also be described without reference below. Figure 1-Figure 8The embodiments described implement the technology without going into detail.

[0022] As used herein, the term "computing facility" generally refers to an interconnected computer network with multiple network nodes, which connect multiple servers or hosts to each other or to an external network (e.g., the Internet). The term "network node" generally refers to a network device. Example network nodes include routers, switches, hubs, bridges, load balancers, security gateways, or firewalls. "Host" generally refers to a physical local device configured to implement, for example, one or more virtual machines or other suitable virtualization components. For example, a host may include a remote server or remote device with a hypervisor configured to support one or more virtual machines, containers, or other suitable types of virtual components.

[0023] Conceptually, computer networks can be divided into overlay networks implemented on an underlying network. An "overlay network" generally refers to an abstract network implemented on top of and running on an underlying network. An underlying network may include multiple physical network nodes interconnected to each other. An overlay network may include one or more virtual networks. A "virtual network" generally refers to an abstraction of a portion of an underlying network in an overlay network. A virtual network may include one or more virtual endpoints, called "tenant sites," which are used solely by users or "tenants" to access the virtual network and associated computing, storage devices, or other suitable resources. A tenant site may host one or more tenant endpoints ("TEPs"), such as virtual machines. A virtual network may interconnect multiple TEPs on different hosts. Virtual network nodes in an overlay network may be independently connected to each other via virtual links, which correspond to one or more network routes along one or more physical network nodes in the underlying network, respectively.

[0024] The term "container" also used herein generally refers to a software package that includes a software (e.g., application) with code (e.g., executable instructions) in a complete file system, a runtime environment, system tools, system libraries, or other suitable components sufficient to execute the software. Containers running on a single server or virtual machine can all share the same operating system kernel and can effectively utilize system memory or virtual memory. Containers can have similar resource isolation and allocation advantages as virtual machines. However, different architectural approaches allow containers to have higher portability and efficiency than virtual machines. For example, a virtual machine typically includes one or more applications, necessary binaries and libraries of the application, and an entire operating system. In contrast, a container can include an application and all its dependencies, but share the operating system kernel with other containers on the same host. In this way, containers can be more resource-efficient and flexible than virtual machines. An example container is a Windows Server container from Microsoft Corporation of Redmond, Washington. Another example container is a Linux container or LXC. Docker is a popular mechanism for packaging and delivering containers, provided by Docker Inc. of San Francisco, California.

[0025] In some scenarios, containers can be switched between using local and remote resources. Although migration of virtual machines is well understood, migrating container workloads can be difficult. Unlike virtual machines, which contain a complete operating system, containers share resources from the underlying operating system kernel. Sometimes, containers, one or more applications executing in containers, and the underlying operating system may change over time. Such changes may be the result of applying software patches to the operating system and / or applications to fix security or functional issues, installing extensions to containers or one or more applications to add functionality, or other suitable modifications. In another example, it may also be difficult to track the various operating system handles associated with the container and one or more applications because the operating system and / or software drivers typically do not provide such functionality. Several embodiments of the disclosed technology are directed to implementing a synchronization engine for facilitating efficient migration of containers between local and remote computing devices, as described in the following references. Figure 1-Figure 8 A more detailed description.

[0026] Figure 1 FIG. 1 is a schematic diagram of a distributed computing system 100 for implementing efficient container migration according to an embodiment of the disclosed technology. Figure 1 As shown, the distributed computing system 100 may include an underlying network 108 that interconnects a plurality of local devices 103 (such as first, second and third local devices 103a-103c, respectively) of respective users 101 (such as first, second and third users 101a-101c, respectively) and a computing facility 104. Figure 1 Specific components are shown in FIG. 1 . In other embodiments, the distributed computing system 100 may include additional and / or different components. For example, in addition to or in place of Figure 1 As shown in the components, the distributed computing system 100 may include network storage devices, public infrastructure, and / or other suitable components.

[0027] The local devices 103 may each include a computing device that facilitates the respective user 101 to access the cloud services provided by the remote server 106 via the underlying network 108. For example, in the illustrated embodiment, the local devices 103 solely include a desktop computer. In other embodiments, the local devices 103 may also include a laptop, a tablet computer, a smartphone, or other suitable computing device. Even though for illustration purposes, the local devices 103 may be configured as follows: Figure 1 Three users 101 are shown in FIG. 1 , but in other embodiments, distributed computing system 100 may facilitate any suitable number of users 101 accessing suitable types of computing services provided by remote servers 106 .

[0028] like Figure 1 As shown, the underlying network 108 may include one or more physical network devices 112 that interconnect the local device 103 and the computing facility 104. Examples of network devices 112 may include routers, switches, firewalls, load balancers, or other suitable network components. Figure 1 A particular connection scheme is shown in FIG. 1 , but in other embodiments, the network devices 112 may be operably coupled into a layered, flat, "mesh," or other suitable topology.

[0029] The computing facility 104 may include a management controller 102 and a plurality of remote servers 106 operably coupled to each other via a network device 112. In some embodiments, the remote servers 106 may individually include a physical server or a computing blade having several physical servers. In other embodiments, the remote servers 106 may also include one or more physical servers having multiple processor cores, or other suitable types of computing devices. In any of the foregoing embodiments, the remote servers 106 may individually include one or more non-volatile memories (in Figure 2 138).

[0030] Remote servers 106 may be organized into racks, availability zones, groups, collections, computing clusters, or other suitable partitions. Figure 1In the illustrated embodiment, the remote servers 106 are grouped into three computing clusters 105 (shown as first, second, and third computing clusters 105a-105c, respectively), which are operably coupled to corresponding network devices 112 in the underlying network 108. Although for illustration purposes only, the remote servers 106 are grouped into three computing clusters 105 (shown as first, second, and third computing clusters 105a-105c, respectively), which are operably coupled to corresponding network devices 112 in the underlying network 108. Figure 1 Three computing clusters 105 are shown in FIG. 1 , but in other embodiments, computing facility 104 may include one, two, eight, sixteen, or any other suitable number of computing clusters 105 having similar or different components and / or configurations.

[0031] Each cluster 105 may also include a cluster controller 109 configured to monitor the status and manage the operation of the remote servers 106 in the corresponding computing cluster 105. For example, the cluster controller 109 may monitor whether the remote server 106 or its components has failed. In response to detecting a failure of the remote server 106 or its components, the cluster controller 109 may attempt to remedy the detected failure by, for example, migrating virtual machines and / or containers hosted on the failed remote server 106 to other remote servers 106 in the same cluster 105, restarting the failed remote server 106, replacing hardware components of the failed remote server 106, and / or performing other suitable operations. Although in Figure 1 The cluster controller 109 is shown as a separate physical server in FIG. 1 , but in other embodiments, the cluster controller 109 may also include computing services provided by one or more remote servers 106 in the corresponding computing cluster 105 .

[0032] The management controller 102 may be configured to monitor, control, or otherwise manage the operation of the computing cluster 105. For example, in some embodiments, the management controller 102 may include a fabric controller configured to manage processing, storage, communications, or other suitable hardware resource types in the computing cluster 105 for hosting the desired computing services. In other embodiments, the management controller 102 may also include a data center controller, an application delivery controller, or other suitable type of controller. In the illustrated embodiment, the management controller 102 is shown as being separate from the computing cluster 105. In other embodiments, the management controller 102 may include one or more remote servers 106 in the computing cluster 105. In further embodiments, the management controller 102 may include a software service hosted on one or more remote servers 106 in the computing cluster 105.

[0033] In operation, a user 101 may request various computing services (e.g., deployment of a site) via, for example, a user portal 107 presented on a corresponding local device 103. In response, the management controller 102 may allocate one or more remote servers 106 or other computing resources (e.g., one or more remote servers 106) to execute appropriate instructions to provide the requested computing services. For example, a user 101 may request, via a corresponding local device 103, that a local container (not shown) currently executing on the local device 103 be migrated to one or more remote servers 106 in the computing facility 104, as described below with reference to Figure 3A-Figure 4B More Detailed Description In some embodiments, the request for computing resources may be automated by software running on the local device 103, user portal 107, or other entity.

[0034] In some embodiments, the remote server 106 may be selected based on certain attributes of the remote server 106. Example attributes may include cost, location, network latency, availability, security assurance, governance data policies, and other suitable features. In some embodiments, the local container 122a running on the local device 103 may be synchronized with multiple remote servers 106 to achieve high availability, optimal location, and / or other suitable purposes.

[0035] Figure 2 The embodiment according to the disclosed technology is shown Figure 1 A schematic diagram of certain hardware / software components of the distributed computing system 100. Figure 2 In other figures of this article, each software component, object, class, module and routine can be a computer program, step or process written as source code in C, C++, C#, Java and / or other suitable programming languages. Components may include, but are not limited to, one or more modules, objects, classes, routines, attributes, processes, threads, executable files, libraries or other components. Components can be in source code form or binary form. Components may include various aspects of source code before compilation (e.g., classes, attributes, processes, routines), compiled binary units (e.g., libraries, executable files) or artifacts (e.g., objects, processes, threads) instantiated and used at runtime. In some embodiments, the various components and modules described below can be implemented by participants. In other embodiments, monolithic applications, multi-layer applications or other suitable components can also be used to implement the generation of applications and / or related services.

[0036] Components within a system may take different forms within the system. As an example, a system including a first component, a second component, and a third component may include, but is not limited to, a system having a first component that is a property in source code, a second component that is a binary compiled library, and a third component that is a thread created at runtime. A computer program, procedure, or process may be compiled into an object, intermediate code, or machine code and presented for execution by one or more processors in a personal computer, a network server, a laptop, a smartphone, and / or other suitable computing device. Likewise, a component may include a hardware circuit.

[0037] Those of ordinary skill in the art will recognize that hardware can be viewed as fossilized software, and software can be viewed as liquefied hardware. As just one example, the software instructions in a component can be burned into a programmable logic array circuit, or can be designed as a hardware circuit with an appropriate integrated circuit. Likewise, hardware can be emulated by software. Various implementations of source code, intermediate code, and / or object code and related data can be stored in a computer memory, which includes a read-only memory, a random access memory, a disk storage medium, an optical storage medium, a flash memory device, and / or other suitable computer-readable storage medium other than a propagated signal.

[0038] like Figure 2 As shown, the first server 106a and the second server 106b can each include a processor 132, a memory 134, an input / output component 136, and one or more non-volatile memories 138 that are operatively coupled to each other. The processor 132 may include a microprocessor, a field programmable gate array, and / or other suitable logic devices. The memory 134 may include volatile and / or non-volatile media (e.g., ROM; RAM, NVRAM, disk storage media; optical storage media; flash memory devices and / or other suitable storage media), and / or other types of computer-readable storage media, which are configured to store data received from the processor 132 and instructions for the processor 132 (e.g., for executing the following reference to Figure 5 A- Figure 7 The input / output component 136 may include a network interface card or other suitable type of input / output device configured to accept input from and provide output to an operator and / or automated software controller (not shown).

[0039] The memory 134 of the first and second remote servers 106a and 106b may include instructions executable by the respective processors 132 to cause each remote server 106 to provide a hypervisor 140 (identified as first and second hypervisors 140a and 140b, respectively) and other suitable virtual machines, such as virtual network interface cards, virtual switches, and other components (not shown). The hypervisor 140 may be independently configured to initiate, monitor, terminate, and / or otherwise locally manage the host 141 and one or more virtual machines 144 (or containers) organized into tenant sites 142. For example, Figure 2 As shown, the first server 106a may provide a first hypervisor 140a, which may be the same or different tenant or user 101 ( Figure 1 ) respectively manage the first and second tenant sites 142a and 142b. The second server 106b may provide a second management program 140b, which manages the first and second tenant sites 142a' and 142b' respectively.

[0040] The hypervisor 140 may be a software, firmware, or hardware component. The tenant sites 142 may each include a plurality of virtual machines 144 or other suitable tenant instances for the tenants. For example, the first server 106a and the second server 106b may both be servers for the first user 101a ( Figure 1 ) hosts tenant sites 142a and 142a'. The first server 106a and the second server 106b can both host the second user 101b ( Figure 1 ) of the tenant sites 142b and 142b'. Each virtual machine 144 can execute a corresponding operating system, middleware and / or application.

[0041] Also like Figure 2 As shown, the distributed computing system 100 may include one or more virtual networks 146 that interconnect tenant sites 142a and 142b across multiple remote servers 106. For example, a first virtual network 142a interconnects first tenant sites 142a and 142a' at a first server 106a and a second server 106b. A second virtual network 146b interconnects second tenant sites 142b and 142b' at a first server 106a and a second server 106b. Even though a single virtual network 146 is shown as corresponding to one tenant site 142, in other embodiments, multiple virtual networks 146 (not shown) may be configured to correspond to a single tenant site 146.

[0042] Even if the virtual machines 144 are located on different remote servers 106, the virtual machines 144 on the virtual network 146 can communicate with each other via the underlying network 108 ( Figure 1) can communicate with each other. The communication of each virtual network 146 can be isolated from other virtual networks 146. In some embodiments, communication can be allowed to pass from one virtual network 146 to another virtual network through a security gateway or in a controlled manner. The virtual network address can correspond to one of the virtual machines 144 in the virtual network 146. Therefore, different virtual networks 146 can use the same one or more virtual network addresses. Example virtual network addresses can include IP addresses, MAC addresses, and / or other suitable addresses.

[0043] like Figure 2 As shown, the hypervisor 140 and / or the host 141 can allocate one or more of the non-volatile memories 138 to be accessed by the virtual machine 144 via the PCIe bus. For example, the first server 106a can allocate the non-volatile memory 138 to the virtual machine 144'. The second server 106b can allocate another non-volatile memory 138 to the virtual machine 144". As described above, the server 106 can utilize one or more of the virtual machines 144 to facilitate the transfer of data from the local device 103 ( Figure 1 ) and vice versa, as shown in the following reference Figure 3A-Figure 4B A more detailed description.

[0044] Figure 3A-3C A block diagram of certain hardware / software components of a local device 103 and a remote server 106 during certain operational stages of migrating a local container 122a from a local device 103 to a remote server 106 according to an embodiment of the disclosed technology is shown. Although operations are described in the context of migrating a local container 122a (as a source container) from a local device 103 as a source device to a remote container 122b (as a destination container) instantiated on a remote server 106 as a destination device, in certain implementations, at least some of the operations described herein are equally applicable to migrating a remote container 122b from a remote server 106 as a source device to a local device 103 as a destination device. Furthermore, even though the migration process is described below as being triggered by a request 160 from a user 101, in other implementations, the migration process may be initiated based on a current operational state of the local device 103. Example operational states may include power level, network connection state, processor usage, system storage level, security state, certification state, or other suitable operational parameters.

[0045] In some embodiments, the local device 103 may include: a data repository 110a, which contains one or more container images 114a, and a processor (not shown), the processor being configured to execute appropriate instructions of one or more container images in the container image 114a to provide a local container 122a, for example, as a container runtime. As used herein, "runtime" generally refers to a computing environment in which a software (e.g., a program loaded into a memory, instructions scheduled and executed by a processor) is run. In other embodiments, the container image 114a may also be obtained from a remote, removable, or other suitable type of storage location. Figure 3A As shown, during execution of the local container 122a and / or one or more applications (not shown) in the local container 122a, the local container 122a may also be assigned to the container memory 124a and allowed to access the container memory 124a. In this way, the container memory 124a may be configured to contain the memory state of the local container 122a and / or one or more applications executed in the local container 122a. Although Figure 3A The local container 122a is shown as being directly hosted by the local device 103, but in some embodiments, the local device 103 may also execute appropriate instructions to provide a virtual machine (not shown) to host the local container 122a.

[0046] In some embodiments, the local device 103 may also include an output display 120 configured to present the execution result 126 of the local container 122a to the user 101. In some embodiments, the output display 120 may include a user interface element (e.g., a graphical user interface) presented on an output component (e.g., an LED screen) of the local device 103. In other embodiments, the output display 120 may include other suitable hardware / software components. Various protocols may be used to present the result 126 on the output display 120. A suitable example protocol is the Remote Desktop Protocol (RDP). In some embodiments, the protocol simply reconnects the remote container 122b to the output display 120. In other embodiments, the protocol and container migration may be integrated and orchestrated. Connect-before-break or other similar types of techniques may be used to reduce interruptions to the output display 120. In some embodiments, since the remote container 122b is quickly instantiated remotely, the user 101 may have a seamless experience when accessing the output display 120. In some embodiments, failures or delays may be notified to the user 101. In some embodiments where container migration is automated, the user 101 may be notified of the change. In other implementations, the local device 103 may not include an output display 120, for example, when the local device 103 is an embedded device. Instead, the execution results from the local or remote containers 122a and 122b can be used to initiate, transmit, or perform other suitable operations.

[0047] like Figure 3A As shown, each of the local device 103 and the remote server 106 may also implement a synchronization engine 150 (shown as local and remote synchronization engines 150a and 150b, respectively) that is configured to facilitate container migration between the local device 103 and the remote server 106. The synchronization engine 150 may include an interface component 152, a memory component 154, and a control component 156 that are operably coupled to each other. Even though the functions of the various components of the synchronization engine 150 are described below in the context of migrating a local container 122a to a remote server 106, when migrating a remote container 122b (e.g., Figure 3B When the sync engine 150a and 150b are migrated from the remote server 106 to the local device 103 as shown, similar components of the sync engines 150a and 150b may have similar or identical functions.

[0048] The interface components 152 of the synchronization engine 150 can be configured to communicate with each other through appropriate synchronization protocols and use transmission to synchronize the status between the local device 103 and the remote server 106. In some embodiments, the independent interface component 152 may include a network interface card and a corresponding software driver. In other embodiments, the interface component 152 may include other suitable hardware / software components.

[0049] The interface component 152 can also be configured to transmit or relay the migration request 160 between the local device 103 and the remote server 106. Figure 3A As shown, after receiving the request 160 from the user 101, the interface component 152 on the local device 103 can relay the request 160 and, for example, the credentials 161 for verifying the user 101, the device information 162 containing the version, construction or other suitable parameters of the local device 103, and / or other suitable information to the remote server 106. In other examples, the credentials 161 and / or the device information 162 can be pre-distributed or shared between the local device 103 and the remote server 106. In some embodiments, the device information 162 can include a configuration template that includes certain aspects of the container configuration. In some embodiments, the device information 162 can include one or more of the operating system version, a list of applied patches, driver version information, firmware version information, and / or other suitable information. In some embodiments, the request 160 can be automatically generated by a component (e.g., a container engine) on the local device 103, rather than initiated by the user 101.

[0050] After receiving the request 160, the remote server 106 can be configured to authenticate the user 101 based on the received or pre-distributed credentials 161. After authenticating the user 101, in one example, the control component 156 at the remote server 106 can be configured to instantiate the virtual machine 144 based on the received or pre-distributed device information 162. In this way, the virtual machine 144 can be provided with an operating system kernel that is compatible with or the same as the operating system kernel of the local device 103.

[0051] The storage component 154 at the local device 103 may be configured to synchronize the image and storage state of the migrated container. Figure 3A As shown, upon receiving a request 160 to migrate a local container 122a to a remote server 106, the memory component 154 may be configured to generate a container image 114 of the local container 122a. The container image 114 may include digital data representing a file system, one or more applications executed in a local container, and their configuration parameters. Example techniques for generating a container image 114 may include executing a "submit" or "file management" command for Docker. Upon receiving a user request 160, the memory component 154 may also be configured to capture a memory snapshot 116 from the container memory 124a, the memory snapshot 116 containing the memory state of the local container 122a and one or more applications executed in the local container 122a. In other embodiments, the container image 114 may be pre-distributed to the remote server 106. Thus, instead of receiving the container image 114 from the local device 103, the remote server 106 may be configured to retrieve a copy of the container image 114 from the data repository 110b based on, for example, device information 162.

[0052] In some embodiments, the execution of the local container 122a can then be suspended after capturing the memory snapshot 116, and the memory component 154 can be configured to transmit the generated image and the captured memory snapshot 116 to the remote server 106. After receiving the container image 114 and the memory snapshot 116, the remote server 106 can instantiate a remote container 122b based on the container image 114 and the memory snapshot 116. Subsequently, the remote server 106 can continue to execute one or more applications in the remote container 122b and provide the results 126' of such execution to the output display 120 on the local device 103.

[0053] In some embodiments, the local container 122a has shared memory with the host (e.g., the local device 103 or a virtual machine thereon). When the shared memory is mapped into the local container 122a, the memory snapshot 116 proceeds, and the memory mapping information may also be captured and shared with the remote server 106 via the device information 162 or similar mechanism. When the remote container 122b on the remote server 106 is instantiated, the same memory mapping may be created as part of the instantiation.

[0054] In another embodiment, Figure 3B As shown, execution of the local container 122a can continue after capturing the memory snapshot 116. Figure 3A As shown, after transmitting the initial memory snapshot 116, the memory component 154 can be configured to capture additional memory snapshots and generate one or more memory differences 116' based on the subsequently captured memory snapshots relative to the previous snapshot. The memory component 154 can then be configured to continuously, periodically, or in other suitable ways transmit the memory differences 116' to the remote server 106. After receiving the memory differences 116', the control component 156 at the remote server 106 can be configured to apply the received memory differences to the instantiated remote container 122b. The control component 156 can then send a query 117 to the local device 103 through the interface component 152 to query whether any other memory differences 116' still exist on the local device 103.

[0055] like Figure 3C As shown, after receiving a response 118 from the local device 103 indicating that the memory difference 116' no longer exists on the local device 103, the remote server 106 can continue to execute one or more applications in the remote container 122b and provide the execution result 126' to the output display 120 of the local device 103. In some embodiments, before switching the output display 120 from the local container 122a to the remote container 122b, the remote server 106 can also optionally transmit a pause command 119 to the local device 103. In response to the pause command 119, the control component 156 at the local device 103 can be configured to pause the execution of the local container 122a and switch the output display 120 to the remote container 122b. In other embodiments, switching the output display 120 can be performed without pausing the local container 122a.

[0056] Even though the above reference Figure 3A-3C The migration process involves capturing a memory snapshot of the local container 122a and instantiating the remote container 122b based thereon. In other embodiments, the memory snapshot 114 may also be pre-distributed between the local device 103 and the remote server 106. For example, Figure 4A As shown, a container image 114 and a memory snapshot 116 corresponding to the container image 114 may be pre-distributed between the local device 103 and the remote server 106. In one example, the pre-distributed memory snapshot 116 may include a captured memory state of a local or remote container 122 during a boot operation. In other examples, the pre-distributed memory snapshot 116 may include a captured memory state of a local or remote container 122 during other suitable execution points.

[0057] Thus, during the migration process, the remote server 106 can be configured to retrieve the container image 114 and the initial memory snapshot 116 from the data repository 110b. Figure 3B As described, the memory component 154 at the local device 103 can then be configured to generate one or more memory differences 116' to be applied to the instantiated remote container 122b and transmit it to the remote server 106. Subsequently, the remote server 106 can be configured to transmit the query 117 to the local device 103 and, upon receiving the response 118, switch the output display 120 to the remote container 122b, as described above with reference to Figure 3C As described.

[0058] In the above reference Figure 3A-Figure 4B In the described migration process, the handles of the local operating system resources for the local container 122a can be tracked. A "handle" generally refers to an abstract reference to a computing resource. For example, a handle can be used when an application references a memory block or object managed by an operating system or database. An example handle can be an opaque identifier or pointer that allows access to further information about the computing resource. In one embodiment, a handle table can be implemented on both the local device 103 and the remote server 106 to ensure that the handle of the local container can also be opened on the remote server. This can be achieved by synchronizing the handle table in batches or on a per-handle basis. In some embodiments, the handle table can also be cached. For example, a new handle on the remote server 106 may cause a cache miss and is remotely obtained from the local device 103 and migrated only when needed.

[0059] Therefore, several embodiments of the disclosed technology can facilitate efficient switching between using local resources and using remote resource migration through containerization. By tracking the memory state of the migrated local container 122a (or remote container 122b), the container 122 can be migrated from the local device 103 to the remote server 116 and vice versa in a seamless manner. In this way, the user 101 can easily switch between using local resources and using remote resources with little or no interruption.

[0060] Several embodiments of the disclosed technology can also implement the above embodiments to migrate containers running on a remote server 106 to a local device 103. For users with multiple local devices 103 (e.g., desktop computers, laptop computers, phones, etc.), the properties of such local devices 103 can be shared as part of the device information 162, so that the synchronization engine 150b can target the appropriate local device 103. In one embodiment, user presence can be used to determine that an interactive application scenario can be migrated to a laptop computer currently being used by the user. In another embodiment, computing resources can be used to determine that a computing-intensive application can be migrated to a desktop computer.

[0061] Figure 5 A flowchart of a process 200 for container migration according to an embodiment of the disclosed technology is shown. Figure 1 and Figure 2 The process 200 is described in the distributed computing system 100 of FIG. 1 . In other embodiments, the process 200 may also be implemented in other suitable systems.

[0062] like Figure 5 As shown, process 200 may include receiving a request to migrate a container from a source device to a destination device at stage 202. In one embodiment, the container may be migrated from local device 103 ( Figure 1 ) is migrated to the remote server 106 ( Figure 1 In another embodiment, the container can be migrated from a remote server 106 to a local device 103. In yet another embodiment, the container can be migrated from a remote server 106 to a computing facility 104 ( Figure 1 ) in another one.

[0063] In some embodiments, process 200 may then include an optional stage 204 in which a virtual machine or container is started on the destination device, as described above with reference to Figure 3A In some embodiments, the operation of stage 204 may also include allocating additional system resources such as memory, devices, etc. Such timely resource allocation may be determined by device information 162 or other indicators. In other embodiments, the operation of stage 204 may be omitted so that the container is directly migrated to the destination device.

[0064] Then, process 200 may include instantiating a remote container at stage 206. In some embodiments, remote container 206 may be instantiated based on a captured copy of the current image and the memory snapshot of the container on the source device. In other embodiments, at least one of the image or the memory snapshot of the container may be pre-distributed between the source device and the destination device. Fig. 6A and 6BThe example operation of instantiating a remote container is described in more detail. Then, process 200 may include a decision stage 206 to determine whether instantiating the remote container is complete. In response to determining that instantiating the remote container is complete, process 200 may include switching the display output on the source device to the remote container at stage 210, as described above with reference to Figure 3C As described.

[0065] Fig. 6A A flowchart of an example operation of instantiating a remote container is shown. Fig. 6A As shown, the operation may include receiving a captured copy of the image and a memory snapshot of the container to be migrated at stage 212. The operation may then include allocating various resources (e.g., system or virtual memory) to the remote container at step 214. The operation may include starting the remote container using the received captured copy of the image and the memory snapshot at step 216.

[0066] Figure 6B A flowchart of another exemplary operation of instantiating a remote container is shown. Figure 6B As shown, the operation may include receiving a container identifier of a container to be migrated at stage 220. Such a container identifier may include a serial number or other suitable type of identifier. The operation may then include retrieving at least one of a pre-distributed image or a memory snapshot of the container based on the container identifier at stage 222. The operation may then include starting a remote container 224 using the retrieved image and / or memory snapshot at stage 224.

[0067] The operation may then include a decision stage 226 to determine whether there are any differential memory snapshots of the container at the source device. In response to determining that there are additional differential memory snapshots of the container at the source device, the operation may continue to receive additional differential memory snapshots and apply them to the remote container at stage 227 before returning to determine whether other differential memory snapshots of the container are still present on the source device. In some embodiments, the operation of stage 227 may also include updating the pre-distributed image and / or memory snapshot of the container based on the additional differential memory snapshots. In response to determining that there are no differential memory snapshots of the container at the source device, the operation may proceed to an optional stage 228, which instructs the source device to pause execution of the container and then indicates at stage 230 that instantiation of the remote container is complete.

[0068] Figure 7 A flow chart illustrating example operations for synchronizing handles between a source device and a destination device during migration of a container from a source device to a destination device. Figure 7As shown, the operation may optionally include partially or completely synchronizing a handle table at stage 232, the handle table containing entries identifying various handles between the source device and the destination device. Then, the operations may include a decision stage 234 to determine whether the new handle corresponds to an entry in the synchronization handle table. In response to determining that the new handle does not correspond to an entry in the synchronization handle table, the operation may include retrieving information about the new handle from the source device at stage 236. In response to determining that the new handle does correspond to an entry in the synchronization handle table, the operation may include retrieving information about the new handle from the handle table at stage 238.

[0069] Figure 8 Is suitable for Figure 1 The computing device 300 may be adapted to include certain components of the distributed computing system 100. For example, the computing device 300 may be adapted to include certain components of the distributed computing system 100. Figure 1 The computing device 300 may be a local device 103 or a remote server 106. In a very basic configuration 302, the computing device 300 may include one or more processors 304 and a system memory 306. A memory bus 308 may be used to communicate between the processor 304 and the system memory 306.

[0070] Depending on the desired configuration, the processor 304 can be of any type, including but not limited to a microprocessor (μP), a microcontroller (μC), a digital signal processor (DSP), or any combination thereof. The processor 304 can include multiple levels of cache, such as a level 1 cache 310 and a level 2 cache 312, a processor core 314, and registers 316. The example processor core 314 can include an arithmetic logic unit (ALU), a floating point unit (FPU), a digital signal processing core (DSP core), or any combination thereof. An example memory controller 318 can also be used with the processor 304, or in some implementations, the memory controller 318 can be an internal part of the processor 304.

[0071] Depending on the desired configuration, system memory 306 may be of any type, including but not limited to volatile memory (e.g., RAM), non-volatile memory (e.g., ROM, flash memory, etc.), or any combination thereof. System memory 306 may include an operating system 320, one or more applications 322, and program data 324. Figure 8 As shown, the operating system 320 may include a hypervisor 140 for managing one or more virtual machines 144. The basic configuration 302 described in Figure 8 are shown by those components within the inner dashed line.

[0072] The computing device 300 may have additional features or functions and additional interfaces to facilitate communication between the basic configuration 302 and any other devices and interfaces. For example, a bus / interface controller 330 may be used to facilitate communication between the basic configuration 302 and one or more data storage devices 332 via a storage device interface bus 334. The data storage device 332 may be a removable storage device 336, a non-removable storage device 338, or a combination thereof. Examples of removable storage and non-removable storage devices include magnetic disk devices such as solid state drives, such as floppy disk drives and hard disk drives (HDDs); optical disk drives, such as compact disk (CD) drives or digital versatile disk (DVD) drives; solid state drives (SSDs) and tape drives, etc. Example computer storage media may include volatile and non-volatile, removable and non-removable media, which are used to implement any method or technology for storage of information, such as computer readable instructions, data structures, program modules, or other data. The term "computer-readable storage medium" or "computer-readable storage device" does not include propagated signals and communication media.

[0073] System memory 306, removable storage device 336, and non-removable storage device 338 are examples of computer-readable storage media. Computer-readable storage media include, but are not limited to, RAM, ROM, NVRAM, EEPROM, flash memory or other storage technology, CD-ROM, digital versatile disks (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by computing device 300. Any such computer-readable storage media can be part of computing device 300. The term "computer-readable storage" does not include propagated signals and communication media.

[0074] The computing device 300 may also include an interface bus 340 for facilitating communication from various interface devices (e.g., output devices 342, peripheral interfaces 344, and communication devices 346) to the basic configuration 302 via the bus / interface controller 330. Example output devices 342 include a graphics processing unit 348 and an audio processing unit 350, which may be configured to communicate with various external devices such as a display or speakers via one or more A / V ports 352. Example peripheral interfaces 344 include a serial interface controller 354 or a parallel interface controller 356, which may be configured to communicate with external devices such as input devices (e.g., keyboard, mouse, pen, voice input device, touch input device, etc.) or other peripheral devices (e.g., printer, scanner, etc.) via one or more I / O ports 358. Example communication devices 346 include a network controller 360, which may be arranged to facilitate communication with one or more other local devices 362 over a network communication link via one or more communication ports 364.

[0075] A network communication link can be an example of a communication medium. Communication media can generally be embodied by computer-readable instructions, data structures, program modules, or other data in a modulated data signal (e.g., a carrier wave or other transmission mechanism), and can include any information transfer medium. A "modulated data signal" can be a signal having one or more characteristics set or changed in a manner that encodes information in the signal. As an example and not limitation, communication media can include wired media such as a wired network or a direct wired connection, and wireless media such as acoustic, radio frequency (RF), microwave, infrared (IR) and other wireless media. The term computer-readable medium as used herein can include both storage media and communication media.

[0076] The computing device 300 may be implemented as part of a small portable (or mobile) electronic device such as a portable phone, a personal data assistant (PDA), a personal media player device, a wireless network viewing device, a personal headphone device, a dedicated device, or a hybrid device including any of the above functions, etc. The computing device 300 may also be implemented as a personal computer including laptop and non-laptop computer configurations.

[0077] For the purpose of illustration, specific embodiments of the technology have been described above. However, various modifications may be made without departing from the foregoing disclosure. In addition, many elements of one embodiment may be combined with other embodiments in addition to or in place of elements of other embodiments. Therefore, the technology is not limited except as set forth in the appended claims.

Claims

1. A method performed in a computing system having a source device interconnected to a destination device by a computer network, the method comprising: receiving, at the destination device, a request to migrate a source container currently executing on the source device to the destination device, the source container comprising a software package having a software application in a file system, the software package being sufficient to complete execution of the software application in an operating system by a processor of the source device to provide a display output of the software application, and In response to the received request from the source device, at the destination device, Starting a virtual machine having an operating system compatible with the operating system of the source device; In the started virtual machine, using the copy of the image of the source container on the source device and the memory snapshot, instantiating a destination container to execute the copy of the software application to generate a remote display output of the software application; as well as Upon completion of instantiating the destination container at the destination device to execute the copy of the software application, the remote display output of the generated copy of the software application is transmitted from the destination container to the source device via the computer network to be presented on the source device in place of the display output from the source container.

2. The method according to claim 1, further comprising: receiving, from the source device, data identifying a version of the operating system on the source device; and Wherein starting the virtual machine comprises: retrieving an image of the operating system from a network storage device in a computing facility, the operating system being compatible with the version of the operating system on the source device identified in the received data; as well as At the destination device, the retrieved image of the operating system is processed to provide the virtual machine at the destination device.

3. The method according to claim 1, further comprising: receiving from the source device a copy of the image and the memory snapshot from the source device; and Wherein instantiating the destination container comprises instantiating the destination container using the received copy of the image from the source device and the memory snapshot.

4. The method according to claim 1, further comprising: receiving, from the source device, data representing an identifier of the source container; and Wherein instantiating the destination container comprises: retrieving a pre-distributed image of the source container from a network storage device in a computing facility based on the data representing the identifier of the source container; as well as The destination container is instantiated using the pre-distributed image of the source container on the destination device.

5. The method according to claim 1, further comprising: receiving, from the source device, data representing an identifier of the source container; and Wherein instantiating the destination container comprises: retrieving a pre-distributed image and an initial memory snapshot of the source container from a network storage device in a computing facility based on the data representing the identifier of the source container; as well as The destination container is instantiated using the pre-distributed image and an initial memory snapshot of the source container on the destination device.

6. The method according to claim 1, wherein: Instantiating the destination container includes: instantiating the destination container on the destination device using a pre-distributed image and an initial memory snapshot of the source container in a computing facility; and The method further comprises: receiving a differential memory snapshot from the source device, the differential memory snapshot representing a data difference between the initial memory snapshot and a current memory snapshot of the source container on the source device; and The received differential memory snapshot is applied to the destination container.

7. The method according to claim 1, wherein: Instantiating the destination container includes: instantiating the destination container on the destination device using a pre-distributed image and an initial memory snapshot of the source container in a computing facility; and The method further comprises: receiving a differential memory snapshot from the source device, the differential memory snapshot representing a data difference between the initial memory snapshot and a current memory snapshot of the source container on the source device; applying the received differential memory snapshot to the destination container; and A command is transmitted to the source device via the computer network, the command instructing the source device to suspend execution of the source container.

8. The method according to claim 1, wherein: Instantiating the destination container includes: instantiating the destination container on the destination device using a pre-distributed image and an initial memory snapshot of the source container in a computing facility; and The method further comprises: receiving a differential memory snapshot from the source device, the differential memory snapshot representing a data difference between the initial memory snapshot and a current memory snapshot of the source container on the source device; applying the received differential memory snapshot to the instantiated destination container; After applying the received differential memory snapshot, transmitting a command to the source device via the computer network, the command instructing the source device to suspend execution of the source container; and Wherein transmitting the remote display output comprises: transmitting the remote display output to the source device after receiving data indicating confirmation that no additional differential memory snapshot of the source container exists on the source device.

9. The method according to claim 1, wherein: Instantiating the destination container includes: instantiating the destination container on the destination device using a pre-distributed image and an initial memory snapshot of the source container in a computing facility; and The method further comprises: receiving a plurality of differential memory snapshots from the source device, the differential memory snapshots representing data differences between consecutive memory snapshots of the source container on the source device; applying the received plurality of differential memory snapshots to the instantiated destination container in sequence; and Wherein transmitting the remote display output comprises: transmitting the remote display output to the source device after receiving data indicating confirmation that no additional differential memory snapshot of the source container exists on the source device.

10. A destination device in a computing facility, the destination device being interconnected to a source device via a computer network, the destination device comprising: processor; as well as a memory operatively coupled to the processor, the memory comprising instructions executable by the processor to cause the destination device, upon receiving a request to migrate a source container to the destination device, the source container currently executing an application to generate a display output of the application to be presented on the source device: launching a virtual machine on the destination device, the virtual machine having an operating system compatible with an operating system of the source device; instantiating a destination container in the started virtual machine using a copy of the image of the source container on the source device and a memory snapshot, the image including a software package having a copy of the application in a file system, the software package being sufficient to complete execution of the copy of the application in the operating system of the instantiated virtual machine on the destination device to generate a remote display output of the application; as well as After the destination container is instantiated on the destination device, executing the copy of the application in the destination container to generate the remote display output of the application; as well as The remote display output generated by the application is transmitted via the computer network to be presented on the source device in lieu of the display output generated by executing the application in the source container.

11. The destination device of claim 10, wherein the memory contains additional instructions executable by the processor to cause the destination device to: receiving, from the source device, a copy of the memory snapshot of the source container on the source device with the request; and Wherein instantiating the destination container comprises instantiating the destination container using the copy of the memory snapshot received with the request.

12. The destination device of claim 10, wherein the memory contains additional instructions executable by the processor to cause the destination device to: receiving, from the source device, data representing an identifier of the source container; and Wherein instantiating the destination container comprises: retrieving a pre-distributed memory snapshot of the source container from a network storage device in the computing facility based on the data representing the identifier of the source container; as well as The destination container is instantiated using the pre-distributed memory snapshot of the source container on the destination device.

13. The destination device of claim 10, wherein: Instantiating the destination container includes: instantiating the destination container on the destination device using a pre-distributed initial memory snapshot of the source container in the computing facility; and The memory includes additional instructions executable by the processor to cause the destination device to: receiving a differential memory snapshot from the source device, the differential memory snapshot representing a data difference between the initial memory snapshot and a current memory snapshot of the source container on the source device; and The received differential memory snapshot is applied to the destination container.

14. The destination device of claim 10, wherein: Instantiating the destination container includes: instantiating the destination container on the destination device using a pre-distributed initial memory snapshot of the source container in the computing facility; and The memory includes additional instructions executable by the processor to cause the destination device to: receiving a differential memory snapshot from the source device, the differential memory snapshot representing a data difference between the initial memory snapshot and a current memory snapshot of the source container on the source device; applying the received differential memory snapshot to the destination container; and After applying the received differential memory snapshot, transmitting a command to the source device via the computer network, the command instructing the source device to suspend execution of the source container on the source device.

15. The destination device of claim 10, wherein: Instantiating the destination container includes: instantiating the destination container on the destination device using a pre-distributed initial memory snapshot of the source container in the computing facility; and The memory includes additional instructions executable by the processor to cause the destination device to: receiving a differential memory snapshot from the source device, the differential memory snapshot representing a data difference between the initial memory snapshot and a current memory snapshot of the source container on the source device; applying the received differential memory snapshot to the instantiated destination container; After applying the received differential memory snapshot, transmitting a command to the source device via the computer network, the command instructing the source device to suspend execution of the source container on the source device; and Transmitting the remote display output includes transmitting the remote display output to the source device after receiving data indicating confirmation that an additional differential memory snapshot of the source container does not exist on the source device.

16. A method performed in a computing system having a source device interconnected via a computer network to a computing facility having a plurality of destination devices, the method comprising: receiving, at a destination device, a request to migrate a source container to the destination device, the source container currently executing an application to generate a local display output of the application presented on the source device, the source container comprising a software package having the application in a file system, the software package being sufficient to complete execution of the application in an operating system of the source device to provide the local display output of the application on the source device; as well as In response to receiving the request from the source device, launching a virtual machine on the destination device, the virtual machine having an operating system compatible with an operating system of the source device; synchronizing between the destination device and the source device a list of handles utilized by the source container on the source device; instantiating, in the virtual machine launched on the destination device, a destination container using a copy of an image, a memory snapshot, and the synchronized handle list of the source container on the source device, the image comprising a software package having a copy of the application in a file system, the software package being sufficient to complete execution of the copy of the application in the operating system of the launched virtual machine on the destination device to generate a remote display output of the application; as well as After the destination container is instantiated, executing the copy of the application in the destination container to generate the remote display output of the application; as well as Remote display output of the application is transmitted via the computer network to be presented on the source device in place of the local display output generated by executing the application in a source container.

17. The method of claim 16, wherein: The list of handles is tracked in a data structure; and Synchronizing the handle list includes synchronizing a copy of the table on the source device and another copy of the table on the destination device.

18. The method of claim 16, wherein: The list of handles is tracked in a data structure; Synchronizing the handle list includes synchronizing a copy of the table on the source device and another copy of the table on the destination device; and The method further comprises: determining whether a handle corresponds to an entry in the synchronized table on the destination device; as well as In response to determining that the handle corresponds to an entry in the synchronized table on the destination device, information for the handle is retrieved from the entry in the table.

19. The method of claim 16, wherein: The list of handles is tracked in a data structure; Synchronizing the handle list includes synchronizing a copy of the table on the source device and another copy of the table on the destination device; and The method further comprises: determining whether a handle corresponds to an entry in the synchronized table on the destination device; as well as In response to determining that the handle does not correspond to any entry in the synchronized table on the destination device, information of the handle is retrieved from the source device via the computer network.

20. The method of claim 16, further comprising: receiving a differential memory snapshot from the source device, the differential memory snapshot representing a data difference between the memory snapshot and a current memory snapshot of the source container on the source device; as well as The received differential memory snapshot is applied to the destination container.

Citation Information

Cited By

  • Edge service active migration method based on mobility prediction

    CN116208608A

  • An Active Migration Method for Edge Services Based on Mobility Prediction

    CN116208608B