• 欢迎访问蜷缩的蜗牛博客 蜷缩的蜗牛
  • 微信搜索: 蜷缩的蜗牛 | 联系站长 kbsonlong@qq.com
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧
  • 本站已开通微信小程序,可以扫描底部二维码关注,或者搜索alongparty!!

Saltstack任务编排stats.sls


  • packages.sls
init.packages:
  pkg.installed:
    - pkgs:
      - vim-enhanced
      - gcc
      - make
      - cmake
      - lrzsz
      - dos2unix
      - nmap
      - iftop
      - iotop
      - unzip
      - telnet
      - yum-utils
      - device-mapper-persistent-data
      - lvm2
      - salt-minion
      - ufw
      - docker-ce
      - ntp
  • sysctl.sls
net.ipv4.conf.default.rp_filter:
  sysctl.present:
    - value: 1
net.ipv4.conf.default.accept_source_route:
  sysctl.present:
    - value: 0

kernel.sysrq:
  sysctl.present:
    - value: 0

kernel.core_uses_pid:
  sysctl.present:
    - value: 1

kernel.msgmnb:
  sysctl.present:
    - value: 65536

kernel.msgmax:
  sysctl.present:
    - value: 65536

kernel.shmmax:
  sysctl.present:
    - value: 68719476736

kernel.shmall:
  sysctl.present:
    - value: 4294967296

kernel.shmmni:
  sysctl.present:
    - value: 4096

net.ipv4.tcp_fin_timeout:
  sysctl.present:
    - value: 30

net.ipv4.tcp_keepalive_time:
  sysctl.present:
    - value: 1200

net.ipv4.tcp_window_scaling:
  sysctl.present:
    - value: 1

net.ipv4.tcp_sack:
  sysctl.present:
    - value: 1

net.ipv4.tcp_syncookies:
  sysctl.present:
    - value: 1

net.ipv4.tcp_tw_reuse:
  sysctl.present:
    - value: 1

net.ipv4.tcp_tw_recycle:
  sysctl.present:
    - value: 1

net.ipv4.ip_local_port_range:
  sysctl.present:
    - value: 1024 65000


net.ipv4.tcp_max_tw_buckets:
  sysctl.present:
    - value: 6000

net.ipv4.tcp_max_syn_backlog:
  sysctl.present:
    - value: 65535

net.core.netdev_max_backlog:
  sysctl.present:
    - value: 262144


net.core.wmem_default:
  sysctl.present:
    - value: 8388608

net.core.rmem_default:
  sysctl.present:
    - value: 8388608


net.core.rmem_max:
  sysctl.present:
    - value: 16777216

net.core.wmem_max:
  sysctl.present:
    - value: 16777216


net.ipv4.tcp_timestamps:
  sysctl.present:
    - value: 0

net.ipv4.tcp_synack_retries:
  sysctl.present:
    - value: 2

net.ipv4.tcp_syn_retries:
  sysctl.present:
    - value: 2

net.ipv4.tcp_mem:
  sysctl.present:
    - value: 94500000 915000000 927000000

net.ipv4.tcp_max_orphans:
  sysctl.present:
    - value: 3276800
  • service.sls
docker:
  service.running:
    - enable: True
    - reload: True
    - watch:  #依赖的项目,如果 init.packages 项没有正常执行,此项任务将不执行
      - init.packages 

ntpd:
  service.running:
    - enable: True
    - reload: True
    - watch:   
      - init.packages

蜷缩的蜗牛 , 版权所有丨如未注明 , 均为原创丨 转载请注明Saltstack 任务编排 stats.sls
喜欢 (0)
[]
分享 (0)
蜷缩的蜗牛
关于作者:
IT运维工程师,熟练使用复制、粘贴技能;平时爱好打羽毛球,虽然很菜,也喜欢出去旅游!个人公众号:蜷缩的蜗牛,欢迎关注订阅~~网站小程序:alongparty,支持搜索博客内容,订阅专题,评论、点赞等等

您必须 登录 才能发表评论!