<br><br>On Monday, April 13, 2015, Ray Sun <<a href="mailto:xiaoquqi@gmail.com">xiaoquqi@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">Stackers,</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">I have found there are two parts can set memcache in keystone.conf of Juno release. I am not quite sure if they are duplicated or any difference?</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small">Thanks.</div><div class="gmail_default"><div class="gmail_default"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif">[token]</font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif">driver = keystone.token.backends.memcache.Token</font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif">caching = True</font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default"></div></div></div></blockquote><div><br></div><div>The token settings in "driver" are meant for storing the actual tokens. This is a persistence backend (similar to SQL). </div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default"><div class="gmail_default"></div><div class="gmail_default"><font face="arial, helvetica, sans-serif">[cache]</font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif">enabled = True</font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif">backend = dogpile.cache.memcached</font></div><div class="gmail_default"><font face="arial, helvetica, sans-serif">backend_argument = url:localhost:11211</font></div><div style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div></div></div></blockquote><div><br></div><div>The [cache] section is specifying the information that is used to cache data from all over keystone (users, groups, domains, assignments, etc). Depending in the version of keystone different parts of keystone have caching capabilities. The documentation for the given release should indicate if a given system (e.g. Identity) has caching capabilities. </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default"></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;font-size:small"><br></div><div><div><font face="'courier new', monospace">Best Regards<br>-- Ray</font></div></div>
</div>
</blockquote>