-
Notifications
You must be signed in to change notification settings - Fork 1
Enable asynchronous image processing #364
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Production settings should have everything in one place
When running at high load, seems like it may take more than 0.1s for the job to be queryable
So that we can see rate of processing of all messages in rabbitmq
Its used in build args instead
2 tasks
milanmlft
approved these changes
Apr 12, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤘
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
May not fully get there with documentation today but thought worth getting eyes on this. I've added stripped down log in reverse order (most recent at the top) for trying to work out what configuration should be set.
TODO:
Summary of learnings and changes
Configuration changes
Will update as I go along. When rate drops, it's that there are timeouts from the VNA completing the transfer job within 2 minutes
Didn't really change much, expect that its VNA load based, ~25 messages were being nacked and requeued which makes sense at least.
Tried after 7pm and not much of a change
Doesn't seem to help, though was requeueing 50 messages a second so there's more capacity. Maybe try fewer concurrent jobs and messages in flight to see if that gets 10000 us back to ~2 messages per second being confirmed, otherwise may just be the rest of the load on the VNA
Didn't really give much of an increase, rarely hit rate limiting by the token bucket so maybe try increasing max in flight?
Number of concurrent jobs maybe increased? will try 50 to check
max job history increase stopped error on jobs not being found, pending messages in orthanc slowing down processing so increase number of concurrent jobs to 30 next time
Found errors where the job didn't exist in orthanc anymore, so increase max job history so it still exists after success
Not a massive increase, will drop number of threads and concurrent jobs
Initial rate of processing, discovered that was hanging a fair bit on rest calls so made them async using aio http