Hi,

To add EC2 instances to AWS load balancer, we need instance id assigned by
AWS. But org.apache.stratos.load.balancer.common.domain.Member doesn't have
instanceId field.

org.apache.stratos.cloud.controller.domain.MemberContext has instanceId
field. I hope this is what we need.

Now, currently org.apache.stratos.load.balancer.common.domain.Member
doesn't have instanceId field which can be used for this. Even
org.apache.stratos.messaging.domain.topology.Member does not have
instanceId field. (But it has clusterInstanceId. I hope this is not what we
need i.e. AWS EC2 instance id).

So in order to get this instanceId in AWS extension, we need to add a new
field instanceId in org.apache.stratos.messaging.domain.topology.Member and
org.apache.stratos.load.balancer.common.domain.Member. This field in
org.apache.stratos.messaging.domain.topology.Member can be filled in
handleMemberCreatedEvent(MemberContext memberContext) method of
TopologyBuilder. Whereas in
org.apache.stratos.load.balancer.common.domain.Member this can be filled in
transformMember method of LoadBalancerCommonTopologyEventReceiver.

Please correct me if I am wrong here or if there is another way to get
instance id without these changes.

Thanks and Regards,
Swapnil

Reply via email to