Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Very slow image creation in production #1042

Open
sebastiangaertner opened this issue Mar 5, 2023 · 6 comments
Open

Very slow image creation in production #1042

sebastiangaertner opened this issue Mar 5, 2023 · 6 comments
Labels
hacktoberfest tool: Verify Relates to the capture verification tool (Verify page)

Comments

@sebastiangaertner
Copy link
Contributor

When using the verify tool the images take up to 3 minutes to be created.

@sebastiangaertner sebastiangaertner added the tool: Verify Relates to the capture verification tool (Verify page) label Mar 5, 2023
@nmcharlton
Copy link
Collaborator

Do you mean image loading, or approval?

@sebastiangaertner
Copy link
Contributor Author

Image loading

@nmcharlton
Copy link
Collaborator

@sebastiangaertner I'm not seeing any issues with image loading in production. I'm using a South Africa VPN to get as close as possible, but images are loading quickly as Admin and as Freetown Manager.

Can you upload a video clip of the loading and a screenshot of the Network tab in developer tools?

@sebastiangaertner
Copy link
Contributor Author

Its irratic really. Maybe there was some rebuild of the droplets happening. Its still slow for me see video here https://youtu.be/JaoOa_T-sac
Mind that i have not heard any complains about this so it could well be a my internet. The question can we monitor how long images take to be created? At some point this could be part of SAAS packages. Also maybe a good idea to calculate how much cimputing goes into verifying one tree and storing its data over time. We will get asked this question when it comes to scalability and the earlier we start knowing averything about it the better. What do you think?

@nmcharlton
Copy link
Collaborator

Apologies @sebastiangaertner, I didn't realise you meant image resizing when you said creation.
Tests on the prod image resizing API show a speed of about 200-400ms to resize and return the image using a fast connection.
Slow loading is most likely caused by a slow connection, as you suggest.

If you open the Network tab in the developer console, you'll be able to see how long each image takes to load and the breakdown of the timing. I'd be interested to know if your browser is trying to load all 24 images for the page at once, or just the images in the viewport.

I'm sure it would be quite straightforward to extract some time metrics from the microservice logs or possibly Ambassador.
As for the compute (I take it you ultimately mean energy consumption), that's a question for the cloud team (but an important one).

@sebastiangaertner
Copy link
Contributor Author

Thanks Nick. I will discuss with the cloud team.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest tool: Verify Relates to the capture verification tool (Verify page)
Projects
Status: No status
Development

No branches or pull requests

2 participants