-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Upgrade to v3.6-beta2 - migration causes OOM of the database process #13605
Comments
Thank you for opening a bug report. I was unable to reproduce the reported behavior on NetBox v3.6-beta2. Please re-confirm the reported behavior on the current stable release and adjust your post above as necessary. Remember to provide detailed steps that someone else can follow using a clean installation of NetBox to reproduce the issue. Remember to include the steps taken to create any initial objects or other data. |
I can understand that the steps to reproduce the error are not really meaningful. With the demo data, the migration also works without problems. We have in our database over 18k devices, 90k interfaces, 19k front ports, 16k rear ports and 3k console ports. The DB dump is around 450mb in size. I have no idea how to reproduce this. |
It's most likely a configuration issue with your PostgreSQL server. It's possible that it's killing the session when it goes beyond a certain time maybe 5 minutes. |
It is not an PostgreSQL issue, the process is killed by oom-killer
See also: |
I believe it's still a configuration issue if your VM doesn't have resources to process the data. However, I'll leave this for another maintainer to take a look if they find any optimisation for the counter migration. |
This can probably be addressed by defining a batch size for the bulk update operation in migration |
@cybarox are you able to test the migration using the |
The batch_size value solved the problem. All migrations were applied successfully. Thank you @jeremystretch ! |
Excellent! Thanks for the quick confirmation @cybarox. |
NetBox version
v3.5.9
Python version
3.10
Steps to Reproduce
We have over 18000 devices in NetBox. Maybe it has something to do with the high number of devices.
Expected Behavior
NetBox upgrades to v3.6-beta2
Observed Behavior
Upgrade fails due to terminated database process:
The text was updated successfully, but these errors were encountered: