forked from moosefs/moosefs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mfstopology.cfg.5
96 lines (92 loc) · 3.75 KB
/
mfstopology.cfg.5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
.TH mfstopology.cfg "5" "September 2024" "MooseFS 4.56.6-1" "This is part of MooseFS"
.SH NAME
mfstopology.cfg \- MooseFS network topology definitions
.SH DESCRIPTION
The file \fBmfstopology.cfg\fP assigns IP addresses to
network locations. This file is optional. If your
network is very small (i.e. has just one switch) or
network topology is not necessary
then leave this file empty.
.SH SYNTAX
.PP
Syntax is:
.TP
\fIIP_ADDRESSES\fP \fILOCATION_PATH\fP
.PP
Lines starting with \fB#\fP character are ignored as comments.
.PP
\fIIP_ADDRESS\fP can be specified in several forms:
.PP
.nf
.ta +2i
\fB*\fP all addresses
\fBn.n.n.n\fP single IP address
\fBn.n.n.n/b\fP IP class specified by network address and bits number
\fBn.n.n.n/m.m.m.m\fP IP class specified by network address and mask
\fBf.f.f.f-t.t.t.t\fP IP range specified by from-to addresses (inclusive)
.fi
.PP
\fILOCATION_PATH\fP can be specified as a sequence of words separated by vertical bars.
.SH NOTES
If one IP belongs to more than one definition then the last definition is used.
.PP
Each set of ip addresses with a common location path is considered one rack. Rack and/or IP information is used
by the master if \fBCHUNKS_UNIQUE_MODE\fP in \fBmfsmaster.cfg\fP is set to value greater than 0
(refer to \fBmfsmaster.cfg\fP\|(5) manual for more information) and in storage classes if the
distinguish feature is used (refer to \fBmfsscadmin\fP\|(1) manual for more information).
.PP
Distance between IP numbers is defined as follows: \fB0\fP when IP numbers are the same,
\fB1\fP when IP numbers are different, but paths specified by these numbers are the same. In case of different
paths distance is defined as one plus maximum number of elements from both paths after
common starting part.
.PP
Distance is used for the following purposes:
.br
Copies of chunks are sent to the client(mount) sorted by the distance from this client when a chunk is needed for I/O operations. Notice that
the client may alter that order based on internal settings (preferred labels or internal congestion preventing algorithms; for
more informations about preferred labels refer to \fBmfsmount\fP\|(8) manual).
.br
In the master the distance and racks information is used when \fBCREATIONS_RESPECT_TOPOLOGY\fP
and/or \fBREPLICATIONS_RESPECT_TOPOLOGY\fP are set to value greater than 0.
For more information refer to \fBmfsmaster.cfg\fP\|(5) manual.
.SH EXAMPLES
192.168.1.0/24 US|CHICAGO|WTOWER|R1A
.PP
192.168.2.0-192.168.2.255 PL|WARSAW|GROCHOWSKA|R154
.PP
192.168.3.0/255.255.255.0 123
.PP
192.168.1.1 A|B|C
.SH DISTANCE EXAMPLES
Distances calculated for two different IP numbers mapped to given location paths:
.PP
d('US','DE') = 2
.PP
d('US','') = 2
.PP
d('US|PHOENIX|AT&T|RACK1','US|PHOENIX|AT&T|RACK2') = 2
.PP
d('US|PHOENIX|AT&T|RACK1','US|PHOENIX|ATM|RACK7') = 3
.PP
d('US|PHOENIX|AT&T|RACK1','US|CHICAGO|AT&T|RACK2') = 4
.PP
d('US|PHOENIX|AT&T|RACK1','US|ATM') = 4
.PP
d('US|PHOENIX|AT&T|RACK1','DE|BERLIN|ATM|RACK175') = 5
.SH COPYRIGHT
Copyright (C) 2024 Jakub Kruszona-Zawadzki, Saglabs SA
This file is part of MooseFS.
MooseFS is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, version 2 (only).
MooseFS is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with MooseFS; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02111-1301, USA
or visit http://www.gnu.org/licenses/gpl-2.0.html
.SH "SEE ALSO"
.BR mfsmaster (8),
.BR mfsmaster.cfg (5)