Add cache configuration for ceilometer project
when using ceilometer+gnocchi, for every notification sample, ceilometer will update the resource even if is not updated. We should add [cache] section to make ceilometer cache the resource, and stop send the useless update request. Closes-Bug: #1807841 Change-Id: Ic33b4cd5ba8165c20878cab068f38a3948c9d31d
This commit is contained in:
parent
29a2cda220
commit
55bf29ec6c
@ -47,3 +47,8 @@ connection_url = {{ xenserver_connect_protocol }}://{{ xenserver_himn_ip }}
|
||||
connection_username = {{ xenserver_username }}
|
||||
connection_password = {{ xenserver_password }}
|
||||
{% endif %}
|
||||
|
||||
[cache]
|
||||
backend = oslo_cache.memcache_pool
|
||||
enabled = True
|
||||
memcache_servers = {% for host in groups['memcached'] %}{{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }}:{{ memcached_port }}{% if not loop.last %},{% endif %}{% endfor %}
|
||||
|
Loading…
Reference in New Issue
Block a user