Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vulcand error reported: failed to add middleware: Max connections should be >= 0 #5

Open
glycerine opened this issue Oct 6, 2014 · 0 comments

Comments

@glycerine
Copy link

Copying all the etdctl setup statements from the manual (http://www.vulcanproxy.com/proxy.html#etcd), then starting vulcand, I get the following error. Vulcand still runs (no panic), but perhaps a max connections setting needs to be added to the example in the manual?

$ etcdctl set /vulcand/hosts/localhost/locations/loc1/middlewares/ratelimit/rl1 '{"Type": "ratelimit", "Middleware":{"Requests":1, "PeriodSeconds":1, "Burst":3, "Variable": "client.ip"}}'
{"Type": "ratelimit", "Middleware":{"Requests":1, "PeriodSeconds":1, "Burst":3, "Variable": "client.ip"}}
$ etcdctl set /vulcand/hosts/localhost/locations/loc1/middlewares/connlimit/rl1 '{"Type": "connlimit", "Middleware":{"Requests":1, "PeriodSeconds":1, "Burst":3, "Variable": "client.ip"}}'
{"Type": "connlimit", "Middleware":{"Requests":1, "PeriodSeconds":1, "Burst":3, "Variable": "client.ip"}}
$ vulcand
ERROR Oct  4 21:26:22.217: PID:4504 [mux.go:451] failed to add middleware: Max connections should be >= 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant