Overview
A user may encounter an issue in EYK where a specific process in their production environment maxes out the allocated 2GB of memory. This process could be responsible for handling monolith tasks like sending out daily emails. Due to the nature of these tasks, they cannot be scaled horizontally and have to be run from just one pod. The user may seek a way to increase the memory allocation for this specific process from 2GB to 4GB, without affecting other processes.
Solution
To increase the memory allocation for a specific process from 2GB to 4GB, without affecting other processes, you can set the request and limits for every process type by running the following command:
eyk limits:set -a --memory scheduled=1G/4G
This command will set the process `scheduled` to have a request of 1G (the amount of memory needed for the process to start) and a limit of 4G (the maximum amount of memory that process will be allowed to use). Replace `` with the name of your application.
Summary
By using the 'eyk limits:set' command, users can increase the memory allocation for a specific process in their EYK environment without affecting other processes. This is particularly useful for monolith tasks that cannot be scaled horizontally.
FAQ
- Can I increase the memory allocation for multiple processes at once?
No, the 'eyk limits:set' command only allows for the adjustment of one process at a time. - What happens if I exceed the memory limit set for a process?
If a process exceeds its set memory limit, it will be terminated and restarted. - Can I decrease the memory allocation for a process using the same command?
Yes, you can decrease the memory allocation by specifying a lower value in the 'eyk limits:set' command.
Comments
Article is closed for comments.