Skip to content

Configure keepalive params

Mikołaj Wawrzyniak requested to merge mwaw/configure_keepalive into main

Description

Loadbalancers present on cloud runs might kill idle connections, which is one of possible reasons Duo Executor observes following error

2024-12-05T14:00:43.662Z	ERROR	duo_workflow_executor/main.go:129	Failed to run	{"workflow_id": "1001809", "error": "error receiving event: rpc error: code = Internal desc = stream terminated by RST_STREAM with error code: INTERNAL_ERROR"} 

Executor counter part: duo-workflow-executor!69 (merged)

Keepalive docs

About config

Values of keepalive tried to strike balance between

docs guidelines of:

Warning

To avoid DDoSing, it’s important to take caution when setting the keepalive configurations. Thus, it is recommended to avoid enabling keepalive without calls and for clients to avoid configuring their keepalive much below one minute.

and the fact that time between last message sent over gRCP channel and error being raised was around 2 seconds

Screenshot_2024-12-06_at_15.37.31

Edited by Mikołaj Wawrzyniak

Merge request reports

Loading