OpenSearch is an open-source search and analytics suite which serves as a centralized location to manage logs forwarded from other resources, such as databases and Droplets.
Forking a database cluster creates a new cluster from an existing cluster based on a specific point in time. Forking is a cluster-level action that replicates all databases, users, and other settings from the original cluster.
You can create a fork to preserve a cluster’s working state past the 7-day limit that DigitalOcean’s database restoration feature provides. However, using a fork gives you the flexibility to alter the configuration of the forked cluster. Forking a cluster is also a low-risk way of using your production data to test applications, move it between datacenter regions, or archive it for later analysis.
Creating a database from a backup is the same as forking a database in the control panel. To create a new database cluster based on a backup of an existing cluster, send a POST request to /v2/databases
. In addition to the standard database cluster attributes, the JSON body must include a key named backup_restore
with the name of the original database cluster and the timestamp of the backup to be restored.
To fork a database cluster, find the cluster on the Databases page and open its More menu.
In the More menu, click Fork database cluster to go to the Fork database cluster page.
On the Fork database cluster page, choose a state and choose a cluster configuration.
You can choose one of the following states:
Latest Transaction: This state creates a copy of your database as of the time you loaded the Fork database cluster page. It doesn’t include transactions which occurred after you loaded the page, so you may want to refresh to capture the most recent transactions in the fork.
Point in Time: This state creates a copy of your database as of a specific point in time within the last 7 days.
You can customize the forked cluster’s configuration using one of the following options:
Configuration plan: Choose any plan, regardless of the original cluster configuration.
Storage size: Choose any storage size, regardless of the original cluster configuration.
Choose a datacenter: Select the same datacenter or a different datacenter for the fork.
Review the monthly cost and hourly prorate for the new cluster. Billing stops when you destroy the cluster.
Choose a name for the forked cluster, between 3 and 63 characters. The name must be lowercase and may not contain spaces. All the databases and users are copied to the fork, including the required defaultdb
database and doadmin
user.
Click the Fork Database Cluster button to initiate the fork. A fork takes longer to provision than a new cluster as the nodes are created and the data is transferred.