You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Benno Evers (JIRA)" <ji...@apache.org> on 2018/01/10 18:56:00 UTC

[jira] [Commented] (MESOS-8410) Reconfiguration policy fails to handle mount disk resources.

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

Benno Evers commented on MESOS-8410:
------------------------------------

The issue was caused by an incorrect handling of multiple resources with the same name. I've opened a review with a fix at https://reviews.apache.org/r/65074/

> Reconfiguration policy fails to handle mount disk resources.
> ------------------------------------------------------------
>
>                 Key: MESOS-8410
>                 URL: https://issues.apache.org/jira/browse/MESOS-8410
>             Project: Mesos
>          Issue Type: Bug
>            Reporter: James Peach
>            Assignee: Benno Evers
>
> We deployed {{--reconfiguration_policy="additive"}} on a number of Mesos agents that had mount disk resources configured, and it looks like the agent confused the size of the mount disk with the size of the work directory resource:
> {noformat}
> E0106 01:54:15.000123 1310889 slave.cpp:6733] EXIT with status 1: Failed to perform recovery: Configuration change not permitted under 'additive' policy: Value of scalar resource 'disk' decreased from 1830000 to 868000
> {noformat}
> The {{--resources}} flag is
> {noformat}
> --resources="[
>   {
>     "name": "disk",
>     "type": "SCALAR",
>     "scalar": {
>       "value": 868000
>     }
>   }
>   ,
>   {
>     "name": "disk",
>     "type": "SCALAR",
>     "scalar": {
>       "value": 1830000
>     },
>     "disk": {
>       "source": {
>         "type": "MOUNT",
>         "mount": {
>           "root" : "/srv/mesos/volumes/a"
>         }
>       }
>     }
>   }
>   ,
>   {
>     "name": "disk",
>     "type": "SCALAR",
>     "scalar": {
>       "value": 1830000
>     },
>     "disk": {
>       "source": {
>         "type": "MOUNT",
>         "mount": {
>           "root" : "/srv/mesos/volumes/b"
>         }
>       }
>     }
>   }
>   ,
>   {
>     "name": "disk",
>     "type": "SCALAR",
>     "scalar": {
>       "value": 1830000
>     },
>     "disk": {
>       "source": {
>         "type": "MOUNT",
>         "mount": {
>           "root" : "/srv/mesos/volumes/c"
>         }
>       }
>     }
>   }
>   ,
>   {
>     "name": "disk",
>     "type": "SCALAR",
>     "scalar": {
>       "value": 1830000
>     },
>     "disk": {
>       "source": {
>         "type": "MOUNT",
>         "mount": {
>           "root" : "/srv/mesos/volumes/d"
>         }
>       }
>     }
>   }
>   ,
>   {
>     "name": "disk",
>     "type": "SCALAR",
>     "scalar": {
>       "value": 1830000
>     },
>     "disk": {
>       "source": {
>         "type": "MOUNT",
>         "mount": {
>           "root" : "/srv/mesos/volumes/e"
>         }
>       }
>     }
>   }
>   ,
>   {
>     "name": "disk",
>     "type": "SCALAR",
>     "scalar": {
>       "value": 1830000
>     },
>     "disk": {
>       "source": {
>         "type": "MOUNT",
>         "mount": {
>           "root" : "/srv/mesos/volumes/f"
>         }
>       }
>     }
>   }
>   ,
>   {
>     "name": "disk",
>     "type": "SCALAR",
>     "scalar": {
>       "value": 1830000
>     },
>     "disk": {
>       "source": {
>         "type": "MOUNT",
>         "mount": {
>           "root" : "/srv/mesos/volumes/g"
>         }
>       }
>     }
>   }
>   ,
>   {
>     "name": "disk",
>     "type": "SCALAR",
>     "scalar": {
>       "value": 1830000
>     },
>     "disk": {
>       "source": {
>         "type": "MOUNT",
>         "mount": {
>           "root" : "/srv/mesos/volumes/h"
>         }
>       }
>     }
>   }
> ]
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)