improbable-eng / etcd-cluster-operator

A controller to deploy and manage etcd clusters inside of Kubernetes
MIT License
129 stars 35 forks source link

Implement etcd connection pooling #61

Open JamesLaverack opened 5 years ago

JamesLaverack commented 5 years ago

Currently when we connect to etcd from the cluster controller we create a new connection every time. We could save resources by keeping a pool of them available.

munnerz commented 4 years ago

Be careful when doing this as you'll need a reconciler of some description to detect when clients should no longer exist or need updating to include new peers, else you could leave dangling sockets/goroutines/resources 😄

JamesLaverack commented 4 years ago

Yeah with #76 this might get interesting.