slow_query_log should be off by default and relocated

Bug #1463956 reported by Bjoern
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack-Ansible
Fix Released
Low
David Wilde
Juno
Fix Released
Low
David Wilde
Kilo
Fix Released
Low
David Wilde
Trunk
Fix Released
Low
David Wilde

Bug Description

The slow query log is currently located at /var/log/mysql/mysql-slow.log and is not covered by logrotate.
I would suggest that we turn it off by default and relocate the logfile to /var/lib/mysql/mysql-slow.log which is bind mounted and contains more disk space than the container root.

Revision history for this message
Jesse Pretorius (jesse-pretorius) wrote :

juno's log location is /var/log/mysql/mysql-slow.log
kilo/master's log location is /var/log/mysql_logs/mysql-slow.log

we should allow the slow log to be enabled/disabled by the deployer instead of hard setting it in the template

Revision history for this message
Jesse Pretorius (jesse-pretorius) wrote :

log rotation should also be fixed

Revision history for this message
Jimmy McCrory (jimmy-mccrory) wrote :

Related, but not sure if this should be a separate bug, log-queries-not-using-indexes is also on by default and seems to be the cause of mysql-slow.log growing so large.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to os-ansible-deployment (master)

Fix proposed to branch: master
Review: https://review.openstack.org/200274

Changed in openstack-ansible:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to os-ansible-deployment (master)

Reviewed: https://review.openstack.org/200274
Committed: https://git.openstack.org/cgit/stackforge/os-ansible-deployment/commit/?id=70edf52fcd99335bd272d08ded745dec05148215
Submitter: Jenkins
Branch: master

commit 70edf52fcd99335bd272d08ded745dec05148215
Author: Dave Wilde <email address hidden>
Date: Thu Jul 9 14:22:42 2015 -0700

    Parameterize galera slow/unindexed logging options

    This change creates variables for Galera slow logging and logging
    of unindexed queries. The change also defaults these variables to
    off.

    DocImpact
    Closes-Bug: #1463956

    Change-Id: I5f786e2090c631627f3b44ada2baf05fd9699b97

Changed in openstack-ansible:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to os-ansible-deployment (kilo)

Reviewed: https://review.openstack.org/200728
Committed: https://git.openstack.org/cgit/stackforge/os-ansible-deployment/commit/?id=d4d7c7256b685760f6573cf054dbb31e2e59a3d5
Submitter: Jenkins
Branch: kilo

commit d4d7c7256b685760f6573cf054dbb31e2e59a3d5
Author: Dave Wilde <email address hidden>
Date: Thu Jul 9 14:22:42 2015 -0700

    Parameterize galera slow/unindexed logging options

    This change creates variables for Galera slow logging and logging
    of unindexed queries. The change also defaults these variables to
    off.

    DocImpact
    Closes-Bug: #1463956
    (cherry-picked from: I5f786e2090c631627f3b44ada2baf05fd9699b97)

    Change-Id: I5f786e2090c631627f3b44ada2baf05fd9699b97

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to os-ansible-deployment (juno)

Reviewed: https://review.openstack.org/201625
Committed: https://git.openstack.org/cgit/stackforge/os-ansible-deployment/commit/?id=c028a2eb6d28f1c1102b84252167121a12a9b87e
Submitter: Jenkins
Branch: juno

commit c028a2eb6d28f1c1102b84252167121a12a9b87e
Author: Nolan Brubaker <email address hidden>
Date: Tue Jul 14 11:16:46 2015 -0400

    Parameterize galera slow/unindexed logging options

    This change creates variables for Galera slow logging and logging
    of unindexed queries. The change also defaults these variables to
    off.

    Manual backport from master due to differing directory layout.
    DocImpact
    Closes-Bug: #1463956

    Change-Id: I5f786e2090c631627f3b44ada2baf05fd9699b97

Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote : Fix included in openstack/openstack-ansible 11.2.11

This issue was fixed in the openstack/openstack-ansible 11.2.11 release.

Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/openstack-ansible 11.2.12

This issue was fixed in the openstack/openstack-ansible 11.2.12 release.

Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote : Fix included in openstack/openstack-ansible 11.2.14

This issue was fixed in the openstack/openstack-ansible 11.2.14 release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.