Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My web site running on EC2 instances. Web servers stores dynamic data in glusterfs servers. When the glusterfs instances are restarted, their ip addresses changes, so that web servers lost the connection to glusterfs.

How could I fix this problem?

share|improve this question
up vote 4 down vote accepted

This is expected behavior of EC2. If you want more granular control over your IP addressing, you're going to have to create instances inside of a VPC.

share|improve this answer
Yep. Anyone running a cluster rather than individual isolated instances should be using a VPC for the control it offers. – ceejayoz Mar 7 '13 at 20:21
@ceeyayoz, Should I add my web servers to VPC too? If so, my web servers are controlled by a autoscaling group. Is it possible to create a autoscaling group in VPC? If I needn't to add web servers to VPC how could my web servers reach the gluster servers? – zontragon Mar 7 '13 at 20:31
@zontragon Yes, autoscaling is possible within VPC.… Your web servers should be in a public VPC subnet, with routing and security groups allowing them to contact Gluster instances in a private subnet. – ceejayoz Mar 7 '13 at 20:54

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.