Tag Info

New answers tagged

2

I will start this answer as a kind of open-answer. As I can not answer it all at once and there will be follow-up questions. First thing is - you are kind of overcomplicating things. Serving static content through nginx, varnish and haproxy will probably cause a lot of unnecessary overhead (more TCP connections, more content switches, more memory used, ...


0

I found the issue. I was not setting the X-Host and X-Url headers in vcl_backend_response.


0

So it turns out that ab benchmark did not correctly execute the HTTPS test correctly. When running ab via HTTPS internally (through nginx) with no reverse proxy I was able to yield 7000 req/s, but as soon as proxy was enabled the req dropped to 160/s. It turns out that ab's keepalive feature does not work with HTTPS+Reverse proxy, must be a bug. I ...


1

Well from the information you have (and have not) provided, I can only guess. But judging from the instance type (t2 has burstable ticket based performance and when out of tickets, gets about 20% of a core; it's not a good instance to do benchmarks on) and the use of ab for testing (btw. when you write it as 'AB testing', the first thing that comes to mind ...


1

Here you want to set up an additional backend in Varnish, and route some requests to it. First add a new backend for Nginx: backend nginx { .host = "127.0.0.1"; .port = "8081"; } Then you can route some requests to it. This is typically done in the vcl_recv subroutine. For example, if Sentora is accessed through the domain sentora.example.org: ...


0

My understanding is that it's the number of references to that backend (e.g. set req.backend = foo) from within the VCL.


0

It appears we found our issue - it had nothing to do with Varnish or IIS. The ASP.NET code had a bug in it. It was set up to create a connection to the DB and after X minutes of inactivity, it would close the connection. The bug was that it never tried to re-open a closed connection. This makes sense if you took load off of the system, it started to ...



Top 50 recent answers are included