enlarge tcp source ports range to deal with massive requests

Change-Id: I505d39d37e17033becac0b0dd9ea4d6286cd9743
This commit is contained in:
zhouya 2017-11-24 19:08:31 +08:00
parent 4becb4f4ea
commit a2c1991921

View File

@ -51,3 +51,7 @@ systemctl stop firewalld
prepare_dir=$(dirname $(readlink -f "$0"))
yum install -y $prepare_dir/daisy4nfv-jasmine*.rpm
docker load < $prepare_dir/registry-server.tar
#enlarge the TCP source port range to deal with functest thousands requests
sudo sysctl net.ipv4.ip_local_port_range="5000 65000"
echo -e "net.ipv4.ip_local_port_range='5000 65000'" >> /etc/sysctl.conf