LEIL-TOPOLOGY.CFG(5)

πŸ“¦ version 5.12.0, in nixpkgs unstable

πŸ’… 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 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)

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:

  • 0 when IP numbers are the same
  • 1 when IP numbers are different, but switch numbers are the same
  • 2 when 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 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