blob: bc1c663ccbf31ac5e2a9f93d022a5f49ded846fa [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Apache Mesos - Upgrading Mesos</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta property="og:locale" content="en_US"/>
<meta property="og:type" content="website"/>
<meta property="og:title" content="Apache Mesos"/>
<meta property="og:site_name" content="Apache Mesos"/>
<meta property="og:url" content="http://mesos.apache.org/"/>
<meta property="og:image" content="http://mesos.apache.org/assets/img/mesos_logo_fb_preview.png"/>
<meta property="og:description"
content="Apache Mesos abstracts resources away from machines,
enabling fault-tolerant and elastic distributed systems
to easily be built and run effectively."/>
<meta name="twitter:card" content="summary"/>
<meta name="twitter:site" content="@ApacheMesos"/>
<meta name="twitter:title" content="Apache Mesos"/>
<meta name="twitter:image" content="http://mesos.apache.org/assets/img/mesos_logo_fb_preview.png"/>
<meta name="twitter:description"
content="Apache Mesos abstracts resources away from machines,
enabling fault-tolerant and elastic distributed systems
to easily be built and run effectively."/>
<link href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet">
<link rel="alternate" type="application/atom+xml" title="Apache Mesos Blog" href="/blog/feed.xml">
<link href="../../assets/css/main.css" media="screen" rel="stylesheet" type="text/css" />
<!-- Google Analytics Magic -->
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-20226872-1']);
_gaq.push(['_setDomainName', 'apache.org']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body>
<!-- magical breadcrumbs -->
<div class="topnav">
<div class="container">
<ul class="breadcrumb">
<li>
<div class="dropdown">
<a data-toggle="dropdown" href="#">Apache Software Foundation <span class="caret"></span></a>
<ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
<li><a href="http://www.apache.org">Apache Homepage</a></li>
<li><a href="http://www.apache.org/licenses/">License</a></li>
<li><a href="http://www.apache.org/foundation/sponsorship.html">Sponsorship</a></li>
<li><a href="http://www.apache.org/foundation/thanks.html">Thanks</a></li>
<li><a href="http://www.apache.org/security/">Security</a></li>
</ul>
</div>
</li>
<li><a href="http://mesos.apache.org">Apache Mesos</a></li>
<li><a href="/documentation
/">Documentation
</a></li>
</ul><!-- /.breadcrumb -->
</div><!-- /.container -->
</div><!-- /.topnav -->
<!-- navbar excitement -->
<div class="navbar navbar-default navbar-static-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#mesos-menu" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="/"><img src="/assets/img/mesos_logo.png" alt="Apache Mesos logo"/></a>
</div><!-- /.navbar-header -->
<div class="navbar-collapse collapse" id="mesos-menu">
<ul class="nav navbar-nav navbar-right">
<li><a href="/gettingstarted/">Getting Started</a></li>
<li><a href="/blog/">Blog</a></li>
<li><a href="/documentation/latest/">Documentation</a></li>
<li><a href="/downloads/">Downloads</a></li>
<li><a href="/community/">Community</a></li>
</ul>
</div><!-- /#mesos-menu -->
</div><!-- /.container -->
</div><!-- /.navbar -->
<div class="content">
<div class="container">
<div class="row-fluid">
<div class="col-md-4">
<h4>If you're new to Mesos</h4>
<p>See the <a href="/gettingstarted/">getting started</a> page for more
information about downloading, building, and deploying Mesos.</p>
<h4>If you'd like to get involved or you're looking for support</h4>
<p>See our <a href="/community/">community</a> page for more details.</p>
</div>
<div class="col-md-8">
<h1>Upgrading Mesos</h1>
<p>This document serves as a guide for users who wish to upgrade an existing Mesos cluster. Some versions require particular upgrade techniques when upgrading a running cluster. Some upgrades will have incompatible changes.</p>
<h2>Overview</h2>
<p>This section provides an overview of the changes for each version (in particular when upgrading from the next lower version). For more details please check the respective sections below.</p>
<p>We categorize the changes as follows:</p>
<pre><code>A New feature/behavior
C Changed feature/behavior
D Deprecated feature/behavior
R Removed feature/behavior
</code></pre>
<table class="table table-bordered" style="table-layout: fixed;">
<thead>
<tr>
<th width="10%">
Version
</th>
<th width="18%">
Mesos Core
</th>
<th width="18%">
Flags
</th>
<th width="18%">
Framework API
</th>
<th width="18%">
Module API
</th>
<th width="18%">
Endpoints
</th>
</tr>
</thead>
<tr>
<td style="word-wrap: break-word; overflow-wrap: break-word;"><!--Version-->
1.2.x
</td>
<td style="word-wrap: break-word; overflow-wrap: break-word;"><!--Mesos Core-->
</td>
<td style="word-wrap: break-word; overflow-wrap: break-word;"><!--Flags-->
<ul style="padding-left:10px;">
<li>A <a href="#1-2-x-heartbeat-flag">http_heartbeat_interval</a></li>
<li>A <a href="#1-2-x-backend-flag">image_provisioner_backend</a></li>
<li>A <a href="#1-2-x-unreachable-flag">max_unreachable_tasks_per_framework</a></li>
</ul>
</td>
<td style="word-wrap: break-word; overflow-wrap: break-word;"><!--Framework API-->
<ul style="padding-left:10px;">
<li>A <a href="#1-2-x-revive-suppress">Revive and Suppress v1 scheduler Calls</a></li>
</ul>
</td>
<td style="word-wrap: break-word; overflow-wrap: break-word;"><!--Module API-->
<ul style="padding-left:10px;">
<li>C <a href="#1-2-x-container-logger-interface">Container Logger prepare method</a></li>
<li>C <a href="#1-2-x-allocator-module-changes">Allocator module changes</a></li>
<li>A <a href="#1-2-x-new-authz-actions">New Authorizer module actions</a></li>
<li>D <a href="#1-2-x-renamed-authz-actions">Renamed Authorizer module actions (deprecated old aliases)</a></li>
<li>R <a href="#1-2-x-removed-hooks">Removed slavePreLaunchDockerEnvironmentDecorator and slavePreLaunchDockerHook</a></li>
</ul>
</td>
<td style="word-wrap: break-word; overflow-wrap: break-word;"><!--Endpoints-->
<ul style="padding-left:10px;">
<li>A <a href="#1-2-x-debug-endpoints">LAUNCH_NESTED_CONTAINER_SESSION, ATTACH_CONTAINER_INPUT, ATTACH_CONTAINER_OUTPUT</a></li>
<li>D <a href="#1-2-x-recovered-frameworks">v1 GetFrameworks recovered_frameworks</a></li>
<li>D <a href="#1-2-x-orphan-executors">v1 GetExecutors orphan_executors</a></li>
<li>D <a href="#1-2-x-orphan-tasks">v1 GetTasks orphan_tasks</a></li>
</ul>
</td>
</tr>
<tr>
<td style="word-wrap: break-word; overflow-wrap: break-word;"><!--Version-->
1.1.x
</td>
<td style="word-wrap: break-word; overflow-wrap: break-word;"><!--Mesos Core-->
</td>
<td style="word-wrap: break-word; overflow-wrap: break-word;"><!--Flags-->
</td>
<td style="word-wrap: break-word; overflow-wrap: break-word;"><!--Framework API-->
</td>
<td style="word-wrap: break-word; overflow-wrap: break-word;"><!--Module API-->
<ul style="padding-left:10px;">
<li>R <a href="#1-1-x-container-logger-interface">Container Logger recovery method</a></li>
<li>C <a href="#1-1-x-allocator-updateallocation">Allocator updateAllocation method</a></li>
</ul>
</td>
<td style="word-wrap: break-word; overflow-wrap: break-word;"><!--Endpoints-->
</td>
</tr>
<tr>
<td style="word-wrap: break-word; overflow-wrap: break-word;"><!--Version-->
1.0.x
</td>
<td style="word-wrap: break-word; overflow-wrap: break-word;"><!--Mesos Core-->
<ul style="padding-left:10px;">
<li>CD <a href="#1-0-x-allocator-metrics">Allocator Metrics</a></li>
<li>C <a href="#1-0-x-persistent-volume">Destruction of persistent volumes</a></li>
<li>C <a href="#1-0-x-slave">Slave to Agent rename</a></li>
<li>C <a href="#1-0-x-quota-acls">Quota ACLs</a></li>
<li>R <a href="#1-0-x-executor-environment-variables">Executor environment variables inheritance</a></li>
<li>R <a href="#1-0-x-deprecated-fields-in-container-config">Deprecated fields in ContainerConfig</a></li>
<li>C <a href="#1-0-x-persistent-volume-ownership">Persistent volume ownership</a></li>
<li>C <a href="#1-0-x-fetcher-user">Fetcher assumes same user as task</a></li>
</ul>
</td>
<td style="word-wrap: break-word; overflow-wrap: break-word;"><!--Flags-->
<ul style="padding-left:10px;">
<li>D <a href="#1-0-x-docker-timeout-flag">docker_stop_timeout</a></li>
<li>D <a href="#1-0-x-credentials-file">credential(s) (plain text format)</a></li>
<li>C <a href="#1-0-x-slave">Slave to Agent rename</a></li>
<li>R <a href="#1-0-x-workdir">work_dir default value</a></li>
<li>D <a href="#1-0-x-deprecated-ssl-env-variables">SSL environment variables</a></li>
<li>ACD <a href="#1-0-x-http-authentication-flags">HTTP authentication</a></li>
<li>R <a href="#1-0-x-registry-strict">registry_strict</a></li>
</ul>
</td>
<td style="word-wrap: break-word; overflow-wrap: break-word;"><!--Framework API-->
<ul style="padding-left:10px;">
<li>DC <a href="#1-0-x-executorinfo">ExecutorInfo.source</a></li>
<li>A <a href="#1-0-x-v1-commandinfo">CommandInfo.URI output_file</a></li>
<li>C <a href="#1-0-x-scheduler-proto">scheduler.proto optional fields</a></li>
<li>C <a href="#1-0-x-executor-proto">executor.proto optional fields</a></li>
</ul>
</td>
<td style="word-wrap: break-word; overflow-wrap: break-word;"><!--Module API-->
<ul style="padding-left:10px;">
<li>C <a href="#1-0-x-authorizer">Authorizer</a></li>
<li>C <a href="#1-0-x-allocator">Allocator</a></li>
</ul>
</td>
<td style="word-wrap: break-word; overflow-wrap: break-word;"><!--Endpoints-->
<ul style="padding-left:10px;">
<li>C <a href="#1-0-x-status-code">HTTP return codes</a></li>
<li>R <a href="#1-0-x-status-code">/observe</a></li>
<li>C <a href="#1-0-x-endpoint-authorization">Added authorization</a></li>
</ul>
</td>
</tr>
<tr>
<td style="word-wrap: break-word; overflow-wrap: break-word;"><!--Version-->
0.28.x
</td>
<td style="word-wrap: break-word; overflow-wrap: break-word;"><!--Mesos Core-->
<ul style="padding-left:10px;">
<li>C <a href="#0-28-x-resource-precision">Resource Precision</a></li>
</ul>
</td>
<td style="word-wrap: break-word; overflow-wrap: break-word;"><!--Flags-->
<ul style="padding-left:10px;">
<li>C <a href="#0-28-x-autherization-acls">Authentication ACLs</a></li>
</ul>
</td>
<td style="word-wrap: break-word; overflow-wrap: break-word;"><!--Framework API-->
</td>
<td style="word-wrap: break-word; overflow-wrap: break-word;"><!--Module API-->
</td>
<td style="word-wrap: break-word; overflow-wrap: break-word;"><!--Endpoints-->
</td>
</tr>
<tr>
<td style="word-wrap: break-word; overflow-wrap: break-word;"><!--Version-->
0.27.x
</td>
<td style="word-wrap: break-word; overflow-wrap: break-word;"><!--Mesos Core-->
</td>
<td style="word-wrap: break-word; overflow-wrap: break-word;"><!--Flags-->
<ul style="padding-left:10px;">
<li>D <a href="#0-27-x-implicit-roles">--roles</a></li>
<li>D <a href="#0-27-x-acl-shutdown-flag">--acls (shutdown_frameworks)</a></li>
</ul>
</td>
<td style="word-wrap: break-word; overflow-wrap: break-word;"><!--Framework API-->
<ul style="padding-left:10px;">
<li>C <a href="#0-27-x-executor-lost-callback">executorLost callback</a></li>
</ul>
</td>
<td style="word-wrap: break-word; overflow-wrap: break-word;"><!--Module API-->
<ul style="padding-left:10px;">
<li>C <a href="#0-27-x-allocator-api">Allocator API</a></li>
<li>C <a href="#0-27-x-isolator-api">Isolator API</a></li>
</ul>
</td>
<td style="word-wrap: break-word; overflow-wrap: break-word;"><!--Endpoints-->
</td>
</tr>
<tr>
<td style="word-wrap: break-word; overflow-wrap: break-word;"><!--Version-->
0.26.x
</td>
<td style="word-wrap: break-word; overflow-wrap: break-word;"><!--Mesos Core-->
</td>
<td style="word-wrap: break-word; overflow-wrap: break-word;"><!--Flags-->
</td>
<td style="word-wrap: break-word; overflow-wrap: break-word;"><!--Framework API-->
<ul style="padding-left:10px;">
<li>C <a href="#0-26-x-taskstatus-reason">TaskStatus::Reason Enum</a></li>
<li>C <a href="#0-26-x-credential-protobuf">Credential Protobuf</a></li>
<li>C <a href="#0-26-x-network-info-protobuf">NetworkInfo Protobuf</a></li>
</ul>
</td>
<td style="word-wrap: break-word; overflow-wrap: break-word;"><!--Module API-->
</td>
<td style="word-wrap: break-word; overflow-wrap: break-word;"><!--Endpoints-->
<ul style="padding-left:10px;">
<li>C <a href="#0-26-x-state-endpoint">State Endpoint</a></li>
</ul>
</td>
</tr>
<tr>
<td style="word-wrap: break-word; overflow-wrap: break-word;"><!--Version-->
0.25.x
</td>
<td style="word-wrap: break-word; overflow-wrap: break-word;"><!--Mesos Core-->
</td>
<td style="word-wrap: break-word; overflow-wrap: break-word;"><!--Flags-->
</td>
<td style="word-wrap: break-word; overflow-wrap: break-word;"><!--Framework API-->
<ul style="padding-left:10px;">
<li>C <a href="#0-25-x-scheduler-bindings">C++/Java/Python Scheduler Bindings</a></li>
</ul>
</td>
<td style="word-wrap: break-word; overflow-wrap: break-word;"><!--Module API-->
</td>
<td style="word-wrap: break-word; overflow-wrap: break-word;"><!--Endpoints-->
<ul style="padding-left:10px;">
<li>D <a href="#0-25-x-json-endpoints">*.json Endpoints</a></li>
</ul>
</td>
</tr>
</table>
<h2>Upgrading from 1.1.x to 1.2.x</h2>
<p><a name="1-2-x-heartbeat-flag"></a>
* New Agent flag http_heartbeat_interval: This flag sets a heartbeat interval for messages to be sent over persistent connections made against the agent HTTP API. Currently, this only applies to the LAUNCH_NESTED_CONTAINER_SESSION and ATTACH_CONTAINER_OUTPUT calls. (default: 30secs)</p>
<p><a name="1-2-x-backend-flag"></a>
* New Agent flag image_provisioner_backend: Strategy for provisioning container rootfs from images, e.g., aufs, bind, copy, overlay.</p>
<p><a name="1-2-x-unreachable-flag"></a>
* New Master flag max_unreachable_tasks_per_framework: Maximum number of unreachable tasks per framework to store in memory. (default: 1000)</p>
<p><a name="1-2-x-revive-suppress"></a>
* New Revive and Suppress v1 scheduler Calls: Revive or Suppress offers for a specified role. If role is unset, the call will revive/suppress offers for all of the roles the framework is subscribed to. (Especially for multi-role frameworks.)</p>
<p><a name="1-2-x-container-logger-interface"></a>
* Mesos 1.2 modifies the <code>ContainerLogger</code>&rsquo;s <code>prepare()</code> method. The method now takes an additional argument for the <code>user</code> the logger should run a subprocess as. Please see <a href="https://issues.apache.org/jira/browse/MESOS-5856">MESOS-5856</a> for more information.</p>
<p><a name="1-2-x-allocator-module-changes"></a>
* Allocator module changes to support inactive frameworks, multi-role frameworks, and suppress/revive. See <code>allocator.hpp</code> for interface changes.</p>
<p><a name="1-2-x-new-authz-actions"></a>
* New Authorizer module actions: LAUNCH_NESTED_CONTAINER, KILL_NESTED_CONTAINER, WAIT_NESTED_CONTAINER, LAUNCH_NESTED_CONTAINER_SESSION, ATTACH_CONTAINER_INPUT, ATTACH_CONTAINER_OUTPUT, VIEW_CONTAINER, and SET_LOG_LEVEL. See <code>authorizer.proto</code> for module interface changes, and <code>acls.proto</code> for corresponding LocalAuthorizer ACL changes.</p>
<p><a name="1-2-x-renamed-authz-actions"></a>
* Renamed Authorizer module actions (and deprecated old aliases): REGISTER_FRAMEWORK, TEARDOWN_FRAMEWORK, RESERVE_RESOURCES, UNRESERVE_RESOURCES, CREATE_VOLUME, DESTROY_VOLUME, UPDATE_WEIGHT, GET_QUOTA. See <code>authorizer.proto</code> for interface changes.</p>
<p><a name="1-2-x-removed-hooks"></a>
* Removed slavePreLaunchDockerEnvironmentDecorator and slavePreLaunchDockerHook in favor of slavePreLaunchDockerTaskExecutorDecorator.</p>
<p><a name="1-2-x-debug-endpoints"></a>
* New Agent v1 operator API calls: LAUNCH_NESTED_CONTAINER_SESSION, ATTACH_CONTAINER_INPUT, ATTACH_CONTAINER_OUTPUT for debugging into running containers (Mesos containerizer only).</p>
<p><a name="1-2-x-recovered-frameworks"></a>
* Deprecated <code>recovered_frameworks</code> in v1 GetFrameworks call. Now it will be empty.</p>
<p><a name="1-2-x-orphan-executors"></a>
* Deprecated <code>orphan_executors</code> in v1 GetExecutors call. Now it will be empty.</p>
<p><a name="1-2-x-orphan-tasks"></a>
* Deprecated <code>orphan_tasks</code> in v1 GetTasks call. Now it will be empty.</p>
<p>In order to upgrade a running cluster:</p>
<ol>
<li>Rebuild and install any modules so that upgraded masters/agents/schedulers can use them.</li>
<li>Install the new master binaries and restart the masters.</li>
<li>Install the new agent binaries and restart the agents.</li>
<li>Upgrade the schedulers by linking the latest native library / jar / egg (if necessary).</li>
<li>Restart the schedulers.</li>
<li>Upgrade the executors by linking the latest native library / jar / egg (if necessary).</li>
</ol>
<h2>Upgrading from 1.0.x to 1.1.x</h2>
<p><a name="1-1-x-container-logger-interface"></a></p>
<ul>
<li>Mesos 1.1 removes the <code>ContainerLogger</code>&rsquo;s <code>recover()</code> method. The <code>ContainerLogger</code> had an incomplete interface for a stateful implementation. This removes the incomplete parts to avoid adding tech debt in the containerizer. Please see <a href="https://issues.apache.org/jira/browse/MESOS-6371">MESOS-6371</a> for more information.</li>
</ul>
<p><a name="1-1-x-allocator-updateallocation"></a></p>
<ul>
<li>Mesos 1.1 adds an <code>offeredResources</code> argument to the <code>Allocator::updateAllocation()</code> method. It is used to indicate the resources that the operations passed to <code>updateAllocation()</code> are applied to. <a href="https://issues.apache.org/jira/browse/MESOS-4431">MESOS-4431</a> (paticularly <a href="https://reviews.apache.org/r/45961/">/r/45961/</a>) has more details on the motivation.</li>
</ul>
<h2>Upgrading from 0.28.x to 1.0.x</h2>
<p><a name="1-0-x-deprecated-ssl-env-variables"></a></p>
<ul>
<li>Prior to Mesos 1.0, environment variables prefixed by <code>SSL_</code> are used to control libprocess SSL support. However, it was found that those environment variables may collide with some libraries or programs (e.g., openssl, curl). From Mesos 1.0, <code>SSL_*</code> environment variables are deprecated in favor of the corresponding <code>LIBPROCESS_SSL_*</code> variables.</li>
</ul>
<p><a name="1-0-x-persistent-volume-ownership"></a></p>
<ul>
<li>Prior to Mesos 1.0, Mesos agent recursively changes the ownership of the persistent volumes every time they are mounted to a container. From Mesos 1.0, this behavior has been changed. Mesos agent will do a <em>non-recursive</em> change of ownership of the persistent volumes.</li>
</ul>
<p><a name="1-0-x-deprecated-fields-in-container-config"></a></p>
<ul>
<li>Mesos 1.0 removed the camel cased protobuf fields in <code>ContainerConfig</code> (see <code>include/mesos/slave/isolator.proto</code>):
<ul>
<li><code>required ExecutorInfo executorInfo = 1;</code></li>
<li><code>optional TaskInfo taskInfo = 2;</code></li>
</ul>
</li>
</ul>
<p><a name="1-0-x-executor-environment-variables"></a></p>
<ul>
<li>By default, executors will no longer inherit environment variables from the agent. The operator can still use the <code>--executor-environment-variables</code> flag on the agent to explicitly specify what environment variables the executors will get. Mesos generated environment variables (i.e., <code>$MESOS_</code>, <code>$LIBPROCESS_</code>) will not be affected. If <code>$PATH</code> is not specified for an executor, a default value <code>/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin</code> will be used.</li>
</ul>
<p><a name="1-0-x-allocator-metrics"></a></p>
<ul>
<li>The allocator metric named <code>allocator/event_queue_dispatches</code> is now deprecated. The new name is <code>allocator/mesos/event_queue_dispatches</code> to better support metrics for alternative allocator implementations.</li>
</ul>
<p><a name="1-0-x-docker-timeout-flag"></a></p>
<ul>
<li>The <code>--docker_stop_timeout</code> agent flag is deprecated.</li>
</ul>
<p><a name="1-0-x-executorinfo"></a></p>
<ul>
<li>The ExecutorInfo.source field is deprecated in favor of ExecutorInfo.labels.</li>
</ul>
<p><a name="1-0-x-slave"></a></p>
<ul>
<li>Mesos 1.0 deprecates the &lsquo;slave&rsquo; keyword in favor of &lsquo;agent&rsquo; in a number of places
<ul>
<li>Deprecated flags with keyword &lsquo;slave&rsquo; in favor of &lsquo;agent&rsquo;.</li>
<li>Deprecated sandbox links with &lsquo;slave&rsquo; keyword in the WebUI.</li>
<li>Deprecated <code>slave</code> subcommand for mesos-cli.</li>
</ul>
</li>
</ul>
<p><a name="1-0-x-workdir"></a></p>
<ul>
<li>Mesos 1.0 removes the default value for the agent&rsquo;s <code>work_dir</code> command-line flag. This flag is now required; the agent will exit immediately if it is not provided.</li>
</ul>
<p><a name="1-0-x-registry-strict"></a></p>
<ul>
<li>Mesos 1.0 disables support for the master&rsquo;s <code>registry_strict</code> command-line flag. If this flag is specified, the master will exit immediately. Note that this flag was previously marked as experimental and not recommended for production use.</li>
</ul>
<p><a name="1-0-x-credentials-file"></a></p>
<ul>
<li>Mesos 1.0 deprecates the use of plain text credential files in favor of JSON-formatted credential files.</li>
</ul>
<p><a name="1-0-x-persistent-volume"></a></p>
<ul>
<li>When a persistent volume is destroyed, Mesos will now remove any data that was stored on the volume from the filesystem of the appropriate agent. In prior versions of Mesos, destroying a volume would not delete data (this was a known missing feature that has now been implemented).</li>
</ul>
<p><a name="1-0-x-status-code"></a></p>
<ul>
<li>Mesos 1.0 changes the HTTP status code of the following endpoints from <code>200 OK</code> to <code>202 Accepted</code>:
<ul>
<li><code>/reserve</code></li>
<li><code>/unreserve</code></li>
<li><code>/create-volumes</code></li>
<li><code>/destroy-volumes</code></li>
</ul>
</li>
</ul>
<p><a name="1-0-x-v1-commandinfo"></a></p>
<ul>
<li>Added <code>output_file</code> field to CommandInfo.URI in Scheduler API and v1 Scheduler HTTP API.</li>
</ul>
<p><a name="1-0-x-scheduler-proto"></a></p>
<ul>
<li>Changed Call and Event Type enums in scheduler.proto from required to optional for the purpose of backwards compatibility.</li>
</ul>
<p><a name="1-0-x-executor-proto"></a></p>
<ul>
<li>Changed Call and Event Type enums in executor.proto from required to optional for the purpose of backwards compatibility.</li>
</ul>
<p><a name="1-0-x-nonterminal"></a></p>
<ul>
<li>Added non-terminal task metadata to the container resource usage information.</li>
</ul>
<p><a name="1-0-x-observe-endpoint"></a></p>
<ul>
<li>Deleted the /observe HTTP endpoint.</li>
</ul>
<p><a name="1-0-x-quota-acls"></a></p>
<ul>
<li>The <code>SetQuota</code> and <code>RemoveQuota</code> ACLs have been deprecated. To replace these, a new ACL <code>UpdateQuota</code> have been introduced. In addition, a new ACL <code>GetQuota</code> have been added; these control which principals are allowed to query quota information for which roles. These changes affect the <code>--acls</code> flag for the local authorizer in the following ways:
<ul>
<li>The <code>update_quotas</code> ACL cannot be used in combination with either the <code>set_quotas</code> or <code>remove_quotas</code> ACL. The local authorizor will produce an error in such a case;</li>
<li>When upgrading a Mesos cluster that uses the <code>set_quotas</code> or <code>remove_quotas</code> ACLs, the operator should first upgrade the Mesos binaries. At this point, the deprecated ACLs will still be enforced. After the upgrade has been verified, the operator should replace deprecated values for <code>set_quotas</code> and <code>remove_quotas</code> with equivalent values for <code>update_quotas</code>;</li>
<li>If desired, the operator can use the <code>get_quotas</code> ACL after the upgrade to control which principals are allowed to query quota information.</li>
</ul>
</li>
</ul>
<p><a name="1-0-x-authorizer"></a></p>
<ul>
<li>Mesos 1.0 contains a number of authorizer changes that particularly effect custom authorizer modules:
<ul>
<li>The authorizer interface has been refactored in order to decouple the ACL definition language from the interface. It additionally includes the option of retrieving <code>ObjectApprover</code>. An <code>ObjectApprover</code> can be used to synchronously check authorizations for a given object and is hence useful when authorizing a large number of objects and/or large objects (which need to be copied using request-based authorization). NOTE: This is a <strong>breaking change</strong> for authorizer modules.</li>
<li>Authorization-based HTTP endpoint filtering enables operators to restrict which parts of the cluster state a user is authorized to see. Consider for example the <code>/state</code> master endpoint: an operator can now authorize users to only see a subset of the running frameworks, tasks, or executors.</li>
<li>The <code>subject</code> and <code>object</code> fields in the authorization::Request protobuf message have been changed to be optional. If these fields are not set, the request should only be allowed for ACLs with <code>ANY</code> semantics. NOTE: This is a semantic change for authorizer modules.</li>
</ul>
</li>
</ul>
<p><a name="1-0-x-allocator"></a></p>
<ul>
<li>Namespace and header file of <code>Allocator</code> has been moved to be consistent with other packages.</li>
</ul>
<p><a name="1-0-x-fetcher-user"></a></p>
<ul>
<li>When a task is run as a particular user, the fetcher now fetches files as that user also. Note, this means that filesystem permissions for that user will be enforced when fetching local files.</li>
</ul>
<p><a name="1-0-x-http-authentication-flags"></a></p>
<ul>
<li>The <code>--authenticate_http</code> flag has been deprecated in favor of <code>--authenticate_http_readwrite</code>. Setting <code>--authenticate_http_readwrite</code> will now enable authentication for all endpoints which previously had authentication support. These happen to be the endpoints which allow modifiication of the cluster state, or &ldquo;read-write&rdquo; endpoints. Note that <code>/logging/toggle</code>, <code>/profiler/start</code>, <code>/profiler/stop</code>, <code>/maintenance/schedule</code>, <code>/machine/up</code>, and <code>/machine/down</code> previously did not have authentication support, but in 1.0 if either <code>--authenticate_http</code> or <code>--authenticate_http_readwrite</code> is set, those endpoints will now require authentication. A new flag has also been introduced, <code>--authenticate_http_readonly</code>, which enables authentication for endpoints which support authentication and do not allow modification of the state of the cluster, like <code>/state</code> or <code>/flags</code>.</li>
</ul>
<p><a name="1-0-x-endpoint-authorization"></a></p>
<ul>
<li><p>Mesos 1.0 introduces authorization support for several HTTP endpoints. Note that some of these endpoints are used by the web UI, and thus using the web UI in a cluster with authorization enabled will require that ACLs be set appropriately. Please refer to the <a href="/documentation/latest/./authorization/">authorization documentation</a> for details.</p></li>
<li><p>The endpoints with coarse-grained authorization enabled are:</p>
<ul>
<li><code>/files/debug</code></li>
<li><code>/logging/toggle</code></li>
<li><code>/metrics/snapshot</code></li>
<li><code>/slave(id)/containers</code></li>
<li><code>/slave(id)/monitor/statistics</code></li>
</ul>
</li>
<li><p>If the defined ACLs used <code>permissive: false</code>, the listed HTTP endpoints will stop working unless ACLs for the <code>get_endpoints</code> actions are defined.</p></li>
</ul>
<p>In order to upgrade a running cluster:</p>
<ol>
<li>Rebuild and install any modules so that upgraded masters/agents can use them.</li>
<li>Install the new master binaries and restart the masters.</li>
<li>Install the new agent binaries and restart the agents.</li>
<li>Upgrade the schedulers by linking the latest native library / jar / egg (if necessary).</li>
<li>Restart the schedulers.</li>
<li>Upgrade the executors by linking the latest native library / jar / egg (if necessary).</li>
</ol>
<h2>Upgrading from 0.27.x to 0.28.x</h2>
<p><a name="0-28-x-resource-precision"></a></p>
<ul>
<li>Mesos 0.28 only supports three decimal digits of precision for scalar resource values. For example, frameworks can reserve &ldquo;0.001&rdquo; CPUs but more fine-grained reservations (e.g., &ldquo;0.0001&rdquo; CPUs) are no longer supported (although they did not work reliably in prior versions of Mesos anyway). Internally, resource math is now done using a fixed-point format that supports three decimal digits of precision, and then converted to/from floating point for input and output, respectively. Frameworks that do their own resource math and manipulate fractional resources may observe differences in roundoff error and numerical precision.</li>
</ul>
<p><a name="0-28-x-autherization-acls"></a></p>
<ul>
<li>Mesos 0.28 changes the definitions of two ACLs used for authorization. The objects of the <code>ReserveResources</code> and <code>CreateVolume</code> ACLs have been changed to <code>roles</code>. In both cases, principals can now be authorized to perform these operations for particular roles. This means that by default, a framework or operator can reserve resources/create volumes for any role. To restrict this behavior, <a href="/documentation/latest/./authorization/">ACLs can be added</a> to the master which authorize principals to reserve resources/create volumes for specified roles only. Previously, frameworks could only reserve resources for their own role; this behavior can be preserved by configuring the <code>ReserveResources</code> ACLs such that the framework&rsquo;s principal is only authorized to reserve for the framework&rsquo;s role. <strong>NOTE</strong> This renders existing <code>ReserveResources</code> and <code>CreateVolume</code> ACL definitions obsolete; if you are authorizing these operations, your ACL definitions should be updated.</li>
</ul>
<p>In order to upgrade a running cluster:</p>
<ol>
<li>Rebuild and install any modules so that upgraded masters/agents can use them.</li>
<li>Install the new master binaries and restart the masters.</li>
<li>Install the new agent binaries and restart the agents.</li>
<li>Upgrade the schedulers by linking the latest native library / jar / egg (if necessary).</li>
<li>Restart the schedulers.</li>
<li>Upgrade the executors by linking the latest native library / jar / egg (if necessary).</li>
</ol>
<h2>Upgrading from 0.26.x to 0.27.x</h2>
<p><a name="0-27-x-implicit-roles"></a></p>
<ul>
<li>Mesos 0.27 introduces the concept of <em>implicit roles</em>. In previous releases, configuring roles required specifying a static whitelist of valid role names on master startup (via the <code>--roles</code> flag). In Mesos 0.27, if <code>--roles</code> is omitted, <em>any</em> role name can be used; controlling which principals are allowed to register as which roles should be done using <a href="/documentation/latest/./authorization/">ACLs</a>. The role whitelist functionality is still supported but is deprecated.</li>
</ul>
<p><a name="0-27-x-allocator-api"></a></p>
<ul>
<li>The Allocator API has changed due to the introduction of implicit roles. Custom allocator implementations will need to be updated. See <a href="https://issues.apache.org/jira/browse/MESOS-4000">MESOS-4000</a> for more information.</li>
</ul>
<p><a name="0-27-x-executor-lost-callback"></a></p>
<ul>
<li>The <code>executorLost</code> callback in the Scheduler interface will now be called whenever the agent detects termination of a custom executor. This callback was never called in previous versions, so please make sure any framework schedulers can now safely handle this callback. Note that this callback may not be reliably delivered.</li>
</ul>
<p><a name="0-27-x-isolator-api"></a></p>
<ul>
<li>The isolator <code>prepare</code> interface has been changed slightly. Instead of keeping adding parameters to the <code>prepare</code> interface, we decide to use a protobuf (<code>ContainerConfig</code>). Also, we renamed <code>ContainerPrepareInfo</code> to <code>ContainerLaunchInfo</code> to better capture the purpose of this struct. See <a href="https://issues.apache.org/jira/browse/MESOS-4240">MESOS-4240</a> and <a href="https://issues.apache.org/jira/browse/MESOS-4282">MESOS-4282</a> for more information. If you are an isolator module writer, you will have to adjust your isolator module according to the new interface and re-compile with 0.27.</li>
</ul>
<p><a name="0-27-x-acl-shutdown-flag"></a></p>
<ul>
<li><p>ACLs.shutdown_frameworks has been deprecated in favor of the new ACLs.teardown_frameworks. This affects the <code>--acls</code> master flag for the local authorizer.</p></li>
<li><p>Reserved resources are now accounted for in the DRF role sorter. Previously unaccounted reservations will influence the weighted DRF sorter. If role weights were explicitly set, they may need to be adjusted in order to account for the reserved resources in the cluster.</p></li>
</ul>
<p>In order to upgrade a running cluster:</p>
<ol>
<li>Rebuild and install any modules so that upgraded masters/agents can use them.</li>
<li>Install the new master binaries and restart the masters.</li>
<li>Install the new agent binaries and restart the agents.</li>
<li>Upgrade the schedulers by linking the latest native library / jar / egg (if necessary).</li>
<li>Restart the schedulers.</li>
<li>Upgrade the executors by linking the latest native library / jar / egg (if necessary).</li>
</ol>
<h2>Upgrading from 0.25.x to 0.26.x</h2>
<p><a name="0-26-x-taskstatus-reason"></a></p>
<ul>
<li><p>The names of some TaskStatus::Reason enums have been changed. But the tag numbers remain unchanged, so it is backwards compatible. Frameworks using the new version might need to do some compile time adjustments:</p>
<ul>
<li>REASON_MEM_LIMIT -> REASON_CONTAINER_LIMITATION_MEMORY</li>
<li>REASON_EXECUTOR_PREEMPTED -> REASON_CONTAINER_PREEMPTED</li>
</ul>
</li>
</ul>
<p><a name="0-26-x-credential-protobuf"></a></p>
<ul>
<li>The <code>Credential</code> protobuf has been changed. <code>Credential</code> field <code>secret</code> is now a string, it used to be bytes. This will affect framework developers and language bindings ought to update their generated protobuf with the new version. This fixes JSON based credentials file support.</li>
</ul>
<p><a name="0-26-x-state-endpoint"></a></p>
<ul>
<li>The <code>/state</code> endpoints on master and agent will no longer include <code>data</code> fields as part of the JSON models for <code>ExecutorInfo</code> and <code>TaskInfo</code> out of consideration for memory scalability (see <a href="https://issues.apache.org/jira/browse/MESOS-3794">MESOS-3794</a> and <a href="http://www.mail-archive.com/dev@mesos.apache.org/msg33536.html">this email thread</a>).
<ul>
<li>On master, the affected <code>data</code> field was originally found via <code>frameworks[*].executors[*].data</code>.</li>
<li>On agents, the affected <code>data</code> field was originally found via <code>executors[*].tasks[*].data</code>.</li>
</ul>
</li>
</ul>
<p><a name="0-26-x-network-info-protobuf"></a></p>
<ul>
<li>The <code>NetworkInfo</code> protobuf has been changed. The fields <code>protocol</code> and <code>ip_address</code> are now deprecated. The new field <code>ip_addresses</code> subsumes the information provided by them.</li>
</ul>
<p>In order to upgrade a running cluster:</p>
<ol>
<li>Rebuild and install any modules so that upgraded masters/agents can use them.</li>
<li>Install the new master binaries and restart the masters.</li>
<li>Install the new agent binaries and restart the agents.</li>
<li>Upgrade the schedulers by linking the latest native library / jar / egg (if necessary).</li>
<li>Restart the schedulers.</li>
<li>Upgrade the executors by linking the latest native library / jar / egg (if necessary).</li>
</ol>
<h2>Upgrading from 0.24.x to 0.25.x</h2>
<p><a name="0-25-x-json-endpoints"></a></p>
<ul>
<li><p>The following endpoints will be deprecated in favor of new endpoints. Both versions will be available in 0.25 but the deprecated endpoints will be removed in a subsequent release.</p>
<p>For master endpoints:</p>
<ul>
<li>/state.json becomes /state</li>
<li>/tasks.json becomes /tasks</li>
</ul>
<p>For agent endpoints:</p>
<ul>
<li>/state.json becomes /stateπ</li>
<li>/monitor/statistics.json becomes /monitor/statisticsπ</li>
</ul>
<p>For both master and agent:</p>
<ul>
<li>/files/browse.json becomes /files/browse</li>
<li>/files/debug.json becomes /files/debug</li>
<li>/files/download.json becomes /files/download</li>
<li>/files/read.json becomes /files/read</li>
</ul>
</li>
</ul>
<p><a name="0-25-x-scheduler-bindings"></a></p>
<ul>
<li>The C++/Java/Python scheduler bindings have been updated. In particular, the driver can make a suppressOffers() call to stop receiving offers (until reviveOffers() is called).</li>
</ul>
<p>In order to upgrade a running cluster:</p>
<ol>
<li>Rebuild and install any modules so that upgraded masters/agents can use them.</li>
<li>Install the new master binaries and restart the masters.</li>
<li>Install the new agent binaries and restart the agents.</li>
<li>Upgrade the schedulers by linking the latest native library / jar / egg (if necessary).</li>
<li>Restart the schedulers.</li>
<li>Upgrade the executors by linking the latest native library / jar / egg (if necessary).</li>
</ol>
<h2>Upgrading from 0.23.x to 0.24.x</h2>
<ul>
<li><p>Support for live upgrading a driver based scheduler to HTTP based (experimental) scheduler has been added.</p></li>
<li><p>Master now publishes its information in ZooKeeper in JSON (instead of protobuf). Make sure schedulers are linked against >= 0.23.0 libmesos before upgrading the master.</p></li>
</ul>
<p>In order to upgrade a running cluster:</p>
<ol>
<li>Rebuild and install any modules so that upgraded masters/agents can use them.</li>
<li>Install the new master binaries and restart the masters.</li>
<li>Install the new agent binaries and restart the agents.</li>
<li>Upgrade the schedulers by linking the latest native library / jar / egg (if necessary).</li>
<li>Restart the schedulers.</li>
<li>Upgrade the executors by linking the latest native library / jar / egg (if necessary).</li>
</ol>
<h2>Upgrading from 0.22.x to 0.23.x</h2>
<ul>
<li><p>The &lsquo;stats.json&rsquo; endpoints for masters and agents have been removed. Please use the &lsquo;metrics/snapshot&rsquo; endpoints instead.</p></li>
<li><p>The &lsquo;/master/shutdown&rsquo; endpoint is deprecated in favor of the new &lsquo;/master/teardown&rsquo; endpoint.</p></li>
<li><p>In order to enable decorator modules to remove metadata (environment variables or labels), we changed the meaning of the return value for decorator hooks in Mesos 0.23.0. Please refer to the modules documentation for more details.</p></li>
<li><p>Agent ping timeouts are now configurable on the master via <code>--slave_ping_timeout</code> and <code>--max_slave_ping_timeouts</code>. Agents should be upgraded to 0.23.x before changing these flags.</p></li>
<li><p>A new scheduler driver API, <code>acceptOffers</code>, has been introduced. This is a more general version of the <code>launchTasks</code> API, which allows the scheduler to accept an offer and specify a list of operations (Offer.Operation) to perform using the resources in the offer. Currently, the supported operations include LAUNCH (launching tasks), RESERVE (making dynamic reservations), UNRESERVE (releasing dynamic reservations), CREATE (creating persistent volumes) and DESTROY (releasing persistent volumes). Similar to the <code>launchTasks</code> API, any unused resources will be considered declined, and the specified filters will be applied on all unused resources.</p></li>
<li><p>The Resource protobuf has been extended to include more metadata for supporting persistence (DiskInfo), dynamic reservations (ReservationInfo) and oversubscription (RevocableInfo). You must not combine two Resource objects if they have different metadata.</p></li>
</ul>
<p>In order to upgrade a running cluster:</p>
<ol>
<li>Rebuild and install any modules so that upgraded masters/agents can use them.</li>
<li>Install the new master binaries and restart the masters.</li>
<li>Install the new agent binaries and restart the agents.</li>
<li>Upgrade the schedulers by linking the latest native library / jar / egg (if necessary).</li>
<li>Restart the schedulers.</li>
<li>Upgrade the executors by linking the latest native library / jar / egg (if necessary).</li>
</ol>
<h2>Upgrading from 0.21.x to 0.22.x</h2>
<ul>
<li><p>Agent checkpoint flag has been removed as it will be enabled for all
agents. Frameworks must still enable checkpointing during registration to take advantage
of checkpointing their tasks.</p></li>
<li><p>The stats.json endpoints for masters and agents have been deprecated.
Please refer to the metrics/snapshot endpoint.</p></li>
<li><p>The C++/Java/Python scheduler bindings have been updated. In particular, the driver can be constructed with an additional argument that specifies whether to use implicit driver acknowledgements. In <code>statusUpdate</code>, the <code>TaskStatus</code> now includes a UUID to make explicit acknowledgements possible.</p></li>
<li><p>The Authentication API has changed slightly in this release to support additional authentication mechanisms. The change from &lsquo;string&rsquo; to &lsquo;bytes&rsquo; for AuthenticationStartMessage.data has no impact on C++ or the over-the-wire representation, so it only impacts pure language bindings for languages like Java and Python that use different types for UTF-8 strings vs. byte arrays.</p>
<p> message AuthenticationStartMessage {
required string mechanism = 1;
optional bytes data = 2;
}</p></li>
<li><p>All Mesos arguments can now be passed using file:// to read them out of a file (either an absolute or relative path). The &ndash;credentials, &ndash;whitelist, and any flags that expect JSON backed arguments (such as &ndash;modules) behave as before, although support for just passing an absolute path for any JSON flags rather than file:// has been deprecated and will produce a warning (and the absolute path behavior will be removed in a future release).</p></li>
</ul>
<p>In order to upgrade a running cluster:</p>
<ol>
<li>Install the new master binaries and restart the masters.</li>
<li>Install the new agent binaries and restart the agents.</li>
<li>Upgrade the schedulers:</li>
<li>For Java schedulers, link the new native library against the new JAR. The JAR contains API above changes. A 0.21.0 JAR will work with a 0.22.0 libmesos. A 0.22.0 JAR will work with a 0.21.0 libmesos if explicit acks are not being used. 0.22.0 and 0.21.0 are inter-operable at the protocol level between the master and the scheduler.</li>
<li>For Python schedulers, upgrade to use a 0.22.0 egg. If constructing <code>MesosSchedulerDriverImpl</code> with <code>Credentials</code>, your code must be updated to pass the <code>implicitAcknowledgements</code> argument before <code>Credentials</code>. You may run a 0.21.0 Python scheduler against a 0.22.0 master, and vice versa.</li>
<li>Restart the schedulers.</li>
<li>Upgrade the executors by linking the latest native library / jar / egg.</li>
</ol>
<h2>Upgrading from 0.20.x to 0.21.x</h2>
<ul>
<li>Disabling agent checkpointing has been deprecated; the agent &ndash;checkpoint flag has been deprecated and will be removed in a future release.</li>
</ul>
<p>In order to upgrade a running cluster:</p>
<ol>
<li>Install the new master binaries and restart the masters.</li>
<li>Install the new agent binaries and restart the agents.</li>
<li>Upgrade the schedulers by linking the latest native library (mesos jar upgrade not necessary).</li>
<li>Restart the schedulers.</li>
<li>Upgrade the executors by linking the latest native library and mesos jar (if necessary).</li>
</ol>
<h2>Upgrading from 0.19.x to 0.20.x.</h2>
<ul>
<li><p>The Mesos API has been changed slightly in this release. The CommandInfo has been changed (see below), which makes launching a command more flexible. The &lsquo;value&rsquo; field has been changed from <em>required</em> to <em>optional</em>. However, it will not cause any issue during the upgrade (since the existing schedulers always set this field).</p>
<pre><code> message CommandInfo {
...
// There are two ways to specify the command:
// 1) If 'shell == true', the command will be launched via shell
// (i.e., /bin/sh -c 'value'). The 'value' specified will be
// treated as the shell command. The 'arguments' will be ignored.
// 2) If 'shell == false', the command will be launched by passing
// arguments to an executable. The 'value' specified will be
// treated as the filename of the executable. The 'arguments'
// will be treated as the arguments to the executable. This is
// similar to how POSIX exec families launch processes (i.e.,
// execlp(value, arguments(0), arguments(1), ...)).
optional bool shell = 6 [default = true];
optional string value = 3;
repeated string arguments = 7;
...
}
</code></pre></li>
<li><p>The Python bindings are also changing in this release. There are now sub-modules which allow you to use either the interfaces and/or the native driver.</p>
<ul>
<li><code>import mesos.native</code> for the native drivers</li>
<li><code>import mesos.interface</code> for the stub implementations and protobufs</li>
</ul>
<p>To ensure a smooth upgrade, we recommend to upgrade your python framework and executor first. You will be able to either import using the new configuration or the old. Replace the existing imports with something like the following:</p>
<p> try:
from mesos.native import MesosExecutorDriver, MesosSchedulerDriver
from mesos.interface import Executor, Scheduler
from mesos.interface import mesos_pb2
except ImportError:
from mesos import Executor, MesosExecutorDriver, MesosSchedulerDriver, Scheduler
import mesos_pb2</p></li>
<li><p>If you&rsquo;re using a pure language binding, please ensure that it sends status update acknowledgements through the master before upgrading.</p></li>
</ul>
<p>In order to upgrade a running cluster:</p>
<ol>
<li>Install the new master binaries and restart the masters.</li>
<li>Install the new agent binaries and restart the agents.</li>
<li>Upgrade the schedulers by linking the latest native library (install the latest mesos jar and python egg if necessary).</li>
<li>Restart the schedulers.</li>
<li>Upgrade the executors by linking the latest native library (install the latest mesos jar and python egg if necessary).</li>
</ol>
<h2>Upgrading from 0.18.x to 0.19.x.</h2>
<ul>
<li><p>There are new required flags on the master (<code>--work_dir</code> and <code>--quorum</code>) to support the <em>Registrar</em> feature, which adds replicated state on the masters.</p></li>
<li><p>No required upgrade ordering across components.</p></li>
</ul>
<p>In order to upgrade a running cluster:</p>
<ol>
<li>Install the new master binaries and restart the masters.</li>
<li>Install the new agent binaries and restart the agents.</li>
<li>Upgrade the schedulers by linking the latest native library (mesos jar upgrade not necessary).</li>
<li>Restart the schedulers.</li>
<li>Upgrade the executors by linking the latest native library and mesos jar (if necessary).</li>
</ol>
<h2>Upgrading from 0.17.0 to 0.18.x.</h2>
<ul>
<li>This upgrade requires a system reboot for agents that use Linux cgroups for isolation.</li>
</ul>
<p>In order to upgrade a running cluster:</p>
<ol>
<li>Install the new master binaries and restart the masters.</li>
<li>Upgrade the schedulers by linking the latest native library and mesos jar (if necessary).</li>
<li>Restart the schedulers.</li>
<li>Install the new agent binaries then perform one of the following two steps, depending on if cgroups isolation is used:</li>
<li>[no cgroups]
<ul>
<li>Restart the agents. The &ldquo;&ndash;isolation&rdquo; flag has changed and &ldquo;process&rdquo; has been deprecated in favor of &ldquo;posix/cpu,posix/mem&rdquo;.</li>
</ul>
</li>
<li>[cgroups]
<ul>
<li>Change from a single mountpoint for all controllers to separate mountpoints for each controller, e.g., /sys/fs/cgroup/memory/ and /sys/fs/cgroup/cpu/.</li>
<li>The suggested configuration is to mount a tmpfs filesystem to /sys/fs/cgroup and to let the agent mount the required controllers. However, the agent will also use previously mounted controllers if they are appropriately mounted under &ldquo;&ndash;cgroups_hierarchy&rdquo;.</li>
<li>It has been observed that unmounting and remounting of cgroups from the single to separate configuration is unreliable and a reboot into the new configuration is strongly advised. Restart the agents after reboot.</li>
<li>The &ldquo;&ndash;cgroups_hierarchy&rdquo; now defaults to &ldquo;/sys/fs/cgroup&rdquo;. The &ldquo;&ndash;cgroups_root&rdquo; flag default remains &ldquo;mesos&rdquo;.</li>
<li>The &ldquo;&ndash;isolation&rdquo; flag has changed and &ldquo;cgroups&rdquo; has been deprecated in favor of &ldquo;cgroups/cpu,cgroups/mem&rdquo;.</li>
<li>The &ldquo;&ndash;cgroup_subsystems&rdquo; flag is no longer required and will be ignored.</li>
</ul>
</li>
<li>Upgrade the executors by linking the latest native library and mesos jar (if necessary).</li>
</ol>
<h2>Upgrading from 0.16.0 to 0.17.0.</h2>
<p>In order to upgrade a running cluster:</p>
<ol>
<li>Install the new master binaries and restart the masters.</li>
<li>Upgrade the schedulers by linking the latest native library and mesos jar (if necessary).</li>
<li>Restart the schedulers.</li>
<li>Install the new agent binaries and restart the agents.</li>
<li>Upgrade the executors by linking the latest native library and mesos jar (if necessary).</li>
</ol>
<h2>Upgrading from 0.15.0 to 0.16.0.</h2>
<p>In order to upgrade a running cluster:</p>
<ol>
<li>Install the new master binaries and restart the masters.</li>
<li>Upgrade the schedulers by linking the latest native library and mesos jar (if necessary).</li>
<li>Restart the schedulers.</li>
<li>Install the new agent binaries and restart the agents.</li>
<li>Upgrade the executors by linking the latest native library and mesos jar (if necessary).</li>
</ol>
<h2>Upgrading from 0.14.0 to 0.15.0.</h2>
<ul>
<li>Schedulers should implement the new <code>reconcileTasks</code> driver method.</li>
<li>Schedulers should call the new <code>MesosSchedulerDriver</code> constructor that takes <code>Credential</code> to authenticate.</li>
<li>&ndash;authentication=false (default) allows both authenticated and unauthenticated frameworks to register.</li>
</ul>
<p>In order to upgrade a running cluster:</p>
<ol>
<li>Install the new master binaries.</li>
<li>Restart the masters with &ndash;credentials pointing to credentials of the framework(s).</li>
<li>Install the new agent binaries and restart the agents.</li>
<li>Upgrade the executors by linking the latest native library and mesos jar (if necessary).</li>
<li>Upgrade the schedulers by linking the latest native library and mesos jar (if necessary).</li>
<li>Restart the schedulers.
Restart the masters with &ndash;authentication=true.</li>
</ol>
<p>NOTE: After the restart unauthenticated frameworks <em>will not</em> be allowed to register.</p>
<h2>Upgrading from 0.13.0 to 0.14.0.</h2>
<ul>
<li>/vars endpoint has been removed.</li>
</ul>
<p>In order to upgrade a running cluster:</p>
<ol>
<li>Install the new master binaries and restart the masters.</li>
<li>Upgrade the executors by linking the latest native library and mesos jar (if necessary).</li>
<li>Install the new agent binaries.</li>
<li>Restart the agents after adding &ndash;checkpoint flag to enable checkpointing.</li>
<li>Upgrade the schedulers by linking the latest native library and mesos jar (if necessary).</li>
<li>Set FrameworkInfo.checkpoint in the scheduler if checkpointing is desired (recommended).</li>
<li>Restart the schedulers.</li>
<li>Restart the masters (to get rid of the cached FrameworkInfo).</li>
<li>Restart the agents (to get rid of the cached FrameworkInfo).</li>
</ol>
<h2>Upgrading from 0.12.0 to 0.13.0.</h2>
<ul>
<li>cgroups_hierarchy_root agent flag is renamed as cgroups_hierarchy</li>
</ul>
<p>In order to upgrade a running cluster:</p>
<ol>
<li>Install the new master binaries and restart the masters.</li>
<li>Upgrade the schedulers by linking the latest native library and mesos jar (if necessary).</li>
<li>Restart the schedulers.</li>
<li>Install the new agent binaries.</li>
<li>Restart the agents.</li>
<li>Upgrade the executors by linking the latest native library and mesos jar (if necessary).</li>
</ol>
<h2>Upgrading from 0.11.0 to 0.12.0.</h2>
<ul>
<li>If you are a framework developer, you will want to examine the new &lsquo;source&rsquo; field in the ExecutorInfo protobuf. This will allow you to take further advantage of the resource monitoring.</li>
</ul>
<p>In order to upgrade a running cluster:</p>
<ol>
<li>Install the new agent binaries and restart the agents.</li>
<li>Install the new master binaries and restart the masters.</li>
</ol>
</div>
</div>
</div><!-- /.container -->
</div><!-- /.content -->
<hr>
<!-- footer -->
<div class="footer">
<div class="container">
<div class="col-md-4 social-blk">
<span class="social">
<a href="https://twitter.com/ApacheMesos"
class="twitter-follow-button"
data-show-count="false" data-size="large">Follow @ApacheMesos</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
<a href="https://twitter.com/intent/tweet?button_hashtag=mesos"
class="twitter-hashtag-button"
data-size="large"
data-related="ApacheMesos">Tweet #mesos</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script>
</span>
</div>
<div class="col-md-8 trademark">
<p>&copy; 2012-2017 <a href="http://apache.org">The Apache Software Foundation</a>.
Apache Mesos, the Apache feather logo, and the Apache Mesos project logo are trademarks of The Apache Software Foundation.
<p>
</div>
</div><!-- /.container -->
</div><!-- /.footer -->
<!-- JS -->
<script src="//code.jquery.com/jquery-1.11.0.min.js" type="text/javascript"></script>
<script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js" type="text/javascript"></script>
</body>
</html>