mottosso / bleeding-rez

Rez - Reproducible software environments for Windows, Linux and MacOS
GNU Lesser General Public License v3.0
72 stars 10 forks source link

memcached_uri from rezconfig.py doesn't work #58

Open mottosso opened 5 years ago

mottosso commented 5 years ago

It's a strange one.

$ set REZ_MEMCACHED_URI=192.168.178.97:11211
$ rez memcache
CACHE SERVER          UPTIME     HITS  MISSES  HIT RATIO  MEMORY  USED
------------          ------     ----  ------  ---------  ------  ----
192.168.178.97:11211  3.2 hours  426   179     70%        64 Mb   207 Kb (0%)

Perfect.

$ rez env some complex query
# Fast

Great.

But, removing the variable and storing it in..

rezconfig.py

memcached_uri = ["192.168.178.97:11211"]

And..

$ rez config memcached_uri
- 192.168.178.97:11211
$ rez memcache
CACHE SERVER          UPTIME     HITS  MISSES  HIT RATIO  MEMORY  USED
------------          ------     ----  ------  ---------  ------  ----
192.168.178.97:11211  3.2 hours  426   179     70%        64 Mb   207 Kb (0%)

Looks allright, but..

$ rez env some complex query
# Slow

Why?