aurora-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kevin Sweeney <kevi...@apache.org>
Subject Re: Monitoring capacity headroom
Date Wed, 01 Oct 2014 21:29:03 GMT
There is (currently undocumented) under the scheduler's /vars or /vars.json
endpoint.

empty_slots_*

See
https://github.com/apache/incubator-aurora/blob/master/src/main/java/org/apache/aurora/scheduler/stats/SlotSizeCounter.java

The constants are defined here:
https://github.com/apache/incubator-aurora/blob/master/src/main/java/org/apache/aurora/scheduler/base/ResourceAggregates.java#L29-L39

On Wed, Oct 1, 2014 at 2:24 PM, Josh Adams <josh@gmail.com> wrote:

> Hi there,
>
> Is there a way to ask the Scheduler for a current headroom estimate (in
> number of potential task "slots" available) for a given TaskConfig?
>
> I understand that I could do this manually by processing /state.json on the
> Mesos master and joining that with info from a getJobsResult, but I'd
> rather not reinvent the wheel if there's already something that does this.
>
> Thanks!
> Josh
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message