Closed senalw closed 1 year ago
As discussed over Slack, this behavior is by-design. Can be sidestepped via setting H2O_WAVE_KEEP_APP_LIVE
that prevents the app from being dropped in case of failure.
Keep in mind that the Wave team's suggestion is to make sure the app is running all the time, avoiding resource starvation by following proper deployment strategies.
Wave SDK Version, OS
Wave SDK: 0.25.3 , OS: MacOs/ Ubuntu
Actual behavior
Wave daemon drops Wave apps when there is a http request failure between Waved and apps without even retrying it for a configurable time. This request failure could occur when there's a resource starvation for a small amount of time period. Therefore, dropping app is not acceptable here.
More info: https://h2oai.slack.com/archives/C0561218TBM/p1685689177638099
Expected behavior
Wave daemon should have a request-retry mechanism with user configurable time period. By default this retry-mechanism is turned off and we can enable it by setting env variable.
Steps To Reproduce
iptables -A INPUT -p tcp --dport 8000 -j REJECT --reject-with tcp-reset
connection reset by peer
orconnection refused
error with the current behaviour.