package etcd3
import "k8s.io/kubernetes/pkg/storage/etcd3"
Index ¶
- func New(c *clientv3.Client, codec runtime.Codec, prefix string) storage.Interface
- func StartCompactor(ctx context.Context, client *clientv3.Client)
Functions ¶
func New ¶
New returns an etcd3 implementation of storage.Interface.
func StartCompactor ¶
StartCompactor starts a compactor in the background in order to compact keys older than fixed time. We need to compact keys because we can't let on disk data grow forever. We save the most recent 10 minutes data. It should be enough for slow watchers and to tolerate burst. TODO: We might keep a longer history (12h) in the future once storage API can take
advantage of multi-version key.
Source Files ¶
compact.go event.go store.go watcher.go
- Version
- v1.3.0-alpha.4
- Published
- May 17, 2016
- Platform
- linux/amd64
- Imports
- 24 packages
- Last checked
- 48 seconds ago –
Tools for package owners.