Can't set MySQL max_connections

Bug #1210160 reported by Ian Wells
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Cisco Openstack
Fix Released
Wishlist
Mark T. Voelker

Bug Description

max_connections can't be changed using the mysql puppet module. Necessary if you increase parallelism.

Revision history for this message
Mark T. Voelker (mvoelker) wrote :

This is basically a feature request since it asks for new functionality.

Changed in openstack-cisco:
status: New → Triaged
importance: Undecided → Wishlist
Revision history for this message
Mark T. Voelker (mvoelker) wrote :

Note: upstream now has this (and a whole lot of other things, so it'll need some testing).

Changed in openstack-cisco:
milestone: none → h.2
Changed in openstack-cisco:
milestone: h.2 → h.1
Revision history for this message
Mark T. Voelker (mvoelker) wrote :

Due to the change to the new data model in h.0 and accompanying update to the mysql module (also in h.0), this can now be set by setting the following either in user.common.yaml or in a host override file (substitute the number of connections you want to allow in place of "200" below):

mysql::config::max_connections: 200

Changed in openstack-cisco:
assignee: nobody → Mark T. Voelker (mvoelker)
importance: Wishlist → Medium
importance: Medium → Low
status: Triaged → Fix Released
milestone: h.1 → h.0
importance: Low → Wishlist
Revision history for this message
Ken Schroeder (kschroed) wrote :

This does not appear fixed in Icehouse.1 proposed

hiera_data/user.common.yaml contains
mysql::server::override_options:
  mysqld:
    bind-address: 10.114.196.11
    max-connections: 8192
    max_connect_errors: 4294967295
  isamchk:
    key_buffer_size: 64M

Deployed Mysql server contains.
root@svl4-csm-b-aio-001:~# grep -r max /etc/mysql/*
/etc/mysql/my.cnf:max_allowed_packet = 16M
/etc/mysql/my.cnf:max_binlog_size = 100M
/etc/mysql/my.cnf:max_connections = 151
/etc/mysql/my.cnf:max_allowed_packet = 16M

Revision history for this message
Mark T. Voelker (mvoelker) wrote :

Hmm...works for me:

localadmin@compute01:~$ grep -A6 'override_options:' /etc/puppet/data/hiera_data/user.common.yaml
mysql::server::override_options:
  mysqld:
    bind-address: 192.168.255.134
    max-connections: 8192
    max_connect_errors: 4294967295
  isamchk:
    key_buffer_size: 64M
localadmin@compute01:~$ grep max-connections /etc/mysql/my.cnf
max-connections = 8192
localadmin@compute01:~$

mysql> show variables where Variable_name = 'max_connections';
+-----------------+-------+
| Variable_name | Value |
+-----------------+-------+
| max_connections | 8192 |
+-----------------+-------+
1 row in set (0.00 sec)

mysql>

Revision history for this message
Mark T. Voelker (mvoelker) wrote :

Ah. It didn't work for you because you were in a compressed_ha scenario (for those tuning in at home, see https://bugs.launchpad.net/bugs/1352095).

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.