Skip to content

Instantly share code, notes, and snippets.

@chaudum
Created February 11, 2016 09:37
Show Gist options
  • Save chaudum/fc00b5eaf3a839cc6624 to your computer and use it in GitHub Desktop.
Save chaudum/fc00b5eaf3a839cc6624 to your computer and use it in GitHub Desktop.
salt-minion on CentOS 7.1 / Azure Cloud
# file: /etc/salt/minion
# We had problems that the salt minions that run on Azure (CentOS 7.1) disconnected all the time.
# The problem was solved by configuring the TCP keepalive settings instead of using the OS defaults:
# ... your configuration here ...
# loglevel info for more information about connectivity problems
log_level: info
# keepalive is set default to True but in the config shipped with the package it is commented out
tcp_keepalive: True
# send the first keepalive packets after 60s
tcp_keepalive_idle: 60
# send subsequent keepalive packets every 60s
tcp_keepalive_intvl: 60
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment