[ 
https://issues.apache.org/jira/browse/MESOS-4008?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Yongqiao Wang updated MESOS-4008:
---------------------------------
       Assignee: Yongqiao Wang  (was: Yongqiao Wang)
    Description: 
In Mesos master failover case, non-default weights should be recovered from 
registry.

Note: if the replicated log for roles/weights has exist, and then it prefers to 
use the registry values and ignore the flags (--weights), and also log a 
warning in Mesos master that the flags values are being ignored.

The `--weights` flag is now considered deprecated and will be removed in a 
future version of Mesos.

  was:
To consider the Mesos master recovery and failover case, Mesos master needs to 
persist the roles and weights information in registry: 
- In the first boot, the first leading master initialize the replicated log 
with the roles/weights specified by command-line flags(--roles and --weights). 
The flags values are only useful to bootstrap the cluster, after which point 
the registry becomes the source of truth.

- At runtime, the replicated log can only be updated to add/remove/update 
entries by the operator REST API.

- For Mesos master restart/failover case, if the replicated log for 
roles/weights has exist, and then it prefers to use the registry values and 
ignore the flags (--roles/--weights), and also log a warning in Mesos master 
that the flags values are being ignored.

- For the future works, we can educate end users to create the replicated log 
to initialize the supported roles/weights before Mesos cluster bootstrap, and 
reset roles/weights configurations by update the replicated log.


        Summary: Recovery the non-default weights from registry when master 
recovery.  (was: Master recovery with the persisted roles in registry)

> Recovery the non-default weights from registry when master recovery.
> --------------------------------------------------------------------
>
>                 Key: MESOS-4008
>                 URL: https://issues.apache.org/jira/browse/MESOS-4008
>             Project: Mesos
>          Issue Type: Task
>            Reporter: Yongqiao Wang
>            Assignee: Yongqiao Wang
>
> In Mesos master failover case, non-default weights should be recovered from 
> registry.
> Note: if the replicated log for roles/weights has exist, and then it prefers 
> to use the registry values and ignore the flags (--weights), and also log a 
> warning in Mesos master that the flags values are being ignored.
> The `--weights` flag is now considered deprecated and will be removed in a 
> future version of Mesos.



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

Reply via email to