# Reverse proxy cache design

**URL:** <https://www.ruby-forum.com/t/reverse-proxy-cache-design/198636>\
**Category:** NGINX\
**Created:** [November 4, 2010, 5:48pm UTC](https://www.ruby-forum.com/t/reverse-proxy-cache-design/198636 "2010-11-04T17:48:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/77aa72/32.png) [@Dobai-Pataky\_BSSSSl](https://www.ruby-forum.com/u/Dobai-Pataky_BSSSSl)\
**Post date:** [November 4, 2010, 5:48pm UTC](https://www.ruby-forum.com/t/reverse-proxy-cache-design/198636/1 "2010-11-04T17:48:40Z")

</div>

at the moment we are running an active/standby reverse proxy  
installation.  
one virtual IP by keepalived.

it works great thanks to NGINX, but has the disantvantage of having an  
empty cache on the standby proxy, so in case of a failover the cache  
must first be filled up, which slows the proxy massively down.

i’m now thinking about adding the standby proxy the list of origin  
servers, so i get something like this

proxy01 → origin01  
 → origin02  
 → proxy02 → origin01  
 → origin02

this would make shure that proxy02’s cache is filled to

will this make sense? can i configure proxy02 so he would directly  
answer (direct server return)? or do i really need an loadbalancer in  
front of the two ngingx proxys?

Posted at Nginx Forum:

> **[reverse proxy cache design](https://forum.nginx.org/read.php?2,147654,147654#msg-147654)**
>
> at the moment we are running an active/standby reverse proxy installation. one virtual IP by keepalived. it works great thanks to NGINX, but has the disantvantage of having an empty cache on the standby proxy, so in case of a failover the cache must...

---

<div class="post-metadata">

**Author:** ![roadfox](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/9de053/32.png) [@roadfox](https://www.ruby-forum.com/u/roadfox)\
**Post date:** [November 4, 2010, 6:45pm UTC](https://www.ruby-forum.com/t/reverse-proxy-cache-design/198636/2 "2010-11-04T18:45:14Z")

</div>

Can you make them all be active/active?

Sridhar

---

<div class="post-metadata">

**Author:** ![roadfox](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/9de053/32.png) [@roadfox](https://www.ruby-forum.com/u/roadfox)\
**Post date:** [November 5, 2010, 7:08am UTC](https://www.ruby-forum.com/t/reverse-proxy-cache-design/198636/3 "2010-11-05T07:08:09Z")

</div>

> Can you make them all be active/active?

would like to make them active/active, but how? should i cascade two  
nginx instances, the first as loadbalancer the second as reverse proxy.  
how to configure direct server return in this situation?

Posted at Nginx Forum:  
[http://forum.nginx.org/read.php?2,147654,147864#msg-147864](http://forum.nginx.org/read.php?2,147654,147864#msg-147864)
