# Data synchronization (load balancing)

**URL:** <https://www.ruby-forum.com/t/data-synchronization-load-balancing/214268>\
**Category:** NGINX\
**Created:** [November 26, 2011, 4:22pm UTC](https://www.ruby-forum.com/t/data-synchronization-load-balancing/214268 "2011-11-26T16:22:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [November 26, 2011, 4:22pm UTC](https://www.ruby-forum.com/t/data-synchronization-load-balancing/214268/1 "2011-11-26T16:22:26Z")

</div>

Hi, I have a problem:  
upstream backend {  
server 172.16.0.1:80;  
server 172.16.0.2:80;  
}  
server {  
listen 80;  
server\_name [www.domain.com](http://www.domain.com);  
location / {  
proxy\_pass [http://backend](http://backend);  
}  
}  
Now I have the model as above, but I don’t know can configure to sync  
data between 2 servers? please, help me …

Posted at Nginx Forum:

> **[Data synchronization (load balancing)](https://forum.nginx.org/read.php?2,219113,219113#msg-219113)**
>
> Hi, I have a problem: upstream backend { server 172.16.0.1:80; server 172.16.0.2:80; } server { listen 80; server\_name www.domain.com; location / { proxy\_pass http://backend; } } Now I have

---

<div class="post-metadata">

**Author:** ![utkung](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/6f9a4e/32.png) [@utkung](https://www.ruby-forum.com/u/utkung)\
**Post date:** [November 26, 2011, 4:41pm UTC](https://www.ruby-forum.com/t/data-synchronization-load-balancing/214268/2 "2011-11-26T16:41:42Z")

</div>

On Sat, Nov 26, 2011 at 10:21 AM, utkung [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> ```
> }
> }
> 
> ```
> 
> Now I have the model as above, but I don’t know can configure to sync  
> data between 2 servers? please, help me …

Hardly an nginx problem, but whatever the backends are, use nfs for  
the web space, or push your site code to every backend’s web space.  
Database should be accessible on an internal network.

* * *

Stefan C.

> **[ScaleEngine is the Technical Video Streaming CDN Delivering Perfect Streams...](https://www.scaleengine.com/contact)**
>
> Video CDN, streaming live and on demand securely and reliably. Perfect streams to the world with our developer API, exact usage billing, and direct support

“People who enjoy having meetings should never be allowed to be in  
charge of anything.”

---

<div class="post-metadata">

**Author:** ![utkung](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/u/6f9a4e/32.png) [@utkung](https://www.ruby-forum.com/u/utkung)\
**Post date:** [November 26, 2011, 5:00pm UTC](https://www.ruby-forum.com/t/data-synchronization-load-balancing/214268/3 "2011-11-26T17:00:15Z")

</div>

I am a student, and are learning more about nginx.  
you can explain about this? sorry my knowledge is too little

Posted at Nginx Forum:

> **[Re: Data synchronization (load balancing)](https://forum.nginx.org/read.php?2,219113,219116#msg-219116)**
>
> Hi, I have a problem: upstream backend { server 172.16.0.1:80; server 172.16.0.2:80; } server { listen 80; server\_name www.domain.com; location / { proxy\_pass http://backend; } } Now I have
