Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

Commit

Permalink
Added passive upstream healthchekcs #187
Browse files Browse the repository at this point in the history
  • Loading branch information
Panagis Tselentis committed Mar 7, 2018
1 parent 924031c commit 7bae0d0
Show file tree
Hide file tree
Showing 2 changed files with 178 additions and 0 deletions.
91 changes: 91 additions & 0 deletions assets/js/app/upstreams/add-upstream-modal.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ <h5 class="modal-title" id="modal-title">

</div>
</div>

<!-- ACTIVE HEALTH CHECKS -->
<div class="form-group" ng-if="compareKongVersion('0.12.0') >= 0" ng-class="{'has-error' : errors.healthchecks.active.http_path}">
<label class="col-sm-3 control-label">Active healthchecks HTTP path
<br>
Expand Down Expand Up @@ -69,6 +71,22 @@ <h5 class="modal-title" id="modal-title">

</div>
</div>
<div class="form-group" ng-if="compareKongVersion('0.12.0') >= 0" ng-class="{'has-error' : errors.healthchecks.active.concurrency}">
<label class="col-sm-3 control-label">Active healthchecks concurrency
<br>
<em>
<small class="help-block">optional</small>
</em>
</label>
<div class="col-sm-8">
<input type="number" ng-model="upstream.healthchecks.active.concurrency" class="form-control">
<div class="text-danger" ng-if="errors.healthchecks.active.concurrency" data-ng-bind="errors.healthchecks.active.concurrency"></div>
<p class="help-block">
Number of targets to check concurrently in active health checks.
</p>

</div>
</div>
<div class="form-group" ng-if="compareKongVersion('0.12.0') >= 0" ng-class="{'has-error' : errors.healthchecks.active.healthy.interval}">
<label class="col-sm-3 control-label">Active healthchecks healthy interval
<br>
Expand Down Expand Up @@ -168,6 +186,79 @@ <h5 class="modal-title" id="modal-title">

</div>
</div>
<!-- END ACTIVE HEALTHCHECKS -->


<!-- PASSIVE HEALTH CHECKS -->
<div class="form-group" ng-if="compareKongVersion('0.12.0') >= 0" ng-class="{'has-error' : errors.healthchecks.passive.healthy.successes}">
<label class="col-sm-3 control-label">Passive healthchecks healthy successes
<br>
<em>
<small class="help-block">optional</small>
</em>
</label>
<div class="col-sm-8">
<input ng-model="upstream.healthchecks.passive.healthy.successes" class="form-control">
<div class="text-danger" ng-if="errors.healthchecks.passive.healthy.successes" data-ng-bind="errors.healthchecks.passive.healthy.successes"></div>
<p class="help-block">
Number of successes in passive probes (as defined by <code>healthchecks.passive.healthy.http_statuses</code>) to consider a target healthy.
</p>

</div>
</div>
<div class="form-group" ng-if="compareKongVersion('0.12.0') >= 0" ng-class="{'has-error' : errors.healthchecks.passive.unhealthy.tcp_failures}">
<label class="col-sm-3 control-label">Passive healthchecks unhealthy TCP failures
<br>
<em>
<small class="help-block">optional</small>
</em>
</label>
<div class="col-sm-8">
<input ng-model="upstream.healthchecks.passive.unhealthy.tcp_failures" class="form-control">
<div class="text-danger" ng-if="errors.healthchecks.passive.unhealthy.tcp_failures" data-ng-bind="errors.healthchecks.passive.unhealthy.tcp_failures"></div>
<p class="help-block">
Number of TCP failures in passive probes to consider a target unhealthy.
</p>

</div>
</div>
<div class="form-group" ng-if="compareKongVersion('0.12.0') >= 0" ng-class="{'has-error' : errors.healthchecks.passive.unhealthy.timeouts}">
<label class="col-sm-3 control-label">Passive healthchecks unhealthy timeouts
<br>
<em>
<small class="help-block">optional</small>
</em>
</label>
<div class="col-sm-8">
<input ng-model="upstream.healthchecks.passive.unhealthy.timeouts" class="form-control">
<div class="text-danger" ng-if="errors.healthchecks.passive.unhealthy.timeouts" data-ng-bind="errors.healthchecks.passive.unhealthy.timeouts"></div>
<p class="help-block">
Number of timeouts in passive probes to consider a target unhealthy.
</p>

</div>
</div>
<div class="form-group" ng-if="compareKongVersion('0.12.0') >= 0" ng-class="{'has-error' : errors.healthchecks.passive.unhealthy.http_failures}">
<label class="col-sm-3 control-label">Passive healthchecks unhealthy HTTP failures
<br>
<em>
<small class="help-block">optional</small>
</em>
</label>
<div class="col-sm-8">
<input ng-model="upstream.healthchecks.passive.unhealthy.http_failures" class="form-control">
<div class="text-danger" ng-if="errors.healthchecks.passive.unhealthy.http_failures" data-ng-bind="errors.healthchecks.passive.unhealthy.http_failures"></div>
<p class="help-block">
Number of HTTP failures in passive probes (as defined by <code>healthchecks.passive.unhealthy.http_statuses</code>) to consider a target
unhealthy.
</p>

