Security context configuration
Using the TPOSS Helm chart, you can configure certain Linux kernel parameters through the securityContext configuration option. One of the most important use cases for setting sysctlsOpens in a new tab is to adjust TCP keepalive timeouts. Setting these parameters can be useful to detect lost connections towards the TPOSS database as fast as possible to avoid unnecessary resource consumption. These configuration options are responsible for the TCP keepalive timeouts:
net.ipv4.tcp_keepalive_time- the interval in seconds between the last data packet sent and the first keepalive message.net.ipv4.tcp_keepalive_intvl- the interval in seconds between the subsequent keepalive messages.net.ipv4.tcp_keepalive_probes- the number of keepalive messages to send before considering the connection is lost.
The default system value for the net.ipv4.tcp_keepalive_time is 2 hours, which is too long if you want to quickly detect lost connections to the database. It is recommended to reduce it to a value lower than the value of the database.timeout configuration option. You can configure these parameters using the following configuration options:
Note
Only safe sysctlsOpens in a new tab can be configured, due to Kubernetes policies that restrict the use of potentially unsafe system-level settings.