// *** 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.Inputs
{

    public sealed class AlbBackendGroupGrpcBackendLoadBalancingConfigArgs : global::Pulumi.ResourceArgs
    {
        /// <summary>
        /// Percent of traffic to be sent to the same availability zone. The rest will be equally divided between other zones.
        /// </summary>
        [Input("localityAwareRoutingPercent")]
        public Input<int>? LocalityAwareRoutingPercent { get; set; }

        /// <summary>
        /// Load balancing mode for the backend. Possible values: "ROUND_ROBIN", "RANDOM", "LEAST_REQUEST", "MAGLEV_HASH".
        /// </summary>
        [Input("mode")]
        public Input<string>? Mode { get; set; }

        /// <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>
        [Input("panicThreshold")]
        public Input<int>? PanicThreshold { get; set; }

        /// <summary>
        /// If set, will route requests only to the same availability zone. Balancer won't know about endpoints in other zones.
        /// </summary>
        [Input("strictLocality")]
        public Input<bool>? StrictLocality { get; set; }

        public AlbBackendGroupGrpcBackendLoadBalancingConfigArgs()
        {
        }
        public static new AlbBackendGroupGrpcBackendLoadBalancingConfigArgs Empty => new AlbBackendGroupGrpcBackendLoadBalancingConfigArgs();
    }
}
