-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
etcdserver: read-only range request ... took too long (...) to execute #2692
Comments
Why do you say is kind? |
let me phrase it differently: I haven't found a (hardware/os) "setup" where kind is not having those etcd issues. Maybe Kind itself is not the problem but maybe of how Kind is using Docker, but I'm not an expert here... |
is a setup problem, docker uses overlay2 as default storage driver , this can illustrate the problem better |
heh, it seems it already runs in a volume, I was assuming it wasn't (EDIT: lol, my memory does not work well, I can see in the issue I reported about etcd performance I mentioned it XD)
I think that this may require some benchmarks and debugging then, to understand the bottleneck |
We generally have the opposite problem, a few users have reported issues, but only on slow spinning disks ... There's only so much this project can do, kind ships upstream kubernetes/etcd, the performance of etcd + how kubernetes uses it largely come from those projects.
kind is. Regarding tmpfs: #845 discusses an option users can leverage with tmpfs, but doing so is not something we can do by default (due to lack of data durability ...), though possible to configure with existing features as you found. |
Some of that may be docker pulling / unpacking the image. I don't think there's much more we can do here. It's already possible to put Etcd on a tmpfs with kind with the significant trade offs that causes. We use a docker volume otherwise and I don't think there's a faster option we could implement |
What happened:
Slow etcd in Kind control-plane slowing down complete helm instal / kubectl apply.
Etcd logs contain lots of errors of such type:
What you expected to happen:
No etcd errors
How to reproduce it (as minimally and precisely as possible):
Startup Kind, check the etcd pod logs.
Anything else we need to know?:
We could reproduce this behavior in all our scenarios, which are mainly two:
Environment:
docker info
): Docker 20.10.11 (WSL2) and docker:20.10.12-dind (DinD)/etc/os-release
): tested on WSL2-Ubuntu20.04LTS and Alpine Linux v3.15 (DinD)Workaround:
Run etcd in memory (tmpfs) resolves the etcd error messages and helm install timeouts:
See #845 (comment) or knative-extensions/net-contour#444
The text was updated successfully, but these errors were encountered: