Email/Dynamic Content Load Balancing
Hello, I have a few questions if it isn't too much, I have already searched the forums, and Ask Mr. DNS.I have an idea how to setup load balancing on the HTTP requests. But, I have a few questions. Example:
Setup NS1 to go to x.x.x.100 and NS2 to go to x.x.x.101 and NS3 to go to x.x.x.102
Then on the main server (server1) I would place multiple A records. Example:
domain.com A 1000 x.x.x.100
domain.com A 1000 x.x.x.102
domain.com A 1000 x.x.x.103
So then the load would be distributed among three servers. And when the main server (server1) goes down, the nameservers (NS2)
would kick in and go to the second server (server2) and then I would have multiple A records setup on the main server:
domain.com A 1000 x.x.x.102
domain.com A 1000 x.x.x.103
So that the second server does not become over loaded, and distributes the load between the second (server2) and third (server3)
server.
Now, I have realized two flaws.
1) What about dynamic content, such as forums, news scripts, bloggers etc. If the person was sent to the second (server2) server and
post a thread, and if another person was redirected to the third (server3) or main (server1) server, then the content would not be
seen and only be seen if a user was sent to the second (server2) server. Rsync wouldn't work because the second (server2) may have
content that the main (server1) or second (server2) doesn't/visa-versa. So it would over right, which isn't good.
2) What about email, how could I get that setup to work properly. If the main (server1) went down or is load balancing the MX
record's, then mail could would redirected to the second (server2) or third (server3) server, but what if the mail was stored on the
second(server2) or third (server3) server, then they would never get it, and rsync won't work, due to it may over right email on
either server that the backup or main server doesn't have.
How can I make these two flaws work?
Thank you all very much, and have a wonderful day/evening!!!