This repository has been archived by the owner on Nov 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Sven Speckmaier
committed
Jun 19, 2017
1 parent
b3d7423
commit e8fb03a
Showing
6 changed files
with
131 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Healthcheck | ||
Set up a rancher healthcheck that periodically opens connections to the container to check whether the service running | ||
in it is actually still doing its intended job. | ||
|
||
## Options | ||
All options lie in the `healthcheck` json object. | ||
- `enable` can be set to `false` to disable the healthcheck without removing its data. Intended for debugging. defaults | ||
to `true` | ||
- `port` the port to query for a successful connection. Defaults to `80` | ||
- `url` http url to check. This will enable http 1.0 checking instead of tcp 'conection opens' checking | ||
- `interval`: Interval between healthchecks in ms. Defaults to `2000` | ||
- `response-timeout`: Time in ms before a stalled request is counted as having failed. Defaults to `2000` | ||
- `init-timeout`: Time before the first healthcheck is attempted in ms. Defaults to `60000` | ||
- `reinit-timeout`: Time after a restart before the first healthcheck is attempted in ms. Defaults to `60000` | ||
- `healthy-threshold`: Number of successful requests before the service counts as being healthy. Defaults to `2` | ||
- `unhealthy-threshold`: Number of failed requests before the service counts as being unhealthy. Defaults to `3` | ||
|
||
## Example | ||
```json | ||
{ | ||
"default": { | ||
"healthcheck":{ | ||
"url":"\/" | ||
} | ||
} | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Scheduler | ||
Sets scheduling rules for the container. | ||
|
||
## Use case | ||
Rancher uses Tag based scheduling which is set via container labels. | ||
|
||
## Options | ||
All options life inside the `scheduler` json object. | ||
|
||
- `enable`: Can be set to `false` to disable creating the scheduling rules without removing them. Defaults to `true` | ||
- `scheduler`: Scheduler to use. Currently the default and only implementation available is `rancher` | ||
- `same-host`: Setting this to `true` will allow multiple containers to be scheduled on the same host. Defaults to `false` | ||
- `tags`: Object or array of tags. A host must have these tags set for a container to be scheduled there. Defaults to [] | ||
- Arrays or numerical object variables will be created as `$VALUE=true` tag rule | ||
- non-numerical object variables will be created as `$NAME=$VALUE` tag rule | ||
- `forbid-tags`: Object or array of forbidden tags. see `tags` except the host must NOT have these tags. Defaults to [] | ||
|
||
|
||
## Example | ||
```json | ||
{ | ||
"defaults":{ | ||
"scheduler":{ | ||
"tags":[ | ||
"apps", | ||
], | ||
"should-not-have-tags":[ | ||
"fallback" | ||
] | ||
} | ||
} | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters