apiserver/pkg/storage
Hitoshi Mitake a7bf68f0d6 storage, etcd3: add an option for configuring interval of compaction requests from apiserver
This commit adds an option for controlling request of compaction to
etcd3 from apiserver. There is a situation that apiserver cannot fully
own its etcd cluster (e.g. sharing it with canal). In such a case,
apiserver should have limited access in terms of etcd's auth
functionality so it don't have a priviledge to issue compaction
requests. It means that the compaction requests should be issued by
other component and apiserver's compaction requests are needless.

For such use cases, this commit adds a new flag
`storagebackend.Config.CompactionInterval`. If the flag is non 0,
apiserver issues the compaction requests like current behaviour (the
default is 5 minutes). If it is 0, apiserver doesn't issue the
requests. It can be configured with a newly added option of apiserver
`--etcd-compaction-interval`.

Kubernetes-commit: 87d4d3e92be6b93517f189082b0451cee6957ee5
2017-09-01 14:06:25 +09:00
..
errors Use buildozer to delete licenses() rules except under third_party/ 2017-08-29 13:15:24 +00:00
etcd Server side implementation of paging for etcd3 2017-09-03 14:04:12 +00:00
etcd3 storage, etcd3: add an option for configuring interval of compaction requests from apiserver 2017-09-01 14:06:25 +09:00
names Use buildozer to delete licenses() rules except under third_party/ 2017-08-29 13:15:24 +00:00
storagebackend storage, etcd3: add an option for configuring interval of compaction requests from apiserver 2017-09-01 14:06:25 +09:00
testing Remove generated JSON code 2017-09-01 16:38:01 +00:00
tests Server side implementation of paging for etcd3 2017-09-03 14:04:12 +00:00
value Fix benchmarks to really test reverse order of the keys. 2017-08-29 13:18:49 +00:00
BUILD Server side implementation of paging for etcd3 2017-09-03 14:04:12 +00:00
OWNERS Add enj as reviewer to OWNERS 2017-08-29 13:16:16 +00:00
cacher.go Server side implementation of paging for etcd3 2017-09-03 14:04:12 +00:00
cacher_whitebox_test.go run hack/update-all 2017-06-28 00:14:31 +00:00
doc.go move pkg/storage to apiserver 2017-02-01 07:33:52 -05:00
errors.go move pkg/storage to apiserver 2017-02-01 07:33:52 -05:00
interfaces.go Server side implementation of paging for etcd3 2017-09-03 14:04:12 +00:00
selection_predicate.go Server side implementation of paging for etcd3 2017-09-03 14:04:12 +00:00
selection_predicate_test.go deepcopy: add interface deepcopy funcs 2017-07-19 03:49:08 +00:00
time_budget.go Add logging to debug conflicts in kubemark-scale test 2017-06-19 20:36:09 +00:00
time_budget_test.go move pkg/storage to apiserver 2017-02-01 07:33:52 -05:00
util.go move pkg/storage to apiserver 2017-02-01 07:33:52 -05:00
util_test.go move pkg/storage to apiserver 2017-02-01 07:33:52 -05:00
watch_cache.go Correctly handle empty watch event cache 2017-08-29 13:13:03 +00:00
watch_cache_test.go run hack/update-all 2017-06-28 00:14:31 +00:00