Skip to content

[ENHANCEMENT] Nicer error message if not enough memory #796

@tomhamer

Description

@tomhamer

Is your feature request related to a problem? Please describe.
Marqo will simply crash if it doesnt have enough memory. This is a bad user experience for users who are getting started with Marqo.

Describe the solution you'd like
Marqo should check the total memory allocated on boot, and if there isnt enough memory, it should error out with a polite error message for the user. My recommendation would be to start with something simple initially like if marqo has less than 6GB allocated it errors out. It should also contain a link to the docker docs for adjusting memory usage so the user can easily work out how to fix this. If it tries to load a big model and their isnt enough memory available it should have a warning like "WARNING: attempting to load ViT/L14 but memory allocation is lower than required".

Describe alternatives you've considered
None

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions