瀏覽代碼

Merge pull request #20 from tcpcloud/ulimit

Fix mysql with adding ulimit -n 102400
tags/2016.12
Filip Pytloun 8 年之前
父節點
當前提交
f2c86c8915
共有 2 個檔案被更改,包括 29 行新增3 行删除
  1. +15
    -2
      galera/master.sls
  2. +14
    -1
      galera/slave.sls

+ 15
- 2
galera/master.sls 查看文件

@@ -45,12 +45,25 @@ galera_run_dir:
- require:
- pkg: galera_packages

{%- if grains.get('init', None) == "upstart" %}

galera_purge_init:
file.absent:
- name: /etc/init/mysql.conf
- require:
- name: /etc/init.d/mysql
- require:
- pkg: galera_packages

galera_overide:
file.managed:
- name: /etc/init/mysql.override
- contents: |
limit nofile 102400 102400
exec /usr/bin/mysqld_safe
- require:
- pkg: galera_packages

{%- endif %}

galera_conf_debian:
file.managed:
- name: /etc/mysql/debian.cnf

+ 14
- 1
galera/slave.sls 查看文件

@@ -45,12 +45,25 @@ galera_run_dir:
- require:
- pkg: galera_packages

{%- if grains.get('init', None) == "upstart" %}

galera_purge_init:
file.absent:
- name: /etc/init/mysql.conf
- name: /etc/init.d/mysql
- require:
- pkg: galera_packages

galera_overide:
file.managed:
- name: /etc/init/mysql.override
- contents: |
limit nofile 102400 102400
exec /usr/bin/mysqld_safe
- require:
- pkg: galera_packages

{%- endif %}

galera_conf_debian:
file.managed:
- name: /etc/mysql/debian.cnf

Loading…
取消
儲存