Hydrospheredata / hydro-serving

MLOps Platform
http://docs.hydrosphere.io
Apache License 2.0
271 stars 42 forks source link

getting a HTTP/1.1 426 response when I use Apache Bench - on a mild test #240

Closed ravimadhusudhan8 closed 5 years ago

ravimadhusudhan8 commented 5 years ago

ab -p data.json -T application/json -H 'Accept: application/json' -c 5 -n 10 -g add_test_5_10_g.txt -v 4 http://localhost/gateway/applications/add-service/add


Benchmarking localhost (be patient) INFO: POST header == POST /gateway/applications/add-service/add HTTP/1.0 Content-length: 45 Content-type: application/json Accept: application/json Host: localhost User-Agent: ApacheBench/2.3


LOG: header received: HTTP/1.1 426 Upgrade Required date: Fri, 01 Feb 2019 19:24:30 GMT server: envoy connection: close content-length: 0

WARNING: Response code not 2xx (426) LOG: header received: HTTP/1.1 426 Upgrade Required date: Fri, 01 Feb 2019 19:24:30 GMT server: envoy connection: close content-length: 0 ....


I am able to CURL and get a result - curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{ "x": 1, "y": 1 }' 'http://localhost/gateway/applications/add-service-5/add'


Thanks

ravimadhusudhan8 commented 5 years ago

Closing this as Envoy only supports HTTP1.1