You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@slider.apache.org by "fengyongshe (JIRA)" <ji...@apache.org> on 2015/12/02 09:32:10 UTC

[jira] [Closed] (SLIDER-1008) Expose Endpoint of App Component for users to visit

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

fengyongshe closed SLIDER-1008.
-------------------------------
    Resolution: Fixed

> Expose Endpoint of App Component for users to visit
> ---------------------------------------------------
>
>                 Key: SLIDER-1008
>                 URL: https://issues.apache.org/jira/browse/SLIDER-1008
>             Project: Slider
>          Issue Type: Task
>          Components: appmaster, registry
>    Affects Versions: Slider 0.81
>            Reporter: fengyongshe
>
> After creating Apps,containers are distributed on arbitrary hosts ,also random IPC port。how can user visit the app ? One way is to get endpoint by manual (eg:netstat -anp|grep {pid}),the way is awful。
> 	There is the need to expose useful endpoints of App to zk registry path。
> 	eg: use slider to start a tomcat App,expose the ipc port:
> 	[zk: localhost:2181(CONNECTED) 7]
> 	get/registry/users/root/services/org-apache-slider/tomcat/components/container-1448969780678-0005-01-000002
> {
>   "type" : "JSONServiceRecord",
>   "description" : "TOMCAT",
>   "external" : [ {
>     "api" : "server-xml.http.port",
>     "addressType" : "host/port",
>     "protocolType" : "tcp",
>     "addresses" : [ {
>       "port" : "39063",
>       "host" : "{host-name}"
>     } ]
>   } ],
>   "internal" : [ ],
>   "yarn:persistence" : "container",
>   "yarn:id" : "container-1448969780678-0005-01-000002"
> }
> User can get the host/port through zk.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)