2017-06-20 10:54:27 +00:00
|
|
|
<div id="service-update-config">
|
2017-03-20 20:28:09 +00:00
|
|
|
<rd-widget>
|
2018-06-06 16:12:35 +00:00
|
|
|
<rd-widget-header icon="fa-list-alt" title-text="Update configuration">
|
2017-03-20 20:28:09 +00:00
|
|
|
</rd-widget-header>
|
|
|
|
<rd-widget-body classes="no-padding">
|
|
|
|
<table class="table">
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td>Update Parallelism</td>
|
|
|
|
<td>
|
2019-05-24 06:04:58 +00:00
|
|
|
<input class="input-sm" type="number" ng-model="service.UpdateParallelism" ng-change="updateServiceAttribute(service, 'UpdateParallelism')" disable-authorization="DockerServiceUpdate"/>
|
2017-03-20 20:28:09 +00:00
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<p class="small text-muted" style="margin-top: 10px;">
|
|
|
|
Maximum number of tasks to be updated simultaneously (0 to update all at once).
|
|
|
|
</p>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Update Delay</td>
|
|
|
|
<td>
|
2019-05-24 06:04:58 +00:00
|
|
|
<input class="input-sm" type="text" ng-model="service.UpdateDelay" ng-change="updateServiceAttribute(service, 'UpdateDelay')" ng-pattern="/^([0-9]+)(h|m|s|ms|us|ns)$/i" disable-authorization="DockerServiceUpdate"/>
|
2017-03-20 20:28:09 +00:00
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<p class="small text-muted" style="margin-top: 10px;">
|
2017-12-05 19:12:54 +00:00
|
|
|
Amount of time between updates expressed by a number followed by unit (ns|us|ms|s|m|h). Example: 1m.
|
2017-03-20 20:28:09 +00:00
|
|
|
</p>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Update Failure Action</td>
|
|
|
|
<td>
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="radio-inline">
|
2019-05-24 06:04:58 +00:00
|
|
|
<input type="radio" name="failure_action" ng-model="service.UpdateFailureAction" value="continue" ng-change="updateServiceAttribute(service, 'UpdateFailureAction')" disable-authorization="DockerServiceUpdate">
|
2017-03-20 20:28:09 +00:00
|
|
|
Continue
|
|
|
|
</label>
|
|
|
|
<label class="radio-inline">
|
2019-05-24 06:04:58 +00:00
|
|
|
<input type="radio" name="failure_action" ng-model="service.UpdateFailureAction" value="pause" ng-change="updateServiceAttribute(service, 'UpdateFailureAction')" disable-authorization="DockerServiceUpdate">
|
2017-03-20 20:28:09 +00:00
|
|
|
Pause
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<p class="small text-muted" style="margin-top: 10px;">
|
|
|
|
Action taken on failure to start after update.
|
|
|
|
</p>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2017-08-09 13:30:50 +00:00
|
|
|
<tr ng-if="applicationState.endpoint.apiVersion >= 1.29">
|
|
|
|
<td>Order</td>
|
|
|
|
<td>
|
|
|
|
<div class="form-group">
|
|
|
|
<label class="radio-inline">
|
2019-05-24 06:04:58 +00:00
|
|
|
<input type="radio" name="updateconfig_order" ng-model="service.UpdateOrder" value="start-first" ng-change="updateServiceAttribute(service, 'UpdateOrder')" disable-authorization="DockerServiceUpdate">
|
2017-08-09 13:30:50 +00:00
|
|
|
start-first
|
|
|
|
</label>
|
|
|
|
<label class="radio-inline">
|
2019-05-24 06:04:58 +00:00
|
|
|
<input type="radio" name="updateconfig_order" ng-model="service.UpdateOrder" value="stop-first" ng-change="updateServiceAttribute(service, 'UpdateOrder')" disable-authorization="DockerServiceUpdate">
|
2017-08-09 13:30:50 +00:00
|
|
|
stop-first
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<p class="small text-muted" style="margin-top: 10px;">
|
|
|
|
Operation order on failure.
|
|
|
|
</p>
|
|
|
|
</td>
|
|
|
|
</tr>
|
2017-03-20 20:28:09 +00:00
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</rd-widget-body>
|
2019-05-24 06:04:58 +00:00
|
|
|
<rd-widget-footer authorization="DockerServiceUpdate">
|
2017-03-20 20:28:09 +00:00
|
|
|
<div class="btn-toolbar" role="toolbar">
|
|
|
|
<div class="btn-group" role="group">
|
2017-08-09 13:30:50 +00:00
|
|
|
<button type="button" class="btn btn-primary btn-sm" ng-disabled="!hasChanges(service, ['UpdateFailureAction', 'UpdateDelay', 'UpdateParallelism', 'UpdateOrder'])" ng-click="updateService(service)">Apply changes</button>
|
2017-03-20 20:28:09 +00:00
|
|
|
<button type="button" class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
|
|
<span class="caret"></span>
|
|
|
|
</button>
|
|
|
|
<ul class="dropdown-menu">
|
2017-08-09 13:30:50 +00:00
|
|
|
<li><a ng-click="cancelChanges(service, ['UpdateFailureAction', 'UpdateDelay', 'UpdateParallelism', 'UpdateOrder'])">Reset changes</a></li>
|
2017-03-20 20:28:09 +00:00
|
|
|
<li><a ng-click="cancelChanges(service)">Reset all changes</a></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</rd-widget-footer>
|
|
|
|
</rd-widget>
|
|
|
|
</div>
|