Resizing a Database Cluster
The Arvancloud managed database lets you easily resize your cluster if you need to after creating it, and allocate a new amount of CPU, RAM, and disk to it.
To prevent possible data loss, the disk size can't be reduced.
In ordinary systems, resizing happens instantly or quickly. In this case, if there's a database on the server, it may cause disruption to the service or to restarting the database because the server and the database engine restart. At best, this method comes with a few minutes of interruption or downtime, during which the database can't be accessed.
To solve this challenge, the Arvancloud managed database uses a safe method:
- First, a new database with the size you want is created.
- Data is moved to the new database by restoring backups and then syncing.
- After syncing is complete, the original database is put in read-only mode for a few seconds, and the new database replaces it.
This mechanism guarantees that:
- No disruption occurs in users' service.
- Data integrity is fully maintained.
- Resizing is done without long downtime.
Note that the time this process takes depends on the amount of data.
To do this, go to All Databases in the Cloud Database panel and select Resize from the actions menu next to the database cluster you want.
On the new page that opens, the cluster's current plan and size are shown, and you can choose the new plan and size for your resources.
Disabled plans and sizes are unavailable either because their disk is smaller than the current size or temporarily.
In the same section, you can also change a plan's disk size to the amount you want with Change Disk Size.
At the end of this section, the estimated monthly cost of the new plan and size is shown. If you approve the settings, click Resize.
After the database cluster is resized, the cluster's details and how you access it don't change.
If you need to resize the cluster to a plan and size in another data center, you can back up your cluster and restore it in the data center you want. In this case, you can also choose a disk size smaller than the current size. Note that in this case, if the disk size is less than the amount of data, the restore fails.
The Backup guide helps you with this.