Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Backend connections are not keepalive with that nginx config and benchmark is ran on a shared digital ocean VM. I suspect the author is inexperienced with proxies, operating systems and benchmarks.


Instead of commenting on the author, perhaps we could share an example of the appropriate nginx config:

  upstream http_backend {
      server 127.0.0.1:8080;
  
      keepalive 16;
  }
  
  server {
      ...
  
      location /http/ {
          proxy_pass http://http_backend;
          proxy_http_version 1.1;
          proxy_set_header Connection "";
          ...
      }
  }
https://nginx.org/en/docs/http/ngx_http_upstream_module.html...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: