ome / omero-web

Django-based OMERO.web client
https://www.openmicroscopy.org/omero
16 stars 29 forks source link

Img data json django32 #537

Closed will-moore closed 3 months ago

will-moore commented 4 months ago

This is identical to #536, except this is based off v5.22.1 and so is compatible with Django 3.2.

Performance testing

NB: this PR includes TEMP A/B testing

I would expect A (EVEN numbers) to be faster for small images BUT it seems that B is faster?!?! Possibly because the size threshold is using config service to get the BIG image limit.

Memo file requirement

I had hoped that by checking image size, small images (EVEN IDs) would NOT need to read memo file in order to load imgData (required for iviewer right panel).

BUT, seems that the imgData won't load for e.g. idr0090 images where memo file is missing. e.g. https://idr-testing.openmicroscopy.org/webclient/imgData/12542998/ (504 timeout).

snoopycrimecop commented 4 months ago

Conflicting PR. Removed from build OMERO-python-superbuild-push#468. See the console output for more details. Possible conflicts:

--conflicts

will-moore commented 4 months ago

Testing with this PR deployed on idr-testing definitely felt faster to load right panel of iviewer. Closing now.

will-moore commented 3 months ago

Redeploying the A/B/C testing on idr-testing for more perf testing...

for server in omeroreadwrite omeroreadonly-1 omeroreadonly-2 omeroreadonly-3 omeroreadonly-4; do ssh $server "sudo /opt/omero/web/venv3/bin/pip uninstall -y omero-web && sudo /opt/omero/web/venv3/bin/pip install git+https://github.com/ome/omero-web.git@refs/pull/537/head && sudo service omero-web restart"; done
will-moore commented 3 months ago

Summary of performance testing...

In the chart below, each green bar is the http response time. Blue (where shown - 1st 2 sections only) is the time to load rendering engine as reported in the JSON response with the ABC testing enabled for this PR.

Testing in 4 sessions below:

Screenshot 2024-03-18 at 13 44 22

Conclusions:

To summarise: