GCP Cloud SQL

Each Octopus Server node stores project, environment, and deployment-related data in a shared Microsoft SQL Server Database. Since this database is shared, it’s important that the database server is also highly available. To host the Octopus SQL database in GCP, there are two options to consider:

High Availability

The database is a critical component of Octopus Deploy. If the database is lost or destroyed all your configuration will be lost with it. We highly recommend leveraging a combination of backups and SQL Server’s high availability functionality.

We recommend using high availability with Cloud SQL to ensure the resilience and availability of your Octopus database. This will ensure that your data is replicated across multiple zones within your primary region. In the event of a failure of the primary zone Cloud SQL automatically switches to the secondary zone.

Disaster Recovery

For disaster recovery scenarios, we recommend leveraging a hot/cold configuration. To achieve this with Cloud SQL we recommend using Replication. All database transactions performed in the primary region will be asynchronously replicated to the secondary region.

In the event of a primary region failure we recommend following Google’s documentation to promote the replica. Following this you would need to re-configure your Octopus connection string to use the newly promoted replica.

When a disaster occurs, any data not synchronized will be lost. Depending on the replication speed, this could be up to a couple of minutes.

Help us continuously improve

Please let us know if you have any feedback about this page.

Send feedback

Page updated on Wednesday, May 22, 2024