-
Type: Improvement
-
Status: Resolved
-
Priority: Blocker
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: ML Custom Model
-
Tags:
-
Upgrade notes:
-
Team:AI
Currently, we are asking for suggestions on any file independent of size.
Suggestions operation run on the Portal node and need to run the aiResize IM conversion when there isn't any picture:view (on upload and when the views are not created).
This is a huge risk as if the file has a huge size, it will use all the resources of the Portal node and make the application not usable.
Also we want to fallback on a default rendition (Small here) and ensure that is higher in dimension of 299x299
Proposal
**Add a new var on nuxeo.conf (ir. nuxeo.ai.sync.maxSize) where the customer can configure the max size of a file to get synchronous suggestions (in bytes).
When a syncronous suggestions has as one of the inputs an image feature (blob) and the blog is bigger than "nuxeo.ai.sync.maxSize" we will abort the suggestion process for that model specifically.
Today, the only sync suggestion we have is the ai.suggestion operation.
- is required by
-
AICORE-388 Fix ImageMagick error with command 'aiResizer'
- Resolved
- Is referenced in