9.10.5. Configuring System Control Settings


OpenShift Enterprise uses semaphores, ports, and connection tracking extensively. Apply the following changes to the default /etc/sysctl.conf file to enable this usage.

Procedure 9.8. To Configure the sysctl Settings:

  1. Open the /etc/sysctl.conf file and append the following line to increase kernel semaphores to accommodate more httpds:
    kernel.sem = 250  32000 32  4096
  2. Append the following line to the same file to increase the ephemeral port range to accommodate application proxies:
    net.ipv4.ip_local_port_range = 15000 35530
  3. Append the following line to the same file to increase the connection-tracking table size:
    net.netfilter.nf_conntrack_max = 1048576
  4. Append the following line to the same file to enable forwarding for the port proxy:
    net.ipv4.ip_forward = 1
  5. Append the following line to the same file to allow the port proxy to route using loopback addresses:
    net.ipv4.conf.all.route_localnet = 1
  6. Run the following command to reload the sysctl.conf file and activate the new settings:
    # sysctl -p /etc/sysctl.conf

Note

If you use the kickstart or bash script, the configure_sysctl_on_node function performs these steps.
Red Hat logoGithubRedditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.