This repository has been archived by the owner on Jun 20, 2024. It is now read-only.
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.
Uneven distribution of IP address ownership #3162
Open
Description
This is right after startup in a 3-node cluster:
# weave status ipam
76:a1:dd:6c:12:51(brya-0) 524288 IPs (50.0% of total) (1 active)
0e:e4:4e:dd:92:ca(brya-2) 393216 IPs (37.5% of total)
ba:23:5a:0c:f3:10(brya-1) 131072 IPs (12.5% of total)
# weave report
...
"IPAM": {
"Paxos": null,
"Range": "10.32.0.0/12",
"RangeNumIPs": 1048576,
"ActiveIPs": 1,
"DefaultSubnet": "10.32.0.0/12",
"Entries": [
{
"Token": "10.32.0.0",
"Size": 393216,
"Peer": "0e:e4:4e:dd:92:ca",
"Nickname": "brya-2",
"IsKnownPeer": true,
"Version": 5
},
{
"Token": "10.38.0.0",
"Size": 131072,
"Peer": "ba:23:5a:0c:f3:10",
"Nickname": "brya-1",
"IsKnownPeer": true,
"Version": 3
},
{
"Token": "10.40.0.0",
"Size": 524288,
"Peer": "76:a1:dd:6c:12:51",
"Nickname": "brya-0",
"IsKnownPeer": true,
"Version": 1
}
],
"PendingClaims": null,
"PendingAllocates": null
}
}
I would expect 50/25/25; the 10.38.0.0 token is bang in the middle but the 10.40.0.0 one is a quarter of the way between the two points.
(This particular distribution does not have any negative consequences, but I'm curious how it comes about)