I am planning to use django-cachalot with memcached backend for caching of queries in my project.
I have this setup on a Elastic Beanstalk, which can scale up or scale down, by adding or removing EC2 instances. Currently when memcached starts on an instance, I add the IP of this instance to the database.
The pylibmc memcached client that I create, reads the database occasionally, for server IPs and creates a new client if server IPs have changed or new IPs have been added.
How do I dynamically add servers to django's memcached cache backend?
or how do I set the memcached client django is using manually?