Lets say we have a microservice which runs in docker container.
Now to bring up this service, it uses cache which is mounted on the host volume which gets shared by all the other docker images for same microservice. And to build this cache in app it takes 10 mins and then application gets ready to serve the request.
But this scenario gets failed when we will scale up and scale down, Lets say I am scaling up container will be available but its still not fully up because we need to wait to build the cache.
How you suggest to handle this scenario.
And at the font of this docker services we are planning to bring Nginx to load balance the request.
Thanks in Advance