Skip to content
This repository has been archived by the owner on Feb 1, 2021. It is now read-only.

Commit

Permalink
add doc
Browse files Browse the repository at this point in the history
Signed-off-by: Victor Vieux <[email protected]>
  • Loading branch information
vieux committed Jan 4, 2016
1 parent edf2b30 commit 36b4aa5
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/scheduler/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ parent="smn_workw_swarm"

## Advanced Scheduling

To learn more about advanced scheduling, see the
[strategies](strategy.md) and [filters](filter.md)
To learn more about advanced scheduling, see the [rescheduling]
(rescheduling.md), [strategies](strategy.md) and [filters](filter.md)
documents.

46 changes: 46 additions & 0 deletions docs/scheduler/rescheduling.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<!--[metadata]>
+++
title = "Docker Swarm recheduling"
description = "Swarm rescheduling"
keywords = ["docker, swarm, clustering, rescheduling"]
[menu.main]
parent="smn_workw_swarm"
weight=5
+++
<![end-metadata]-->

# Rescheduling

The Docker Swarm scheduler is able to detect node failure and
restart it's container on another node.

## Rescheduling policies

The rescheduling policies are:

* `on-node-faillure`
* `off` (default if not specified)


When you start a container, use the env var `reschedule` or the
label `com.docker.swarm.reschedule-policy` to specify the policy to
apply to the container.

```
# do not reschedule (default)
$ docker run -d -e reschedule:off redis
# or
$ docker run -d -l com.docker.swarm.reschedule-policy=off redis
```

```
# rechedule on node failure
$ docker run -d -e reschedule:on-node-failure redis
# or
$ docker run -d -l com.docker.swarm.reschedule-policy=on-node-failure redis
```

- [Docker Swarm overview](../index.md)
- [Discovery options](../discovery.md)
- [Scheduler filters](filter.md)
- [Swarm API](../api/swarm-api.md)

0 comments on commit 36b4aa5

Please sign in to comment.