Skip to content

Instantly share code, notes, and snippets.

@rca
Created October 14, 2013 20:38
Show Gist options
  • Save rca/6981794 to your computer and use it in GitHub Desktop.
Save rca/6981794 to your computer and use it in GitHub Desktop.
On etcd server:
```
[berto@scratch]$ pgrep -l -f etcd
30453 /usr/bin/etcd -n scratch.vb.baremetal.io -d /var/lib/etcd -s 192.168.42.143:7001 -c 192.168.42.143:4001
[berto@scratch]$ watch 'sudo ls /proc/$(pgrep etcd)/fd | wc -l'
```
On etcd client:
```
(etcd)baremetal@baremetal:~$ curl -L --max-time 1 'http://192.168.42.143:4001/version'
etcd v0.1.1-256-g812fd43
(etcd)baremetal@baremetal:~$ curl -L --max-time 1 'http://192.168.42.143:4001/v2/keys/message?wait=true'
curl: (28) Operation timed out after 1001 milliseconds with 0 out of -1 bytes received
```
After running the client curl commands a few times, see that the number of fd's the server has open keeps incrementing rather than purging the timed out connections.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment