Skip to main content

Creating a Database Cluster

With the Arvancloud Cloud Database, you can easily create a database cluster with the resources you want in a few clicks.

To create a new cluster, go to the Cloud Database menu in the Arvancloud panel and then All Databases.

Click Create Database to start creating a new cluster.

Step 1: Choose a Data Center​

First, choose a data center to host your database cluster. For better performance and speed, we recommend choosing the data center closest to the application connected to the database.

Step 2: Choose the Database Engine​

In this section, you can choose the engine you want for the database.

Currently, you can create database clusters with the MySQL and PostgreSQL engines, and in the future, creating clusters with MongoDB and Redis will also be possible.

Step 3: Choose the Database Plan​

In the database plan section, you can choose the RAM, CPU, and disk of your cluster's nodes.

You can change the amount of resources after creating the database cluster. MySQL databases can be resized through the panel, and PostgreSQL databases by submitting a support ticket.

Resizing the Disk​

In the same step, by clicking Change Disk Size, you can change the selected plan's disk by entering the value you want.

Reducing the disk size isn't possible, because it would cause data loss and problems in the database's performance; however, in future versions of the Arvancloud Cloud Database, you'll be able to increase the disk size after creating the database cluster.

Step 4: Standby Node Status​

Standby nodes store a copy of the primary node's data and are always in sync with it, so if a problem occurs on the primary node, they replace it. This replacement happens as fast as possible and with minimal downtime. When creating a new cluster, you can add one or two standby nodes to it.

All Arvancloud Cloud Database clusters have an automatic failover mechanism and replace the primary node with another node when an error occurs on it. However, to achieve high availability and reduce service recovery time, it is recommended that you add a standby node to your cluster.

If you don't add a standby node to the cluster and the primary node fails, the cluster is unavailable until its replacement node becomes active. This time varies based on the amount of data in your cluster, and the larger the data, the longer cluster recovery takes.

To ensure uninterrupted access and reliability, in clusters with at least one standby node, the Arvancloud Cloud Database uses anti-affinity to deploy the primary and standby nodes. This means each node is deployed on a separate physical server to prevent a single point of failure. This way, if one of the servers in the infrastructure has a problem, the cluster keeps working without disruption.

Imagine you've created a database cluster with one standby node. With anti-affinity, the cluster's primary node is deployed on server 1 and the standby node on server 2. So if server 1 becomes unavailable for any reason, the database cluster keeps serving without problems, because the standby node is active on another server.

Final Step: Review the Cluster Details​

Finally, choose a name for your cluster. Then review the cluster's details and, if you approve, click Create Database Cluster.

After that, you can see the cluster creation steps on the All Databases page.

You can also click the cluster to get its connection details.