-
Couldn't load subscription status.
- Fork 7
Add controls for max. number of images to generate in parallel #1143
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
Conversation
- Use `DOCUMENT_IMAGE_PLL_LIMIT` to set the number of images that can be generated at once.
- It should be as high as the hardware can support to keep things fast.
- It's set at 1 by default. This always works, but it's not as fast as it could/should be.
- Also add `DOCUMENT_IMAGE_CACHE_SIZE` to the readme. This was undocumented.
|
@maxkfranz
|
|
Talk next Wed.? |
|
A couple of instances to test:
|
|
I'm finding the factoid/src/server/routes/api/document/index.js Lines 1453 to 1466 in eca68a1
Alternative to handle
So the downside is authors won't see updates to their submitted docs within 24 hours. The p-limit code is still valid on initial load, the rest of the time the entire search browse page loads almost instantly. |
|
There's two major cases I've observed. (1) Empty caches: Initial server load or reboot (2) Cache filled: Each subsequent homepage/search request For (1) I say let's merge this in as is. For (2) I've started #1151 |
# Conflicts: # src/server/routes/api/document/index.js
DOCUMENT_IMAGE_PLL_LIMITto set the number of images that can be generated at once.DOCUMENT_IMAGE_CACHE_SIZEto the readme. This was undocumented.@jvwong, would you test this out? We'll also need to determine what number to use for
DOCUMENT_IMAGE_PLL_LIMITin the docker config for the production app.