// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;

namespace Pulumi.Yandex.Outputs
{

    [OutputType]
    public sealed class AlbBackendGroupGrpcBackendLoadBalancingConfig
    {
        /// <summary>
        /// Percent of traffic to be sent to the same availability zone. The rest will be equally divided between other zones.
        /// </summary>
        public readonly int? LocalityAwareRoutingPercent;
        /// <summary>
        /// Load balancing mode for the backend. Possible values: "ROUND_ROBIN", "RANDOM", "LEAST_REQUEST", "MAGLEV_HASH".
        /// </summary>
        public readonly string? Mode;
        /// <summary>
        /// If percentage of healthy hosts in the backend is lower than panic_threshold, traffic will be routed to all backends no matter what the health status is. This helps to avoid healthy backends overloading  when everything is bad. Zero means no panic threshold.
        /// </summary>
        public readonly int? PanicThreshold;
        /// <summary>
        /// If set, will route requests only to the same availability zone. Balancer won't know about endpoints in other zones.
        /// </summary>
        public readonly bool? StrictLocality;

        [OutputConstructor]
        private AlbBackendGroupGrpcBackendLoadBalancingConfig(
            int? localityAwareRoutingPercent,

            string? mode,

            int? panicThreshold,

            bool? strictLocality)
        {
            LocalityAwareRoutingPercent = localityAwareRoutingPercent;
            Mode = mode;
            PanicThreshold = panicThreshold;
            StrictLocality = strictLocality;
        }
    }
}
