Update IPAM documentation.
This commit is contained in:
1 parent
e9fa655e0e
commit
bc97daf5c0
1 file changed
+22
-6
+22
-6
@@ -65,14 +65,30 @@ peer for space:
|
|||||||
- it will continue to ask for space until it receives some, or its
|
- it will continue to ask for space until it receives some, or its
|
||||||
copy of the ring tells it all peers are full in that subnet.
|
copy of the ring tells it all peers are full in that subnet.
|
||||||
|
|
||||||
|
### Data persistence
|
||||||
|
|
||||||
|
Key IPAM data is saved to disk, in a [BoltDB](https://github.com/boltdb/bolt)
|
||||||
|
file, stored within a [data volume container](https://docs.docker.com/engine/userguide/containers/dockervolumes/#creating-and-mounting-a-data-volume-container)
|
||||||
|
named `weavedb`.
|
||||||
|
|
||||||
|
This file is used to persist data for various Weave Net components; for IPAM it contains:
|
||||||
|
|
||||||
|
* the division of the IP allocation range amongst peers, and
|
||||||
|
* allocation of addresses to containers on the local peer,
|
||||||
|
|
||||||
|
so that it is immediately available when the peer restarts.
|
||||||
|
|
||||||
### Claiming an address
|
### Claiming an address
|
||||||
|
|
||||||
If a Weave process is restarted, in most cases it will hear from
|
If a Weave process is restarted,
|
||||||
another peer which ranges it used to own, but it needs to know which
|
|
||||||
individual IP addresses are assigned to containers in order to avoid
|
- if `weavedb` is present, then it loads persisted IPAM data from there, as
|
||||||
giving the same address out in subsequent allocation requests. The
|
described, in the previous section;
|
||||||
weave script invokes the `claim` command in `populate_ipam` to do
|
- else, it learns from other peers which ranges it used to own.
|
||||||
this.
|
|
||||||
|
Weave Net then consults the allocator to know which individual IP addresses
|
||||||
|
are assigned to containers, and therefore avoid giving the same address out in
|
||||||
|
subsequent allocation requests.
|
||||||
|
|
||||||
When the Allocator is told to claim an address, there are four
|
When the Allocator is told to claim an address, there are four
|
||||||
possibilities:
|
possibilities:
|
||||||
|
|||||||
Reference in new issue
Block a user