What is the best practice for communication between instances of Amazon EC2?

I was creating Amazon EC2 instances for the upcoming project. All of them are micro-instances running Ubuntu Server 64bit. Here is what I have installed so far:

  • Web Server - Apache
  • Database Server - MySQL
  • The development server - Apache and MySQL
  • File server - SVN and Bacula (backups are performed for S3 codes)

Currently, there is only one web server, but in the end there will be more.

My first question is: what is the best, safest way for Amazon EC2 instances to communicate between others? I am currently using SSH, is there any better method?

According to Amazon, instances linking together using their Elastic IP addresses will charge for data transfer. However, instances that bind their personal IP addresses can do this for free. Unfortunately, it seems that the private IP addresses change if the instance is stopped and restarted.

So my second question is, how do you use Amazon instances of 'Private IPs if they are not static?

I know that instances will probably not be stopped and started very often, but still, if the IP address is in different configuration files, it would be painful to go through all of them and change them.

I am primarily concerned about web servers that will need access to the database server and a file server that will need access to all instances when performing backups.

: Bacula, , , IP- . p >

ServerFault ?

+5
1

, ServerFault, .

IP- - DNS- . Windows, AD, DNS ( , , ). , DNS-, AD- ( ), IP- DNS , , , IP- (, 79.125.xx), IP (, 10.44.xx), , DNS- (, mydomain.dbserver01), .

, - , , - , . , , , .

+3

All Articles