Troubleshooting inconsistent performance? #19410
Replies: 3 comments 5 replies
-
I have the exact same issue. Most requests are snappy, but seemingly randomly requests will take a while, and the main python docker image will use high amounts of CPU until the request is eventually completed |
Beta Was this translation helpful? Give feedback.
-
It's likely a netbox-docker related issue. The default configuration is like so:
This means that only one process will stay active and up to 4 can be spawned in total. After 120 seconds it will go down to 1 process. The spawn time is not instant at all, so if unlucky you might have to wait. If memory is not an issue, try to replace the above with something like: "processes": 4 # Or 8 or whatever. This will spawn a static amount of processes on launch. You will have to mount the file into the container though. Something like:
|
Beta Was this translation helpful? Give feedback.
-
Can confirm this has fixed the issue, I increased to a max of 16 and spare of 8. Thank you for the pointers @kkthxbye-code |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I've been running a number of different NetBox (using Docker) versions over a few years, and for as long as I can remember, I've had issues with pages loading slowly, up to some ten seconds. On good days, pages load instantly, so the host clearly has the capacity. For example, just now I had the home page take ages to load, and then a couple of minutes later, it loads instantly. Sometimes it's somewhere in between. I think all pages might be affected at the same time, and it includes asynchronous requests such as for field autocomplete lookups.
I run a number of other Docker containers on the same host, and have never witnessed similar issues on any of them. Where can I start troubleshooting this?
Beta Was this translation helpful? Give feedback.
All reactions