Re: Scaling with 2 servers
Originally Posted by
tutunmayan
Hello everyone
I have a ubuntu web server (LAMP). My boss wants me to scale this server by creating a clone behind a load balancer.
Load balance is ok but I have problems with syncing.
What is the easiest solution you suggest for such a problem?
Servers will have local mysql servers and I thing following is enough to sync;
- var/www/ directory
- mysql database
- php sessions
Note: I search for a solution but in the end I am confused than ever.
Aim of scaling is not performance but high availablity.
Easiest way -
Percona XTRADB is fully compatible with mysql, and uses galera to do a master-master sync relationship. You can install it on both servers, and sync like that.
Php sessions -store em' in memcached or something similar
/var/www - probably a NFS mount of GlusterFS
Don't waste your energy trying to change opinions ... Do your thing, and don't care if they like it.
Bookmarks