Apache Traffic Server HA

Has anyone run Apache Traffic Server in production? I've used it for a proof-of-concept before, and I like it overall, but I'm about to recommend its use and would like to hear any horror stories. I'm planning on using it as a reverse proxy cache for a site that is expected to have a couple tens of thousands of active users at peak. I'd have HAProxy in front for HA, with a mirror setup of everything below it, talking to ATS, with another HAProxy behind ATS for load balancing the origin servers. Any comments welcome. Thanks! Greg

On Thu, Dec 21, 2017 at 9:21 AM, Greg Martyn via talk <talk@gtalug.org> wrote:
Has anyone run Apache Traffic Server in production? I've used it for a proof-of-concept before, and I like it overall, but I'm about to recommend its use and would like to hear any horror stories.
I'm planning on using it as a reverse proxy cache for a site that is expected to have a couple tens of thousands of active users at peak. I'd have HAProxy in front for HA, with a mirror setup of everything below it, talking to ATS, with another HAProxy behind ATS for load balancing the origin servers.
Any comments welcome.
Most definitely NOT speaking as an expert but in my perambulations around the web I have found mention of using nginx WITH apache2 specifically in some kind of a reverse proxy cache system/mode. https://www.digitalocean.com/community/tutorials/how-to-configure-nginx-as-a... https://serverfault.com/questions/30705/how-to-set-up-nginx-as-a-caching-rev... seems to have a fair amount of suggestions https://www.nginx.com/resources/wiki/start/topics/examples/reverseproxycachi... https://guides.wp-bullet.com/how-to-configure-nginx-reverse-proxy-wordpress-... lots of setup stuff available here I was using nginx + apache2 + reverse proxy cache in duckduck apache2 + reverse proxy cache seems to offer less proposals than the previous Perhaps this coupling would work for you. Regards Dee

On 12/21/2017 12:30 PM, o1bigtenor via talk wrote:
On Thu, Dec 21, 2017 at 9:21 AM, Greg Martyn via talk <talk@gtalug.org <mailto:talk@gtalug.org>> wrote:
Has anyone run Apache Traffic Server in production? I've used it for a proof-of-concept before, and I like it overall, but I'm about to recommend its use and would like to hear any horror stories.
I'm planning on using it as a reverse proxy cache for a site that is expected to have a couple tens of thousands of active users at peak. I'd have HAProxy in front for HA, with a mirror setup of everything below it, talking to ATS, with another HAProxy behind ATS for load balancing the origin servers.
Any comments welcome.
Most definitely NOT speaking as an expert but in my perambulations around the web I have found mention of using nginx WITH apache2 specifically in some kind of a reverse proxy cache system/mode.
https://www.digitalocean.com/community/tutorials/how-to-configure-nginx-as-a...
https://serverfault.com/questions/30705/how-to-set-up-nginx-as-a-caching-rev... seems to have a fair amount of suggestions
https://www.nginx.com/resources/wiki/start/topics/examples/reverseproxycachi...
https://guides.wp-bullet.com/how-to-configure-nginx-reverse-proxy-wordpress-...
lots of setup stuff available here
I was using
nginx + apache2 + reverse proxy cache in duckduck
apache2 + reverse proxy cache seems to offer less proposals than the previous
Perhaps this coupling would work for you.
To add another data point I have used squid as a reverse proxy on a couple of high traffic project over the years. I wonder about caching and if there is a gain when you have multiple back end servers. If your caching proxy server pushes the data out to a disk cache then it may not be much faster than getting the data from the directly connected web server. The proxy server is a operating off a single disk for that data where N web servers are operating off of N disks. One of the things to be said for a simple non-caching proxy like HAProxy is that it is small and fast. As soon as you start caching you need to handle lots of corner cases like what to do with requests with big results. -- Alvin Starr || land: (905)513-7688 Netvel Inc. || Cell: (416)806-0133 alvin@netvel.net ||

