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.
doctl
, you need to provide values for the --engine
, --region
, and --size
flags. Use the doctl databases options engines
, doctl databases options regions
, and doctl databases options slugs
commands, respectively, to get a list of available values.engine
, region
, and size
fields, which specify the database’s engine, its datacenter, and its configuration (number of CPUs, amount of RAM, and hard disk space). Use the /v2/databases/options
endpoint to get a list of available values.You can create an OpenSearch database cluster from the Create menu by selecting Databases. This takes you to the Create a Database page.
In the Choose a datacenter section, select the datacenter for your database cluster.
This page lists the datacenters in which you currently have the most resources. The number of resources you have in each datacenter is listed to the right as X resources. Hover over this text to see the specific resources you have in that datacenter.
For the best performance, create your database in the same datacenter as your other DigitalOcean resources.
In the Choose a database engine section, choose OpenSearch.
We currently support OpenSearch v1 and v2. You cannot change the OpenSearch version after creating a cluster.
In the Choose a cluster configuration section, select the machine type and the number and size of the database nodes.
You can also choose 1 or 3 nodes.
Each option lists its combined monthly cost, equivalent hourly cost, and node specifications. For more options, click See all plans.
After creation, you can increase the number or size of database nodes at any time. However, because of data integrity risks, you cannot downsize nodes.
In the Choose a storage size section, you can specify the storage size by clicking the up or down arrow or by entering your desired storage amount, in increments of 10 GB, up to the maximum listed in the storage range. Each 10 GB of storage you add costs an additional $2 per month.
You can increase your storage at any time. However, because of data integrity risks, you cannot reduce the amount of added storage in a cluster.
In this section, enter the following information:
Choose a name: Use the automatically-generated name for the database or choose a custom name. Names must be unique, be between 3 and 63 characters long, and only contain alphanumeric characters, dashes, and periods.
Select a project: Use the default project or choose another one.
Tags: Add a tag in the text box and press enter. Tags can only contain letters, numbers, colons, dashes, and underscores.
After creation, you can edit the database’s tags or move it to another project; however, you can’t rename it.
Click the Create a Database Cluster button.
Clusters typically take five minutes or more to provision, but you can complete important configuration tasks such as restricting inbound connections while the cluster is provisioning.