-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Etcd needs to be configured with auto-compaction option #47
Comments
This very much depends on #50. |
This can be set as an environment variable: ETCD_AUTO_COMPACTION_RETENTION (https://coreos.com/etcd/docs/latest/op-guide/configuration.html). The Helm chart I am currently testing allows us to set arbitrary env vars for Etcd Config. |
@etiennedi do you have an idea how frequently (hours) the auto compaction should run? Is 4 reasonable? |
@idcrosby 4 would probably be not frequent enough for a batch import scenario. I ran into the issue with too much revision history every 4-6 hours at my scale test, so I'd recommend something like 1 maybe to be on the safe side. However, after batch import is complete it could be much less frequent, so it probably makes sense to expose this parameter through our Does this mean the compaction runs once every |
@etiennedi you're right, the setting simply enables auto-compaction and the value is the retention period for the key. There is a second setting for how to run auto compaction (ETCD_AUTO_COMPACTION_MODE) which can be either periodic or revision based. The periodic compaction runs at 1/10th of the retention period. |
Since we use etcd mostly for distributed locking, the default revisioning feature of etcd leads to the revision cache filling up and then etcd stopping it's work altogether
The manual clean up steps are described here:
https://github.com/etcd-io/etcd/blob/master/Documentation/op-guide/maintenance.md#space-quota
However, when bulk importing we'd have to do this manually every 4 hours or so .
There also seems to be an
--auto-compaction
option so this happens autmatically.The text was updated successfully, but these errors were encountered: