How to specify CPU,MEMORY limit in .env

how and what unit can be used to specify below parameters in .env.

JOB_MAIN_CONTAINER_CPU_REQUEST=
JOB_MAIN_CONTAINER_CPU_LIMIT=
JOB_MAIN_CONTAINER_MEMORY_REQUEST=
JOB_MAIN_CONTAINER_MEMORY_LIMIT=

for ex. Will below format work?
JOB_MAIN_CONTAINER_CPU_REQUEST= 2GB
JOB_MAIN_CONTAINER_CPU_LIMIT= 2GB
JOB_MAIN_CONTAINER_MEMORY_REQUEST= 2GB
JOB_MAIN_CONTAINER_MEMORY_LIMIT= 2GB

Hi @seshan,
I’ve opened an issue to make this clearer in our documentation.

For 2 gigabytes of memory:

JOB_MAIN_CONTAINER_MEMORY_REQUEST= 2gJOB_MAIN_CONTAINER_MEMORY_LIMIT= 2g

For CPU you should express the percentage of a single core:

JOB_MAIN_CONTAINER_CPU_REQUEST= 0.50 # (50% of a single core) JOB_MAIN_CONTAINER_CPU_LIMIT= 0.50 # (50% of a single core)
1 Like

Hi there from the Community Assistance team.
We’re letting you know about an issue we discovered with the back-end process we use to handle topics and responses on the forum. If you experienced a situation where you posted the last message in a topic that did not receive any further replies, please open a new topic to continue the discussion. In addition, if you’re having a problem and find a closed topic on the subject, go ahead and open a new topic on it and we’ll follow up with you. We apologize for the inconvenience, and appreciate your willingness to work with us to provide a supportive community.