Commit 2707c46a authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #30985 from wojtek-t/improve_etcd_watchers

Automatic merge from submit-queue Increase buffer size in etcd_watcher Should help with #30873 @xiang90 @hongchaodeng @kubernetes/sig-scalability
parents 40367df7 e76c0b7c
...@@ -139,7 +139,9 @@ func newEtcdWatcher( ...@@ -139,7 +139,9 @@ func newEtcdWatcher(
// monitor how much of this buffer is actually used. // monitor how much of this buffer is actually used.
etcdIncoming: make(chan *etcd.Response, 100), etcdIncoming: make(chan *etcd.Response, 100),
etcdError: make(chan error, 1), etcdError: make(chan error, 1),
outgoing: make(chan watch.Event), // Similarly to etcdIncomming, we don't want to force context
// switch on every new incoming object.
outgoing: make(chan watch.Event, 100),
userStop: make(chan struct{}), userStop: make(chan struct{}),
stopped: false, stopped: false,
wg: sync.WaitGroup{}, wg: sync.WaitGroup{},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment