# US 2021/0081355 A1 · Optimization of resources providing public cloud services based on adjustable inactivity monitor and instance archiver

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

- Number: US 2021/0081355 A1
- Document ID: US20210081355A1
- Status: Published application
- Kind: A1
- Application number: 17/003,630
- Filed: 2020-08-26
- Published: 2021-03-18
- Earliest claimed: 2019-09-13
- Assignees: Oracle International Corporation
- Applicants: Oracle International Corporation
- Inventors: Todd A. Bottger; Hochak Hung; Kumar Rajamani
- Web page: https://patentgrep.com/patent/US20210081355A1

## CPC

- H04L 67/10: in which an application is distributed across nodes in the network (software deployment G06F8/60; multiprogramming arrangements G06F9/46)
- G06F 16/113: {Details of archiving (lifecycle management in storage systems G06F3/0649; point-in-time backing up or restoration of persistent data G06F11/1446)}
- G06F 16/162: {Delete operations (erasing in storage systems G06F3/0652)}
- G06F 16/21: Design, administration or maintenance of databases
- H04L 67/06: specially adapted for file transfer, e.g. file transfer protocol [FTP]
- 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]
- H04L 67/535: {Tracking the activity of the user (network monitoring arrangements H04L43/00; recording of computer activity G06F11/34)}
- 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

Techniques described herein automatically check for persistently inactive instances, based on defined metrics, and auto-archive such instances to lower-cost cloud resources. An inactivity time threshold is dynamically adjustable to a longer or shorter time period based on current load running on limited/more expensive resources to more aggressively or less aggressively archive the inactive instances, thus enabling additional active instances to run on the limited/more expensive resources and supporting more total users.

## Claims

### Claim 1

A method comprising:
monitoring activity against a pluggable database (PDB) contained in a container database management system (CDBMS), said CDBMS comprising a plurality of PDBs including said PDB;
based on said activity against said PDB, determining whether one or more first inactivity criteria are satisfied;
in response to determining that said one or more first inactivity criteria are satisfied based on said activity:
unplugging said PDB from a host container database (CDB);
generating a descriptor file containing information to allow said PDB to subsequently plug into said host CDB;
combining said descriptor file and data files associated with said PDB into an archive file;
transferring said archive file to a tier-two storage;
deleting said data files from said host CDB, thereby freeing up tier-one storage used by said PDB.

### Claim 2 (depends on 1)

The method of claim 1, wherein said one or more first inactivity criteria comprise no active connection to said PDB for at least a first period of time.

### Claim 3 (depends on 2)

The method of claim 2, wherein said first period of time is automatically adjusted based on CDB load.

### Claim 4 (depends on 1)

The method of claim 1, wherein said tier-one storage is a more expensive storage than said tier-two storage.

### Claim 5 (depends on 1)

The method of claim 1, further comprising, prior to unplugging said PDB from said host CDB, causing to generate an archival warning.

### Claim 6 (depends on 1)

The method of claim 1, further comprising:
based on said activity against said PDB, determining whether one or more second inactivity criteria are satisfied;
in response to determining that said one or more second inactivity criteria are satisfied based on said activity:
deleting said archive file from said tier-two storage, thereby freeing up said tier-two storage used by said PDB.

### Claim 7 (depends on 6)

The method of claim 6, wherein said one or more second inactivity criteria comprise said PDB being archived for at least a second period of time.

### Claim 8 (depends on 6)

The method of claim 6, further comprising, prior to deleting said archive file, causing to generate a delete warning.

### Claim 9 (depends on 1)

The method of claim 1, further comprising:
based on said activity against said PDB, determining whether one or more restart criteria are satisfied;
in response to determining that said one or more restart criteria are satisfied based on said activity:
importing said archive file to said host CDB;
uncompressing said archive file to configure another PDB that is plugged into said host CDB.

### Claim 10 (depends on 9)

The method of claim 9, wherein said one or more restart criteria comprise receiving a restart trigger after said archive file is transferred to said tier-two storage but before said archive file is deleted from said tier-two storage.

### Claim 11

One or more non-transitory computer-readable storage media storing one or more sequences of program instructions which, when executed by one or more computing devices, cause:
monitoring activity against a pluggable database (PDB) contained in a container database management system (CDBMS), said CDBMS comprising a plurality of PDBs including said PDB;
based on said activity against said PDB, determining whether one or more first inactivity criteria are satisfied;
in response to determining that said one or more first inactivity criteria are satisfied based on said activity:
unplugging said PDB from a host container database (CDB);
generating a descriptor file containing information to allow said PDB to subsequently plug into said host CDB;
combining said descriptor file and data files associated with said PDB into an archive file;
transferring said archive file to a tier-two storage;
deleting said data files from said host CDB, thereby freeing up tier-one storage used by said PDB.

### Claim 12 (depends on 11)

The one or more non-transitory computer-readable storage media of claim 11, wherein said one or more first inactivity criteria comprise no active connection to said PDB for at least a first period of time.

### Claim 13 (depends on 12)

The one or more non-transitory computer-readable storage media of claim 12, wherein said first period of time is automatically adjusted based on CDB load.

### Claim 14 (depends on 11)

The one or more non-transitory computer-readable storage media of claim 11, wherein said tier-one storage is a more expensive storage than said tier-two storage.

### Claim 15 (depends on 11)

The one or more non-transitory computer-readable storage media of claim 11, wherein said one or more sequences of said program instructions which, when executed by said one or more computing devices, further cause, prior to unplugging said PDB from said host CDB, causing to generate an archival warning.

### Claim 16 (depends on 11)

The one or more non-transitory computer-readable storage media of claim 11, wherein said one or more sequences of said program instructions which, when executed by said one or more computing devices, further cause:
based on said activity against said PDB, determining whether one or more second inactivity criteria are satisfied;
in response to determining that said one or more second inactivity criteria are satisfied based on said activity:
deleting said archive file from said tier-two storage, thereby freeing up said tier-two storage used by said PDB.

### Claim 17 (depends on 16)

The one or more non-transitory computer-readable storage media of claim 16, wherein said one or more second inactivity criteria comprise said PDB being archived for at least a second period of time.

### Claim 18 (depends on 16)

The one or more non-transitory computer-readable storage media of claim 16, wherein said one or more sequences of said program instructions which, when executed by said one or more computing devices, further cause, prior to deleting said archive file, causing to generate a delete warning.

### Claim 19 (depends on 11)

The one or more non-transitory computer-readable storage media of claim 11, wherein said one or more sequences of said program instructions which, when executed by said one or more computing devices, further cause:
based on said activity against said PDB, determining whether one or more restart criteria are satisfied;
in response to determining that said one or more restart criteria are satisfied based on said activity:
importing said archive file to said host CDB;
uncompressing said archive file to configure another PDB that is plugged into said host CDB.

### Claim 20 (depends on 19)

The one or more non-transitory computer-readable storage media of claim 19, wherein said one or more restart criteria comprise receiving a restart trigger after said archive file is transferred to said tier-two storage but before said archive file is deleted from said tier-two storage.
