Skip to content

Latest commit

 

History

History
75 lines (43 loc) · 2.11 KB

sfstopology.cfg.5.adoc

File metadata and controls

75 lines (43 loc) · 2.11 KB

sfstopology.cfg(5)

NAME

sfstopology.cfg - SaunaFS network topology definitions

DESCRIPTION

The file sfstopology.cfg contains assignments of IP addresses into network locations (usually switch numbers). This file is optional. If your network has one switch or decreasing traffic between switches is not necessary then leave this file empty.

SYNTAX

Syntax is:

ADDRESS SWITCH-NUMBER

Lines starting with # character are ignored.

ADDRESS can be specified in several forms:

  • * all addresses

  • n.n.n.n single IP address

  • n.n.n.n/b IP class specified by network address and bits number

  • n.n.n.n/m.m.m.m IP class specified by network address and mask

  • f.f.f.f-t.t.t.t IP range specified by from-to addresses (inclusive)

SWITCH-NUMBER can be specified as any positive 32-bit number.

NOTES

If one IP belongs to more than one definition then last definition is used.

As for now distance between switches is constant. So distance between machines is calculated as: 0 when IP numbers are the same, 1 when IP numbers are different, but switch numbers are the same and 2 when switch numbers are different

Distances are used only to sort chunkservers during read and write operations. New chunks are still created randomly. Also rebalance routines do not take distances into account.

REPORTING BUGS

Report bugs to the Github repository https://github.com/leil/saunafs as an issue.

Copyright 2008-2009 Gemius SA

Copyright 2013-2019 Skytechnology sp. z o.o.

Copyright 2023-2024 Leil Storage OÜ

SaunaFS 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 3.

SaunaFS 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 SaunaFS. If not, see http://www.gnu.org/licenses/.

SEE ALSO

sfsmaster(8), sfsmaster.cfg(5)