title: Amazon EC2: load balancing / way to sync files / EC2 + CF
body: <p>As I understand I can use EC2 as web server for my application. But how load balancer is working?</p>
  
  <ol>
  <li><p>For example I have one EC2 instance. In this way load balancer will not work. Am I right?</p></li>
  <li><p>For example I have few EC2 instances. In this way I can configure load balancer to balance between all my EC2 servers.
  Am I right?</p></li>
  <li><p>Application files at all instances should be synced? Is there is any Amazon tool to sync? Or I should use something like rsync or post commit hooks to sync files between EC2 instances?</p></li>
  <li><p>Is it possible to use one EC2 instance for web application (php + nginx) and for CDN (Cloud Front)? Or what is the better way to reach this: I need to store static files but I should access them from web application (php scripts) through file system. So I am going to use EC2 and Clod Front. But how can I get access?</p></li>
  </ol>
  
  <p>Thanks for your time.</p>