</div>
</div>
<!-- END PASSIVE HEALTHCHECKS -->



<div class="form-group"
ng-if="compareKongVersion('0.12.0') < 0"
ng-class="{'has-error' : errors.orderlist}">
Expand Down
87 changes: 87 additions & 0 deletions assets/js/app/upstreams/edit-details.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@

</div>
</div>

<div class="form-group" ng-if="compareKongVersion('0.12.0') >= 0" ng-class="{'has-error' : errors.healthchecks.active.http_path}">
<label class="col-sm-3 control-label">Active healthchecks HTTP path
<br>
Expand Down Expand Up @@ -71,6 +72,22 @@

</div>
</div>
<div class="form-group" ng-if="compareKongVersion('0.12.0') >= 0" ng-class="{'has-error' : errors.healthchecks.active.concurrency}">
<label class="col-sm-3 control-label">Active healthchecks concurrency
<br>
<em>
<small class="help-block">optional</small>
</em>
</label>
<div class="col-sm-8">
<input type="number" ng-model="upstream.healthchecks.active.concurrency" class="form-control">
<div class="text-danger" ng-if="errors.healthchecks.active.concurrency" data-ng-bind="errors.healthchecks.active.concurrency"></div>
<p class="help-block">
Number of targets to check concurrently in active health checks.
</p>

</div>
</div>
<div class="form-group" ng-if="compareKongVersion('0.12.0') >= 0" ng-class="{'has-error' : errors.healthchecks.active.healthy.interval}">
<label class="col-sm-3 control-label">Active healthchecks healthy interval
<br>
Expand Down Expand Up @@ -170,6 +187,76 @@

</div>
</div>

<!-- PASSIVE HEALTH CHECKS -->
<div class="form-group" ng-if="compareKongVersion('0.12.0') >= 0" ng-class="{'has-error' : errors.healthchecks.passive.healthy.successes}">
<label class="col-sm-3 control-label">Passive healthchecks healthy successes
<br>
<em>
<small class="help-block">optional</small>
</em>
</label>
<div class="col-sm-8">
<input ng-model="upstream.healthchecks.passive.healthy.successes" class="form-control">
<div class="text-danger" ng-if="errors.healthchecks.passive.healthy.successes" data-ng-bind="errors.healthchecks.passive.healthy.successes"></div>
<p class="help-block">
Number of successes in passive probes (as defined by <code>healthchecks.passive.healthy.http_statuses</code>) to consider a target healthy.
</p>

</div>
</div>
<div class="form-group" ng-if="compareKongVersion('0.12.0') >= 0" ng-class="{'has-error' : errors.healthchecks.passive.unhealthy.tcp_failures}">
<label class="col-sm-3 control-label">Passive healthchecks unhealthy TCP failures
<br>
<em>
<small class="help-block">optional</small>
</em>
</label>
<div class="col-sm-8">
<input ng-model="upstream.healthchecks.passive.unhealthy.tcp_failures" class="form-control">
<div class="text-danger" ng-if="errors.healthchecks.passive.unhealthy.tcp_failures" data-ng-bind="errors.healthchecks.passive.unhealthy.tcp_failures"></div>
<p class="help-block">
Number of TCP failures in passive probes to consider a target unhealthy.
</p>

</div>
</div>
<div class="form-group" ng-if="compareKongVersion('0.12.0') >= 0" ng-class="{'has-error' : errors.healthchecks.passive.unhealthy.timeouts}">
<label class="col-sm-3 control-label">Passive healthchecks unhealthy timeouts
<br>
<em>
<small class="help-block">optional</small>
</em>
</label>
<div class="col-sm-8">
<input ng-model="upstream.healthchecks.passive.unhealthy.timeouts" class="form-control">
<div class="text-danger" ng-if="errors.healthchecks.passive.unhealthy.timeouts" data-ng-bind="errors.healthchecks.passive.unhealthy.timeouts"></div>
<p class="help-block">
Number of timeouts in passive probes to consider a target unhealthy.
</p>

</div>
</div>
<div class="form-group" ng-if="compareKongVersion('0.12.0') >= 0" ng-class="{'has-error' : errors.healthchecks.passive.unhealthy.http_failures}">
<label class="col-sm-3 control-label">Passive healthchecks unhealthy HTTP failures
<br>
<em>
<small class="help-block">optional</small>
</em>
</label>
<div class="col-sm-8">
<input ng-model="upstream.healthchecks.passive.unhealthy.http_failures" class="form-control">
<div class="text-danger" ng-if="errors.healthchecks.passive.unhealthy.http_failures" data-ng-bind="errors.healthchecks.passive.unhealthy.http_failures"></div>
<p class="help-block">
Number of HTTP failures in passive probes (as defined by <code>healthchecks.passive.unhealthy.http_statuses</code>) to consider a target
unhealthy.
</p>

</div>
</div>
<!-- END PASSIVE HEALTHCHECKS -->


<div class="form-group"
ng-if="compareKongVersion('0.12.0') < 0"
ng-class="{'has-error' : errors.orderlist}">
Expand Down

0 comments on commit 7bae0d0

Please sign in to comment.