The ESXi Server utilizes the Envoy proxy to manage inbound connections on port 443, with a default limit of 128 simultaneous connections.
When this connection limit is reached, often due to numerous "half-open" connections resulting from clients abruptly closing their sessions, the vCenter Server may fail to connect to the ESXi Server. These half-open connections are eventually closed and cleaned up by Envoy upon timeout.
However, the default timeout period is excessively long, causing a significant delay in cleanup. This prolonged delay leaves the ESXi Server inaccessible for an extended duration.
This article outlines the procedure for modifying the idle timeout configuration for the Envoy proxy on the ESXi Server to address this issue.
Prerequisite:
Update the ESXi Server to ESXi 8.0 Update 3h - Build 25067014 where this feature is introduced.
Note: Though the configuration is related to Envoy's handling of idle connections, setting is applied to rhttpptoxy service as it is used to pass the configuration settings to Envoy.
Using Configuration Profile:
idle_connection_timeout" within the "envoy" group. This value is specified in seconds.Reference:
Updating configuration directly on the ESXi Server:
Another approach is to update the settings directly on each ESXi Server and restart the rhttpproxy service.
Steps:
rhttpproxy/bin/configstorecli config default get -c esx -g services -k rhttpproxy -outfile tmp.jsontmp.json" to include the settings.idle_conenction_timeout" with value in seconds need to be added under the "envoy" block (Ex: "idle_connection_timeout": 902,)/bin/configstorecli config current set -c esx -g services -k rhttpproxy -infile tmp.jsonSet: completed successfully" suggests changes are applied) /etc/init.d/rhttpproxy restart