Logging not enabled for memcached
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack-Ansible |
Fix Released
|
Wishlist
|
Jean-Philippe Evrard |
Bug Description
When attempting to troubleshoot a monitoring alert regarding memcached being offline/
/etc/memcached.conf
# Ansible managed: /etc/ansible/
-d
logfile /var/log/
-m 1995
-p 11211
-u memcache
-l 172.29.237.146
-c 1024
-t 4
/etc/ansible/
# {{ ansible_managed }}
-d
logfile {{ memcached_log }}
-m {{ memcached_memory }}
-p {{ memcached_port }}
-u {{ memcached_user }}
-l {{ memcached_listen }}
-c {{ memcached_
-t {{ memcached_threads }}
Looking at the code, I believe memcached_log should be memcached_log_file and memcached_log_level should be added with '-v' as the default. Confirmation regarding the logging not being available with simply using logfile can be found here: https:/
If you enable verbose mode, using the -v, -vv, or -vvv options, then the information output by memcached includes details of the operations being performed.
Without the verbose options, memcached normally produces no output during normal operating.
Output when using -v
The lowest verbosity level shows you:
Errors and warnings
Transient errors
Protocol and socket errors, including exhausting available connections
Each registered client connection, including the socket descriptor number and the protocol used.
Changed in openstack-ansible: | |
assignee: | nobody → Jean-Philippe Evrard (jean-philippe-evrard) |
Changed in openstack-ansible: | |
status: | Confirmed → In Progress |
Changed in openstack-ansible: | |
status: | Fix Released → Fix Committed |
status: | Fix Committed → Fix Released |
Changed in openstack-ansible: | |
milestone: | none → newton-1 |
Logg rotation and rsyslog redirection should also be implemented.