Skip to content

Commit

Permalink
Set --cpuset-threads in EnvoyProxy cmdline arg
Browse files Browse the repository at this point in the history
* Use cpuset size instead of total hardware threads to determine
total worker threads.

* Can be overridden by explicitly setting `--concurrency` arg

More in https://www.envoyproxy.io/docs/envoy/latest/operations/cli#cmdoption-cpuset-threads

Discussion in envoyproxy/envoy#5975

Relates to #1718

Signed-off-by: Arko Dasgupta <arko@tetrate.io>
  • Loading branch information
arkodg committed Jul 28, 2023
1 parent 9ba9103 commit 231a29b
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/infrastructure/kubernetes/proxy/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ func expectedProxyContainers(infra *ir.ProxyInfra, deploymentConfig *egcfgv1a1.K
fmt.Sprintf("--service-node $(%s)", envoyPodEnvVar),
fmt.Sprintf("--config-yaml %s", bootstrapConfigurations),
fmt.Sprintf("--log-level %s", logLevel),
fmt.Sprintf("--cpuset-threads"),
}
if componentLogLevel := componentLogLevelArgs(proxyLogging.Level); componentLogLevel != "" {
args = append(args, fmt.Sprintf("--component-log-level %s", componentLogLevel))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ spec:
- --service-node $(ENVOY_POD_NAME)
- --config-yaml test bootstrap config
- --log-level warn
- --cpuset-threads
command:
- envoy
env:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ spec:
- --service-node $(ENVOY_POD_NAME)
- --config-yaml test bootstrap config
- --log-level error
- --cpuset-threads
- --component-log-level filter:info
command:
- envoy
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ spec:
resource_api_version: V3
name: runtime-0
- --log-level warn
- --cpuset-threads
command:
- envoy
env:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ spec:
resource_api_version: V3
name: runtime-0
- --log-level warn
- --cpuset-threads
command:
- envoy
env:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ spec:
resource_api_version: V3
name: runtime-0
- --log-level warn
- --cpuset-threads
command:
- envoy
env:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ spec:
resource_api_version: V3
name: runtime-0
- --log-level warn
- --cpuset-threads
command:
- envoy
env:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ spec:
resource_api_version: V3
name: runtime-0
- --log-level warn
- --cpuset-threads
command:
- envoy
env:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ spec:
resource_api_version: V3
name: runtime-0
- --log-level warn
- --cpuset-threads
command:
- envoy
env:
Expand Down

0 comments on commit 231a29b

Please sign in to comment.