With CloudFlow you can set one or more balancers for sharing requests between two or more VMs.
Requisites:
- Each VM need 2 IP address assigned. (IP can be both public/private, or one public and one private).
- Load-Balancer not do any data syncronization inside VMs.
Syncronization
There are lot software that can help you keeping cluster in sync. If you want sync only MySQL databasem i suggest to configure data replication (on internet troverete molte guide). If you want sync files i suggest csync2, easy and powerfull script (http://oss.linbit.com/).
In this video you can see how is simple configure a load balancer for database (port 3306):