News for hackers. Stuff that matters.
Re:NGINX open sources TCP load balancing by aleem on Monday April 20, 2015 @04:26PM (#9410664)
Not to mention the vast ecosystem of some really great nginx plugins. The one thing I have found desperately wanting in both nginx and haproxy is the support for real-time stats and filtering found in Varnish (supports HTTP only). I am absolutely hooked!

  // Query Times
  varnishncsa -F '%t %{VCL_Log:Backend}x %Dμs %bB %s %{Varnish:hitmiss}x "%r"'

  // Slow Queries
  varnishncsa -F '%t %{VCL_Log:Backend}x %Dμs %bB %s %{Varnish:hitmiss}x "%r"' -m "VCL_Log:SlowQuery"

  // Top URLs
  varnishtop -i RxURL

  // Top Referer, User-Agent, etc.
  varnishtop -i RxHeader -I Referer
  varnishtop -i RxHeader -I User-Agent

  // Cache Misses
  varnishtop -i TxURL

  // awesome dashboard
  varnishstat
Re:NGINX open sources TCP load balancing by gmjosack on Monday April 20, 2015 @07:28PM (#9411442)
I've been able to get real-time stats in nginx by adding custom counters with the lua plugin and exporting a stats handler.

http://wiki.nginx.org/HttpLuaModule#ngx.shared.DICT

Re:NGINX open sources TCP load balancing by phildougherty on Monday April 20, 2015 @11:28PM (#9412138)
You can also use collectd nginx module along with nginx stub-status module to gather some useful metrics.