Commit 8f912fc937bb4d6d35a89b5f080b64e202e8869b

Authored by nollieheel
1 parent 79ec7c33

Bump to version 0.1.3. Set open_files_limit to 19000 as default.

  1 +# 0.1.3
  2 +
  3 +Add open_files_limit default, set to 19000
  4 +
1 # 0.1.2 5 # 0.1.2
2 6
3 Fix default recipe bug where db_map attribute stays empty 7 Fix default recipe bug where db_map attribute stays empty
@@ -120,4 +120,4 @@ Kind of the reverse of `backup2s3`. Download a tarball of a MySQL dump file from @@ -120,4 +120,4 @@ Kind of the reverse of `backup2s3`. Download a tarball of a MySQL dump file from
120 This recipe assumes the node is using an EC2 role that can access the given S3 bucket. Otherwise, enter the AWS credentials in `node.default['cfe-mariadb']['reload']['aws_access_key_id']` and `node.default['cfe-mariadb']['reload']['aws_secret_access_key']`. 120 This recipe assumes the node is using an EC2 role that can access the given S3 bucket. Otherwise, enter the AWS credentials in `node.default['cfe-mariadb']['reload']['aws_access_key_id']` and `node.default['cfe-mariadb']['reload']['aws_secret_access_key']`.
121 ## License and Authors 121 ## License and Authors
122 122
123 -Author:: Earth U. (<sysadmin@chromedia.com>) 123 +Author:: Earth U. (<sysadmin @ chromedia.com>)
1 # 1 #
2 -# Author:: Earth U (<sysadmin@chromedia.com>) 2 +# Author:: Earth U (<sysadmin @ chromedia.com>)
3 # Cookbook Name:: cfe-mariadb 3 # Cookbook Name:: cfe-mariadb
4 # Attributes:: default 4 # Attributes:: default
5 # 5 #
@@ -69,7 +69,8 @@ default['cfe-mariadb']['backup']['logrotate']['options'] = %w{ @@ -69,7 +69,8 @@ default['cfe-mariadb']['backup']['logrotate']['options'] = %w{
69 notifempty 69 notifempty
70 } 70 }
71 71
72 -# Optional attributes for recipe 'reload_from_s3' 72 +# Optional attributes for recipe 'reload_from_s3' only
  73 +# (Usually used during testing)
73 # Recommend: use EC2 instances with proper S3 access roles and 74 # Recommend: use EC2 instances with proper S3 access roles and
74 # leave these attributes unset: 75 # leave these attributes unset:
75 #default['cfe-mariadb']['reload']['aws_access_key_id'] = 'MYKEYID' 76 #default['cfe-mariadb']['reload']['aws_access_key_id'] = 'MYKEYID'
@@ -86,6 +87,7 @@ default['mariadb']['forbid_remote_root'] = true @@ -86,6 +87,7 @@ default['mariadb']['forbid_remote_root'] = true
86 default['mariadb']['innodb']['io_capacity'] = '30' 87 default['mariadb']['innodb']['io_capacity'] = '30'
87 default['mariadb']['innodb']['buffer_pool_size'] = 88 default['mariadb']['innodb']['buffer_pool_size'] =
88 ( %x(free -m).split(' ')[7].to_i * 0.5 ).round.to_s 89 ( %x(free -m).split(' ')[7].to_i * 0.5 ).round.to_s
  90 +default['mariadb']['mysqld']['open_files_limit'] = '19000'
89 91
90 ## Tip: 92 ## Tip:
91 ## For encrypted attributes like passwords, 93 ## For encrypted attributes like passwords,
1 name 'cfe-mariadb' 1 name 'cfe-mariadb'
2 maintainer 'Chromedia Far East, Inc.' 2 maintainer 'Chromedia Far East, Inc.'
3 -maintainer_email 'sysadmin@chromedia.com' 3 +maintainer_email 'sysadmin @ chromedia.com'
4 license 'Apache License' 4 license 'Apache License'
5 description 'Simplifies setup of MariaDB in Chromedia.' 5 description 'Simplifies setup of MariaDB in Chromedia.'
6 long_description IO.read(File.join(File.dirname(__FILE__), 'README.md')) 6 long_description IO.read(File.join(File.dirname(__FILE__), 'README.md'))
7 -version '0.1.2' 7 +version '0.1.3'
8 8
9 { 9 {
10 'mariadb' => '0.2.12', 10 'mariadb' => '0.2.12',
1 # 1 #
2 -# Author:: Earth U (<sysadmin@chromedia.com>) 2 +# Author:: Earth U (<sysadmin @ chromedia.com>)
3 # Cookbook Name:: cfe-mariadb 3 # Cookbook Name:: cfe-mariadb
4 # Recipe:: backup2s3 4 # Recipe:: backup2s3
5 # 5 #
1 # 1 #
2 -# Author:: Earth U (<sysadmin@chromedia.com>) 2 +# Author:: Earth U (<sysadmin @ chromedia.com>)
3 # Cookbook Name:: cfe-mariadb 3 # Cookbook Name:: cfe-mariadb
4 # Recipe:: default 4 # Recipe:: default
5 # 5 #
1 # 1 #
2 -# Author:: Earth U (<sysadmin@chromedia.com>) 2 +# Author:: Earth U (<sysadmin @ chromedia.com>)
3 # Cookbook Name:: cfe-mariadb 3 # Cookbook Name:: cfe-mariadb
4 # Recipe:: reload_from_s3 4 # Recipe:: reload_from_s3
5 # 5 #