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

Fixed n8n's startup behavior for scaled mode #2242

Merged
merged 1 commit into from
Sep 24, 2021
Merged

Conversation

krynble
Copy link
Contributor

@krynble krynble commented Sep 23, 2021

Some of our community users had issues with n8n when running multiple instances.

Although not officially supported and not the way we recommend scaling n8n, it is a valid approach and this fix also covers a possible problem with our recommended scaling methods.

When initializing multiple n8n instances at once, you have a race condition where all of them will clear the database data, only one will register the webhooks on the database and the others will fail.

Also, when restarting the main process (for example to apply an update), n8n will temporarily stop receiving requests. This fix prevents this from happening.

@janober janober merged commit 3c256dc into master Sep 24, 2021
@janober janober deleted the fix-scaled-issue branch September 24, 2021 06:42
@janober
Copy link
Member

janober commented Sep 24, 2021

Thanks a lot. Got merged.

@janober
Copy link
Member

janober commented Sep 28, 2021

Got released with n8n@0.140.0

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.

2 participants