How to access the IP of my other instance inside my app


Ushani Balasooriya
 

Hi there,

Im going to deploy my application in BOSH and cluster it with n number of nodes. E.g., 2

So in my app, when I deploy the app in my manifest.yml I have defined below. So it starts at 10.244.15.21 and next node starts in 10.244.15.22 when give instances : 2 in my manifest.yml

static:
- 10.244.15.2 - 10.244.15.20

So in my each app I need to access each other nodes' IPs inside a XML file. How can i do this dynamically in a xml file. Please advice. Thanks

E.g.,

<parameter name="localMemberHost">127.0.0.1</parameter>

<members>
<member>
<hostName>10.244.15.21</hostName>
<port>4000</port>
</member>

<member>
<hostName>10.244.15.22</hostName>
<port>4000</port>
</member>
</members>

Join cf-bosh@lists.cloudfoundry.org to automatically receive all group messages.