SQL database MariaDB setup in Installation Guide. The default install ignores 'max_connections' setting.

Bug #1676870 reported by Damian
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstack-manuals
Won't Fix
Medium
Unassigned

Bug Description

- [x] This is a doc addition request.

Installing on the CentOS it seems MariaDB ignores 'max_connections' variable.
In the accompanying documentation it is suggested to create file:

/etc/systemd/system/mariadb.service.d/limits.conf

with content:
[Service]
LimitNOFILE=10000

Then reload systemd:
# systemctl daemon-reload

Restart database
# systemctl restart mariadb.service

Details:
/usr/lib/systemd/system/mariadb.service

Reason:

The default database limits set by MariaDB, which is about 200, is quickly exhausted by querying the list of servers.
The visible result in logs is "Too many connections to database".
The 'max_connections' is computed based on 'open files' limit.
Because CentOS is systemd-based appropriate increase of limits should be done through systemd interface.

-----------------------------------
Release: 0.1 on 2017-03-24 15:12
SHA: a370d15d72958f0089527fc94bcfb3a34a5c5b92
Source: http://git.openstack.org/cgit/openstack/openstack-manuals/tree/doc/install-guide/source/environment-sql-database.rst
URL: https://docs.openstack.org/newton/install-guide-rdo/environment-sql-database.html

Lana (loquacity)
Changed in openstack-manuals:
status: New → Triaged
importance: Undecided → Medium
milestone: none → pike
Revision history for this message
Lana (loquacity) wrote :

Looking closer at this now: I think that, while this may be true, it's probably not useful information for the Install Guide. The settings will work as given, and that is fine for a test/PoC install.

Changed in openstack-manuals:
status: Triaged → Won't Fix
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.