-
Notifications
You must be signed in to change notification settings - Fork 559
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
Document Kubernetes limits and requests for Garnet #1022
Comments
I am not sure how we can choose the best presets up front as this is highly workload dependent. You have to decide how to partition your total available memory across: (1) main store index; (2) main store log; (3) object store index; (4) object store log; (5) object store heap size; (6) AOF size in memory. These decisions are based on various workload-level attributes such as number of keys indexed, whether the workload is mostly strings or objects, whether AOF is enabled, etc. I suppose we could make some rough assumptions and allocate accordingly. We don't really work with Helm charts actively, but if anyone in the community wants to take a stab at this, feel free to contribute. |
@badrishc Thank you for your response.
The defaults could help Garnet users like myself, when I initially tried simplest storage-less test deployment of Garnet using eventually realising it needs at least equivalent of small. |
cc @babykart - is this something of interest to make available for garnet? |
@badrishc I think the helm chart provides the bare minimum, that is, the ability to adjust these values. As you said, it is very difficult to provide templates where so many parameters are dependent of the real workload. |
That would be of great help indeed, bearings that users may need.
Yes, good point. Redis, I understand, provides the named presets as a suggestion (and documentation) of reasonable defaults, but does not force to use it. |
If someone makes a draft PR for this, I will be happy to suggest what the specific values should be for the default case. The doc link would be this: https://microsoft.github.io/garnet/docs/getting-started/memory. |
Feature request type
enhancement
Is your feature request related to a problem? Please describe
The official Helm chart includes an example of the resources limits/requests:
garnet/charts/garnet/values.yaml
Lines 117 to 124 in d7d2bc6
but, there is no explanation of those are defaults or recommended values or just 'syntactical' placeholders.
Describe the solution you'd like
At least a suggestion of minimum and recommended limits/requests should be documented to give users an idea, bearings.
Ideally, if Garnet's chart could specify the resources requirements with pre-defined presets like this chart does it for Redis providing
none, nano, micro, small, ... presets:
https://github.com/bitnami/charts/blob/a401c96b685d790344f960eab46e5aba87308f63/bitnami/common/templates/_resources.tpl#L15-L44
Describe alternatives you've considered
Trial and error using the limits from the comment above:
Additional context
The text was updated successfully, but these errors were encountered: