# Resource Usage

## Calculate disk requirements

The requested disk space stores all the data that MariaDB is working with, including database logs and binary log files. Each MariaDB instance contains storage of the configured size. <code class="expression">space.vars.ionos\_cloud</code> manages and stores the applications and operating system independently from the configured storage.

MariaDB rejects further write requests if the disk exceeds the storage limit. Ensure that you order enough storage to keep the MariaDB cluster operational. You can monitor the storage usage in the DCD.

You can also verify if the tables are oversized. For more information, refer to the [<mark style="color:blue;">MariaDB Documentation</mark>](https://mariadb.com/kb/en/information-schema-tables-table/#view-tables-in-order-of-size). Bloated tables can consume space, so we recommend diagnosing the cause and reclaiming the free space. For more information, see [<mark style="color:blue;">Diagnose Table Bloating</mark>](/cloud/databases/mariadb/troubleshooting/diagnose-table-bloating.md).

## Log files

Database log files and binary log files are stored on the same disk as the database. DBaaS deletes older log files automatically with the `expire_logs_days` in a typical operation mode. The older files are deleted after a retention period of seven days. For more information, refer to the [<mark style="color:blue;">MariaDB Documentation</mark>](https://mariadb.com/kb/en/using-and-maintaining-the-binary-log/).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ionos.com/cloud/databases/mariadb/overview/resource-usage.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
