TCP proxy

    The upstream cluster used by the TCP proxy filter can be dynamically set by other network filters on a per-connection basis by setting a per-connection state object under the key . See the implementation for the details.

    TCP proxy can be configured to route to a subset of hosts within an upstream cluster.

    To define metadata that a suitable upstream host must match, use one of the following fields:

    1. Use to define required metadata for a single upstream cluster.

    2. Use ClusterWeight.metadata_match to define required metadata for a weighted upstream cluster.

    In addition, dynamic metadata can be set by earlier network filters on the . Setting the dynamic metadata must happen before is called on the filter to affect load balancing.

    The TCP proxy filter emits both its own downstream statistics as well as many of the where applicable. The downstream statistics are rooted at tcp.<stat_prefix>. with the following statistics: