public sealed class ConsistentHashLoadBalancerSettings : IMessage<ConsistentHashLoadBalancerSettings>, IEquatable<ConsistentHashLoadBalancerSettings>, IDeepCloneable<ConsistentHashLoadBalancerSettings>, IBufferMessage, IMessage
Reference documentation and code samples for the Compute Engine v1 API class ConsistentHashLoadBalancerSettings.
This message defines settings for a consistent hash style load balancer.
public ConsistentHashLoadBalancerSettingsHttpCookie HttpCookie { get; set; }
Hash is based on HTTP Cookie. This field describes a HTTP cookie that will be used as the hash key for the consistent hash load balancer. If the cookie is not present, it will be generated. This field is applicable if the sessionAffinity is set to HTTP_COOKIE. Not supported when the backend service is referenced by a URL map that is bound to target gRPC proxy that has validateForProxyless field set to true.
The minimum number of virtual nodes to use for the hash ring. Defaults to 1024. Larger ring sizes result in more granular load distributions. If the number of hosts in the load balancing pool is larger than the ring size, each host will be assigned a single virtual node.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-08 UTC."],[[["\u003cp\u003eThis webpage provides reference documentation for the \u003ccode\u003eConsistentHashLoadBalancerSettings\u003c/code\u003e class within the Google Cloud Compute Engine v1 API, specifically for the .NET library, with the current version being 2.6.0, however there are links available to different versions ranging from 1.0.0 to 3.6.0 (latest).\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eConsistentHashLoadBalancerSettings\u003c/code\u003e class is used to define settings for a consistent hash style load balancer in the Google Cloud Compute Engine, and it inherits from the Object class and implements multiple interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class offers constructors for creating new instances and for deep-copying existing instances, and it offers properties to configure the load balancer settings such as \u003ccode\u003eHttpCookie\u003c/code\u003e, \u003ccode\u003eHttpHeaderName\u003c/code\u003e, and \u003ccode\u003eMinimumRingSize\u003c/code\u003e, and to verify if they are set with the \u003ccode\u003eHasHttpHeaderName\u003c/code\u003e and \u003ccode\u003eHasMinimumRingSize\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe Consistent Hash Load Balancer can be configured to distribute traffic based on the value of a specified HTTP header or a HTTP cookie, the latter being particularly relevant for session affinity, and the minimum number of virtual nodes in the hash ring can also be adjusted.\u003c/p\u003e\n"],["\u003cp\u003eThe most current version documented is 3.6.0, which is labelled as latest, and there are at least 29 documented versions of this API available for user access, meaning that it has been through many changes and updates.\u003c/p\u003e\n"]]],[],null,[]]