Proto: connection_policy.proto

Package: resilience.policy.gloo.solo.io

Types:

ConnectionPolicyReport

FieldDescription
workspaces(repeated ConnectionPolicyReport.WorkspacesEntry)

selectedDestinationPorts(repeated common.gloo.solo.io.DestinationReference)

A list of destination ports selected by this policy.

ConnectionPolicyReport.WorkspacesEntry

FieldDescription
key(string)

value(common.gloo.solo.io.Report)

ConnectionPolicySpec

ConnectionPolicy provides settings to apply low-level settings on selected TCP connections.

FieldDescription
applyToDestinations(repeated common.gloo.solo.io.DestinationSelector)

select the destinations where the policy will be applied. If left empty, this will apply to all destinations in the workspace.
config(ConnectionPolicySpec.Config)

The details of the low-level network connection settings to apply to the destinations.

ConnectionPolicySpec.Config

FieldDescription
tcp(ConnectionPolicySpec.Config.TCPConfig)

The low-level TCP connection settings to apply to the destinations selected.
http(ConnectionPolicySpec.Config.HTTPConfig)

The low-level HTTP connection settings to apply to the destination selected.

ConnectionPolicySpec.Config.HTTPConfig

FieldDescription
maxRequestsPerConnection(int32)

Maximum number of requests per connection to a backend. Setting this parameter to 1 disables keep alive. Default 0, meaning “unlimited”, up to 2^29.
maxRetries(int32)

Maximum number of retries that can be outstanding to all hosts in a cluster at a given time. Defaults to 2^32-1.
idleTimeout(google.protobuf.Duration)

The idle timeout for upstream connection pool connections. The idle timeout is defined as the period in which there are no active requests. If not set, the default is 1 hour. When the idle timeout is reached, the connection will be closed. If the connection is an HTTP/2 connection a drain sequence will occur prior to closing the connection. Note that request based timeouts mean that HTTP/2 PINGs will not keep the connection alive. Applies to both HTTP1.1 and HTTP2 connections. For more information about the value format, see the Google protocol buffer documentation.

ConnectionPolicySpec.Config.TCPConfig

FieldDescription
tcpKeepalive(common.gloo.solo.io.TCPKeepalive)

Sets the TCP keep-alive settings to apply to selected destinations.
maxConnections(int32)

Sets the maximum allowed connections to the destination host.
connectTimeout(google.protobuf.Duration)

Sets the TCP connection timeout. It must be greater than or equal to 1ms. For information about the value format, see the Google protocol buffer documentation.

ConnectionPolicyStatus

Reflects the status of the ConnectionPolicy.

FieldDescription
common(common.gloo.solo.io.Status)

numSelectedDestinationPorts(uint32)

The number of destination ports selected by this policy.