Skip to content

Azure web app is a bit slow #40

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

Closed
rmdocherty opened this issue Jun 20, 2023 · 3 comments
Closed

Azure web app is a bit slow #40

rmdocherty opened this issue Jun 20, 2023 · 3 comments
Assignees
Labels
backend Flask backend/HTTP responses bug Something isn't working cloud About cloud deployment help wanted Extra attention is needed

Comments

@rmdocherty
Copy link
Contributor

Have made some progress on speeding up service, but it is still slower than expected. Featurising is similar time, as is encoding (if done seperately). Segmenting is way slower than on my PC (1 min server vs 15s PC). I feel like this is a multithreading issue: are the first processes using up all the thread allocations because of my multithreading code? Is that even possible?

Possible solution: allocate less threads to each function s.t the first one doesn't get them all.

@rmdocherty rmdocherty added bug Something isn't working help wanted Extra attention is needed cloud About cloud deployment backend Flask backend/HTTP responses labels Jun 20, 2023
@rmdocherty rmdocherty self-assigned this Jun 20, 2023
@rmdocherty
Copy link
Contributor Author

Fairly certain it's a memory problem (small files segment v fast on server). Two solutions: pay for more expensive plan again to get more RAM and/or follow #3 to have fixed memory constraints.

@rmdocherty
Copy link
Contributor Author

Having changed backed to subsample and testing a deploy, still seems to be slower than local. Having watched the memory on the VM, doesn't seem to be OOM but not much memFree (even if memAvailable is high). Bumping up to p2v3 a very tempting option.

@rmdocherty
Copy link
Contributor Author

Performance difference between p2v3 and p2v2 not super large. No real way to speed up unless we host our own and take advantage of #31.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Flask backend/HTTP responses bug Something isn't working cloud About cloud deployment help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant