Score:0

Apache load balancing over WAN

kn flag

We have developed a PHP application to run on Apache on Linux.

Now, customer wants a load balanced & high availability setup. For load balancing, he proposes to use CloudFlare and deploy the app on on-premises servers. So, each server would have a public IP via the firewall.

However, he wants to place each server at a different location to protect against link failures as well as complete site failures.

Can Apache be configured for HA over WAN?

If the two servers run independently of each other, how would sessions be maintained?

cn flag
Bob
Apache has no native support to synchronise sessions or state. A fairly typical PHP approach is that you create a session handler that stores sessions in a database , since you probably need method to synchronise the database anyway ...
Hussain Akbar avatar
kn flag
The database is provided by client on a separate DB cluster. Re your comment on storing sessions in a DB, how is that achieved?
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.