Skip to content

Instantly share code, notes, and snippets.

@uzysjung
Last active January 22, 2020 05:59
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save uzysjung/1a2350d337584da31b1b to your computer and use it in GitHub Desktop.
Save uzysjung/1a2350d337584da31b1b to your computer and use it in GitHub Desktop.
increase max connections in elasticbeanstalk
commands:
01limits:
command: echo -e "#commands\nroot soft nofile 65536\nroot hard nofile 65536\n* soft nofile 65536\n* hard nofile 65536" >/etc/security/limits.d/custom.conf
02sysctl:
command: sysctl -w fs.file-max=131072 fs.nr_open=131072 net.ipv4.netfilter.ip_conntrack_max=131072 net.nf_conntrack_max=131072
@aditrades
Copy link

Can you approve this is still working for you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment