Skip to content

Conversation

@kikemolina3
Copy link
Contributor

Developer's Certificate of Origin 1.1

   By making a contribution to this project, I certify that:

   (a) The contribution was created in whole or in part by me and I
       have the right to submit it under the Apache License 2.0; or

   (b) The contribution is based upon previous work that, to the best
       of my knowledge, is covered under an appropriate open source
       license and I have the right under that license to submit that
       work with modifications, whether created in whole or in part
       by me, under the same open source license (unless I am
       permitted to submit under a different license), as indicated
       in the file; or

   (c) The contribution was provided directly to me by some other
       person who certified (a), (b) or (c) and I have not modified
       it.

   (d) I understand and agree that this project and the contribution
       are public and that a record of the contribution (including all
       personal information I submit with it, including my sign-off) is
       maintained indefinitely and may be redistributed consistent with
       this project or the open source license(s) involved.

When I try to select a aws batch runtime with 4 CPUs and 30GB memory (fargate container), I get this exception:

2026-01-21 13:10:46,494 [INFO] config.py:139 -- Lithops v3.6.3.dev0 - Python3.10
Traceback (most recent call last):
  File "/home/manri-urv/urv/serverlens/microbench/run_experiments.py", line 66, in <module>
    full_experiments()
  File "/home/manri-urv/urv/serverlens/microbench/run_experiments.py", line 62, in full_experiments
    benchmark(backend, cpu, size_overhead, memory)
  File "/home/manri-urv/urv/serverlens/microbench/cli.py", line 45, in benchmark
    fexec = lithops.FunctionExecutor(backend=backend, **kwargs)
  File "/home/manri-urv/urv/serverlens/.venv/lib/python3.10/site-packages/lithops/executors.py", line 107, in __init__
    self.config = default_config(config_file=config_file, config_data=config, config_overwrite=config_ow)
  File "/home/manri-urv/urv/serverlens/.venv/lib/python3.10/site-packages/lithops/config.py", line 181, in default_config
    cb_config.load_config(config_data)
  File "/home/manri-urv/urv/serverlens/.venv/lib/python3.10/site-packages/lithops/serverless/backends/aws_batch/config.py", line 123, in load_config
    raise Exception(
Exception: '30720' runtime memory is not valid for 4 vCPU and the FARGATE environment (for 4vCPU choose one of 8192, 9216, 10240, 11264, 12288, 13312, 14336, 15360, 16384, 17408, 18432, 19456, 20480, 21504, 22528, 23552, 24576, 25600, 26624, 27648, 28672)

This PR fixes this problem, increasing the options for 4 CPUs in fargate until 30GB (included)

@JosepSampe
Copy link
Member

Thanks!

@JosepSampe JosepSampe merged commit a02b537 into lithops-cloud:master Jan 21, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants