Tuesday, 9 October 2018

Open source load balancers: HAproxy and NginX

Features that HAproxy has that Nginx does not:
  • Non-HTTP Health checks are easier that with nginx in that they often come pre-made as opposed to nginx which often forces you to write your own match directive.
  • Fewer instances where you run into paywalled features. Many of the more advanced features in nginx are incredibly useful especially for enterprise users but you’ll often run into Plus-only features seemingly at random.
Features that Nginx has that HAproxy does not:
  • Full HTTP web server implementation. haproxy can only route HTTP traffic. It lacks support for things such as FastCGI or WSGI for communicating with web applications.
  • haproxy does not support caching responses. This means if your dynamic content changes rarely then these are always retrieved from the backend for each request over and over.
  • As a consequence of the above, using nginx for both load balancers and application servers makes it easier to support your overall architecture by re-using knowledge and experience from one for the other.
  • Load balancing for UDP protocols such as syslog or DNS.
  • In my opinion, development of the core nginx product (both Plus and OSS) seems to be proceeding at a pace that exceeds haproxy’s development.
HAproxy:
http://www.haproxy.org/
https://serversforhackers.com/c/load-balancing-with-haproxy
https://www.haproxy.com/products/community-vs-enterprise-edition/ (commercial support)
https://www.snapt.net/pricing/overview (commercial support with nice GUI)
https://github.com/Aidaho12/haproxy-wi (open source GUI)

Nginx:
http://nginx.org/en/docs/http/load_balancing.html
https://upcloud.com/community/tutorials/configure-load-balancing-nginx/
https://www.nginx.com/products/buy-nginx-plus/ (commercial support)
https://www.ashnik.com/nginx-plus-vs-f5-big-ip-2018-price-performance-comparison/

NGINX Plus vs. F5 BIG-IP i5600

The table compares a mid‑range BIG‑IP appliance, the F5 BIG‑IP i5600, with NGINX Plus running on a similarly sized bare‑metal server, the Dell PowerEdge R630, with dual 22‑core Intel Xeon E5‑2699 v4 @ 2.2GHz CPUs and dual Intel XL710 2×40 Gbe NICs.
F5 BIG‑IP i5600NGINX Plus (Dell R630)
Cost
One-time hardware cost$53,000$10,000
Annual 24×7 support and software subscription costs$9,540$3,500
Total Cost (Year 1)$62,540$13,500
(78% Savings)
Total Cost (Year 3)$81,620$20,500
(75% savings)
Total Cost (Year 5)$100,700$27,500
(73% savings)
Performance Metrics
HTTP RPS1.1M1.2M (1.1x)
SSL/TLS TPS20,00061,000 (3.1x)1
Throughput (Gbps)6070 (1.2x)


VMware NSX load balancing uses HAproxy with GUI:

Other than open source Citrix Netscaler/ADC is a virtual appliance that is reasonably priced:
https://store.citrix.com/store/citrix/en_US/pd/ThemeID.37713000/productID.315172500

No comments:

Post a Comment