23 Commits

Author SHA1 Message Date
Alex Ellis
a03196342d Push multi-arch image for watchdog
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2019-05-26 19:51:06 +01:00
Richard Gee
9eafa0bfd7 Create one watchdog image per arch
Signed-off-by: Richard Gee <richard@technologee.co.uk>
2019-04-25 14:01:32 +01:00
Richard Gee
5e2112af50 Bundle watchdog binaries into an image
Signed-off-by: Richard Gee <richard@technologee.co.uk>
2019-04-25 14:01:32 +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
Ivana Yovcheva (VMware)
099362b51d Move watchdog from functions/ to openfaas/ ns
This moves watchdog to a better name for images and also gives free
image-scanning and gives more confidence  to users  that components
ship regularly and makes any vulnerabilities  in  components  clear

Signed-off-by: Ivana Yovcheva (VMware) <iyovcheva@vmware.com>
2018-07-10 21:09:30 +01:00
Edward Wilde
aca2c7fe2a Enhance info endpoint to include gateway version
Extend the health endpoint and add gateway version information

Resolves: #733
Signed-off-by: Edward Wilde <ewilde@gmail.com>
2018-07-06 17:50:48 +01:00
Vivek Singh
c258637d6d Added -version flag to watchdog
This changes introduces a new flag -version to watchdog which will
display version and SHA of last git commit.

Version and SHA are injected at build time and passed as a
build-args for Dockerfile.

Fixes: #632

Signed-off-by: Vivek Singh <vivekkmr45@yahoo.in>
2018-04-14 17:19:53 -07: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
221ed7a292 Update for ARM builds
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2017-10-01 23:36:23 +02:00
Alex Ellis
b32a4e3509 Support arm64 for watchdog release
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2017-09-21 15:40:56 +01:00
Alex Ellis
f6c14a70ec Add gofmt to watchdog
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2017-09-13 08:32:37 -07:00
Alex Ellis
1a78ec9234 Make dockerfile multi-arch
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2017-09-02 20:12:10 +01:00
Alex
c0cc48b844 Move NodeInfo to 0.6.0 watchdog. Produce ARMHF binaries too 2017-08-08 09:23:55 +01:00
Alex
2618156414 Revert Prometheus version 2017-04-16 17:01:22 -05:00
Alex Ellis
469fc690da Fix issue in watchdog - not reading false config overrides. 2017-04-05 09:13:18 +01:00
Alex Ellis
04be17ce49 Add marshall_request to watchdog for passing header to functions 2017-03-31 20:40:25 +01:00
Alex Ellis
2700a15668 Update builder to use functions/ namespace 2017-03-13 14:55:57 +00:00
Alex Ellis
5c343be183 Initial work for ARMHF 2017-02-03 13:27:36 +00:00
Alex Ellis
eb0776e3a3 Update to support docker stack deploy 2017-01-09 13:24:42 +00:00
Alex
1bff66e583 Rename dockerfile 2017-01-03 23:59:21 +00:00
Alex
2520d9ec7c Move to sh 2017-01-03 23:55:52 +00:00
Alex Ellis
a3cb54ab87 Static binary 2016-12-22 13:28:30 +00:00
Alex Ellis
8fe7cb691d Initial 2016-12-22 13:08:32 +00:00