mesos-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joseph Wu (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (MESOS-2067) Add HTTP API to the master for maintenance operations.
Date Tue, 11 Aug 2015 19:00:46 GMT

    [ https://issues.apache.org/jira/browse/MESOS-2067?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14680607#comment-14680607
] 

Joseph Wu edited comment on MESOS-2067 at 8/11/15 7:00 PM:
-----------------------------------------------------------

Note: I'll be expanding on Artem's work (https://reviews.apache.org/r/37190/) while [~hartem]
is occupied with other items.

New review chain (along with MESOS-3069):
| /maintenance/schedule | https://reviews.apache.org/r/37325/ |
| /maintenance/start | https://reviews.apache.org/r/37358/ |
| /maintenance/stop | https://reviews.apache.org/r/37362/ |
| /maintenance/status | https://reviews.apache.org/r/37364/ |


was (Author: kaysoky):
Note: I'll be expanding on Artem's work (https://reviews.apache.org/r/37190/) while [~hartem]
is occupied with other items.

> Add HTTP API to the master for maintenance operations.
> ------------------------------------------------------
>
>                 Key: MESOS-2067
>                 URL: https://issues.apache.org/jira/browse/MESOS-2067
>             Project: Mesos
>          Issue Type: Task
>          Components: master
>            Reporter: Benjamin Mahler
>            Assignee: Joseph Wu
>              Labels: mesosphere, twitter
>
> Based on MESOS-1474, we'd like to provide an HTTP API on the master for the maintenance
primitives in mesos.
> For the MVP, we'll want something like this for manipulating the schedule:
> {code}
> /maintenance/schedule
>   GET - returns the schedule, which will include the various maintenance windows.
>   POST - create or update the schedule with a JSON blob (see below).
> /maintenance/status
>   GET - returns a list of machines and their maintenance mode.
> /maintenance/start
>   POST - Transition a set of machines from Draining into Deactivated mode.
> /maintenance/stop
>   POST - Transition a set of machines from Deactivated into Normal mode.
> {code}
> (Note: The slashes in URLs might not be supported yet.)
> A schedule might look like:
> {code}
> {
>   "windows" : [
>     {
>       "machines" : [
>           { "ip" : "192.168.0.1" },
>           { "hostname" : "localhost" },
>           ...
>         ], 
>       "unavailability" : {
>         "start" : 12345, // Epoch seconds.
>         "duration" : 1000 // Seconds.
>       }
>     },
>     ...
>   ]
> }
> {code}
> There should be firewall settings such that only those with access to master can use
these endpoints.



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

Mime
View raw message