You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`function_process`| Yes | The process to invoke for each function call function process (alias - fprocess). This must be a UNIX binary and accept input via STDIN and output via STDOUT. |
20
-
|`read_timeout`| Yes | HTTP timeout for reading the payload from the client caller (in seconds) |
21
-
|`write_timeout`| Yes | HTTP timeout for writing a response body from your function (in seconds) |
22
-
|`hard_timeout`| Yes | Hard timeout for process exec'd for each incoming request (in seconds). Disabled if set to 0. |
23
-
|`port`| Yes | Specify an alternative TCP port fo testing |
24
-
|`write_debug`| No | Write all output, error messages, and additional information to the logs. Default is false. |
25
-
|`content_type`| No | Force a specific Content-Type response for all responses. |
26
-
|`suppress_lock`| No | The watchdog will attempt to write a lockfile to /tmp/ for swarm healthchecks - set this to true to disable behaviour. |
27
-
28
-
> Note: the .lock file is implemented for health-checking, but cannot be disabled yet.
29
-
30
13
## Watchdog modes:
31
14
32
-
The original watchdog supported mode 3 Serializing fork and has support for mode 2 Afterburn in an open PR.
15
+
History/context: the original watchdog supported mode the Serializing fork mode only and Afterburn was available for testing via a pull request.
33
16
34
-
When complete this work will support all three modes and additional stretch goal of:
17
+
When the of-watchdog is complete this version will support four modes as listed below. We may consolidate or remove some of these modes before going to 1.0 so please consider modes 2-4 experimental.
35
18
36
-
* Handling of multi-part forms
37
-
38
-
### 1. Streaming fork (implemented) - default.
19
+
### 1. Streaming fork (mode=streaming) - default.
39
20
40
21
Forks a process per request and can deal with more data than is available memory capacity - i.e. 512mb VM can process multiple GB of video.
41
22
@@ -47,7 +28,7 @@ HTTP headers cannot be sent after function starts executing due to input/output
47
28
48
29
* Hard timeout: supported.
49
30
50
-
### 2. Afterburn (implemented)
31
+
### 2. Afterburn (mode=afterburn)
51
32
52
33
Uses a single process for all requests, if that request dies the container dies.
|`function_process`| Yes | The process to invoke for each function call function process (alias - fprocess). This must be a UNIX binary and accept input via STDIN and output via STDOUT. |
110
+
|`read_timeout`| Yes | HTTP timeout for reading the payload from the client caller (in seconds) |
111
+
|`write_timeout`| Yes | HTTP timeout for writing a response body from your function (in seconds) |
112
+
|`hard_timeout`| Yes | Hard timeout for process exec'd for each incoming request (in seconds). Disabled if set to 0. |
113
+
|`port`| Yes | Specify an alternative TCP port fo testing |
114
+
|`write_debug`| No | Write all output, error messages, and additional information to the logs. Default is false. |
115
+
|`content_type`| Yes | Force a specific Content-Type response for all responses - only in forking/serializing modes. |
116
+
|`suppress_lock`| No | The watchdog will attempt to write a lockfile to /tmp/ for swarm healthchecks - set this to true to disable behaviour. |
117
+
|`upstream_url`| Yes |`http` mode only - where to forward requests i.e. 127.0.0.1:5000 |
118
+
119
+
> Note: the .lock file is implemented for health-checking, but cannot be disabled yet. You must create this file in /tmp/.
0 commit comments