> For the complete documentation index, see [llms.txt](https://docs.cennso.com/cennso/cennso-db/latest/llms.txt) (all documentation: [llms.txt](https://docs.cennso.com/llms.txt)). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cennso.com/cennso/cennso-db/latest/releases/1.3.1.md).

# Cennso Database 1.3.1

**Release date:** 2026-09-29

The Cennso Database extension 1.3.1 provides the following features and fixes:

- Separate option for the HAProxy init image
- Support for routing configuration for HAProxy
- Support for resources configuration for HAProxy
- Fix for MySQL crash on fresh deployments

## Features

### Separate option for the HAProxy init image

In the previous versions of the Cennso Database extension, the **spec.haproxy.image** configuration option of the `DBInstance` Custom Resource set the image of the HAProxy init container. The HAProxy container always used the default image of the chart, and you could not change it.

The Cennso Database extension in version 1.3.1 adds the new **spec.haproxy.initImage** configuration option, so you can configure both images separately:

```yaml
spec:
  haproxy:
    image:
      registry: percona/haproxy
      tag: 2.8.14
    initImage:
      registry: percona/percona-server-mysql-operator
      tag: 0.8.0
```

For more information, see the [HAProxy configuration](https://docs.cennso.com/cennso/cennso-db/latest/concepts/cennso-db-instance.md#haproxy-configuration) section.

### Support for routing configuration for HAProxy

HAProxy applies a set of options to each MySQL backend server. These options control the health check, which lets HAProxy detect a failed MySQL instance and stop routing traffic to it. The previous versions of the Cennso Database extension always used the `check inter 10000 rise 1 fall 2 weight 1` options. The Cennso Database extension in version 1.3.1 allows you to change these values using the following configuration options of the `DBInstance` Custom Resource:

```yaml
spec:
  haproxy:
    serverOptions:
      interval: 5000
      rise: 1
      fall: 3
      weight: 1
      additionalOptions: "on-marked-down shutdown-sessions"
```

The default values are the same as in the previous versions, so the behavior of HAProxy does not change if you do not set these options. The health check is always enabled, and you can not turn it off.

For more information, see the [HAProxy configuration](https://docs.cennso.com/cennso/cennso-db/latest/concepts/cennso-db-instance.md#haproxy-configuration) section.

### Support for resources configuration for HAProxy

The previous versions of the Cennso Database extension used the default resources of the chart for the HAProxy containers, and you could not change them. The Cennso Database extension in version 1.3.1 allows you to specify [resources](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/) for HAProxy using the following configuration options of the `DBInstance` Custom Resource:

```yaml
spec:
  haproxy:
    resources:
      cpu: 600m
      memory: 1G
```

The values are set to both the requests and the limits of the HAProxy containers. The default resources of the chart set only the requests, and the HAProxy containers had no limits. With the new version, the HAProxy containers have limits by default. Before the upgrade, perform the check described in the [Check the resources of the HAProxy pods](#check-the-resources-of-the-haproxy-pods) section.

For more information, see the [HAProxy configuration](https://docs.cennso.com/cennso/cennso-db/latest/concepts/cennso-db-instance.md#haproxy-configuration) section.

## Fixes

### Fix for MySQL crash on fresh deployments

The Cennso Database extension in version 1.3.0 added the `clone_enable_compression = ON` setting to the default MySQL configuration. This setting belongs to the [CLONE](https://dev.mysql.com/doc/refman/8.0/en/clone-plugin.html) plugin, which is not loaded while MySQL initializes a new data directory. As a result, MySQL stopped with the `unknown variable 'clone_enable_compression=ON'` error, and new MySQL instances with an empty data directory did not start. The existing MySQL instances were not affected.

The Cennso Database extension in version 1.3.1 adds the [`loose_`](https://dev.mysql.com/doc/refman/8.0/en/option-modifiers.html) prefix to this setting:

```ini
loose_clone_enable_compression = ON
```

With this prefix, MySQL skips the setting with a warning during initialization and applies it on the regular start, so compression stays enabled for the CLONE operation. If you overwrite this setting using the **spec.mysql.additionalConfiguration** configuration option, use the `loose_` prefix too.

For more information, see the [Compression enabled for MySQL CLONE by default](https://docs.cennso.com/cennso/cennso-db/latest/releases/1.3.0.md#compression-enabled-for-mysql-clone-by-default) section of the 1.3.0 release notes.

## Migration guide

> [!IMPORTANT]
> Before performing an upgrade, make sure you carefully read the [Installation](https://docs.cennso.com/cennso/cennso-db/latest/installation.md) and [Upgrade a database](https://docs.cennso.com/cennso/cennso-db/latest/operation-guides/cennso-db-upgrade.md) documents.

This section describes how to upgrade the Cennso Database extension from version 1.3.0 to 1.3.1.

The new version of the Cennso Database extension changes the configuration of the HAProxy pods and the [default MySQL configuration](#fix-for-mysql-crash-on-fresh-deployments). For this reason, the HAProxy pods are restarted during the upgrade, and the MySQL instances can be restarted too. While the HAProxy pods restart, the client connections through HAProxy can be interrupted for a short time. Make sure you [back up](https://docs.cennso.com/cennso/cennso-db/latest/operation-guides/backup.md) your database before performing the upgrade.

Before you start the upgrade, perform the checks described in the following sections.

### Check your HAProxy image configuration

The previous versions of the Cennso Database extension used the **spec.haproxy.image** configuration option for the image of the HAProxy init container. The new version uses this option for the image of the HAProxy container, and provides the new [**spec.haproxy.initImage**](#separate-option-for-the-haproxy-init-image) configuration option for the init container.

If you do not set **spec.haproxy.image** in your claims, you do not need to change anything. If you set it, for example to use a private registry mirror, the HAProxy container gets the image of the init container after the upgrade and does not start. To avoid this, update your claims before the upgrade:

1. Move the values of **spec.haproxy.image** to **spec.haproxy.initImage**.
2. Set **spec.haproxy.image** to the HAProxy image, for example:

   ```yaml
   spec:
     haproxy:
       image:
         registry: {REGISTRY-MIRROR}/percona/haproxy
         tag: 2.8.14
       initImage:
         registry: {REGISTRY-MIRROR}/percona/percona-server-mysql-operator
         tag: 0.8.0
   ```

If you use a private registry mirror, make sure the `percona/haproxy:2.8.14` image is available in it before the upgrade.

### Check the resources of the HAProxy pods

The previous versions of the Cennso Database extension used the default resources of the chart for the HAProxy containers. These defaults set only the requests and no limits:

```yaml
resources:
  requests:
    memory: 1G
    cpu: 600m
  limits: {}
```

Starting from version 1.3.1, the [**spec.haproxy.resources**](#support-for-resources-configuration-for-haproxy) configuration options of the `DBInstance` Custom Resource set both the requests and the limits. The default values are:

```yaml
resources:
  requests:
    memory: 1G
    cpu: 600m
  limits:
    memory: 1G
    cpu: 600m
```

> [!IMPORTANT]
> The new limits are a backward-incompatible change. If an HAProxy container needs more than `600m` CPU after the upgrade, Kubernetes throttles it, and HAProxy can respond slower. If it needs more than `1G` memory, Kubernetes kills the container with the `OOMKilled` reason, and the client connections through this HAProxy pod are interrupted.

Before the upgrade, check the resource usage of your live deployments:

```bash
kubectl top pod --containers -n {NAMESPACE} | grep haproxy
```

If the usage is close to or above the default values, set higher values for **spec.haproxy.resources** in your claims before the upgrade, for example:

```yaml
spec:
  haproxy:
    resources:
      cpu: "1"
      memory: 2G
```
