Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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
1  
@zontragon Yes, autoscaling is possible within VPC. docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/… 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

 
discard

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.