]> gitweb.fluxo.info Git - puppet-nodo.git/commitdiff
Fixing Out of Resource Problem with MySQL (Errcode: 24) (2)
authorSilvio Rhatto <rhatto@riseup.net>
Wed, 15 Aug 2012 22:20:56 +0000 (19:20 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Wed, 15 Aug 2012 22:20:56 +0000 (19:20 -0300)
manifests/subsystems/database.pp

index 7b5398f13986ab0920ceda6656134509e3c0dd4b..f5ae4469ea00c6d202ef6b73848650737591408e 100644 (file)
@@ -10,6 +10,16 @@ class database {
     content => "mysql soft nofile 24000\nmysql hard nofile 32000\n",
   }
 
+  # Avoid Errcode: 24
+  file { '/etc/mysql/conf.d/mysqld_open_files_limit.cnf':
+    ensure  => present,
+    owner   => root,
+    group   => root,
+    mode    => 0644,
+    content => "[mysqld]\nopen-files-limit = 5000\n",
+    notify  => Service['mysql'],
+  }
+
   # Database definitions
   define instance($password, $ensure = 'present', $privileges = 'all') {
     mysql_database { "$name":