fastd-peer-balance's People
fastd-peer-balance's Issues
anmerkung
mir ist wieder eingefallen warum man das mit dem peer limit doch machen möchte.
dein vorschlag basiert ja auf einer momentanen logischen abschätzung ob man nen peer annehmen soll oder nicht, der schmeisst aber keine raus !
folgender Fall:
3 von 5 gw fallen aus, daran insg 250 router mit 2 fastdverbind jeder. das onverify script schaltet schnell und akzepiert neue verbindungen - massenhaft , bis alle bei den verbleibenden gw sind,
randfall- router haben nur 1 fastd - dann gilt gerade gesagtes
randfall- router haben bis zu 5 fastd (multipliziert grundrauschen) , dann könnte ein router mit allen verbunden sein, und andere mit keinem - am ende statistisch die rechnung aber aufgehen.
40 minuten später sind die gw schon wieder da, aber weil fastd so unkaputtbar ist, wechseln die nicht zurück, daher will man in einem 2. script peer limit in ähnlicher weise gegen aktuelle Situation checken und ggf. fastd sighup neu starten
divide by zero
super ...nice ..
beim ersten drübersehen ist mir aufgefallen das du batctl gwl um 1 verringerst. was passiert denn wenn das null wird, oder sogar minus 1 (bspw. weil "no gateways found" - 1 = 0)
..
der folgende divide by 0 is doof
gwamount=$(($($BATCTL gwl -H |wc -l)-1))
connection_average_estimate=$(( net_peer_amount / gwamount ))
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.