jrconlin/pushgo

running load test results in http put refused and handler.ServeHTTP error

Closed this issue · 1 comments

run a load test of 1000 hello, register, 5 http puts on an endpoint

client

Exception: bad http put http://ec2-54-244-206-75.us-west-2.compute.amazonaws.com:8080/update/cROmMnADaSN4XC6ALVLbXddIuGqGRGKhRCvtviTB3wD9LJhJ0Ihy-t8= <urlopen error [Errno 111] Connection refused>

server

2013/07/23 21:57:44 [3]storage: Creating new memcache handler/home/ec2-user/pushgo/src/mozilla.org/util/heka_log.go:157 (0x43cf91)        org/util.HekaLogger.Critical: debug.PrintStack()/home/ec2-user/pushgo/src/mozilla.org/simplepush/storage/memcache.go:72 (0x50bf32)        org/simplepush/storage.(*Storage).isFatal: util.JsMap{"error": err})/home/ec2-user/pushgo/src/mozilla.org/simplepush/storage/memcache.go:541 (0x511469)        org/simplepush/storage.(*Storage).GetUAIDHost: self.isFatal(err)/home/ec2-user/pushgo/src/mozilla.org/simplepush/handlers.go:215 (0x431d13)        org/simplepush.(*Handler).UpdateHandler: host, err := store.GetUAIDHost(uaid)/home/ec2-user/pushgo/main.go:42 (0x401412)        org/simplepush.*Handler.UpdateHandler.fm: http.HandleFunc("/update/", handlers.UpdateHandler)
/home/ec2-user/go/src/pkg/net/http/server.go:1192 (0x4648de)        HandlerFunc.ServeHTTP: f(w, r)
/home/ec2-user/go/src/pkg/net/http/server.go:1459 (0x465bed)        (*ServeMux).ServeHTTP: h.ServeHTTP(w, r)/home/ec2-user/go/src/pkg/net/http/server.go:1560 (0x46640c)
        serverHandler.ServeHTTP: handler.ServeHTTP(rw, req)/home/ec2-user/go/src/pkg/net/http/server.go:1139 (0x464585)
        (*conn).serve: serverHandler{c.server}.ServeHTTP(w, w.req)/home/ec2-user/go/src/pkg/runtime/proc.c:1240 (0x417340)        goexit: // runtime·park continuation on g0.

@jbonacci
run this with loads:
https://github.com/edmoz/load-test/blob/master/loads/pushgo/load_gen.py

loads-runner load_gen.TestLoad.test_load -c 1 -u 1000