Compare commits

...

9 Commits

Author SHA1 Message Date
fengweihao
aeee8afab9 app-sketch-global升级 2020-10-19 20:43:17 +08:00
fengweihao
67ae52725b cerstore升级 2020-10-19 20:42:42 +08:00
fumingwei
b0c9ea045b 更新kni 2020-10-19 19:33:31 +08:00
luwenpeng
9d9b8ad83c 升级 tfe 到 4.3.14 2020-10-19 18:30:26 +08:00
fumingwei
1c5ea5b740 1、增加内存限制 2020-10-19 14:52:08 +08:00
fumingwei
7800356765 修改telegraf 安装失败问题 2020-10-17 18:04:44 +08:00
fumingwei
11bf3dfa8e Merge branch 'tsg-version20.11.rc1-deploy-firewall' into tsg-version20.11.rc1-deploy 2020-10-17 14:12:48 +08:00
fumingwei
3fdae02a52 1、增加telegraf collect 部署 2、修改telegrafaf 配置文件 2020-10-17 13:59:56 +08:00
fumingwei
f0725b0e02 修改 clotho 为 package_dump 2020-10-16 16:57:20 +08:00
34 changed files with 102 additions and 14 deletions

View File

@@ -9,6 +9,7 @@
roles:
- framework
- kernel-ml
- telegraf_collect
- hosts: adc_mxn
remote_user: root
@@ -114,6 +115,7 @@
- cert-redis
- tfe
- telegraf_statistic
- telegraf_collect
- proxy_status
# - tsg_device_tag
- reboot

View File

@@ -60,7 +60,7 @@ pangu_log_level: DEBUG
doh_log_level: DEBUG
certstore_log_level: 10
clotho_log_level: 10
packet_dump_log_level: 10
#########################################
#Sapp Performance Config

View File

@@ -7,7 +7,7 @@
yum:
name:
- /tmp/ansible_deploy/emqx-centos7-v4.1.2.x86_64.rpm
- /tmp/ansible_deploy/app-sketch-global-1.0.2.20200918.ab44d17-1.el7.x86_64.rpm
- /tmp/ansible_deploy/app-sketch-global-1.0.3.202010.a7b2e40-1.el7.x86_64.rpm
state: present
- name: "template the app_sketch_global.conf"
@@ -25,9 +25,12 @@
name: emqx.service
state: started
enabled: yes
daemon_reload: yes
- name: "Start app-sketch-global"
systemd:
name: app-sketch-global.service
state: started
enabled: yes
daemon_reload: yes

View File

@@ -0,0 +1,2 @@
[Service]
MemoryMax=10G

View File

@@ -10,7 +10,7 @@
- name: install certstore
yum:
name:
- /tmp/ansible_deploy/certstore-2.1.2.20200923.a36312c-1.el7.x86_64.rpm
- /tmp/ansible_deploy/certstore-2.1.3.202010.81eef83-1.el7.x86_64.rpm
state: present
- name: template certstore configure file
@@ -23,6 +23,12 @@
src: "{{ role_path }}/templates/zlog.conf.j2"
dest: /opt/tsg/certstore/conf/zlog.conf
- name: "copy memory limit file to certstore.service.d"
copy:
src: "{{ role_path }}/files/memory.conf"
dest: /etc/systemd/system/certstore.service.d/
mode: 0644
- name: "start certstore"
systemd:
name: certstore.service

View File

@@ -7,7 +7,7 @@
- name: "install kni rpms from localhost"
yum:
name:
- /tmp/ansible_deploy/kni-20.10.20201014.6d458ba-1.el7.x86_64.rpm
- /tmp/ansible_deploy/kni-20.10.20201019.3f20d93-2.el7.x86_64.rpm
state: present
- name: Template the kni.conf

View File

@@ -0,0 +1,2 @@
[Service]
MemoryMax=100G

View File

@@ -161,12 +161,18 @@
daemon_reload: yes
when: nic_traffic_mirror is defined
- name: "copy memory limit file to tfe.service.d"
copy:
src: "{{ role_path }}/files/memory.conf"
dest: /etc/systemd/system/mrzcpd.service.d/
mode: 0644
- name: "mask mrzcpd on server_tun_mode"
systemd:
name: mrzcpd
enabled: no
masked: yes
daemon_reload: yes
when:
- tsg_access_type == 0
@@ -175,5 +181,6 @@
name: mrtunnat
enabled: no
masked: yes
daemon_reload: yes
when:
- tsg_access_type == 0

View File

@@ -0,0 +1,19 @@
[Unit]
Description=packet dump service
After=After=network.target
[Service]
Type=fork
WorkingDirectory=/home/mesasoft/packet_dump
ExecStart=/home/mesasoft/packet_dump/packet_dump
TimeoutSec=60s
RestartSec=10s
Restart=always
LimitNOFILE=524288
LimitNPROC=infinity
LimitCORE=infinity
TasksMax=infinity
Delegate=yes
[Install]
WantedBy=multi-user.target

View File

@@ -11,4 +11,4 @@ disable_coredump=0
enable_breakpad=1
breakpad_minidump_dir=/tmp/packet_dump/crashreport
enable_breakpad_upload=0
breakpad_upload_url={{ breakpad_upload }}
breakpad_upload_url={{ breakpad_upload_url }}

