Kaynağa Gözat

Raise open_files_limit for mysql

Change-Id: I6047d632a2bfeb6525ac60092436ccd5334671e4
pull/29/head
Jan Cach 7 yıl önce
ebeveyn
işleme
36c3a68c20
2 değiştirilmiş dosya ile 62 ekleme ve 0 silme
  1. +31
    -0
      galera/master.sls
  2. +31
    -0
      galera/slave.sls

+ 31
- 0
galera/master.sls Dosyayı Görüntüle

@@ -62,6 +62,37 @@ galera_overide:
- require:
- pkg: galera_packages

{%- elif grains.get('init', None) == "systemd" %}

galera_systemd_directory_present:
file.directory:
- name: /etc/systemd/system/mysql.service.d
- user: root
- group: root
- mode: 755
- require:
- pkg: galera_packages

galera_override_limit_no_file:
file.managed:
- name: /etc/systemd/system/mysql.service.d/override.conf
- contents: |
[service]
LimitNOFILE=1024000
- require:
- pkg: galera_packages
- file: galera_systemd_directory_present
- watch_in:
- service: galera_service

mysql_restart_systemd:
module.wait:
- name: service.systemctl_reload
- watch:
- file: /etc/systemd/system/mysql.service.d/override.conf
- require_in:
- service: galera_service

{%- endif %}

galera_conf_debian:

+ 31
- 0
galera/slave.sls Dosyayı Görüntüle

@@ -62,6 +62,37 @@ galera_overide:
- require:
- pkg: galera_packages

{%- elif grains.get('init', None) == "systemd" %}

galera_systemd_directory_present:
file.directory:
- name: /etc/systemd/system/mysql.service.d
- user: root
- group: root
- mode: 755
- require:
- pkg: galera_packages

galera_override_limit_no_file:
file.managed:
- name: /etc/systemd/system/mysql.service.d/override.conf
- contents: |
[service]
LimitNOFILE=1024000
- require:
- pkg: galera_packages
- file: galera_systemd_directory_present
- watch_in:
- service: galera_service

mysql_restart_systemd:
module.wait:
- name: service.systemctl_reload
- watch:
- file: /etc/systemd/system/mysql.service.d/override.conf
- require_in:
- service: galera_service

{%- endif %}

galera_conf_debian:

Yükleniyor…
İptal
Kaydet