Skip to content

FIX: on too low bandwidth, use min bandwidth#539

Merged
Thynix merged 2 commits intohyphanet:nextfrom
ArneBab:do-not-die-on-too-low-bandwidth
May 26, 2016
Merged

FIX: on too low bandwidth, use min bandwidth#539
Thynix merged 2 commits intohyphanet:nextfrom
ArneBab:do-not-die-on-too-low-bandwidth

Conversation

@ArneBab
Copy link
Contributor

@ArneBab ArneBab commented May 22, 2016

I think this should have been the behaviour all along to allow us to upgrade the network to new internet connection requirements without continuously killing old nodes.

I cannot just re-use the checking function, because that must throw an exception for the config settings.

@ArneBab ArneBab force-pushed the do-not-die-on-too-low-bandwidth branch from 31427b3 to e0d3daf Compare May 22, 2016 22:16
@Thynix
Copy link
Contributor

Thynix commented May 23, 2016

What changed the bandwidth limit?


int obwLimit = nodeConfig.getInt("outputBandwidthLimit");
if (obwLimit < minimumBandwidth) {
obwLimit = minimumBandwidth; // upgrade slow nodes automatically
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thoughts on logging about clamping the values?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that would be good, yes.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it logs now

@ArneBab
Copy link
Contributor Author

ArneBab commented May 23, 2016

@Thynix I fear that I changed the bandwidth limit, because the existing limit did not actually suffice to keep the connections (I tried). I did not expect Freenet to just not start when the value is lower than the minimum value (seems no one expected that we might want to raise that) — the bug report took me completely by surprise…

@ArneBab
Copy link
Contributor Author

ArneBab commented May 23, 2016

Stronger reason: Look at the connection number stats. The peak at 11 connections goes much too far to 5 (and below). More than I expect from the randomization. That means too many people don’t manage to keep the minimum of 10 connections.

http://127.0.0.1:8888/SSK@pxtehd-TmfJwyNUAW2Clk4pwv7Nshyg21NNfXcqzFv4,LTjcTWqvsq3ju6pMGe9Cqb3scvQgECG81hRdgj5WO4s,AQACAAE/statistics-1220/plot_peer_count.png

Compare

http://127.0.0.1:8888/SSK@pxtehd-TmfJwyNUAW2Clk4pwv7Nshyg21NNfXcqzFv4,LTjcTWqvsq3ju6pMGe9Cqb3scvQgECG81hRdgj5WO4s,AQACAAE/statistics-1222/plot_peer_count.png

@Thynix
Copy link
Contributor

Thynix commented May 24, 2016

Which commit changed the bandwidth limit?

@ArneBab
Copy link
Contributor Author

ArneBab commented May 26, 2016

This one: ArneBab@565e7fc

@Thynix
Copy link
Contributor

Thynix commented May 26, 2016

Oh. Whoops. I misremembered the minimum as like 12 KiB/s already.

@Thynix Thynix merged commit f09e36f into hyphanet:next May 26, 2016
@ArneBab
Copy link
Contributor Author

ArneBab commented May 26, 2016

thank you!

@ArneBab ArneBab mentioned this pull request Mar 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants