Changing a Listener's Idle Timeout

Change the idle timeout for a listener in a network load balancer.

The idle timeout duration for TCP flows is 6 minutes and for UDP flows is 2 minutes. You can adjust this time when initially configuring the listener when creating a network load balancer, and also when editing the configuration of an existing listener.

Note

You can only change the idle timeout using the CLI or API.

  • This task can't be performed using the Console.

  • Use the tcp-idle-timeout and udp-idle-timeout parameters to configure the idle timeout for TCP and UDP listeners when creating or editing a listener. Specify the value in seconds. For example:

    oci nlb listener create --name name ... --tcp-idle-timeout 1200

    or

    oci nlb listener update --listener-name listener_name ... --udp-idle-timeout 360

    In these examples, "600" equals 600 seconds or 10 minutes. "360" equals 6 minutes.

    You can include both types of listener idle timeouts in the same command:
    oci nlb listener update --listener-name listener_name ... -tcp-idle-timeout 1200 --udp-idle-timeout 360

    For a complete list of parameters and values for CLI commands, see the CLI Command Reference.

  • Use the tcpIdleTimeout and udpIdleTimeout options when running the CreateListener or UpdateListener operations. Specify the value in seconds.