44 Commits

Author SHA1 Message Date
Alex Ellis (OpenFaaS Ltd)
6a30ce1e36 Add transfer-encoding to watchdog env-vars if present
The Content-Type header must be ignored when the Transfer
Encoding is set to "chunked" because the length is unknown

Go sets this to -1 and we pass that onto the user:
https://golang.org/src/net/http/transfer.go

The value of Content_Length is currently set to -1 in this
scenario, however it caused some confusion for at least one
user in issue: #1422.

The Http_Transfer_Encoding value was tested by running the
watchdog on Linux with "env" as the fprocess and an extra
header to "curl"

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
2020-01-06 21:41:05 +00:00
Alex Ellis (OpenFaaS Ltd)
64f5508c36 Wording on health-check
Via feedback from @jonatasbaldin, thank you

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
2019-09-03 08:20:19 +01:00
Jonatas Baldin
f84b342ff1 Change health checks to healthchecks in watchdog README
Signed-off-by: Jonatas Baldin <jonatas.baldin@gmail.com>
2019-09-03 08:19:11 +01:00
Jonatas Baldin
4f3f008ba3 Fix some typos in the watchdog/README.md file
Signed-off-by: Jonatas Baldin <jonatas.baldin@gmail.com>
2019-09-03 08:19:11 +01:00
Sargun Dhillon
b019f6ca54 Add Concurrency Limiter
This enables limiting concurrency. It is a naive approach which
will reject requests as soon as they exceed the maximum number
of in-flight requests.

It is a port of the following PR from the new watchdog code:
https://github.com/openfaas-incubator/of-watchdog/pull/54

Signed-off-by: Sargun Dhillon <sargun@sargun.me>
Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
2019-06-16 15:23:20 +01:00
Ron Rivera
33800a20d8 Update watchdog to 0.9.14 for sample functions
We need to update the watchdog version for sample functions to 0.9.14
including all references in markdown files.

Signed-off-by: Ron Rivera <roncrivera@gmail.com>
2019-01-13 08:40:07 +00:00
Radoslav Dimitrov
204c0d7f9a Bump the watchdog version to 0.9.6
Signed-off-by: Radoslav Dimitrov <rdimitrow@gmail.com>
2018-10-19 08:45:05 +01:00
Alex Ellis
7db8ad1bda Update README files
- Removes use of "our" from CONTRIBUTING guide
- Updates/adds README.md files
- Commnents and typo fix in watchdog
- Adds good/bad examples of commit messages

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-10-03 14:07:41 +01:00
Martin Dekov (VMware)
4d73e21906 Bump watchdog to 0.9.4
Bumping the watchdog to 0.9.4 in
mentioned places

Signed-off-by: Martin Dekov (VMware) <mdekov@vmware.com>
2018-09-19 21:04:53 +01:00
Alex Ellis (VMware)
e67811c91c Alter graceful shutdown sequence
- the shutdown sequence meant that the kubelet was still passing
work to the watchdog after the HTTP socket was closed. This change
means that the kubelet has a chance to run its check before we
finally stop accepting new connections. It will require some
basic co-ordination between the kubelet's checking period and the
"write_timeout" value in the container.

Tested with Kubernetes on GKE - before the change some Pods were
giving a connection refused error due to them being not detected
as unhealthy. Now I receive 0% error rate even with 20 qps.

Issue was shown by scaling to 20 replicas, starting a test with
hey and then scaling to 1 replica while tailing the logs from the
gateway. Before I saw some 502, now I see just 200s.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-09-17 11:48:16 +01:00
Radoslav Dimitrov
c821585b39 Sample-functions: Get watchdog using curl instead of ADD - Docs
Convert all sample-functions to use curl to get the watchdog as
it can be cached by Docker. Issue #841

Signed-off-by: Radoslav Dimitrov <rdimitrow@gmail.com>
2018-09-06 15:03:10 +01:00
Alex Ellis (VMware)
9a879c96c3 Add note on health-checks for Kubernetes and Swarm
Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-08-21 14:57:28 +01:00
Alex Ellis (VMware)
95c738c47e Remove typo in heading: afterburn
Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-07-09 21:45:26 +01:00
Alex Ellis (VMware)
0149bf3aca Remove AfterBurn reference
Afterburn is deprecated in favour of of-watchdog. Removing link
to prevent confusion.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-07-09 21:43:59 +01:00
Ivana Yovcheva (VMware)
7f6295c9cf Update alpine version to 3.7
This updates alpine version to 3.7 in sample-functions, gateway
and some markdown docas.

