Skip to content

Instantly share code, notes, and snippets.

@ovanes
Forked from PyYoshi/_.md
Created April 4, 2016 14:06
Show Gist options
  • Select an option

  • Save ovanes/113e836751247f3a79f306c24d8ddebe to your computer and use it in GitHub Desktop.

Select an option

Save ovanes/113e836751247f3a79f306c24d8ddebe 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