Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lnd.conf and lnd.check.sh template adjustments #4432

Merged
merged 4 commits into from May 2, 2024

Conversation

TrezorHannes
Copy link
Contributor

Second attempt to add

  • a larger logrotation schedule. Even with loglevel=info, it'll only cost a few hundred MB but allows a larger lookbackwindow, helpful for force-close debugging
  • more verbose comment on syncfreelist=false vs true

Comment on lines 320 to 321
maxlogfiles=7
maxlogfilesize=500
Copy link
Collaborator

@openoms openoms Feb 24, 2024

Choose a reason for hiding this comment

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

this would result to 7 * 500 MB = 3.5 GB LND logfiles. Is that the intended size?
Would be happy with rotating them for every 100 MB at least and keep maybe 5 so 500 MB max, what do you think?

Suggested change
maxlogfiles=7
maxlogfilesize=500
maxlogfiles=5
maxlogfilesize=100

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note that the 500MB is before the logrotate
# Max log file size in MB before it is rotated.

My logfiles after gz span between 25-80MB, so we talk 7x80MB = 560MB max
How about 5 and 400 = 5*80 = 400MB?

I assume on Jan 22-23, I had one or two services on debug. So let's assume 80MB for all on info

sudo ls -lah ~/.lnd/logs/bitcoin/mainnet
total 856M
drwxrwxr-x 2 lnd lnd 4.0K Feb 25 13:10 .
drwx-w---- 3 lnd lnd 4.0K Mar  2  2022 ..
-rw-r--r-- 1 lnd lnd  66M Feb 26 21:48 lnd.log
-rw-r--r-- 1 lnd lnd  25M Jan 22 17:12 lnd.log.2707.gz
-rw-r--r-- 1 lnd lnd  23M Jan 22 19:00 lnd.log.2708.gz
-rw-r--r-- 1 lnd lnd  26M Jan 22 20:54 lnd.log.2709.gz
-rw-r--r-- 1 lnd lnd  26M Jan 22 22:55 lnd.log.2710.gz
-rw-r--r-- 1 lnd lnd  26M Jan 23 00:53 lnd.log.2711.gz
-rw-r--r-- 1 lnd lnd  26M Jan 23 02:28 lnd.log.2712.gz
-rw-r--r-- 1 lnd lnd  26M Jan 23 04:33 lnd.log.2713.gz
-rw-r--r-- 1 lnd lnd  26M Jan 23 06:49 lnd.log.2714.gz
-rw-r--r-- 1 lnd lnd  28M Jan 23 09:21 lnd.log.2715.gz
-rw-r--r-- 1 lnd lnd  26M Jan 23 11:40 lnd.log.2716.gz
-rw-r--r-- 1 lnd lnd  27M Jan 23 13:49 lnd.log.2717.gz
-rw-r--r-- 1 lnd lnd  30M Jan 23 15:59 lnd.log.2718.gz
-rw-r--r-- 1 lnd lnd  26M Jan 23 17:44 lnd.log.2719.gz
-rw-r--r-- 1 lnd lnd  27M Jan 23 19:38 lnd.log.2720.gz
-rw-r--r-- 1 lnd lnd  24M Jan 23 21:26 lnd.log.2721.gz
-rw-r--r-- 1 lnd lnd  23M Jan 23 23:30 lnd.log.2722.gz
-rw-r--r-- 1 lnd lnd  22M Jan 24 01:28 lnd.log.2723.gz
-rw-r--r-- 1 lnd lnd  24M Jan 24 03:38 lnd.log.2724.gz
-rw-r--r-- 1 lnd lnd  26M Jan 24 05:39 lnd.log.2725.gz
-rw-r--r-- 1 lnd lnd  28M Jan 24 07:52 lnd.log.2726.gz
-rw-r--r-- 1 lnd lnd  65M Jan 31 10:41 lnd.log.2727.gz
-rw-r--r-- 1 lnd lnd  69M Feb  7 07:22 lnd.log.2728.gz
-rw-r--r-- 1 lnd lnd  73M Feb 15 04:51 lnd.log.2729.gz
-rw-r--r-- 1 lnd lnd  80M Feb 25 13:10 lnd.log.2730.gz

@rootzoll rootzoll added this to the 1.11.1 Release milestone Mar 7, 2024
@rootzoll rootzoll merged commit 425442c into raspiblitz:dev May 2, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants