# US 2021/0084103 A1 · Live Migration Of Clusters In Containerized Environments

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0084103 A1
- Document ID: US20210084103A1
- Status: Published application
- Kind: A1
- Application number: 16/579,945
- Filed: 2019-09-24
- Published: 2021-03-18
- Earliest claimed: 2019-09-13
- Assignees: Google Inc.
- Applicants: Google LLC
- Inventors: Daniel Veritas Smith
- Web page: https://patentgrep.com/patent/US20210084103A1

## CPC

- H04L 67/1097: 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]
- G06F 9/45533: {Hypervisors; Virtual machine monitors}
- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F 9/485: {Task life-cycle, e.g. stopping, restarting, resuming execution (G06F9/4881 takes precedence)}
- G06F 9/5077: {Logical partitioning of resources; Management or configuration of virtualized resources (specific details on emulation or internal functioning of virtual machines G06F9/455)}
- G06F 9/5088: {involving task migration}
- G06F 11/1479: Generic software techniques for error detection or fault masking
- G06F 16/285: {Clustering or classification}
- H04L 43/0817: by checking functioning
- H04L 67/10: in which an application is distributed across nodes in the network (software deployment G06F8/60; multiprogramming arrangements G06F9/46)
- H04L 67/1008: based on parameters of servers, e.g. available memory or workload (monitoring of computer activity G06F11/30)
- H04L 67/1031: Controlling of the operation of servers by a load balancer, e.g. adding or removing servers that serve requests
- H04L 67/1034: Reaction to server failures by a load balancer
- H04L 67/60: Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources (admission control or resource allocation H04L47/70)
- G06F 2009/45562: {Creating, deleting, cloning virtual machine instances}
- G06F 2009/4557: {Distribution of virtual machine instances; Migration and load balancing}
- G06F 2009/45591: {Monitoring or debugging support}
- G06F 2009/45595: {Network integration; Enabling network access in virtual machine instances}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

The technology provides for live migration from a first cluster to a second cluster. For instance, when requests to one or more cluster control planes are received, a predetermined fraction of the received requests may be allocated to a control plane of the second cluster, while a remaining fraction of the received requests may be allocated to a control plane of the first cluster. The predetermined fraction of requests are handled using the control plane of the second cluster. While handling the predetermined fraction of requests, it is detected whether there are failures in the second cluster. Based on not detecting failures in the second cluster, the predetermined fraction of requests allocated to the control plane of the second cluster may be increased in predetermined stages until all requests are allocated to the control plane of the second cluster.

## Claims

### Claim 1

A method for migrating from a first cluster to a second cluster, comprising:
receiving, by one or more processors, requests to two or more cluster control planes, wherein the two or more cluster control planes include a control plane of the first cluster and a control plane of the second cluster, wherein the received requests include requests from a workload running in the first cluster, wherein the requests from the workload are intercepted by a sidecar container injected in the first cluster and routed to cluster bridging aggregators of the second cluster, wherein the first cluster and the second cluster are operated on different clouds;
allocating, by the one or more processors, a predetermined fraction of the received requests to the control plane of the second cluster, and a remaining fraction of the received requests to the control plane of the first cluster;
handling, by the one or more processors, the predetermined fraction of requests using the control plane of the second cluster;
detecting, by the one or more processors, whether there are failures in the second cluster while handling the predetermined fraction of requests; and
increasing, by the one or more processors, based on not detecting failures in the second cluster, the predetermined fraction of requests allocated to the control plane of the second cluster in predetermined stages until all received requests are allocated to the control plane of the second cluster.

### Claim 2

(canceled)

### Claim 3

(canceled)

### Claim 4 (depends on 1)

The method of claim 1, wherein the allocation of the received requests are performed in a plurality of predetermined stages, wherein the requests are directed to either the first cluster or the second cluster based on one or more of: user-agent, user account, user group, object type, resource type, a location of the object, or a location of a sender of the request.

### Claim 5 (depends on 1)

The method of claim 1, further comprising:
joining, by the one or more processors, one or more databases in the control plane of the second cluster to a quorum including one or more databases in the control plane of the first cluster.

### Claim 6 (depends on 1)

The method of claim 1, further comprising:
synchronizing, by the one or more processors, one or more databases in the control plane of the second cluster with one or more databases in the control plane of the first cluster, wherein the first cluster and the second cluster are operated on different clouds.

### Claim 7 (depends on 1)

The method of claim 1, further comprising:
allocating, by the one or more processors, a predetermined fraction of object locks to one or more controllers of the second cluster, and a remaining fraction of object locks to one or more controllers of the first cluster;
actuating, by the one or more processors, objects locked by the one or more controllers of the second cluster;
detecting, by the one or more processors, whether there are failures in the second cluster while actuating the objects locked;
increasing, by the one or more processors based on not detecting failures in the second cluster, the predetermined fraction of object locks allocated to the one or more controllers of the second cluster.

### Claim 8 (depends on 1)

The method of claim 1, further comprising:
determining, by the one or more processors, that all received requests are allocated to the control plane of the second cluster;
deleting, by the one or more processors based on the determination, the control plane of the first cluster.

### Claim 9 (depends on 1)

The method of claim 1, further comprising:
stopping, by the one or more processors based on detecting one or more failures in the second cluster, allocation of the received requests to the control plane of the second cluster.

### Claim 10 (depends on 1)

The method of claim 1, further comprising:
generating, by the one or more processors based on detecting one or more failures in the second cluster, output including information on the detected failures.

### Claim 11 (depends on 1)

The method of claim 1, further comprising:
decreasing, by the one or more processors based on detecting failures in the second cluster, the predetermined fraction of requests allocated to the control plane of the second cluster until all received requests are allocated to the control plane of the first cluster.

### Claim 12 (depends on 1)

The method of claim 1, further comprising:
determining, by the one or more processors, that all received requests are allocated to the control plane of the first cluster;
deleting, by the one or more processors based on the determination, the second cluster.

### Claim 13 (depends on 1)

The method of claim 1, further comprising:
scheduling, by the one or more processors, a pod in the second cluster;
recording, by the one or more processors, states of a pod in the first cluster;
transmitting, by the one or more processors, the recorded states of the pod in the first cluster to the pod in the second cluster.

### Claim 14 (depends on 13)

The method of claim 13, further comprising:
pausing, by the one or more processors, execution of workloads by the pod in the first cluster;
copying, by the one or more processors, changes in states of the pod in the first cluster since recording the states of the pod in the first cluster;
transmitting, by the one or more processors, the copied changes in states to the pod in the second cluster;
resuming, by the one or more processors, execution of workloads by the pod in the second cluster;
forwarding, by the one or more processors, traffic directed to the pod in the first cluster to the pod in the second cluster;
deleting, by the one or more processors, the pod in the first cluster.

### Claim 15 (depends on 1)

The method of claim 1, further comprising:
determining, by the one or more processors, that a first worker node in the first cluster has one or more pods to be moved to the second cluster;
preventing, by the one or more processors, the first worker node in the first cluster from adding new pods;
moving, by the one or more processors, some of the one or more pods in the first worker node to one or more existing worker nodes in the second cluster;
determining, by the one or more processors, that there is no more capacity in the existing worker nodes in the second cluster;
creating, by the one or more processors, one or more additional worker nodes in the second cluster;
moving, by the one or more processors, the remaining one or more pods in the first worker node to the additional worker nodes in the second cluster;
determining, by the one or more processors, that the first worker node in the first cluster no longer has pods to be moved to the second cluster;
deleting, by the one or more processors, the first worker node in the first cluster.

### Claim 16 (depends on 13)

The method of claim 13, further comprising:
receiving, by the one or more processors, requests to one or more workloads, wherein the one or more workloads include workloads running in the first cluster and workloads running in the second cluster;
allocating, by the one or more processors using at least one global load balancer, the received requests to the one or more workloads between the workloads running in the first cluster and the workloads running in the second cluster.

### Claim 17 (depends on 1)

The method of claim 1, further comprising:
determining, by the one or more processors, that a pod running in the second cluster references a storage of the first cluster;
creating, by the one or more processors, a storage in the second cluster, wherein the storage of the first cluster and the storage of the second cluster are located at different locations;
reading, by the one or more processors using a storage driver, the storage of the second cluster for data related to the pod in the second cluster;
reading, by the one or more processors using the storage driver, the storage of the first cluster for data related to the pod in the second cluster.

### Claim 18 (depends on 17)

The method of claim 17, further comprising:
writing, by the one or more processors, changes made by the pod in the second cluster to the storage of the second cluster;
copying, by the one or more processors, data unchanged by the pod from the storage of the first cluster to the storage of the second cluster.

### Claim 19

A system for migrating from a first cluster to a second cluster, comprising:
one or more processors configured to:
receive requests to two or more cluster control planes, wherein the two or more cluster control planes include a control plane of the first cluster and a control plane of the second cluster, wherein the received requests include requests from a workload running in the first cluster, wherein the requests from the workload are intercepted by a sidecar container injected in the first cluster and routed to cluster bridging aggregators of the second cluster, wherein the first cluster and the second cluster are operated on different clouds;
allocate a predetermined fraction of the received requests to the control plane of the second cluster, and a remaining fraction of requests to the control plane of the first cluster;
handle the predetermined fraction of requests using the control plane of the second cluster;
detect whether there are failures in the second cluster while handling the predetermined fraction of requests; and
increase, based on not detecting failures in the second cluster, the predetermined fraction of requests allocated to the control plane of the second cluster in predetermined stages until all received requests are allocated to the control plane of the second cluster.

### Claim 20 (depends on 19)

The system of claim 19, wherein the first cluster and the second cluster are at least one of: operating different software versions, operating at different locations, operating on different clouds provided by different cloud providers, operating on different clouds where at least one is a user's on-premise datacenter, or connected to different networks.
