cybozu-go / moco

MySQL operator on Kubernetes using GTID-based semi-synchronous replication.
https://cybozu-go.github.io/moco/
Apache License 2.0
269 stars 22 forks source link

Prevent disabling of binlog #678

Closed d-kuro closed 3 months ago

d-kuro commented 3 months ago

refs: https://github.com/cybozu-go/moco/issues/638

vsliouniaev commented 3 months ago

I'm currently using the operator with single DB instances and explicitly disabling binary logging as I don't need replication but a very lightweight implementation.

Is it possible to maintain this behavior?

ymmt2005 commented 3 months ago

I'm afraid not. Even a single cluster needs binlogs for MOCO because we allow users to add replicas later, which needs binlogs.

vsliouniaev commented 3 months ago

What if there was a CRD level option that would allow for this, provided that the number of replicas is 1? That would be easier to validate.

ymmt2005 commented 3 months ago

@masa213f @d-kuro thoughts?

d-kuro commented 3 months ago

@vsliouniaev @ymmt2005 Can _includ be used? https://cybozu-go.github.io/moco/usage.html?highlight=_inc#opaque-configuration

ymmt2005 commented 3 months ago

yup, that should work.

vsliouniaev commented 3 months ago

Thanks that's very helpful!