Skip to content

Create and manage instances

Independent of the method you choose to create and manage an instance, there are common properties of a MariaDB instance.

With the instance name, you determine the friendly name for your instance.

With the MariaDB version, you determine which MariaDB version comes to play. STACKIT updates the MariaDB major version according to the releases of MariaDB with a reasonable delay for implementation. Maybe some versions are skipped as well. Read the Release notes for deprecation notices and announcements of new versions. For safety reasons, STACKIT will deprecate MariaDB versions, when they reach their EOL status. Furthermore, STACKIT applies minor updates for security reasons.

Select the plan which fits your workload. It is safe to start with a smaller flavor and change to a bigger one afterwards. Depending on the MariaDB version you have chosen, some plans are not available. A plan determines the number of nodes, vCPUs, RAM and storage size. For a detailed reference of available plans, read Service plans of MariaDB.

With the number of nodes, you can determine horizontal scaling and high availability. Horizontal scaling increases availability and read performance. The single plan (1 node) doesn’t feature horizontal scaling. A replica plan (3 nodes) offers horizontal scaling and thus achieves high availability.

Use casePlan
DevelopmentSingle (1 node)
Production (normal)Replica (3 nodes)

With the number of vCPUs, you determine how much computing power each node of your instance has. Follow Plan your MariaDB instance on how to find the best option for your workload.

With the RAM setting, you determine how much memory each node of your instance has. Follow Plan your MariaDB instance on how to find the best option for your workload.

With the disk size, you determine the size of the underlying storage. The smallest option is 10GB. You can safely apply this size and enlarge the disk afterwards by changing the plan.

MariaDB instances are vulnerable to situations of full storage. To prevent this, STACKIT’s MariaDB offers a parachute feature. It stops the database when a predefined disk usage threshold (in percent) is reached. With this setting, you define this threshold. You can practically deactivate this feature by defining 100% as threshold.

With the ACL entries, you control which source IPs are allowed to connect to your instance. Note that this is an additional security layer and does not replace the need for proper authentication and security best practices. There are two predefined entries: 193.148.160.0/19 and 45.129.40.0/21. They ensure that you can access your instance from STACKIT cloud services. If you want to access your instance from the public net, you need to add the client’s IPv4 address or subnet. The entries follow the CIDR notation. If you want to allow a single IP address (e.g. single host), then set 32as the subnet parameter. For example, to allow a host with the source IPv4 address of 93.229.84.137, add 93.229.84.137/32 as an ACL entry. At the moment, you cannot add IPv6 addresses.

To create an instance, first go to the STACKIT Portal and log in.

First, you need to determine which plan you need. The available plans depend on the chosen version. To get a list of available plans, execute:

Terminal window
stackit mariadb plans

Choose the properties for your new instance

Section titled “Choose the properties for your new instance”
FlagOptionsDefaultOptional
namemy-mariadb-instance
plan-idSee Service plans of MariaDB
version10.6, 10.1110.11x
aclIPv4 and net in CIDR notation193.148.160.0/19
45.129.40.0/21
45.135.244.0/22
192.214.174.229/32
192.214.176.140/32
x

You can also have a look at Service plans of MariaDB to learn more about the available plans.

To create your instance, execute the following command:

Terminal window
stackit mariadb instance create --name <name> --plan-id <plan-id> --version <version --acl <acl>

After executing the command you, need to confirm with y.

When the instance is created successfully, the CLI will return the instance ID:

Created instance for project "Test-Projekt-28-07-2025". Instance ID: 1226c9a1-62cd-4ec1-bf42-7b15d54c00d9

Create an instance with minimum flags:

Terminal window
stackit mariadb instance create --name my-mariadb-instance --plan-id ddf1b3f5-c559-4869-83ad-72264655132c

To view an instance, execute with the following parameters:

ArgumentDescription
INSTANCE_IDInstance ID of the instance you want to query
Terminal window
stackit mariadb instance describe <INSTANCE_ID>

Example output:

ID │ 1226c9a1-62cd-4ec1-bf42-7b15d54c00d9
─────────────────────┼───────────────────────────────────────────────────────────────────────────────────────
NAME │ my-mariadb-instance
─────────────────────┼───────────────────────────────────────────────────────────────────────────────────────
LAST OPERATION TYPE │ create
─────────────────────┼───────────────────────────────────────────────────────────────────────────────────────
LAST OPERATION STATE │ succeeded
─────────────────────┼───────────────────────────────────────────────────────────────────────────────────────
PLAN ID │ ddf1b3f5-c559-4869-83ad-72264655132c
─────────────────────┼───────────────────────────────────────────────────────────────────────────────────────
ACL │ 193.148.160.0/19,45.129.40.0/21,45.135.244.0/22,192.214.174.229/32,192.214.176.140/32

You can edit the following properties of an instance: acl, plan and version. To get a reference to these flags, have a look at Create an instance.

ArgumentDescription
INSTANCE_IDInstance ID of the instance you want to query
FlagsDatatypeUnit
aclArray of strings
plan-idString-
plan-nameString-
versionString-

To edit the instance, execute the following command:

Terminal window
stackit mariadb instance update <INSTANCE_ID> --<Flag Name> <Flag Value>
Terminal window
stackit mariadb instance update 8db6a0f2-2b93-43f3-be54-464ee5a9fbed --plan-id ddf1b3f5-c559-4869-83ad-72264655132c

You can delete an instance when it operates in its READY-state. After executing this command, the operation cannot be undone. To delete an instance, execute:

ArgumentDescription
INSTANCE_IDInstance ID of the instance you want to query
Terminal window
stackit mariadb instance delete <INSTANCE_ID>

You get the following output:

Deleted instance "my-MariaDB-instance"