Component health status for pinned lambda functions running in Greengrass v2

0

I'm exploring possibilities for implementing a health monitoring mechanism for a long running (pinned) lambda function running on Greengrass v2 based on EventBridge as documented

Assuming the deployment of the lambda component has been successful and the failure (e.g. the Java application terminating with a non zero exit code) occurs after an extended period of time, will I get any notifications about the lambda crashing?

After inspecting the detailed component status codes it's still unclear to me.

已提问 4 个月前227 查看次数
1 回答
1
已接受的回答

Hello,

Lambda components are different, there is no component status code for lambda. The lambda components have a health check ping, (1 min by default). If lambda manager does not receive that ping, then it transition lambda to ERRORED state, and Greengrass will send notifications if you set up the event bridge and monitor the component status change. Greengrass will retry the component 3 times within 1 hour. If it continues to fail, it will be marked as broken and you will receive an event for the broken component.

AWS
yitingb
已回答 4 个月前
  • Thank you for the answer. Is there a way to control the ping mechanism, number and intervals for retry, etc? Can you please link the documentation?

  • Yes, to control the ping mechanism, please refer to Status timeout for console and statusTimeoutInSeconds for cli step 1.6.c. We recommend to set the status timeout greater than 10s.

    You can't customize retry number and intervals. For other Greengrass device configuration, please refer to this document, for recipe reference, please refer to this document

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则