Auto-Configuration Overview
Smart Auto-Configuration of Containers
Supported Templates
Smart Auto-Configuration is available for selected certified stacks:
How Smart Auto-Configuration Works
- Supported templates use the modern
systemdinitialisation system required by the auto-configuration mechanism. - The
JELASTIC_AUTOCONFIGenvironment variable controls whether the feature is active. - The default value is
true, so Smart Auto-Configuration is enabled automatically. - Configuration values are calculated according to the container’s Cloudlet scaling limit.
Enable or Disable Auto-Configuration
To disable Smart Auto-Configuration, add or edit the JELASTIC_AUTOCONFIG variable through the dashboard and set its value to false.
JELASTIC_AUTOCONFIG value.
Smart Recovery after OOM
For supported database containers, Smart Auto-Configuration can also react to Out-of-Memory events. When the OOM killer terminates a critical process and makes the database container inoperable, the platform restarts the node and reduces the default memory allocation.
The recovery mechanism decreases the innodb_buffer_pool_size value. When another OOM restart occurs, the reduction cycle is repeated until the configured maximum number of cycles is reached.
JELASTIC_AUTOCONFIG is enabled.
The documented database versions supporting this recovery mechanism include:
| Database | Supported Versions |
|---|---|
| MySQL | 8.0.26 and 5.7.35 |
| MariaDB | 10.3.30, 10.4.20, 10.5.11, and 10.6.3 |
| Percona | 5.7.33 and 8.0.23 |
OOM Recovery Variables
The following environment variables control the OOM recovery behaviour:
| Variable | Purpose | Default |
|---|---|---|
OOM_DETECTION_DELTA |
Defines how long the platform analyses /var/log/messages after a service restart to determine whether the OOM killer caused it. |
2 seconds |
OOM_ADJUSTMENT |
Defines how much innodb_buffer_pool_size is reduced after each OOM-related restart. The value may be specified as a percentage, MB, or GB. |
10% |
MAX_OOM_REDUCE_CYCLES |
Sets the maximum number of automatic buffer-pool reduction cycles. | 5 cycles |
