When deploying or upgrading a MySQL instance created by VMware Tanzu for MySQL on Cloud Foundry (CF), the deployment halts, and the post-start job fails.
In mysql job post-start.stdout.log, you may see errors indicating that the thermostat health check has failed.
Dedicated MySQL replication replication options [It] bin log max cache size is set to 2G
/var/vcap/data/compile/thermostat/thermostat/thermostat_test.go:317
[FAILED] Expected
<string>: ###########
to equal
<string>: 2147483648
In [It] at: /var/vcap/data/compile/thermostat/thermostat/thermostat_test.go:300 @ 05/01/25 11:21:21.404
The Tanzu for MySQL thermostat component validates the runtime MySQL configuration against the expected defaults defined in the my.cnf file.
By default, my.cnf explicitly defines max-binlog-cache-size = 2G (2147483648 bytes).
If a database administrator or custom application modifies the max_binlog_cache_size value dynamically (for example, via a stored procedure), a mismatch occurs.
Because the active runtime value no longer matches the expected 2G threshold, the thermostat health check fails and intentionally blocks the deployment/startup process to prevent configuration drift.
Upgrade to VMware Tanzu for MySQL on CF 10.1 or above. Version 10.1 and higher include architectural updates that prevent this specific runtime configuration mismatch from blocking the deployment process.
If you cannot upgrade your Tanzu for MySQL tile at this time, use the following steps to temporarily bypass the issue during deployments or updates:
Drop the Procedure: Temporarily remove or drop the stored procedure (or automation script) that alters the max_binlog_cache_size variable.
Reset the Value: Ensure max_binlog_cache_size is manually reverted to its default value of 2147483648 (2G).
Run the Deployment: Complete your Tanzu for MySQL instance upgrade, patch, or CF deployment.
Reapply the Procedure: Once the deployment successfully finishes and the post-start jobs pass, recreate the stored procedure to re-apply your custom configuration.
Note: This workaround must be repeated for any subsequent tile upgrades or instance recreations until the platform is upgraded to version 10.1 or higher.