# HA Database Guides (SQL and NoSQL)

**URL:** <https://forum.threefold.io/t/ha-database-guides-sql-and-nosql/4483>\
**Category:** Tutorials\
**Tags:** users, community, tutorial\
**Created:** [January 14, 2025, 3:12pm UTC](https://forum.threefold.io/t/ha-database-guides-sql-and-nosql/4483 "2025-01-14T15:12:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mik](https://forum.threefold.io/user_avatar/forum.threefold.io/mik/32/981_2.png) [@Mik](https://forum.threefold.io/u/Mik)\
**Post date:** [January 14, 2025, 3:12pm UTC](https://forum.threefold.io/t/ha-database-guides-sql-and-nosql/4483/1 "2025-01-14T15:12:37Z")

</div>

# HA Database Guides (SQL and NoSQL)

We added a new [CouchDB NoSQL synced databases guide](https://manual.grid.tf/documentation/system_administrators/terraform/advanced/terraform_couchdb_synced_databases.html) on the manual. This guide shows you all the steps necessary to set up 2-VM synced databases on the grid. The steps for a deployment with more than 2 VMs are the same, simply deploy more than 2 VMs and follow the guide!

## The Outcome, The Use Case

In short, any changes on one of the VM’s database gets reflected to the other VM’s database. This can be very useful if you want to achieve high availability storage for your deployments.

You could have an app running and getting in sync with the databases, and if one of the VMs goes down, you’d still have access to the database! A good practice would be to deploy the two VMs in different availability zones (AZ), e.g. one in Canada and one in the USA.

## Synced Databases Guide Links

As a reminder, we already had an SQL version of this guide, for MariaDB.

Now we also have the CouchDB NoSQL version of the guide.

- [MariaDB SQL Synced Database Guide](https://manual.grid.tf/documentation/system_administrators/terraform/advanced/terraform_mariadb_synced_databases.html)
- [CouchDB NoSQL Synced Database Guide](https://manual.grid.tf/documentation/system_administrators/terraform/advanced/terraform_couchdb_synced_databases.html)

## HA Series

These guides are part of the HA guide series to ensure users of the grid have the knowledge and tools to build highly available deployments.

As a reminder, we also have:

- A simple HA Kubernetes many control plane nodes guide:
  - [K3s High Availability (HA) Cluster on the Grid with Tailscale](https://forum.threefold.io/t/k3s-high-availability-ha-cluster-on-the-grid-with-tailscale/4481)

- A forum post providing insights into how to set up HA deployments:
  - [ThreeFold Grid Workloads](https://forum.threefold.io/t/threefold-grid-workloads/4466)

## Feedback and Suggestions

Have you ever tried any kind of HA deployments on the grid?

What other type of HA deployment would you want to explore? We’ll be happy to discuss the possibilities with you.

Thanks for reading and happy deployment 😃 !
