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

Daniel Mikusa
 

I think you want Bosh links, but more specifically a self link ->
https://bosh.io/docs/links.html#self

Dan

On Wed, Sep 20, 2017 at 5:48 AM, Ushani Balasooriya <ushanib(a)gmail.com>
wrote:

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.