Performance of Nginx as reverse proxy for Hasura - 7-50x slow
R. Rajesh Jeba Anbiah
ng4rrjanbiah at rediffmail.com
Tue Nov 17 14:36:21 UTC 2020
> > Recently noted that when proxying Hasura for the https support reduces the speed to 7-50x times! More information including tcpdump available in
> > https://github.com/hasura/graphql-engine/discussions/6154
> Looking at the github discussion - you are comparing http vs https.
> Since you are not setting using keepalive 'ab' does the ssl handshake for each request. Try with 'ab -k ...'.
(Apologies for the delay due to Diwali)
As noted in https://github.com/hasura/graphql-engine/discussions/6154#discussioncomment-131629 your insights were really helpful.
Keep alive works for other REST services, but not working for Hasura. (Keep-Alive requests: 0 Vs Keep-Alive requests: 200 for other services). Is Keep-Alive anything to do with the response headers of Hasura or its POST request?
But, even with keep-alive, usual performance of http vs https through nginx is around 50-100 times slow for any services. Are there any optimization approaches for the same? TIA
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the nginx