Netbox slow #7005
Replies: 9 comments
-
Debug Syslog Aug 19 10:29:06 netbox gunicorn[994]: [2021-08-19 10:29:06 +0200] [994] [DEBUG] GET /ipam/ip-addresses/ gunicorn.py GNU nano 4.8 /opt/netbox/gunicorn.py Number of gunicorn workers to spawn. This should typically be 2n+1, where n is the number of CPU cores present. Number of threads per worker process Timeout (in seconds) for a request to complete The maximum number of requests a worker can handle before being respawned loglevel = 'debug' |
Beta Was this translation helpful? Give feedback.
-
Can you link the exact csv imports anyone can use to reproduce this? And also the exact url you're using for the view. Repro on demo.netbox.dev would be needed. |
Beta Was this translation helpful? Give feedback.
-
Sorry it's my production environment, i can't export this |
Beta Was this translation helpful? Give feedback.
-
What's the ratio of IPs to interfaces per device? Are there a thousand interfaces with one IP each? |
Beta Was this translation helpful? Give feedback.
-
There is 2274 interfaces and 154 ip attached to these interfaces |
Beta Was this translation helpful? Give feedback.
-
OK, how are the IPs spread over these interfaces? And which page is slow? Opening the interface tab under the single device? Or some of the other views for IPs? Did this scenario work fast(er) in an older netbox version? |
Beta Was this translation helpful? Give feedback.
-
at 90%, one interface = one ip Aug 20 08:29:47 netbox gunicorn[18001]: [2021-08-20 08:29:47 +0200] [18001] [DEBUG] GET /dcim/interfaces/ |
Beta Was this translation helpful? Give feedback.
-
You can neglect the fqdn from your URL, we're just interested in the complete part behind the first slash (edit your post to hide it). The page you mentions shows ALL IPs, without filters. I assume you have some sort of filter applied to only show whats of interest. These filters are interesting to know, once you have a reproducible slow scenario. Also: is the Interfaces tab under the device slow as well? You can set the pagination to something (way) lower then 1000 as well. You wont be scrolling through 1000 rows most of the time? |
Beta Was this translation helpful? Give feedback.
-
I'm moving this to a discussion since we're having a hard time getting clear answers, and there are clearly other factors at play. If it is determined that we can improve NetBox in some way, you're certainly welcome to open a new bug report or feature request citing the specific changes being proposed. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
NetBox version
v2.11.11
Python version
3.8
Steps to Reproduce
Expected Behavior
Display the page quickly
Observed Behavior
21 seconds to display the page
Beta Was this translation helpful? Give feedback.
All reactions