nova-authconsole HA方案memcached配置

来源:互联网 发布:英雄无敌3恐怖骑士知乎 编辑:程序博客网 时间:2024/05/20 17:23

nova-authconsole 负载均衡token缓存配置

在配置nova-authconsole HA(多个nova-authconsole实例同时运行)时,需要配置memcached_servers,不然会导致noVNC访问控制台失败(并不是都失败,而是轮询到token正确的nova-authconsole实例时成功,其他失败)。

在/etc/nova/nova.conf的[DEFAULT]部分具有参数项memcached_servers,但是在Mitaka版本中显示该参数项已经DEPRECATED(也可以用)。为保持以后升级兼容性可以配置在[cache]部分下面

[DEFAULT]...... #省略其他## From nova.cache_utils## DEPRECATED: Memcached servers or None for in process cache.# "memcached_servers" opt is deprecated in Mitaka. In Newton release oslo.cache# config options should be used as this option will be removed. Please add a# [cache] group in your nova.conf file and add "enable" and "memcache_servers"# option in this section. (list value)# This option is deprecated for removal.# Its value may be silently ignored in the future.#memcached_servers=<None>#memcache_servers = memcache10:11211,memcache20:11211,memcache20:11211
[cache]backend = oslo_cache.memcache_poolenabled = truememcache_servers = memcache10:11211,memcache20:11211,memcache20:11211

但是我在配置[cache]下不生效,反而在[DEFAULT]下配置生效,不知道什么情况。

原理分析

参考如下博文,非常详细的分析了nova-authconsole HA负载均衡方案中需要配置memcached_servers的原因
OpenStack之noVNC问题(Failed to connect to server (code: 1006))处理

0 0