-
Notifications
You must be signed in to change notification settings - Fork 158
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
Is there a way to limit the API request rate? #1067
Comments
Some additional info regarding this problem. The issue happens because I have several hundred thousend invoices in my database. Solution: use the from and to fields of the listinvoice API point and if it gives a timeout reduce the time to get smaller junks |
@DerEwige Thank you for the issue. After analysing it more closely, we believe that it will be better handled if pagination option is added for the API. I opened two issues requesting pagination on I also opened another issue to delete any unpaid expired invoice in order to remove unnecessary records from the node: I am putting this issue on hold until at least 2450 is addressed. |
@DerEwige Eclair will provide an option to delete all unpaid expired invoices in their next release. Please feel free to configure if you have a lot of expired invoices. We will improve both API request as soon as pagination is available. |
Thanks @ShahanaFarooqui for sharing |
Unblocked with PR ACINQ/eclair#2474 |
Hey! I am looking to contribute, can someone guide me on where I can start? |
Hey, you can start by following https://github.com/Ride-The-Lightning/RTL/blob/master/.github/docs/Contributing.md and start a new thread in discussions board if more information is needed after that. |
I have cloned the repository and tried running the server, all is fine. But
I am just lost as to where to start since I have not tried meddling with a
code base as big. I would be very helpful if you could guide me around what
kind of beginner issues I can tackle first to get a feel for the system.
That way I can overcome my inertia and contribute, since I plan on being
regular.
Thanks for reaching out!
…On Thu, Dec 15, 2022 at 12:08 AM ShahanaFarooqui ***@***.***> wrote:
Hey, you can start by following
https://github.com/Ride-The-Lightning/RTL/blob/master/.github/docs/Contributing.md
and start a new thread in discussions board if more information is needed
after that.
—
Reply to this email directly, view it on GitHub
<#1067 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A2MJRF7WQWYSGB75TMJ337LWNIHZPANCNFSM56WZK4LQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Pagination cannot be implemented without API responding with total number of records which is missing currently. |
Updated code to enable pagination in future (whenever APIs are fixed) with PR #1393. |
Discussed in #1066
Originally posted by DerEwige August 16, 2022
My RTL freezes (overloads) my eclair node when it tries to load the invoices.
(When I go to lightning -> transactions)
The node CPU goes up to 100% (4 cores) and I get time out errors in the logs for http://localhost:8080/listinvoices
I asume that RTL has problem handling over a million of invoices.
Is there an option in the config to tell RTL to load the data slower?
The text was updated successfully, but these errors were encountered: