Quick Start

Launch a fully managed database, message queue, or analytics engine on Exoscale. This quick start guide outlines the minimal steps required to initiate any DBaaS service via the CLI or the Portal.

Prerequisites

  • Exoscale CLI
    download the latest (≥ v1.45) binary for macOS, Linux or Windows from GitHub.
  • API Key/Secret
    configured via the CLI with exo config.
  • Exoscale Account
    sign in or register.

First Steps via CLI

This quick start guide will demonstrate how to create a first service via the CLI for Managed PostgreSQL, but the method is valid for all DBaaS service types.

Bootstrap Instructions

First, verify that the CLI is working correctly. You can do this by listing the DBaaS service types available with the command:

$ exo dbaas type list

┼────────────┼────────────────────┼─────────────────┼
│    NAME    │ AVAILABLE VERSIONS │ DEFAULT VERSION │
┼────────────┼────────────────────┼─────────────────┼
│ pg         │ 14, 15, 16, 1716│ opensearch │ 1, 22│ kafka      │ 3.8, 3.9           │ 3.8             │
│ valkey     │                    │ -               │
│ grafana    │                    │ -               │
│ mysql      │ 88┼────────────┼────────────────────┼─────────────────┼

Then per service, you can list the plans available:

$ exo dbaas type show pg --plans

┼──────────────────┼─────────┼────────┼─────────────┼────────────┼────────────┼
│       NAME       │ # NODES │ # CPUS │ NODE MEMORY │ DISK SPACE │ AUTHORIZED │
┼──────────────────┼─────────┼────────┼─────────────┼────────────┼────────────┼
│ startup-8        │ 14      │ 8.6 GB      │ 188 GB     │ true│ startup-64       │ 11269 GB       │ 805 GB     │ false│ startup-4        │ 12      │ 4.3 GB      │ 86 GB      │ true│ startup-32       │ 1834 GB       │ 537 GB     │ true│ startup-225      │ 124242 GB      │ 1.4 TB     │ false│ startup-16       │ 1417 GB       │ 376 GB     │ true│ startup-128      │ 116137 GB      │ 1.1 TB     │ false│ so-startup-64    │ 11269 GB       │ 2.1 TB     │ false│ so-startup-32    │ 1834 GB       │ 1.0 TB     │ false│ so-startup-225   │ 124242 GB      │ 7.2 TB     │ false│ so-startup-128   │ 116137 GB      │ 4.1 TB     │ false│ so-premium-64    │ 31269 GB       │ 2.1 TB     │ false│ so-premium-32    │ 3834 GB       │ 1.0 TB     │ false│ so-premium-225   │ 324242 GB      │ 7.2 TB     │ false│ so-premium-128   │ 316137 GB      │ 4.1 TB     │ false│ so-business-64   │ 21269 GB       │ 2.1 TB     │ false│ so-business-32   │ 2834 GB       │ 1.0 TB     │ false│ so-business-225  │ 224242 GB      │ 7.2 TB     │ false│ so-business-128  │ 216137 GB      │ 4.1 TB     │ false│ premium-8        │ 34      │ 8.6 GB      │ 188 GB     │ true│ premium-64       │ 31269 GB       │ 805 GB     │ false│ premium-4        │ 32      │ 4.3 GB      │ 86 GB      │ true│ premium-32       │ 3834 GB       │ 537 GB     │ true│ premium-225      │ 324242 GB      │ 1.4 TB     │ false│ premium-16       │ 3417 GB       │ 376 GB     │ true│ premium-128      │ 316137 GB      │ 1.1 TB     │ false│ hobbyist-2       │ 12      │ 2.1 GB      │ 8.6 GB     │ true│ cpu-startup-64   │ 13269 GB       │ 913 GB     │ false│ cpu-startup-32   │ 11634 GB       │ 698 GB     │ false│ cpu-startup-16   │ 1817 GB       │ 483 GB     │ false│ cpu-startup-128  │ 140137 GB      │ 1.2 TB     │ false│ cpu-premium-64   │ 33269 GB       │ 913 GB     │ false│ cpu-premium-32   │ 31634 GB       │ 698 GB     │ false│ cpu-premium-16   │ 3817 GB       │ 483 GB     │ false│ cpu-premium-128  │ 340137 GB      │ 1.2 TB     │ false│ cpu-business-64  │ 23269 GB       │ 913 GB     │ false│ cpu-business-32  │ 21634 GB       │ 698 GB     │ false│ cpu-business-16  │ 2817 GB       │ 483 GB     │ false│ cpu-business-128 │ 240137 GB      │ 1.2 TB     │ false│ business-8       │ 24      │ 8.6 GB      │ 188 GB     │ true│ business-64      │ 21269 GB       │ 805 GB     │ false│ business-4       │ 22      │ 4.3 GB      │ 86 GB      │ true│ business-32      │ 2834 GB       │ 537 GB     │ true│ business-225     │ 224242 GB      │ 1.4 TB     │ false│ business-16      │ 2417 GB       │ 376 GB     │ true│ business-128     │ 216137 GB      │ 1.1 TB     │ false┼──────────────────┼─────────┼────────┼─────────────┼────────────┼────────────┼

Create a First Service

The sequence below is shown for service pg as an example.

To create a first service, use the exo dbaas create command. The --help flag will give all the details on the usage:

$ exo dbaas create pg hobbyist-2 test-pg --pg-ip-filter 1.2.3.4/32 -z de-fra-1

Creating Database Service "test-pg"...
┼───────────────────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼
│   DATABASE SERVICE    │                                                                                                                                │
┼───────────────────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼
│ Zone                  │ de-fra-1                                                                                                                       │
│ Name                  │ test-pg                                                                                                                        │
│ Type                  │ pg                                                                                                                             │
│ Plan                  │ hobbyist-2                                                                                                                     │
│ Disk Size             │ 8.0 GiB                                                                                                                        │
│ State                 │ rebuilding                                                                                                                     │
│ Creation Date         │ 2022-06-09 08:26:13 +0000 UTC                                                                                                  │
│ Update Date           │ 2022-06-09 08:26:13 +0000 UTC                                                                                                  │
│ Nodes                 │ 1│ Node CPUs             │ 2│ Node Memory           │ 2.0 GiB                                                                                                                        │
│ Termination Protected │ true│ Maintenance           │ sunday (11:52:43)│ Version               │ 14│ Backup Schedule       │ 08:19                                                                                                                          │
│ URI                   │ postgres://avnadmin:xxxxx@test-pg-exoscale-980a712f-5c76-4ec4-a3bc-4e4e442deef2.aivencloud.com:21699/defaultdb?sslmode=require │
│ IP Filter             │ 1.2.3.4/32                                                                                                                     │
│ Components            │                                                                                                                                │
│                       │   pg          test-pg-exoscale-980a712f-5c76-4ec4-a3bc-4e4e442deef2.aivencloud.com:21699   route:dynamic   usage:primary       │
│                       │   pgbouncer   test-pg-exoscale-980a712f-5c76-4ec4-a3bc-4e4e442deef2.aivencloud.com:21700   route:dynamic   usage:primary       │
│                       │                                                                                                                                │
│ Users                 │ n/a                                                                                                                            │
┼───────────────────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼

PS1: from now on add the -z <zone> flag to manage this DB instance

PS2: your organization is limited to 3 DBaaS services total by default. Contact our Support team if you encounter the message Usage of resource 'dbaas' has been exceeded.

First Steps via Portal

This quick start guide will demonstrate how to create a first service via the Portal for Managed PostgreSQL, but the steps shown are valid for all DBaaS service types.

Add a Service in Portal

Navigate to the DBaaS view:

Exoscale DBaaS navigation menu

Select the service type you want to add from the ... menu at the top right header. For example, here for a Managed PostgreSQL

Exoscale DBaaS select service dropdown

Enter the name, and select the zone location and service plan. click on Create to launch the service.

Exoscale DBaaS add PostgreSQL service

Use Your Service in Portal

The connection details such as the user, password or certificate and URI are available from connection data table in the service detail page.

Exoscale DBaaS details PostgreSQL service

Copy these details into a database client or application to start interacting with the database and create tables.

Continue to the overview section for the next steps with DBaaS.

Next Steps

Learn more about the Exoscale DBaaS architecture and concepts in the overview. Then, prepare general topics in the operation section and specific ones in the how-to section.

You can then access the specific details of each service in the following sections: