We recently did a major overhaul to our server, which included installing new hardware, reinstalling the OS (Ubuntu 14.04 -> 18.04), updating an old CATMAID instance (2017.05.17 -> 2018.11.09), merging two CATMAID databases, installing SSL, and moving the server to a new building/network. Everything was installed and optimized as suggested by
the official documentation, served by Nginx/uWSGI.
Everything seems to work well and is very fast with one exception: the skeleton tracing is occasionally slow to update in the main view. When going to a new section or panning/zooming the view, the image tiles update almost instantly, but the tracing often lags a second or two behind. The issue is most evident when panning (see attached video1), but also often happens in other cases (see attached video2). However, the issue is not always present; see attached video3 where the first update is slow (tiles load much faster than tracing), but the second update is fast (tracing loads before or at the same time as tiles); neither requests are cached.
We have no good ideas on how to approach this issue. It seems to be an issue with the interface rather than the database, since the HTTP requests fetching the tracing data are always fast (<100ms). Instead, there seems to be a delay in sending the request, which results in the lag (e.g. see video2). However, with all of our recent changes to the server, we are simply not sure where to start debugging.
Do you have any ideas on how we might approach this issue?