Onboard a single instance manually

Use this guide to connect one PostgreSQL or MySQL instance to DBO by entering its endpoint and database credentials in the Cast AI console. Use this path when an instance is not available via automatic cloud account discovery.

For automatic discovery setup paths that create cloud-provider integrations, see Cloud connection choices in Getting started.

Before you start

Prepare the following:

  • A supported PostgreSQL or MySQL instance with its Instance name, Host, and Port.
  • Network access from the DBO deployment to the database's host and port.
  • A Kubernetes cluster where you can deploy DBO with kubectl and helm.
  • A set of read-only database credentials for use with Performance Advisor.

For engine-specific agent permissions, see Access requirements and permissions.

Connect the instance

Start manual onboarding

In the Cast AI console, select Database in the left navigation. On the Overview page, click + Connect instance.

In the How would you like to connect? dialog, select Onboard a single instance manually.

Configure the instance

Select Postgres or MySQL under Select your database engine.

Enter an Instance name to identify the instance in DBO. Under Endpoint configuration, enter the database's Host and Port. The UI pre-fills port 5432 for PostgreSQL and port 3306 for MySQL.

Select Read Only to mark this endpoint as a read replica. When you enable Database proxy, you can route read-only application traffic to read replicas through a dedicated endpoint.

Add another endpoint with + Add endpoint, or continue with Next.

Manual onboarding dialog with PostgreSQL selected and the Instance name, Host, Port, and Read Only fields visible

Select an engine and provide the instance name, host, and port.

Choosing Onboard a single instance manually opens the manual connection form.

Configure optimization and install DBO

Review optimization features and user permissions

In the Enable Database optimization dialog, select Performance advisor to start with. For instructions on enabling other supported features, see the links at the end of this guide.

On the Script tab, enter the credentials of the read-only database user that the agent should use under Configure user permission. Use the dedicated guidance for your database engine and role.

Use Installing the agent for PostgreSQL for PostgreSQL, or Installing the agent for MySQL for MySQL.

Select an installation method

Choose the method that matches your deployment:

Copy the install command that the console generates for the instance. Run it in your cloud shell or terminal.

The command installs DBO in the castai-db-optimizer namespace in your cluster. Use the version and parameters the console generates for your instance rather than copying another instance's generated command.

Verify the database connection

Check DBO deployment health

Check that the DBO pods are running:

kubectl get pods -n castai-db-optimizer

In the console, inspect the instance dashboard's status row to check the status of the components you enabled.

Confirm Performance Advisor

In the console, use Select database server to find the connected instance and check that the Advisor agent status is Active.

Performance Advisor does not require proxy routing. The agent collects performance data directly from the monitored database, so you do not need to send application traffic through DBO for this check.

Confirm Database Proxy

Complete this step only if you enabled Database proxy. Use the DBO endpoint configuration to connect your application to the proxy and perform its normal database operations.

For endpoint and connection-string guidance, see Connecting client applications.

In the console, check that the Database proxy status changes to Active when the application connects.

Next steps

Once deployment and connection checks succeed, monitor Performance Advisor results. If caching or connection pooling fits your workload, enable them next.


Did this page help you?