Try to separate your concerns as much as possible, as you describe, and avoid programs that want to do everything for you. For example, I happily use nginx for all sorts of simple things, but if you try to make it be a reverse-proxy, a cache and and an HA mechanism at the same time, you will find yourself like a customer of mine, madly trying to figure out what options interacted to send the Akamai budget through the roof (;-)) --dave On 21/12/17 01:15 PM, Alvin Starr via talk wrote:
On 12/21/2017 12:30 PM, o1bigtenor via talk wrote:
On Thu, Dec 21, 2017 at 9:21 AM, Greg Martyn via talk <talk@gtalug.org <mailto:talk@gtalug.org>> wrote:
Has anyone run Apache Traffic Server in production? I've used it for a proof-of-concept before, and I like it overall, but I'm about to recommend its use and would like to hear any horror stories.
I'm planning on using it as a reverse proxy cache for a site that is expected to have a couple tens of thousands of active users at peak. I'd have HAProxy in front for HA, with a mirror setup of everything below it, talking to ATS, with another HAProxy behind ATS for load balancing the origin servers.
Any comments welcome.
Most definitely NOT speaking as an expert but in my perambulations around the web I have found mention of using nginx WITH apache2 specifically in some kind of a reverse proxy cache system/mode.
https://www.digitalocean.com/community/tutorials/how-to-configure-nginx-as-a...
https://serverfault.com/questions/30705/how-to-set-up-nginx-as-a-caching-rev... seems to have a fair amount of suggestions
https://www.nginx.com/resources/wiki/start/topics/examples/reverseproxycachi...
https://guides.wp-bullet.com/how-to-configure-nginx-reverse-proxy-wordpress-...
lots of setup stuff available here
I was using
nginx + apache2 + reverse proxy cache in duckduck
apache2 + reverse proxy cache seems to offer less proposals than the previous
Perhaps this coupling would work for you.
To add another data point I have used squid as a reverse proxy on a couple of high traffic project over the years.
I wonder about caching and if there is a gain when you have multiple back end servers. If your caching proxy server pushes the data out to a disk cache then it may not be much faster than getting the data from the directly connected web server. The proxy server is a operating off a single disk for that data where N web servers are operating off of N disks.
One of the things to be said for a simple non-caching proxy like HAProxy is that it is small and fast. As soon as you start caching you need to handle lots of corner cases like what to do with requests with big results.
-- Alvin Starr || land: (905)513-7688 Netvel Inc. || Cell: (416)806-0133 alvin@netvel.net ||
--- Talk Mailing List talk@gtalug.org https://gtalug.org/mailman/listinfo/talk
-- David Collier-Brown, | Always do right. This will gratify System Programmer and Author | some people and astonish the rest davecb@spamcop.net | -- Mark Twain

I just want to make the distinction that I'm referring to Apache Traffic Server, and not Apache HTTPD. I should've called that out more explicitly. I'm hesitant to use nginx as a reverse proxy cache because I think its strength and best supported use case is as a webserver. The configuration syntax is nice and clean, but proxy bugs like this scare me: https://news.ycombinator.com/item?id=11217477 ATS clearly anticipated that problem, so I give them kudos for that. https://docs.trafficserver.apache.org/en/7.1.x/admin-guide/files/records.con... Thanks, Greg On Thu, Dec 21, 2017 at 12:30 PM o1bigtenor <o1bigtenor@gmail.com> wrote:
On Thu, Dec 21, 2017 at 9:21 AM, Greg Martyn via talk <talk@gtalug.org> wrote:
Has anyone run Apache Traffic Server in production? I've used it for a proof-of-concept before, and I like it overall, but I'm about to recommend its use and would like to hear any horror stories.
I'm planning on using it as a reverse proxy cache for a site that is expected to have a couple tens of thousands of active users at peak. I'd have HAProxy in front for HA, with a mirror setup of everything below it, talking to ATS, with another HAProxy behind ATS for load balancing the origin servers.
Any comments welcome.
Most definitely NOT speaking as an expert but in my perambulations around the web I have found mention of using nginx WITH apache2 specifically in some kind of a reverse proxy cache system/mode.
https://www.digitalocean.com/community/tutorials/how-to-configure-nginx-as-a...
https://serverfault.com/questions/30705/how-to-set-upBugsBugs-nginx-as-a-cac... <https://serverfault.com/questions/30705/how-to-set-up-nginx-as-a-caching-reverse-proxy> seems to have a fair amount of suggestions
https://www.nginx.com/resources/wiki/start/topics/examples/reverseproxycachi...
https://guides.wp-bullet.com/how-to-configure-nginx-reverse-proxy-wordpress-... lots of setup stuff available here
I was using
nginx + apache2 + reverse proxy cache in duckduck
apache2 + reverse proxy cache seems to offer less proposals than the previous
Perhaps this coupling would work for you.
Regards
Dee
participants (4)
-
Alvin Starr
-
David Collier-Brown
-
Greg Martyn
-
o1bigtenor