You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@slider.apache.org by Rui Zhang <rz...@vertica.com> on 2014/07/18 21:19:19 UTC
Convenient way to know the number of running instances for a role
Hi,
Is there a convenient way to know the number of running instances for a
role? Such as REST APIs?
Thanks
--
Rui Zhang
Software engineer Intern
Vertica, an HP Company
rzhang@vertica.com
Re: Convenient way to know the number of running instances for a role
Posted by Ted Yu <yu...@gmail.com>.
See description on status action here:
http://slider.incubator.apache.org/docs/manpage.html
In its output, you can find more than one place where running instance
information can be found:
"statistics" : {
"HBASE_REGIONSERVER" : {
"containers.start.started" : 1,
"containers.live" : 1,
"containers.start.failed" : 0,
"containers.active.requests" : 0,
"containers.failed" : 0,
"containers.completed" : 0,
"containers.desired" : 1,
"containers.requested" : 1
},
"instances" : {
"HBASE_REGIONSERVER" : [ "container_1403300788015_0005_01_000004" ],
"HBASE_MASTER" : [ "container_1403300788015_0005_01_000003",
"container_1403300788015_0005_01_000002" ],
"slider-appmaster" : [ "container_1403300788015_0005_01_000001" ]
},
Cheers
On Fri, Jul 18, 2014 at 12:19 PM, Rui Zhang <rz...@vertica.com> wrote:
> Hi,
>
> Is there a convenient way to know the number of running instances for a
> role? Such as REST APIs?
>
> Thanks
>
> --
> Rui Zhang
> Software engineer Intern
> Vertica, an HP Company
> rzhang@vertica.com
>
>