FAQ
Invoking a cloud function takes a long time
To analyze where the time is spent, troubleshoot using cloud function logs. If the logs contain entries like Coldstart: xxxms, this indicates the cold start time of the cloud function. To reduce this time, refer to Pre-concurrency.
Adjusting cloud function memory configuration does not take effect
Cloud function configuration takes effect for the $LATEST version. If the request is not for the $LATEST version, the configuration changes will not take effect.
Solution:
- Ensure the request is for the
$LATESTversion - Or publish a new version based on the
$LATESTversion. The new version will use the current snapshot, including code and configurations (timeout settings, environment variables, memory configuration, etc.)