Skip to content

Commit 0f4a693

Browse files
committed
Updated container idling docs
1 parent 391b531 commit 0f4a693

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

content/docs/Container/Config.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ container.health_timeout_secs = 5
1717
# Idle Shutdown Config
1818
container.idle_shutdown_secs = 180
1919
container.idle_shutdown_dev_apps = false
20+
container.idle_bytes_high_watermark = 1500 # bytes high watermark for idle shutdown
21+
# (1500 bytes sent and recv over 180 seconds)
2022

2123
# Status check Config
2224
container.status_check_interval_secs = 5
@@ -27,7 +29,7 @@ A health check is done on the container after container is started. If the healt
2729

2830
In the running state, a status check is done on the app every five seconds. If three of those checks fail, then the container is assumed to be down.
2931

30-
If an app does not receive any API request for 180 seconds, the app is assumed to be idle and the container is stopped. The idle shutdown does not apply for dev apps, only for prod mode apps.
32+
If an app does not receive any REST API request for 180 seconds and the total data transfer from/to to the app is below 1500 bytes over 180 seconds, the app is assumed to be idle and the container is stopped. The idle shutdown does not apply for dev apps, only for prod mode apps. For frameworks like Streamlit where Websockets is used for communication between the UI and app, there will not be an REST API calls. The data transfer is used to determine whether the app is idle.
3133

3234
## Changing Config
3335

0 commit comments

Comments
 (0)