Signed-off-by: Ivana Yovcheva (VMware) <iyovcheva@vmware.com>
2018-05-11 14:14:59 +01:00
Ivana Yovcheva (VMware)
975cf4be7c Update watchdog version to 0.8.0
This updates watchdog version to latest 0.8.0 in the functions
samples and documentation

Signed-off-by: Ivana Yovcheva (VMware) <iyovcheva@vmware.com>
2018-05-11 14:14:59 +01:00
Ivana Yovcheva (VMware)
f936dcd757 Update watchdog version to 0.7.9 in function templates and docs
This updates fwatchdog to latest version (0.7.9) in all templates
in sample-functions and faas version in the documentation

Signed-off-by: Ivana Yovcheva (VMware) <iyovcheva@vmware.com>
2018-04-12 22:36:26 -07:00
Alex Ellis (VMware)
3031d0e1c2 Feature: combine_output to control stdout/stderr
This enables an often-requested feature to separate stderr
from stdout within function responses. New flag combine_output is on
by default to match existing behaviour. When combine_output is set
to false it redirects stderr to the container logs rather than
combining it into the function response.

Tested with unit tests for default behaviour and new behaviour.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-03-17 20:59:47 +00:00
Alex Ellis
67bda365cd
Update for non-function based deployments
Fixes #551
2018-03-03 10:58:34 +00:00
John McCabe
19e7f4639e Complete bump to 0.7.1 watchdog and repo.
Also bumps golang builder version to 1.9.4 for sample functions.

Signed-off-by: John McCabe <john@johnmccabe.net>
2018-02-25 11:54:21 +00:00
Alex Ellis
44609aa189
Typo fix 2017-12-30 20:44:46 +00:00
Alex Ellis
877e9d2940
Update autoscaling documentation 2017-12-28 19:00:25 +00:00
Alex Ellis
7e7a298899
Update watchdog version 2017-12-28 18:52:14 +00:00
Alex Ellis
e04319e7ec
Correct typo marshal_requests should be marshal_request 2017-12-28 18:51:06 +00:00
Alex Ellis
59d46938fe Tooltips
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2017-11-22 19:32:32 +00:00
Alex Ellis
4c17ccf662 Mention Afterburn update
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2017-11-18 12:42:12 +00:00
Alex Ellis
8e4537ff73 Update README for Http_ContentLength
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2017-10-29 17:49:20 +00:00
Burton Rheutan
7fa03cb7a1 Updated watchdog readme with write_debug environment variable
Signed-off-by: Burton Rheutan <rheutan7@gmail.com>
2017-10-23 15:13:30 +01:00
John McCabe
89878f0c8a Migrate from alexellis org to openfaas
Note, not all `alexellis/github` references should be changed, there are
a number of repos which are not part of the openfaas org, this commit
excludes those.

Signed-off-by: John McCabe <john@johnmccabe.net>
2017-10-04 09:18:06 +01:00
Alex Ellis
7f8219ee13 Typo 2017-09-17 19:13:08 +01:00
Alex Ellis
44544d80ac Mention replacing watchdog 2017-09-04 10:12:51 +01:00
Alex Ellis
5f4c731df6 Update - to _ for env vars 2017-08-25 11:19:37 +01:00
Alex Ellis
fcdba0971c Clarify use of templating. 2017-08-19 19:08:13 +01:00
Alex Ellis
f239033aa5 Update intro 2017-08-07 09:44:30 +01:00
Alex Ellis
4d896b6030 Add overview image 2017-08-03 08:29:44 +01:00
Alex Ellis
4d05896798 Watchdog refurbishments
- Watchdog - allow new methods with and without body.
- Enforce hard-timeout via exec_timeout variable.
- Correct bug in timeouts for read/write of HTTP.
- Documentation for new verbs and hard timeout.

Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2017-07-07 08:49:11 +01:00
Alex Ellis
c7cd074a68 Document cgi_headers 2017-05-11 08:15:00 +01:00
Alex Ellis
f958e99bdc Allow override of contentType response from watchdog. (#46) 2017-04-10 22:18:37 +01:00
Alex Ellis
a803b677f6 Document response types and scaling behaviour 2017-04-08 10:03:16 +01:00
Alex Ellis
469fc690da Fix issue in watchdog - not reading false config overrides. 2017-04-05 09:13:18 +01:00
Alex Ellis
a476c50a99 Create README.md 2017-04-04 08:38:02 +01:00
Alex
bdfdd5ad45 Moving out the cat service as an example. 2017-01-03 23:31:55 +00:00
Alex Ellis
606a50e124 Update README.md 2016-12-22 13:29:19 +00:00
Alex Ellis
9323746e99 Readme 2016-12-22 13:29:00 +00:00