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 · 7 comments
Open

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

ghost opened this issue Mar 12, 2024 · 7 comments
Assignees
Labels
enhancement New feature or request
Milestone

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.

@sha-265
Copy link

sha-265 commented Aug 27, 2024

I have performance issues with CLNRest also, that I didn't have with c-lightning-REST.

Especially when trying to load the routing page, I get a 500 error:
image

@ShahanaFarooqui ShahanaFarooqui added this to the 0.15.3 milestone Aug 27, 2024
@ShahanaFarooqui ShahanaFarooqui self-assigned this Aug 27, 2024
@ShahanaFarooqui ShahanaFarooqui added the enhancement New feature or request label Aug 27, 2024
@ShahanaFarooqui
Copy link
Collaborator

listforwards being slow with clnrest makes sense. As we were using pagination in c-lightning-REST which has been removed with migration. We can utilise CLN's pagination now.

@sha-265
Copy link

sha-265 commented Aug 28, 2024

Since when there is CLN's pagination?

@ShahanaFarooqui
Copy link
Collaborator

It was added in CLN v23.11 PR ElementsProject/lightning#6753.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants