{"action":"closed","issue":{"url":"https://api.github.com/repos/coreos/etcd/issues/2028","labels_url":"https://api.github.com/repos/coreos/etcd/issues/2028/labels{/name}","comments_url":"https://api.github.com/repos/coreos/etcd/issues/2028/comments","events_url":"https://api.github.com/repos/coreos/etcd/issues/2028/events","html_url":"https://github.com/coreos/etcd/issues/2028","id":53241716,"number":2028,"title":"Getting \"cannot assign requested address\" on CentOS#7 ","user":{"login":"nkhare","id":287343,"avatar_url":"https://avatars.githubusercontent.com/u/287343?v=3","gravatar_id":"","url":"https://api.github.com/users/nkhare","html_url":"https://github.com/nkhare","followers_url":"https://api.github.com/users/nkhare/followers","following_url":"https://api.github.com/users/nkhare/following{/other_user}","gists_url":"https://api.github.com/users/nkhare/gists{/gist_id}","starred_url":"https://api.github.com/users/nkhare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nkhare/subscriptions","organizations_url":"https://api.github.com/users/nkhare/orgs","repos_url":"https://api.github.com/users/nkhare/repos","events_url":"https://api.github.com/users/nkhare/events{/privacy}","received_events_url":"https://api.github.com/users/nkhare/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-02T08:06:20Z","updated_at":"2015-01-03T04:35:38Z","closed_at":"2015-01-03T04:35:38Z","body":"I configured 3 node etcd cluster and set ulimit value to 100000 (ulimit -n 100000) on all nodes and ran boom benchmark for 50 K request with concurrency set to 500 \r\n$ ./gocode/bin/boom -m PUT -d value=bar -n 50000 -c 500 http://etcdhost1:4001/v2/keys/bench\r\n\r\nand I always get \" dial tcp 172.20.10.77:4001: cannot assign requested address\r\n\" errors.\r\n\r\nWith 20400 requests it works fine.\r\n\r\nFollowing are Steps to re-produce the issue on single system. \r\n\r\n1. Install CentOS 7.\r\n\r\n2. Add following entries in /etc/hosts\r\n\r\n127.0.0.1       etcdhost1\r\n127.0.0.1       etcdhost2\r\n127.0.0.1       etcdhost3\r\n\r\n3. Install wget,golang,git,lsof\r\n$ yum install wget golang git lsof\r\n\r\n4. Download etcd and extract it on /root\r\n$ wget https://github.com/coreos/etcd/releases/download/v2.0.0-rc.1/etcd-v2.0.0-rc.1-linux-amd64.tar.gz\r\n\r\n5. Untar it create a softlink to /root/etcd \r\n$ tar xvfz etcd-v2.0.0-rc.1-linux-amd64.tar.gz \r\n$ ln -s etcd-v2.0.0-rc.1-linux-amd64 etcd\r\n\r\n6. Install goreman and boom\r\n$ mkdir /root/gocode\r\n$ export GOPATH=/root/gocode\r\n$ go get github.com/mattn/goreman\r\n$ go get github.com/rakyll/boom\r\n\r\n\r\n7. Create a a goreman config file (Procfile_3nodes) with following content\r\netcd1: /root/etcd/etcd -name etcdhost1 -listen-client-urls http://etcdhost1:4001 -advertise-client-urls http://etcdhost1:4001 -listen-peer-urls http://etcdhost1:7001 -initial-advertise-peer-urls http://etcdhost1:7001 -initial-cluster-token etcd-cluster-1 -initial-cluster 'etcdhost2=http://etcdhost2:7002,etcdhost1=http://etcdhost1:7001,etcdhost3=http://etcdhost3:7003' -initial-cluster-state new\r\netcd2: /root/etcd/etcd -name etcdhost2 -listen-client-urls http://etcdhost2:4002 -advertise-client-urls http://etcdhost2:4002 -listen-peer-urls http://etcdhost2:7002 -initial-advertise-peer-urls http://etcdhost2:7002 -initial-cluster-token etcd-cluster-1 -initial-cluster 'etcdhost2=http://etcdhost2:7002,etcdhost1=http://etcdhost1:7001,etcdhost3=http://etcdhost3:7003' -initial-cluster-state new\r\netcd3: /root/etcd/etcd -name etcdhost3 -listen-client-urls http://etcdhost3:4003 -advertise-client-urls http://etcdhost3:4003 -listen-peer-urls http://etcdhost3:7003 -initial-advertise-peer-urls http://etcdhost3:7003 -initial-cluster-token etcd-cluster-1 -initial-cluster 'etcdhost2=http://etcdhost2:7002,etcdhost1=http://etcdhost1:7001,etcdhost3=http://etcdhost3:7003' -initial-cluster-state new\r\n  \r\n8. Set ulimit to 100000\r\n$ ulimit -n 100000\r\n\r\n9. Using goreman set the etcd cluster\r\n$ /root/gocode/bin/goreman -f Procfile_3nodes start \r\n\r\n10. Run the benchmark\r\n$ /root/gocode/bin/boom -m PUT -d value=bar -n 50000 -c 500 http://etcdhost1:4001/v2/keys/bench\r\n"}}