[
https://issues.apache.org/jira/browse/MESOS-3069?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Joseph Wu updated MESOS-3069:
-----------------------------
Description:
In order to modify the maintenance schedule in the replicated registry, we will
need Operations (src/master/registrar.hpp).
The operations will likely correspond to the HTTP API:
* UpdateMaintenanceSchedule: Given a blob representing a maintenance schedule,
perform some verification on the blob. Write the blob to the registry.
* StartMaintenance: Given a set of machines, verify then transition machines
from Draining to Deactivated.
* StopMaintenance: Given a set of machines, verify then transition machines
from Deactivated to Normal. Remove affected machines from the schedule(s).
was:
In order to modify the maintenance schedule in the replicated registry, we will
need Operations (src/master/registrar.hpp).
The operations will likely correspond to the HTTP API:
* UpdateMaintenance: Given a blob representing a maintenance schedule, write
the blob to the registry. Possibly perform some verification on the blob.
* UpdateSlaveMaintenanceStatus: Given a set of machines and a status (action),
change the machiness' status in the maintenance schedule.
Possible test(s):
* UpdateMaintenance:
** Add a schedule with 1 slave, 2+ slaves, and 0 slaves.
** Add multiple schedules (different intervals).
** Delete schedules (empty schedule).
* UpdateSlaveMaintenanceStatus:
** Add schedule.
** Change a slave's status.
** Change a slave's status, given a slave that is not in the schedule (slave
should be added to the schedule).
> Registry operations do not exist for manipulating maintanence schedules
> -----------------------------------------------------------------------
>
> Key: MESOS-3069
> URL: https://issues.apache.org/jira/browse/MESOS-3069
> Project: Mesos
> Issue Type: Task
> Components: master, replicated log
> Reporter: Joseph Wu
> Assignee: Joseph Wu
> Labels: mesosphere
>
> In order to modify the maintenance schedule in the replicated registry, we
> will need Operations (src/master/registrar.hpp).
> The operations will likely correspond to the HTTP API:
> * UpdateMaintenanceSchedule: Given a blob representing a maintenance
> schedule, perform some verification on the blob. Write the blob to the
> registry.
> * StartMaintenance: Given a set of machines, verify then transition machines
> from Draining to Deactivated.
> * StopMaintenance: Given a set of machines, verify then transition machines
> from Deactivated to Normal. Remove affected machines from the schedule(s).
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)