Hey,

Unfortuantely I don't think it works that way. Warm restart is useful for
upgrading or slightly changing the configuration of an independent cache
node without losing the data.

However since you're expanding and contracting a cluster, keys get
remapped inbetween hosts. If you're saving the data of a downed machine
and bringing it back up later, you will have stale cache and still cause
some extra cache misses.

As an aside you should be autoscaling based on cache hit/miss rate and not
the number of requests, unless your rate is huge memcached will scale
traffic very well. Hopefully you're already doing that :)

On Wed, 9 Mar 2022, Javier Arias Losada wrote:

> Hi all,
> recently discovered about the Warm restart feature... simply awesome!
> we use memcached as a look-aside cache and we run it in kubernetes, also have 
> autoscaling based on cpu... so when
> the number of requests increase enough, a new memcached node is started... we 
> can tolerate a temporary decrease
> in hit/miss ratio... but I think we can improve the situation by warming up 
> new memcached nodes.
>
> Wondering if the warm restart could be used for that regards. Is it possible 
> to dump the files before stopping a
> running node? I was thinking about maintaining periodic dumps that are used 
> by the new node(s) started. Not sure
> if this is an option.
>
> Anyone has solved a similar problem? I'd appreciate hearing others' 
> experiences.
>
> Thank you
> Javier
>
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups 
> "memcached" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to
> memcached+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/memcached/d0f09c1c-760f-44bb-95e9-95afa7dd9c43n%40googlegroups.com.
>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"memcached" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to memcached+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/memcached/de928623-bddb-53be-8598-b4b0b0dd75a0%40rydia.net.

Reply via email to