Managing Concurrent Device Allocation in NetBox for Regression Suite Execution #15485
Unanswered
VijayAsokkumar
asked this question in
Help Wanted!
Replies: 1 comment
-
If all concurrent clients pick the same device, and update all that device, then the same device will be updated multiple times. You'll need some locking externally if you want to prevent that. Or you could write a Custom Script which does the atomic operation (pick a device, set the tag, return it), but you'll have to do the Django locking carefully; you can copy Netbox's own code for how it allocates IP addresses in a prefix. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have 10 devices that are to be used for running 20 regression suites. I want them to query NetBox for available devices (devices with tag "Available") simultaneously. Initially, NetBox will return all 10 available devices, and each suite will pick 1 or 2 from the list. It will then send a request to NetBox to add a 'blocked' tag and remove the 'available' tag from the selected devices. If another job sends the same request in parallel, how will NetBox handle these concurrent requests?
Beta Was this translation helpful? Give feedback.
All reactions