Cloudogu EcoSystem Docs
Software version

Configuration of the MySQL Dogu

Prerequisite

Configuration options

The MySQL-Dogu is configured via the registry. There are several ways to configure values in the registry. In short you can:

  1. configure a dogu with kubectl edit configmap mysql-config (recommended)
  2. update the configuration values using a blueprint

Configuration

All configuration keys for MySQL settings have the key prefix /config/mysql/. MySQL provides the following settings:

logging behavior
  • Configuration key path: logging/root
  • Content: Modifies the logging behavior of the MySQL Docker container. This value becomes active only after container restart.
  • Data type: String
  • Valid values: ERROR, WARN, INFO, DEBUG
  • Default value: ERROR
  • See logging_en.md
Physical memory limit
  • Configuration key path: container_config/memory_limit
  • Content: Limits the memory (RAM) of the MySQL Docker container. 0b will disable swapping. If this value is set to a non-zero value, 80% of the memory is mapped to MySQL's main system variable innodb_buffer_pool_size. Otherwise, innodb_buffer_pool_size receives 512 MB of RAM by default. To successfully apply this value, the MySQL container must be re-created using cesapp recreate.
  • Data type: Binary memory specification.
  • Valid values: Integer followed by [b,k,m,g] (byte, kibibyte, mebibyte, gibibyte)
  • Example: 1750m = 1750 MebiByte
Physical swap limit
  • Configuration key path: container_config/swap_limit
  • Content: Limits the swap of the MySQL Docker container. 0b will disable swapping.
  • Data type: Binary storage specification.
  • Valid values: Integer followed by [b,k,m,g] (byte, kibibyte, mebibyte, gibibyte)
  • Example: 1750m = 1750 MebiByte

About RAM and swap memory behavior

Behavior of RAM configurations

If no memory limit has been set (see container_config/memory_limit), then MySQL takes 512 MB for the innodb_buffer_pool_size system variable. On the other hand, if a memory limit has been set, then 80 % of the configured memory is used for this system variable. See the MySQL documentation for more information.

Behavior of Swap memory configurations

If no swap limit (see container_config/swap_limit) or a zero value has been set, then swapping behavior is disabled for this container. If a different value was set, then several things affect the swapping behavior.

Basically, the specified limit is applied to the container at container creation time. See the Docker documentation for more information. In addition, MySQL recommends a certain swappiness behavior. However, this behavior depends predominantly on the swappiness configuration of the Cloudogu EcoSystem. The respective configuration can be identified both in the Cloudogu EcoSystem with sysctl vm.swappiness or in the MySQL container with docker exec -it MySQL sysctl vm.swappiness. However, due to technical constraints, it is currently not possible to automatically configure the swappiness of MySQL at container startup time.

Last updated on 8/14/2026