alexcasalboni / aws-lambda-power-tuning

AWS Lambda Power Tuning is an open-source tool that can help you visualize and fine-tune the memory/power configuration of Lambda functions. It runs in your own AWS account - powered by AWS Step Functions - and it supports three optimization strategies: cost, speed, and balanced.
Apache License 2.0
5.29k stars 363 forks source link

QUESTION: Is there similar tool for Cloud Functions? #160

Closed jfbaro closed 2 years ago

jfbaro commented 2 years ago

Congrats on the great work. I have used this for AWS Lambda, but now I am working for a new organization and they are on GCP. Any help would be appreciated. Thanks

alexcasalboni commented 2 years ago

Hi @jfbaro 👋 thanks for using Lambda Power Tuning 🙏

I'm not too familiar with GCP personally, but I'd guess it should be possible to build something similar with Google Cloud Workflows and Google Cloud Functions. Or even with a simple local script invoking the Cloud Functions APIs.

In order to work, the Cloud Functions APIs need the ability to:

If these conditions are met, and if you narrow down the tuning features/integrations (e.g. no need to integrate S3 or pre/post hooks), you should be able to reuse some of the tuning business logic by reimplementing some of the lambda/utils.js utility functions (where the largest majority of AWS API calls are implemented).

jfbaro commented 2 years ago

Thanks for the reply. I'll investigate this and get back here once I have an answer! Glad that the solution seems to be portable.

alexcasalboni commented 2 years ago

Closing this for now.

Please feel free to reopen if you want to continue the conversation and/or share your results :)