You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are using Nautobot jobs to provision new sites, updating existing sites with new designs, etc etc.
After the upgrade to 1.2 (tested with 1.2.5 and 1.2.11), we noticed that these jobs take significantly more time to complete compared to 1.1 (tested with 1.1.6).
Specifically we see that certain ORM actions seem to be slower. We experience it when setting tagged VLANs on an interface or when setting a tag on an interface.Executing these actions outside of the context of a job (for example nbshell) behaves normally and fast.
The slowness of the ORM actions in jobs seems to have a relation to the amount of change-log records in the db.
Attached you can find a job that we have used for testing.
v1.1.6 (no change-log records) takes +-2m5s
v1.1.6 (100k change-log records) takes +-2m
v1.1.6 (3m change-log records) takes +-2m
v1.2.5 (no change-log records) takes +- 2m30s
v1.2.5 (100k change-log records) takes +- 4m
v1.2.5 (3m change-log records) takes +- 40m (doesn't finish before NAUTOBOT_CELERY_TASK_SOFT_TIME_LIMIT is reached)
I did the tests on a completely dummy created data set, to exclude any weird things in our data set.
Steps to Reproduce
Create a significant amount of changelog records (>100K)
@wvandeun One quick question as I'm about to sit down with this: When you say changelog records you do mean specifically actual ObjectChange objects? I just wanted to clarify between those and JobLogEntry objects, which were introduced in v1.2, to store job log entries as individual rows.
I intend to review both, but just wanted that clarification. Thanks!
wvandeun
changed the title
Nautobot ORM actions when performed in the context of a Job after upgrading to v1.2
Nautobot ORM actions slow when performed in the context of a Job after upgrading to v1.2
Apr 13, 2022
Environment
We are using Nautobot jobs to provision new sites, updating existing sites with new designs, etc etc.
After the upgrade to 1.2 (tested with 1.2.5 and 1.2.11), we noticed that these jobs take significantly more time to complete compared to 1.1 (tested with 1.1.6).
Specifically we see that certain ORM actions seem to be slower. We experience it when setting tagged VLANs on an interface or when setting a tag on an interface.Executing these actions outside of the context of a job (for example nbshell) behaves normally and fast.
The slowness of the ORM actions in jobs seems to have a relation to the amount of change-log records in the db.
Attached you can find a job that we have used for testing.
NAUTOBOT_CELERY_TASK_SOFT_TIME_LIMIT
is reached)I did the tests on a completely dummy created data set, to exclude any weird things in our data set.
Steps to Reproduce
Expected Behavior
Would expect the job to finish in the approximately the same time as when using earlier versions of Nautobot.
Observed Behavior
Job takes significantly more time to execute, compared to earlier versions of Nautobot.
The text was updated successfully, but these errors were encountered: