Define aging time for flow records

Define aging time for flow recordsΒΆ

Note

This feature is available starting from the MCP 2019.2.4 maintenance update. Before enabling the feature, follow the steps described in Apply maintenance updates.

To prevent high memory consumption by vRouter on highly loaded clusters, you can define the required aging time for flow records. Flows are aged depending on the inactivity for a specific period of time. By default, the timeout value is 180 seconds. You can configure the timeout depending on your cluster load needs using the flow_cache_timeout parameter for the contrail-vrouter-agent service.

To configure flow_cache_timeout:

  1. Log in to the Salt Master node.

  2. In classes/cluster/<cluster_name>/opencontrail/compute.yml of your Reclass model, define the required value in seconds for the flow_cache_timeout parameter:

    parameters:
    
      opencontrail:
        ...
        compute
          ...
          flow_cache_timeout: 180
          ...
    
  3. Apply the changes:

    salt -C 'I@opencontrail:compute' state.apply opencontrail.compute