Skip to content

Occasional ~4-second wait when using API #14796

Discussion options

You must be logged in to vote

Looks like I managed to explain all this (unless I find something new later...). Two issues:

  1. DNS (it's always DNS, right?). The DNS resolver operated by the local service provider just has some resolving issues every now and then (= request takes ~4 seconds to resolve), and that messed up some of my observations. (In my captures I managed to miss that not all wait cases were responses delayed by the server, sometimes it was the request that was delayed)
  2. Starting a new NetBox WSGI worker (process or thread) takes like 4 seconds, and all workers then start their own database connections. Since the HTTP requests are not necessarily evenly spread out to all the worker processes+threads, the …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by markkuleinio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant