Question

Kubernetes load balancer sticky sessions TTL

I was reading the sticky session docs here https://docs.digitalocean.com/glossary/sticky-session/ and I want to configure do-loadbalancer-sticky-sessions-cookie-ttl, but it’s unclear what the time unit is here. Is it fair to assume this is seconds not minutes?


Submit an answer
Answer a question...

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Bobby Iliev
Site Moderator
Site Moderator badge
December 4, 2022

Hi there,

Indeed, I believe that you are correct, this should be in seconds, as if you run doctl compute load-balancer list you would get the following:

ID                                      IP    Name                                Status    Created At              Algorithm            Region    Tag    Droplet IDs                   SSL      Sticky Sessions                                Health Check                                                                                                                     Forwarding Rules
44ff4bf9-34b9-4461-8442-80a90001cb0e          ace288b51796411e7af69267d6e0a2ca    new       2022-08-04T22:32:33Z    round_robin          tor1             55581290,55581291,55581292    false    type:none,cookie_name:,cookie_ttl_seconds:0    protocol:tcp,port:31294,path:,check_interval_seconds:3,response_timeout_seconds:5,healthy_threshold:5,unhealthy_threshold:3      entry_protocol:tcp,entry_port:80,target_protocol:tcp,target_port:31294,certificate_id:,tls_passthrough:false

Mainly this part here: cookie_ttl_seconds:0.

Hope that this helps!

Best,

Bobby