You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@druid.apache.org by Parag Jain <pa...@gmail.com> on 2021/03/23 10:44:11 UTC

Re: Router endpoint /druid/indexer/v1/workers

It's documented here -
https://github.com/apache/druid/blob/master/docs/operations/api-reference.md#dynamic-configuration,
not sure why the website is not updated. I think it's safe to use.

On Tue, Mar 23, 2021 at 2:48 PM Vararu, Vadim <va...@adswizz.com>
wrote:

> Hi all,
>
> I needed an endpoint to expose the “busyness” of the middle-managers in
> order to decide if we submit more ingestions or not. I could not find any
> endpoints in the documentation but found that the router’s UI uses
> /druid/indexer/v1/workers which exposes all the workers with the total
> capacity and used capacity. Exactly what I need.
>
> Having not found that endpoint in the documentation (
> https://druid.apache.org/docs/latest/operations/api-reference.html#router),
> is it safe to use it or it’s meant only for internal usage? Any risk of its
> modification/disappearing in the next versions?
>
> Thanks, Vadim Vararu
>

Re: Router endpoint /druid/indexer/v1/workers

Posted by "Vararu, Vadim" <va...@adswizz.com>.
Got it, thanks a lot!

On 23/03/2021, 13:32, "Parag Jain" <pa...@gmail.com> wrote:

    It's actually an overlord endpoint. Router can act as a proxy for both
    coordinator and overlord endpoints if
    *druid.router.managementProxy.enabled=true
    *is set in the router configuration so it's fine even if you hit the router
    for overlord endpoint, it will be redirected internally. Reference -
    https://druid.apache.org/docs/latest/design/router.html#enabling-the-management-proxy
    
    On Tue, Mar 23, 2021 at 4:34 PM Vararu, Vadim <va...@adswizz.com>
    wrote:
    
    > Indeed, but even here it's documented under Overlord, not under Router.
    >
    > On 23/03/2021, 12:44, "Parag Jain" <pa...@gmail.com> wrote:
    >
    >     It's documented here -
    >
    > https://github.com/apache/druid/blob/master/docs/operations/api-reference.md#dynamic-configuration
    > ,
    >     not sure why the website is not updated. I think it's safe to use.
    >
    >     On Tue, Mar 23, 2021 at 2:48 PM Vararu, Vadim <
    > vadim.vararu@adswizz.com>
    >     wrote:
    >
    >     > Hi all,
    >     >
    >     > I needed an endpoint to expose the “busyness” of the middle-managers
    > in
    >     > order to decide if we submit more ingestions or not. I could not
    > find any
    >     > endpoints in the documentation but found that the router’s UI uses
    >     > /druid/indexer/v1/workers which exposes all the workers with the
    > total
    >     > capacity and used capacity. Exactly what I need.
    >     >
    >     > Having not found that endpoint in the documentation (
    >     >
    > https://druid.apache.org/docs/latest/operations/api-reference.html#router
    > ),
    >     > is it safe to use it or it’s meant only for internal usage? Any risk
    > of its
    >     > modification/disappearing in the next versions?
    >     >
    >     > Thanks, Vadim Vararu
    >     >
    >
    >
    >
    > ---------------------------------------------------------------------
    > To unsubscribe, e-mail: dev-unsubscribe@druid.apache.org
    > For additional commands, e-mail: dev-help@druid.apache.org
    >
    


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@druid.apache.org
For additional commands, e-mail: dev-help@druid.apache.org


Re: Router endpoint /druid/indexer/v1/workers

Posted by Parag Jain <pa...@gmail.com>.
It's actually an overlord endpoint. Router can act as a proxy for both
coordinator and overlord endpoints if
*druid.router.managementProxy.enabled=true
*is set in the router configuration so it's fine even if you hit the router
for overlord endpoint, it will be redirected internally. Reference -
https://druid.apache.org/docs/latest/design/router.html#enabling-the-management-proxy

On Tue, Mar 23, 2021 at 4:34 PM Vararu, Vadim <va...@adswizz.com>
wrote:

> Indeed, but even here it's documented under Overlord, not under Router.
>
> On 23/03/2021, 12:44, "Parag Jain" <pa...@gmail.com> wrote:
>
>     It's documented here -
>
> https://github.com/apache/druid/blob/master/docs/operations/api-reference.md#dynamic-configuration
> ,
>     not sure why the website is not updated. I think it's safe to use.
>
>     On Tue, Mar 23, 2021 at 2:48 PM Vararu, Vadim <
> vadim.vararu@adswizz.com>
>     wrote:
>
>     > Hi all,
>     >
>     > I needed an endpoint to expose the “busyness” of the middle-managers
> in
>     > order to decide if we submit more ingestions or not. I could not
> find any
>     > endpoints in the documentation but found that the router’s UI uses
>     > /druid/indexer/v1/workers which exposes all the workers with the
> total
>     > capacity and used capacity. Exactly what I need.
>     >
>     > Having not found that endpoint in the documentation (
>     >
> https://druid.apache.org/docs/latest/operations/api-reference.html#router
> ),
>     > is it safe to use it or it’s meant only for internal usage? Any risk
> of its
>     > modification/disappearing in the next versions?
>     >
>     > Thanks, Vadim Vararu
>     >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@druid.apache.org
> For additional commands, e-mail: dev-help@druid.apache.org
>

Re: Router endpoint /druid/indexer/v1/workers

Posted by "Vararu, Vadim" <va...@adswizz.com>.
Indeed, but even here it's documented under Overlord, not under Router.

On 23/03/2021, 12:44, "Parag Jain" <pa...@gmail.com> wrote:

    It's documented here -
    https://github.com/apache/druid/blob/master/docs/operations/api-reference.md#dynamic-configuration,
    not sure why the website is not updated. I think it's safe to use.
    
    On Tue, Mar 23, 2021 at 2:48 PM Vararu, Vadim <va...@adswizz.com>
    wrote:
    
    > Hi all,
    >
    > I needed an endpoint to expose the “busyness” of the middle-managers in
    > order to decide if we submit more ingestions or not. I could not find any
    > endpoints in the documentation but found that the router’s UI uses
    > /druid/indexer/v1/workers which exposes all the workers with the total
    > capacity and used capacity. Exactly what I need.
    >
    > Having not found that endpoint in the documentation (
    > https://druid.apache.org/docs/latest/operations/api-reference.html#router),
    > is it safe to use it or it’s meant only for internal usage? Any risk of its
    > modification/disappearing in the next versions?
    >
    > Thanks, Vadim Vararu
    >
    


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@druid.apache.org
For additional commands, e-mail: dev-help@druid.apache.org