fixed formatting for wp and spellcheck

This commit is contained in:
Anita Buehrle committed 2016-03-28 16:30:33 -06:00
1 parent d68c1a8187
commit b3b93b28df
37 files changed
+283 -120

No files matched your search

+19 -13
View File
@@ -22,7 +22,7 @@ The following automatic IP address management topics are discussed:
### <a name="initialization"></a>Initializing Peers on a Weave Network
There are two options for initialising IPAM - with a statically
There are two options for initializing IPAM - with a statically
configured seed or automatically via one-off consensus. The two
options have different tradeoffs, so pick the one that suits your
deployment best.
@@ -44,12 +44,14 @@ outset even under conditions of partition - no consensus is required.
#### <a name="consensus"></a>Via One-off Consensus
Alternatively, you can let weave determine the seed automatically via
a consensus algorithm; since you don't need to provide it with a list
of peer names anymore you can also let weave generate those randomly
for you too. However, in order for weave to form a single consensus
Alternatively, you can let Weave Net determine the seed automatically via
a consensus algorithm. Since you don't need to provide it with a list
of peer names anymore, you can let Weave Net generate those randomly
for you as well.
However, in order for Weave Net to form a single consensus
reliably you must now instead tell each peer how many peers there are
in total either by listing them as target peers or via the
in total either by listing them as target peers or using the
`--init-peer-count` parameter.
Just once, when the first automatic IP address allocation is requested
@@ -65,20 +67,20 @@ To illustrate, suppose you have three hosts, accessible to each other
as `$HOST1`, `$HOST2` and `$HOST3`. You can start Weave Net on those three
hosts using these three commands:
host1$ weave launch $HOST2 $HOST3
host2$ weave launch $HOST1 $HOST3
host3$ weave launch $HOST1 $HOST2
~~~bash
host1$ weave launch $HOST2 $HOST3
host2$ weave launch $HOST1 $HOST3
host3$ weave launch $HOST1 $HOST2
~~~
Or, if it is not convenient to name all the other hosts at launch
time, you can pass the number of peers like this:
~~~bash
host1$ weave launch --init-peer-count 3
host2$ weave launch --init-peer-count 3 $HOST3
host3$ weave launch --init-peer-count 3 $HOST2
~~~
The consensus mechanism used to determine a majority, transitions
through three states: 'deferred', 'waiting' and 'achieved':
@@ -95,7 +97,9 @@ Finally, some (but never all) peers can be launched as consensus
observers rather than participants by specifying the `--observer`
option:
~~~bash
host4$ weave launch --observer $HOST3
~~~
You do not need to specify an initial peer count to such peers. This
can be useful to add ephemeral peers to an existing fixed cluster (for
@@ -133,6 +137,7 @@ independent set again.
To illustrate this last point, the following sequence of operations
is safe with respect to Weave Net's startup quorum:
~~~bash
host1$ weave launch
...time passes...
host2$ weave launch $HOST1
@@ -141,6 +146,7 @@ is safe with respect to Weave Net's startup quorum:
...time passes...
...host1 is rebooted...
host1$ weave launch $HOST2 $HOST3
~~~
### <a name="forcing-consensus"></a>Forcing Consensus
+2
View File
@@ -26,8 +26,10 @@ Assume you had started the three peers in the
[overview example](/site/ipam/overview-init-ipam.md), and then host3
caught fire, you can go to one of the other hosts and run:
~~~bash
host1$ weave rmpeer host3
524288 IPs taken over from host3
~~~
Weave Net takes all the IP address ranges owned by host3 and transfers
them to be owned by host1. The name "host3" is resolved via the
+4 -6
View File
@@ -6,20 +6,18 @@ layout: default
The command
~~~bash
weave status
~~~
reports on the current status of the weave router and IP allocator:
````
...
~~~bash
Service: ipam
Status: awaiting consensus (quorum: 2, known: 0)
Range: 10.32.0.0-10.47.255.255
DefaultSubnet: 10.32.0.0/12
...
````
~~~
The first section covers the router; see the [troubleshooting
guide](/site/troubleshooting.md#weave-status) for full details.