-
Notifications
You must be signed in to change notification settings - Fork 7.8k
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
Frequent License Checks Causing Service Disruption in n8n Multi-Main Mode #9164
Comments
Hey @dominikmukrecki, How many main instances are you running? |
Three pods, all operational right now. Also, check logs:
|
@Joffcom My idea is - rapid license check during booting all pods at once throws too many requests error. Proposal - provide some sort of "soft check" enterprise license, set timeout (Portainer for example gives 10 days to upgrade license after exceeding node count). I also wrote email to my license provider directly. |
Hey @dominikmukrecki, Looking at that you are running 3 main instances is that correct? When you say you have emailed your license provider is that someone internally here at n8n? We should be checking the license on startup but I am not sure how often it is actually checked I would have assumed only the once then whenever it is needed so maybe we need to relax the firewall infront of the license check to allow for the connections. |
Looking at that you are running 3 main instances - exactly
When you say you have emailed your license provider is that someone internally here at n8n? - directly from your HQ, by mail.
Also, using n8n without persistent storage could result in such behaviour? I will be testing it with RWX volume, but this solution is complicated in setup and maintenance and against HA idea.
|
Hey @dominikmukrecki, Who did you email here so I can check what they are doing already as there may be no need for me to look into this if someone else is already doing it and we can close this issue if it has been directly reported. |
Hey @dominikmukrecki, I have managed to catch up with JC and he has taken the issue to the team to have this looked into. As you are in direct contact about this I am going to mark this as closed for now. |
@dominikmukrecki Thank you for your feedback, tracking internally: https://linear.app/n8n/issue/PAY-1517 |
Fix got released with |
Bug Description
n8n encounters a service disruption due to frequent license renewal requests leading to a "Too many requests" error. This problem is exacerbated in environments utilizing the multi-main instance feature, potentially due to increased check frequency in such configurations. Although the license is valid, the aggressive checking disrupts service operation, demanding an alternative strategy for license verification that does not impair production environments.
https://github.com/8gears/n8n-helm-chart - deployed using this chart with some custom tweaks.
To Reproduce
Expected behavior
The license verification process should be robust enough to handle environments with multiple instances without exceeding API limits, ensuring continuous service operation. The system should implement a throttling mechanism or cache license status to reduce the frequency of checks against the license server.
Operating System
v1.27.11 +k3s1 (Rancher Kubernetes distro)
n8n Version
n8nio/n8n:1.38.0
Node.js Version
default for given image
Database
PostgreSQL
Execution mode
main (default)
The text was updated successfully, but these errors were encountered: