Skip to content

Instantly share code, notes, and snippets.

@PyYoshi
Created November 5, 2015 02:34
Show Gist options
  • Save PyYoshi/55c6953b7e8267d81daf to your computer and use it in GitHub Desktop.
Save PyYoshi/55c6953b7e8267d81daf to your computer and use it in GitHub Desktop.
Set somaxconn=1024 on CoreOS
$ sudo -i
# vim /etc/systemd/system/somaxconn1024.service
# systemctl enable somaxconn1024
# systemctl start somaxconn1024
# systemctl status somaxconn1024
# cat /proc/sys/net/core/somaxconn
[Unit]
Description=Set somaxconn=1024
[Service]
Type=oneshot
ExecStart=/usr/bin/sh -c "/usr/bin/echo 1024 > /proc/sys/net/core/somaxconn"
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment