<div dir="ltr">Hello there,<div><br></div><div>Firstly, I've just picked up erlang this week and I'm suppose to evaluate Erlang-Diameter for my company (I'm even new to telecom domain and hence to diameter protocol). So, I'm a complete noob in this area.  <span style="line-height:1.5">I'm using the example provided by OTP in lib/diameter/examples/code folder. I'm using the relay (listening on 3868) code given there to connect to the two instance of server that I have seperately started on 3871 and 3872. When I connect to these two servers, the connection is established with both but the Peer Up in relay_cb.erl is called only for the first server I tried to connect to. Hence forth, all the requests from clients are relayed to this single Peer. I'm trying to load balance the requests and therefore sharing client connections across multiple server. I would like and appreciate some help in that direction. I haven't changed much from the example directory. I'm just listing the params I'm using for connection as shown below:</span></div><div><br></div><div>Server uses the following config:</div><div>Server 1:</div><div><div>[{'Origin-Host', "<a href="http://3871.example.com">3871.example.com</a>"},</div><div>                          {'Origin-Realm', "<a href="http://example.com">example.com</a>"},</div><div>                          {'Vendor-Id', 193},            </div><div>                          {'Product-Name', "3871-Server-Erlang"},</div><div>                          {'Auth-Application-Id', [0]},  </div><div>                          {restrict_connections, false}, </div><div>                          {string_decode, false},        </div><div>                          {application, [{alias, common},</div><div>                                         {dictionary, diameter_gen_base_rfc6733},</div><div>                                         {module, server_cb}]}]).     </div></div><div><div><br class="inbox-inbox-Apple-interchange-newline">Server 2:</div><div><div>[{'Origin-Host', "<a href="http://3872.example.com">3872.example.com</a>"},</div><div>                          {'Origin-Realm', "<a href="http://example.com">example.com</a>"},</div><div>                          {'Vendor-Id', 193},            </div><div>                          {'Product-Name', "3872-Server-Erlang"},</div><div>                          {'Auth-Application-Id', [0]},  </div><div>                          {restrict_connections, false}, </div><div>                          {string_decode, false},        </div><div>                          {application, [{alias, common},</div><div>                                         {dictionary, diameter_gen_base_rfc6733},</div><div>                                         {module, server_cb}]}]).     </div></div></div><div><br></div><div>Relay:</div><div><div>[{'Origin-Host', "<a href="http://arshad.example.com">arshad.example.com</a>"},</div><div>                         {'Origin-Realm', "<a href="http://example.com">example.com</a>"},</div><div>                         {'Vendor-Id', 193},</div><div>                         {'Product-Name', "RelayAgent"},</div><div>                         {'Auth-Application-Id', [?DIAMETER_APP_ID_RELAY]}, </div><div>                         {string_decode, false},</div><div>                         {application, [{alias, relay},</div><div>                                        {dictionary, ?DIAMETER_DICT_RELAY},</div><div>                                        {module, relay_cb}]}]).</div></div><div><br></div></div>