-
Notifications
You must be signed in to change notification settings - Fork 8k
Sidecar should support configure the number of worker threads to run #11268
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
Comments
According to the internal doc by default the concurrency value is 0 and in this case it will use the number of cores on the machine. |
But as we know Envoy in a container can see all cores in host machine moby/moby#20770 This value is not accurate in a docker container. |
@mandarjog should this be marked for 1.1. Sounds a reasonable change to go into 1.1 for performance improvement. @duderino fyi |
Thanks @wenchenglu |
FYI this was already under discussion through #8938, already in the 1.1 bucket |
We guys from Huawei have tested how the --concurrency flag influence Envoy performance.
And the result shows that when we configure concurrency the number of cpu cores, it supports the maximum qps and takes up less cpu.
But as we know Envoy in a container can see all cores in host machine moby/moby#20770
So one thought come to mind is we can infer the number of cores from container cpu request, and pass this value to sidecar, so that pilot-agent can start envoy with this legitimate value.
The text was updated successfully, but these errors were encountered: