1. add role reboot adc mcn by ipmitool in mxn

2. modify  sapp and tfe memory limit
This commit is contained in:
fumingwei
2020-11-12 17:06:30 +06:00
parent 255baa9ac1
commit 69d88a9fd0
4 changed files with 16 additions and 4 deletions

View File

@@ -0,0 +1,4 @@
- hosts: adc_mxn
remote_user: root
roles:
- reboot-adc-mcn-by-ipmitool

View File

@@ -0,0 +1,8 @@
- name: "reboot adc in mxn by ipmitool"
shell: "{{ item }}"
ignore_errors: true
with_items:
- ipmitool -t 0x90 chassis power reset
- ipmitool -t 0x80 chassis power reset
- ipmitool -t 0x88 chassis power reset
- ipmitool -t 0x98 chassis power reset

View File

@@ -1,3 +1,3 @@
[Service] [Service]
MemoryLimit=100G MemoryLimit=80G
ExecStartPost=/bin/bash -c "echo 100G > /sys/fs/cgroup/memory/system.slice/sapp.service/memory.memsw.limit_in_bytes" ExecStartPost=/bin/bash -c "echo 80G > /sys/fs/cgroup/memory/system.slice/sapp.service/memory.memsw.limit_in_bytes"

View File

@@ -1,3 +1,3 @@
[Service] [Service]
MemoryLimit=80G MemoryLimit=100G
ExecStartPost=/bin/bash -c "echo 80G > /sys/fs/cgroup/memory/system.slice/tfe.service/memory.memsw.limit_in_bytes" ExecStartPost=/bin/bash -c "echo 100G > /sys/fs/cgroup/memory/system.slice/tfe.service/memory.memsw.limit_in_bytes"