Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Unable to increase the memory of gen2 functions beyond 512mb #80

Open
tgerulaitis opened this issue Mar 19, 2025 · 0 comments
Open

Unable to increase the memory of gen2 functions beyond 512mb #80

tgerulaitis opened this issue Mar 19, 2025 · 0 comments

Comments

@tgerulaitis
Copy link
Contributor

Steps to replicate:

  1. Configure a GCP function with version set to gen2 and memory set to a value greater than 512.
  2. Build and deploy the function to GCP.

Expected outcome:

The function is deployed successfully and is allocated the correct amount of memory.

Actual outcome:

Deployment fails with the following error:

Invalid value specified for container memory. For 0.333 CPU, memory must be between 128Mi and 512Mi inclusive.

Notes:

It would be nice to automatically select the appropriate minimal value of CPU for the amount of memory the user has specified, but also add a cpu runtime config parameter to allow overriding that value. This way the solution would remain backwards compatible.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant