yggdrasil-go icon indicating copy to clipboard operation
yggdrasil-go copied to clipboard

syslog size for public peer

Open d47081 opened this issue 1 year ago • 7 comments

hello there!

I found that my public peer server (yggdrasil 0.5) starting to generate massive /var/log/syslog files with following content

Nov 19 00:01:23 yggdrasil[387592]: 2023/11/19 00:01:23 Connected inbound: 201:23b4:991a:634d:8359:4521:5576:[email protected]:39284, source 94.140.114.241:4708
Nov 19 00:01:23 yggdrasil[387592]: 2023/11/19 00:01:23 Disconnected inbound: 201:23b4:991a:634d:8359:4521:5576:[email protected]:39284, source 94.140.114.241:4708; error: ErrBadKey: Expected KEY, Found KEY
...

is there any way how to reduce it with debug level or that's bad idea? I'm using default deb package with systemd without any changes in auto-generated config

Just size of logs grow up to 1 Gb, I think, that's issue for VPS

d47081 avatar Nov 24 '23 12:11 d47081

You could switch to -loglevel warn, which will silence most of the logging, but this sounds like you probably need to look at why your system is letting your syslog grow to that extent. rsyslog etc have options for this.

neilalexander avatar Nov 24 '23 12:11 neilalexander

logrotate package should be able to handle this.

majestrate avatar Nov 24 '23 14:11 majestrate

Thanks for advice, it's maybe happens when node become closer to the network root so just for info

d47081 avatar Nov 25 '23 23:11 d47081

note: ygg 0.5 got rid of the DHT spanning tree so the concept of a root node is no more, it's replaced with a "core" set of routers which are the most well connected.

majestrate avatar Nov 26 '23 14:11 majestrate

@neilalexander could you please explain where to add this option -loglevel warn

I have yggdrasil installed from deb package, can't find where systemd file stored or I must to recompile it with this option?

@logrotate thanks for logrotate advice, but I want to silentize non-important messages from yggdrasil just (like connection events) and keep another ones that could be important

just it happened again, my logsize grows and it causes free disk space issues..

d47081 avatar Nov 28 '23 16:11 d47081

Can anyone explain why such massive amount of disconnects happen? My first thought was that it happens because of crashes. But I doubt nodes can crash every 2 minutes. (upd: Sometimes nodes reconnect every few seconds.) So what is happening?

Vort avatar Nov 28 '23 18:11 Vort

It is the regression (hopefully) fixed in v0.5.4. We need to wait until all public peers upgrade to 0.5.4

basilgello avatar Nov 29 '23 06:11 basilgello

@d47081 You can close this issue? I hope you found where to put your option. Also people upgraded to 0.5.4

Saiv46 avatar Mar 09 '24 12:03 Saiv46

Just forgot about as moved to another server with infinitive storage ;D

Thanks for reminding!

d47081 avatar Mar 09 '24 15:03 d47081