-
Notifications
You must be signed in to change notification settings - Fork 9.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Memory leak in etcd 3.4.3 followers when using leases. #11495
Comments
I forgot to add that this does not happen in etcd 3.3.18 |
We also experience this problem. Stolon (PostgreSQL HA cluster software) uses etcd in such way and we get slow memory growth for etcd slaves. |
@rearden-steel @hpdvanwyk we meet the same issue, i have submitted a pr #11731 to fix it. thanks for your information. |
Cutting a new release with @tangcong's fix |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Putting values with leases on an etcd 3.4.3 cluster causes the cluster followers to slowly leak memory.
Order of events:
This was first seen on a RancherOS 1.5.4 Kubernetes cluster has been reproduced with Docker on Ubuntu 18.04.
The memory leak only seems to happen on followers and not on the leader.
To reproduce use the docker-compose at https://gist.github.com/hpdvanwyk/b5ace96e3c8a37dcea1a70c690e0562e with:
The RPC rate seems to affect the leak rate so using a tmpfs like /dev/shm speeds up the leak.
For the client use https://gist.github.com/hpdvanwyk/a94f9cdf2fdad31056cda6ce08402645
Let this run for an hour or so.
Sample pprof heap output:
Sample after waiting even longer:
The text was updated successfully, but these errors were encountered: