package grpc.service_config

Mouse Melon logoGet desktop application:
View/edit binary Protocol Buffers messages

message CdsConfig

service_config.proto:394

Configuration for the cds LB policy.

Used in: LoadBalancingConfig

message EdsLoadBalancingPolicyConfig

service_config.proto:782

Configuration for eds LB policy. Deprecated.

Used in: LoadBalancingConfig

message GrpcLbConfig

service_config.proto:329

Configuration for grpclb LB policy.

Used in: LoadBalancingConfig

message LeastRequestLocalityLoadBalancingPolicyConfig

service_config.proto:460

Configuration for the least_request LB policy.

Used in: LoadBalancingConfig

message LoadBalancingConfig

service_config.proto:502

Selects LB policy and provides corresponding configuration. In general, all instances of this field should be repeated. Clients will iterate through the list in order and stop at the first policy that they support. This allows the service config to specify custom policies that may not be known to all clients. - If the config for the first supported policy is invalid, the whole service config is invalid. - If the list doesn't contain any supported policy, the whole service config is invalid.

Used in: EdsLoadBalancingPolicyConfig, GrpcLbConfig, LrsLoadBalancingPolicyConfig, OutlierDetectionLoadBalancingConfig, OverrideHostLoadBalancingPolicyConfig, PriorityLoadBalancingPolicyConfig.Child, RandomSubsettingLoadBalancingConfig, RlsLoadBalancingPolicyConfig, ServiceConfig, WeightedTargetLoadBalancingPolicyConfig.Target, XdsClusterImplLoadBalancingPolicyConfig, XdsClusterManagerLoadBalancingPolicyConfig.Child, XdsClusterResolverLoadBalancingPolicyConfig, XdsConfig, XdsWrrLocalityLoadBalancingPolicyConfig

message LrsLoadBalancingPolicyConfig

service_config.proto:755

Configuration for lrs LB policy. Deprecated.

Used in: LoadBalancingConfig

message LrsLoadBalancingPolicyConfig.Locality

service_config.proto:769

The locality for which this policy will report load. Required.

Used in: LrsLoadBalancingPolicyConfig

message MethodConfig

service_config.proto:44

Configuration for a method.

Used in: ServiceConfig

message MethodConfig.HedgingPolicy

service_config.proto:162

The hedging policy for outgoing RPCs. Hedged RPCs may execute more than once on the server, so only idempotent methods should specify a hedging policy.

Used in: MethodConfig

message MethodConfig.Name

service_config.proto:72

The names of the methods to which this configuration applies. - MethodConfig without names (empty list) will be skipped. - Each name entry must be unique across the entire ServiceConfig. - If the 'method' field is empty, this MethodConfig specifies the defaults for all methods for the specified service. - If the 'service' field is empty, the 'method' field must be empty, and this MethodConfig specifies the default for all methods (it's the default config). When determining which MethodConfig to use for a given RPC, the most specific match wins. For example, let's say that the service config contains the following MethodConfig entries: method_config { name { } ... } method_config { name { service: "MyService" } ... } method_config { name { service: "MyService" method: "Foo" } ... } MyService/Foo will use the third entry, because it exactly matches the service and method name. MyService/Bar will use the second entry, because it provides the default for all methods of MyService. AnotherService/Baz will use the first entry, because it doesn't match the other two. In JSON representation, value "", value `null`, and not present are the same. The following are the same Name: - { "service": "s" } - { "service": "s", "method": null } - { "service": "s", "method": "" }

Used in: MethodConfig

message MethodConfig.RetryPolicy

service_config.proto:136

The retry policy for outgoing RPCs.

Used in: MethodConfig

message OutlierDetectionLoadBalancingConfig

service_config.proto:241

Configuration for outlier_detection LB policy

Used in: LoadBalancingConfig, XdsClusterResolverLoadBalancingPolicyConfig.DiscoveryMechanism

message OutlierDetectionLoadBalancingConfig.FailurePercentageEjection

service_config.proto:295

Parameters for the failure percentage algorithm. This algorithm ejects individual endpoints whose failure rate is greater than some threshold, independently of any other endpoint.

Used in: OutlierDetectionLoadBalancingConfig

message OutlierDetectionLoadBalancingConfig.SuccessRateEjection

service_config.proto:263

Parameters for the success rate ejection algorithm. This algorithm monitors the request success rate for all endpoints and ejects individual endpoints whose success rates are statistical outliers.

Used in: OutlierDetectionLoadBalancingConfig

message OverrideHostLoadBalancingPolicyConfig

service_config.proto:465

Configuration for the xds_override_host LB policy.

Used in: LoadBalancingConfig

enum OverrideHostLoadBalancingPolicyConfig.HealthStatus

service_config.proto:469

Used in: OverrideHostLoadBalancingPolicyConfig, XdsClusterResolverLoadBalancingPolicyConfig.DiscoveryMechanism

message PickFirstConfig

service_config.proto:194

Configuration for pick_first LB policy.

Used in: LoadBalancingConfig

message PriorityLoadBalancingPolicyConfig

service_config.proto:346

Configuration for priority LB policy.

Used in: LoadBalancingConfig

message PriorityLoadBalancingPolicyConfig.Child

service_config.proto:351

A map of name to child policy configuration. The names are used to allow the priority policy to update existing child policies instead of creating new ones every time it receives a config update.

Used in: PriorityLoadBalancingPolicyConfig

message RandomSubsettingLoadBalancingConfig

service_config.proto:482

Configuration for the random_subsetting_experimental LB policy. See gRFC A68.

Used in: LoadBalancingConfig

message RingHashLoadBalancingConfig

service_config.proto:445

Configuration for ring_hash LB policy.

Used in: LoadBalancingConfig

message RlsLoadBalancingPolicyConfig

service_config.proto:374

Config for RLS LB policy.

Used in: LoadBalancingConfig

message RoundRobinConfig

service_config.proto:202

Configuration for round_robin LB policy.

Used in: LoadBalancingConfig

(message has no fields)

message ServiceConfig

service_config.proto:577

A ServiceConfig represents information about a service but is not specific to any name resolver.

Used in: RlsLoadBalancingPolicyConfig

message ServiceConfig.ConnectionScaling

service_config.proto:646

Settings to control dynamic connection scaling. For details, see: https://github.com/grpc/proposal/blob/master/A105-max_concurrent_streams-connection-scaling.md

Used in: ServiceConfig

message ServiceConfig.HealthCheckConfig

service_config.proto:638

Used in: ServiceConfig

enum ServiceConfig.LoadBalancingPolicy

service_config.proto:596

Load balancing policy. Note that load_balancing_policy is deprecated in favor of load_balancing_config; the former will be used only if the latter is unset. If no LB policy is configured here, then the default is pick_first. If the policy name is set via the client API, that value overrides the value specified here. If the deprecated load_balancing_policy field is used, note that if the resolver returns at least one balancer address (as opposed to backend addresses), gRPC will use grpclb (see https://github.com/grpc/grpc/blob/master/doc/load-balancing.md), regardless of what policy is configured here. However, if the resolver returns at least one backend address in addition to the balancer address(es), the client may fall back to the requested policy if it is unable to reach any of the grpclb load balancers.

Used in: ServiceConfig

message ServiceConfig.RetryThrottlingPolicy

service_config.proto:622

If a RetryThrottlingPolicy is provided, gRPC will automatically throttle retry attempts and hedged RPCs when the client's ratio of failures to successes exceeds a threshold. For each server name, the gRPC client will maintain a token_count which is initially set to max_tokens. Every outgoing RPC (regardless of service or method invoked) will change token_count as follows: - Every failed RPC will decrement the token_count by 1. - Every successful RPC will increment the token_count by token_ratio. If token_count is less than or equal to max_tokens / 2, then RPCs will not be retried and hedged RPCs will not be sent.

Used in: ServiceConfig

message WeightedRoundRobinLbConfig

service_config.proto:205

Configuration for weighted_round_robin LB policy.

Used in: LoadBalancingConfig

message WeightedTargetLoadBalancingPolicyConfig

service_config.proto:365

Configuration for weighted_target LB policy.

Used in: LoadBalancingConfig

message WeightedTargetLoadBalancingPolicyConfig.Target

service_config.proto:366

Used in: WeightedTargetLoadBalancingPolicyConfig

message XdsClusterImplLoadBalancingPolicyConfig

service_config.proto:402

Configuration for xds_cluster_impl LB policy.

Used in: LoadBalancingConfig

message XdsClusterImplLoadBalancingPolicyConfig.DropCategory

service_config.proto:434

Drop configuration.

Used in: XdsClusterImplLoadBalancingPolicyConfig

message XdsClusterManagerLoadBalancingPolicyConfig

service_config.proto:386

Configuration for xds_cluster_manager_experimental LB policy.

Used in: LoadBalancingConfig

message XdsClusterManagerLoadBalancingPolicyConfig.Child

service_config.proto:387

Used in: XdsClusterManagerLoadBalancingPolicyConfig

message XdsClusterResolverLoadBalancingPolicyConfig

service_config.proto:688

Configuration for xds_cluster_resolver LB policy. Deprecated.

Used in: LoadBalancingConfig

message XdsClusterResolverLoadBalancingPolicyConfig.DiscoveryMechanism

service_config.proto:695

Describes a discovery mechanism instance. For EDS or LOGICAL_DNS clusters, there will be exactly one DiscoveryMechanism, which will describe the cluster of the parent CDS policy. For aggregate clusters, there will be one DiscoveryMechanism for each underlying cluster.

Used in: XdsClusterResolverLoadBalancingPolicyConfig

enum XdsClusterResolverLoadBalancingPolicyConfig.DiscoveryMechanism.Type

service_config.proto:716

Used in: DiscoveryMechanism

message XdsConfig

service_config.proto:813

Configuration for xds LB policy. Deprecated.

Used in: LoadBalancingConfig

message XdsServer

service_config.proto:671

Represents an xDS server. Deprecated.

Used in: XdsClusterImplLoadBalancingPolicyConfig, XdsClusterResolverLoadBalancingPolicyConfig.DiscoveryMechanism

message XdsServer.ChannelCredentials

service_config.proto:674

Used in: XdsServer

message XdsWrrLocalityLoadBalancingPolicyConfig

service_config.proto:455

Configuration for the xds_wrr_locality load balancing policy.

Used in: LoadBalancingConfig