LEIL-TOPOLOGY.CFG(5)
π leil-topology.cfg β like, the whole manual, bestie
okay so this page is LEIL-TOPOLOGY.CFG(5) β the fifth section, the config-file girlies. it's your map of who lives where on the network πΊοΈβ¨
πΈ NAME πΈ
leil-topology.cfg β the network topology definitions for LeilFS π«Ά
β¨ DESCRIPTION β¨
so leil-topology.cfg is the file where you assign IP addresses to network locations β and those locations are usually switch numbers, iykyk. π₯
it's optional, bestie. totally up to you. if your network is just one switch, or you genuinely don't care about decreasing traffic between switches (no shame, live your truth), then just leave this file empty π
π SYNTAX π
the syntax is literally this, no cap:
ADDRESS SWITCH-NUMBER
lines starting with a # character are ignored (comments, periodt π
).
ADDRESS can be specified in several forms, and here's all of them:
*β all addresses, every single one πn.n.n.nβ a single IP addressn.n.n.n/bβ IP class specified by network address and bits numbern.n.n.n/m.m.m.mβ IP class specified by network address and maskf.f.f.f-t.t.t.tβ IP range specified by from-to addresses (inclusive)
and SWITCH-NUMBER? can be specified as any positive 32-bit number. any. positive. 32-bit. number. π§
π NOTES π
okay important stuff, listen up π
if one IP belongs to more than one definition, then the last definition is used. last one wins, iconic behaviour.
as for now, distance between switches is constant. so distance between machines is calculated like this:
0when IP numbers are the same1when IP numbers are different, but switch numbers are the same2when switch numbers are different
distances are used only to sort chunkservers during read and write operations. new chunks are still created randomly β no favourites, they're all just vibing. and also, rebalance routines do not take distances into account. so like, don't @ them about it. π¦
π REPORTING BUGS π
found a bug? report it to the GitHub repository at https://github.com/leil-io/leilfs as an issue. please and thank you π«Ά
β COPYRIGHT β
Copyright 2008-2009 Gemius SA
Copyright 2013-2019 Skytechnology sp. z o.o.
Copyright 2023-2024 Leil Storage OΓ
LeilFS 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.
LeilFS 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 LeilFS. If not, see http://www.gnu.org/licenses/.
fr fr, read the license, it's the whole vibe check for what you're allowed to do π
π SEE ALSO π
and that's the whole page, bestie π it's from the LEIL-TOPOLOGY.CFG(5) source and totally dated 1980-01-01 which is a whole mood honestly ππ go configure something iconic β¨π
π¦ where this page comes from
- nixpkgs unstable: saunafs 5.12.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms