80d7ee77ecf84696454209ddcac5fc0951439a34
wiki/creating-ec2-image-from-scratch.md
| ... | ... | @@ -52,4 +52,22 @@ rc5.d/S95sailing |
| 52 | 52 | rc6.d/K10sailing |
| 53 | 53 | ``` |
| 54 | 54 | |
| 55 | -Linked /etc/profile.d/sailing.sh to /home/sailing/code/configuration/sailing.sh. As this contains a PATH entry for /opt/amazon and the new image has the Amazon scripts at /opt/aws, I aldo created a symbolic link from /opt/amazon to /opt/aws to let this same path configuration find those scripts under the old and the new images. |
|
| ... | ... | \ No newline at end of file |
| 0 | +Linked /etc/profile.d/sailing.sh to /home/sailing/code/configuration/sailing.sh. As this contains a PATH entry for /opt/amazon and the new image has the Amazon scripts at /opt/aws, I aldo created a symbolic link from /opt/amazon to /opt/aws to let this same path configuration find those scripts under the old and the new images. |
|
| 1 | + |
|
| 2 | +Added the lines |
|
| 3 | + |
|
| 4 | +``` |
|
| 5 | +# number of connections the firewall can track |
|
| 6 | +net.ipv4.ip_conntrac_max = 131072 |
|
| 7 | +``` |
|
| 8 | + |
|
| 9 | +to `/etc/sysctl.conf` in order to increase the number of connections that are possible concurrently. |
|
| 10 | + |
|
| 11 | +Added the following two lines to `/etc/security/limits.conf`: |
|
| 12 | + |
|
| 13 | +``` |
|
| 14 | +* hard nproc unlimited |
|
| 15 | +* hard nofile 65000 |
|
| 16 | +``` |
|
| 17 | + |
|
| 18 | +This increases the maximum number of open files allowed from the default 1024 to a more appropriate 65k. |
|
| ... | ... | \ No newline at end of file |