You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@slider.apache.org by "Sumit Mohanty (JIRA)" <ji...@apache.org> on 2014/08/06 22:59:18 UTC

[jira] [Resolved] (SLIDER-239) Component instances should be able to advertise associated ports

     [ https://issues.apache.org/jira/browse/SLIDER-239?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sumit Mohanty resolved SLIDER-239.
----------------------------------

    Resolution: Fixed

A component can specify the following in metainfo.xml to advertise its ports:

{noformat}
<exports>
      <export>
            <name>host_port</name>
            <value>${THIS_HOST}:${site.global.listen_port}</value>
      </export>
</exports>
{noformat}

The name is of the component's choosing. "THIS_HOST" refers to the host where the component instance is active. The port variable is populated based on port allocation received from the component instance. So its is expected that appConfig.json has port allocation associated with the property being used.

> Component instances should be able to advertise associated ports
> ----------------------------------------------------------------
>
>                 Key: SLIDER-239
>                 URL: https://issues.apache.org/jira/browse/SLIDER-239
>             Project: Slider
>          Issue Type: Wish
>            Reporter: Rui Zhang
>            Assignee: Sumit Mohanty
>              Labels: port
>
> Some applications such as Databases(especially for databases that all nodes are of the same role and can all be connected) need to know the port number they are listening, so that DBAs and clients can manage the databases better.



--
This message was sent by Atlassian JIRA
(v6.2#6252)