i just rent 3 vps servers with this:
4GB RAM
150GB hard disk
2 CPU
6 ip address
so we have vps1, vps2 and vps3 and i'm thinking
distribute the services like this:
VPS1 - frontend
+ DNS Server
+ MySql Server
+ NFS (share files between vps2 and vps3)
VPS2, VPS3 - app servers
+ PHP
+ Apache
+ Lighhttpd (static files)
+ Postfix
+ Dovecot
the vps1 has all files for the applications, php files, js files, css files, html files, etc etc. the VPS2 and VPS3 mount that files over the network.
the vps1 receive a request from the internet, on port (80,110,25) pass the request to VPS2 or VPS3 if data is needed can connect to the mysql server in VPS1
Is a good idea in the VPS1 install HAProxy for balancing the load on VPS2 and VPS3 ?
Can anyone suggest me a better setup , tips or ideas?
thanks