View File

@@ -14,7 +14,7 @@
copy:
src: "{{ role_path }}/files/proxy-status.service"
dest: "/usr/lib/systemd/system/"
mode: 0755
mode: 0644
- name: "enable proxy-status"
systemd:

View File

@@ -0,0 +1,2 @@
[Service]
MemoryMax=100G

Binary file not shown.

View File

@@ -13,7 +13,7 @@
- name: "install sapp rpms from localhost"
yum:
name:
- /tmp/ansible_deploy/sapp-4.1.11.3fb4f0b-2.el7.x86_64.rpm
- /tmp/ansible_deploy/sapp-4.1.12.b8f6ea4-2.el7.x86_64.rpm
state: present
skip_broken: yes
@@ -51,7 +51,13 @@
template:
src: "{{ role_path }}/templates/sapp.service.j2"
dest: /usr/lib/systemd/system/sapp.service
mode: 0755
mode: 0644
- name: "copy memory limit file to sapp.service.d"
copy:
src: "{{ role_path }}/files/memory.conf"
dest: /etc/systemd/system/sapp.service.d/
mode: 0644
- name: "enable sapp"
systemd:

View File

@@ -19,7 +19,7 @@
copy:
src: "{{ role_path }}/files/telegraf_collect.service"
dest: /usr/lib/systemd/system
mode: 0755
mode: 0644
- name: "Start telegraf_collect"
systemd:

View File

@@ -1,5 +1,5 @@
[global_tags]
blade = {{bladename}}
blade = "{{bladename}}"
[agent]
interval = "5s"
round_interval = true

View File

@@ -19,10 +19,11 @@
copy:
src: "{{ role_path }}/files/telegraf_statistic.service"
dest: /usr/lib/systemd/system
mode: 0755
mode: 0644
- name: "Start telegraf"
systemd:
name: telegraf_statistic.service
state: started
enabled: yes
daemon_reload: yes

View File

@@ -56,4 +56,4 @@
[[outputs.influxdb]]
urls = ["{{ monitor_outputs_influxdb.url }}"]
database = "tsg_stat
database = "tsg_stat"

View File

@@ -0,0 +1,2 @@
[Service]
MemoryMax=100G

Binary file not shown.

View File

@@ -8,13 +8,13 @@
copy:
src: "{{ role_path }}/files/tfe.service"
dest: /usr/lib/systemd/system/
mode: 0755
mode: 0644
- name: "install tfe rpms from localhost"
yum:
name:
- /tmp/ansible_deploy/tfe-kmod-v1.0.5.20200408-1dkms.noarch.rpm
- /tmp/ansible_deploy/tfe-4.3.12.be94218-1.el7.x86_64.rpm
- /tmp/ansible_deploy/tfe-4.3.14.13d2607-1.el7.x86_64.rpm
state: present
- name: "template tfe-env config"
@@ -63,6 +63,12 @@
src: "{{ role_path }}/templates/require-mrzcpd.conf.j2"
dest: /etc/systemd/system/tfe.service.d/require-mrzcpd.conf
- name: "copy memory limit file to tfe.service.d"
copy:
src: "{{ role_path }}/files/memory.conf"
dest: /etc/systemd/system/tfe.service.d/
mode: 0644
- name: "enable tfe-env"
systemd:
name: tfe-env

View File

@@ -0,0 +1,2 @@
[Service]
MemoryMax=100G

View File

@@ -28,6 +28,12 @@
- name: "tsg-diagnose init certs"
shell: /bin/sh /opt/tsg/tsg-diagnose/deploy/init_certs/init_badssl_certs.sh
- name: "copy memory limit file to tsg-diagnose.service.d"
copy:
src: "{{ role_path }}/files/memory.conf"
dest: /etc/systemd/system/tsg-diagnose.service.d/
mode: 0644
- name: 'Tsg-diagnose service start'
systemd:
name: tsg-diagnose

View File

@@ -0,0 +1,16 @@
####################
#Uninstall packet_dump
- name: "[uninstall packet_dump] stop packet_dump"
systemd:
name: packet_dump
state: stopped
enabled: no
when: uninstall.packet_dump == 1
ignore_errors: true
- name: "[uninstall packet_dump] uninstall packet_dump"
yum:
name:
- "{{ packet_dump }}"
state: absent
when: uninstall.packet_dump == 1

View File

@@ -41,6 +41,7 @@ tfe=`rpm -qa |grep ^tfe-4`
tfe_kmod=`rpm -qa |grep ^tfe-kmod`
http_healthcheck=`rpm -qa |grep ^http_healthcheck`
clotho=`rpm -qa |grep ^clotho`
packet_dump=`rpm -qa |grep ^packet_dump`
certstore=`rpm -qa |grep ^certstore`
@@ -125,6 +126,9 @@ http_healthcheck: $http_healthcheck
#clotho
clotho: $clotho
#packet_dump
packet_dump: $packet_dump
#####################
#certstore
certstore: $certstore

View File

@@ -17,6 +17,7 @@
- certstore
- cert_redis
- clotho
- packet_dump
- http_healthcheck
- framework
- telegraf_statistic
@@ -45,6 +46,7 @@
- certstore
- cert_redis
- clotho
- packet_dump
- http_healthcheck
- framework
- telegraf_statistic