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>
|
|
|
|
<input class="input-sm" type="number" ng-model="service.UpdateParallelism" ng-change="updateServiceAttribute(service, 'UpdateParallelism')" ng-disabled="isUpdating"/>
|
|
|
|
</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>
|
2017-12-05 19:12:54 +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" ng-disabled="isUpdating"/>
|
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">
|
|
|
|
<input type="radio" name="failure_action" ng-model="service.UpdateFailureAction" value="continue" ng-change="updateServiceAttribute(service, 'UpdateFailureAction')" ng-disabled="isUpdating">
|
|
|
|
Continue
|
|
|
|
</label>
|
|
|
|
<label class="radio-inline">
|
|
|
|
<input type="radio" name="failure_action" ng-model="service.UpdateFailureAction" value="pause" ng-change="updateServiceAttribute(service, 'UpdateFailureAction')" ng-disabled="isUpdating">
|
|
|
|
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">
|
|
|
|
<input type="radio" name="updateconfig_order" ng-model="service.UpdateOrder" value="start-first" ng-change="updateServiceAttribute(service, 'UpdateOrder')" ng-disabled="isUpdating">
|
|
|
|
start-first
|
|
|
|
</label>
|
|
|
|
<label class="radio-inline">
|
|
|
|
<input type="radio" name="updateconfig_order" ng-model="service.UpdateOrder" value="stop-first" ng-change="updateServiceAttribute(service, 'UpdateOrder')" ng-disabled="isUpdating">
|
|
|
|
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>
|
|
|
|
<rd-widget-footer>
|
|
|
|
<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>
|