Make memcached logs verbosity configurable
This adds the MemcachedDebug flag which makes memcached logs verbose. Also, the service now reacts to the global Debug flag. Related-Bug: #1720183 Change-Id: Ie8120359a12f734aad584b083c8362dd21b70dea
This commit is contained in:
parent
a0991433fa
commit
8523420930
@ -39,6 +39,21 @@ parameters:
|
||||
MonitoringSubscriptionMemcached:
|
||||
default: 'overcloud-memcached'
|
||||
type: string
|
||||
Debug:
|
||||
default: false
|
||||
description: Set to True to enable debugging on all services.
|
||||
type: boolean
|
||||
MemcachedDebug:
|
||||
default: ''
|
||||
description: Set to True to enable debugging Memcached service.
|
||||
type: string
|
||||
|
||||
conditions:
|
||||
service_debug:
|
||||
or:
|
||||
- equals: [{get_param: MemcachedDebug}, 'true']
|
||||
- equals: [{get_param: MemcachedDebug}, 'True']
|
||||
- equals: [{get_param: Debug}, true]
|
||||
|
||||
outputs:
|
||||
role_data:
|
||||
@ -54,7 +69,14 @@ outputs:
|
||||
# internal_api_subnet - > IP/CIDR
|
||||
memcached::listen_ip: {get_param: [ServiceNetMap, MemcachedNetwork]}
|
||||
memcached::max_memory: {get_param: MemcachedMaxMemory}
|
||||
memcached::verbosity: 'v'
|
||||
memcached::verbosity:
|
||||
list_join:
|
||||
- ''
|
||||
- - 'v'
|
||||
- if:
|
||||
- service_debug
|
||||
- 'v'
|
||||
- ''
|
||||
tripleo.memcached.firewall_rules:
|
||||
'121 memcached':
|
||||
dport: 11211
|
||||
|
@ -0,0 +1,6 @@
|
||||
---
|
||||
features:
|
||||
- |
|
||||
The memcached service now reacts to the Debug flag, which will make its
|
||||
logs verbose. Also, the MemcachedDebug flag was added, which will just add
|
||||
this for the individual service.
|
Loading…
Reference in New Issue
Block a user