Skip to content

Commit 0a28d99

Browse files
committed
Merge pull request #1074 from deis/doc_deis_routers
docs(*): document DEIS_NUM_ROUTERS
2 parents 2f90d29 + 70fe559 commit 0a28d99

3 files changed

Lines changed: 21 additions & 7 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ On your workstation:
2727
If you'd like to spin up more than one VM to test an entire cluster, there are a few additional prerequisites:
2828
* Edit [contrib/coreos/user-data](contrib/coreos/user-data) and add a unique discovery URL generated from `https://discovery.etcd.io/new`
2929
* Set `DEIS_NUM_INSTANCES` to the desired size of your cluster (typically 3 or 5): ```$ export DEIS_NUM_INSTANCES=3```
30+
* If you'd like to spin up more than one router, set `DEIS_NUM_ROUTERS`: ```$ export DEIS_NUM_ROUTERS=2```
3031
* Instead of `local.deisapp.com`, use either `local3.deisapp.com` or `local5.deisapp.com` as your cluster domain
3132

3233
Note that for scheduling to work properly, clusters must consist of at least 3 nodes and always have an odd number of members.

contrib/ec2/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ For more information, see [optimal etcd cluster size](https://github.com/coreos/
3636

3737
Deis clusters of less than 3 nodes are unsupported.
3838

39+
## Choose number of routers
40+
By default, the Makefile will provision 1 router. You can override this by setting `DEIS_NUM_ROUTERS`:
41+
```console
42+
$ export DEIS_NUM_ROUTERS=2
43+
```
44+
3945
## Customize user-data
4046
Edit [user-data](../coreos/user-data) and add a new discovery URL.
4147
You can get a new one by sending a request to http://discovery.etcd.io/new.

contrib/rackspace/README.md

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,17 @@ $ supernova production keypair-add --pub-key ~/.ssh/deis.pub deis-key
3333
### Customize cloud-config.yml
3434
Edit [user-data](../coreos/user-data) and add a discovery URL. This URL will be used by all nodes in this Deis cluster. You can get a new discovery URL by sending a request to http://discovery.etcd.io/new.
3535

36+
### Choose number of instances
37+
By default, the provision script will provision 3 servers. You can override this by setting `DEIS_NUM_INSTANCES`:
38+
```console
39+
$ DEIS_NUM_INSTANCES=5 ./provision-rackspace-cluster.sh deis-key
40+
```
41+
42+
Note that for scheduling to work properly, clusters must consist of at least 3 nodes and always have an odd number of members.
43+
For more information, see [optimal etcd cluster size](https://github.com/coreos/etcd/blob/master/Documentation/optimal-cluster-size.md).
44+
45+
Deis clusters of less than 3 nodes are unsupported.
46+
3647
### Run the provision script
3748
Run the [Rackspace provision script](provision-rackspace-cluster.sh) to spawn a new CoreOS cluster.
3849
You'll need to provide the name of the key pair you just added. Optionally, you can also specify a flavor name.
@@ -43,16 +54,12 @@ Usage: provision-rackspace-cluster.sh <key pair name> [flavor]
4354
$ ./provision-rackspace-cluster.sh deis-key
4455
```
4556

46-
By default, the script will provision 3 servers. You can override this by setting `DEIS_NUM_INSTANCES`:
57+
### Choose number of routers
58+
By default, the Makefile will provision 1 router. You can override this by setting `DEIS_NUM_ROUTERS`:
4759
```console
48-
$ DEIS_NUM_INSTANCES=5 ./provision-rackspace-cluster.sh deis-key
60+
$ export DEIS_NUM_ROUTERS=2
4961
```
5062

51-
Note that for scheduling to work properly, clusters must consist of at least 3 nodes and always have an odd number of members.
52-
For more information, see [optimal etcd cluster size](https://github.com/coreos/etcd/blob/master/Documentation/optimal-cluster-size.md).
53-
54-
Deis clusters of less than 3 nodes are unsupported.
55-
5663
### Initialize the cluster
5764
Once the cluster is up, get the hostname of any of the machines from Rackspace, set
5865
FLEETCTL_TUNNEL, and issue a `make run` from the project root:

0 commit comments

Comments
 (0)