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

RTL-0.15 with CLN and clnrest.py got very slow #1364

Open
ghost opened this issue Mar 12, 2024 · 3 comments
Open

RTL-0.15 with CLN and clnrest.py got very slow #1364

ghost opened this issue Mar 12, 2024 · 3 comments

Comments

@ghost
Copy link

ghost commented Mar 12, 2024

Not sure if this is a bug, but I used to run RTL with c-lightning-REST, which was working fine. Now I'm running RTL 0.15 with CLN's clnrest.py plugin and everything got very slow. "Getting node information" and "Initializing node data" take more than a minute to finish, although I'm running it on a faster machine.

@saubyk
Copy link
Collaborator

saubyk commented Mar 12, 2024

Hi @martinneustein do you have a very busy node with a lot of channels and routing traffic? If you do, have you ever done any maintenance to clean up your database?

@ghost
Copy link
Author

ghost commented Mar 16, 2024

IHi @saubyk, it has about 16 channels and is running CLBOSS. I did not do any DB maintenance, I looked for information what I can do and couldn't find anything. I compiled lightingd without Postgres support/it uses sqlite3.

@ghost
Copy link
Author

ghost commented Apr 10, 2024

@saubyk I VACUUMed and ANALYZEd the sqlite3 db, no change. Some calls just seem to take forever.

[4/10/2024, 4:00:55 AM] INFO: Peers => List Peers...

[4/10/2024, 4:01:00 AM] INFO: Network => Network Fee Rates Received for perkw.

[4/10/2024, 4:01:00 AM] INFO: OnChain => Funds List Received.

[4/10/2024, 4:01:00 AM] INFO: Onchain => Local Remote Balance.

[4/10/2024, 4:01:00 AM] INFO: Onchain => Onchain Balance Received.

[4/10/2024, 4:01:00 AM] INFO: Channels => Peer Channels List Received.

[4/10/2024, 4:01:00 AM] INFO: Network => Network Fee Rates Received for perkb.

[4/10/2024, 4:01:00 AM] INFO: Payments => List Payments...

[4/10/2024, 4:01:14 AM] INFO: Channels => Peer Channels List With Aliases Received.

[4/10/2024, 4:01:14 AM] INFO: Peers => Sorted Peers List Received.

[4/10/2024, 4:01:26 AM] INFO: Payments => Payments List with Memo Received.

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

No branches or pull requests

1 participant