canonical / mysql-k8s-operator

A Charmed Operator for running MySQL on Kubernetes
https://charmhub.io/mysql-k8s
Apache License 2.0
8 stars 15 forks source link

[RFE] binlog_expire_logs_seconds option #412

Open pedrofragola opened 2 months ago

pedrofragola commented 2 months ago

[Feature request]

The mysql-k8s charm currently uses the default parameter for binary log retention (binlog_expire_logs_seconds), which is set to rotate the logs after 30 days as per the documentation[0]. In some scenarios, such as when using Kubeflow, this binary log can fill up very quickly. It would be beneficial to have the ability to modify this configuration directly through Juju, allowing users to set this parameter permanently on the charm to accommodate their specific usage patterns.

[0] https://dev.mysql.com/doc/refman/8.0/en/replication-options-binary-log.html#sysvar_binlog_expire_logs_seconds

github-actions[bot] commented 2 months ago

https://warthogs.atlassian.net/browse/DPE-4247

paulomach commented 1 week ago

Hi @pedrofragola , we are discussing this and will fup here

paulomach commented 1 week ago

@pedrofragola we are going to change it to 7 days, which is inline with retention period for other logs

pedrofragola commented 1 week ago

@paulomach thanks for the heads-up :) ... Do you think for the next releases it will be possible to have an option to update this config using the charm option?

paulomach commented 1 week ago

@pedrofragola, an option is out of the cards for now