Set Up a MariaDB Cluster
Last updated
Last updated
Before setting up a database, ensure that you are working within a provisioned Virtual Data Center (VDC) that contains at least one VM from which to access the database. The VM you create is counted against the quota allocated in your contract.
Database Manager is available only for contract administrators, owners, and users with Access and manage DBaaS privileges. You can set the privilege via the DCD group privileges. For more information, see Manage User Access.
To create a MariaDB cluster, follow these steps:
Log in to the DCD with your username and password.
Go to Menu > Databases > MariaDB.
Click Create cluster to create a new MariaDB cluster.
Enter the following details in the Create cluster window:
Result: The Estimated costs will be displayed based on the input. It is exclusive and certain variables like traffic and backup are not considered.
Click Save to create the MariaDB cluster.
Result: Your MariaDB Cluster is now created. The STATE is set to CREATING when the operation is in progress.
To define cluster properties, specify the following:
Cluster Name: Enter an appropriate name for your MariaDB cluster.
Cluster Version: Select a version of MariaDB from the drop-down list. IONOS only supports Long-Term Support (LTS) versions, starting from MariaDB 10.6.
Instances: Enter the number of MariaDB nodes you want in the cluster. One MariaDB node always manages the data of exactly one database cluster. You can also use the arrows to increase or decrease the number of nodes. Replication is possible only when you define more than one node.
Note: Here, you will have a primary node and one or more standby nodes that run a copy of the active database, so you have n-1 standby nodes in the cluster.
Location: Select a location of your preference from the drop-down list.
Replication Type: The replication type is Asynchronous by default for MariaDB. You will see this option only upon selecting more than one node (instance). In an asynchronous mode, the primary MariaDB node does not wait for a replica to indicate that the data has been written. The cluster can lose some committed transactions to ensure availability.
CPU Type: The CPU type is set to Dedicated Core, by default.
To select the number of resources that you want to associate with the MariaDB cluster, specify the following:
Number of CPUs (per instance): Increase or decrease the number of CPUs using the slider.
RAM Size (per instance): Increase or decrease the size of the RAM using the slider to suit your needs.
Storage Type: Currently, IONOS supports only SSD Premium, which is selected by default.
Storage Size: Enter the storage size, in Gigabytes (GB), either manually or use the arrows to increase or decrease the storage size accordingly based on your needs.
Datacenter: Select a data center from the drop-down list to associate it with the MariaDB cluster. The available data centers in the drop-down list vary according to the chosen Location. For more information, see Define cluster properties.
Datacenter LAN: Select a LAN from the drop-down list for the data center.
Private IP: Enter the private IP or subnet using the available Private IPs.
Note: To know your private IP address/Subnet, you need to:
Create a single server connected to an empty private LAN and check the IP assigned to the respective NIC in the selected LAN. The DHCP in that LAN always uses a /24 subnet, so you must reuse the first 3 octets to reach your database.
To prevent a collision with the DHCP IP range, it is recommended to use IP addresses ending between x.x.x.3/24 and x.x.x.10/24 (which are never assigned by DHCP).
If you have disabled DHCP on your private LAN, you must discover the IP address on your own.
Your chosen start time (UTC) plus four hours is the maintenance time.
Day: Select a day from the drop-down list to set a day for maintenance.
Note: We recommend choosing the day and time appropriately because the maintenance occurs in a 4-hour-long window.
The credentials of any user who has previously been created in the backup will be overwritten.
Username: Enter a username to provide access to the MariaDB cluster for the respective user.
Password: Enter a password for the respective user.
Start Time (UTC): Enter a time using the pre-defined format (hh:mm:ss) to schedule the maintenance task. You can also click the icon to set a time.