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 to compact old version of keys that's not needed. By default, we save the most recent 10 minutes data and compact versions > 10minutes ago. 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 past version of keys.
Source Files ¶
compact.go event.go store.go watcher.go
- Version
- v1.4.0-beta.5
- Published
- Sep 15, 2016
- Platform
- linux/amd64
- Imports
- 25 packages
- Last checked
- 1 hour ago –
Tools for package owners.