2125 Commits

Author SHA1 Message Date
Alex Ellis (OpenFaaS Ltd)
bc2eeff467 Improve errors when backend doesn't return JSON
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
2022-09-21 09:09:48 +01:00
Alex Ellis (OpenFaaS Ltd)
887c804254 Improve error message when unable to list functions
Related to: #1022

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
2022-09-21 08:53:04 +01:00
Alex Ellis
9da2ec244f
Update ISSUE_TEMPLATE.md
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2022-09-13 09:02:04 +01:00
Alex Ellis (OpenFaaS Ltd)
8e711b3a0c Use Desired Replicas when scaling from zero
During some exploratory testing, I ran into an issue where
the gateway would attempt to scale a deployment from zero
replicas to min, despite there already being min replicas.

Why?

The scaling logic was looking for Available replicas when
it should have looked for Desired replicas. So when a
deployment had zero ready replicas due to readiness checks
failing, the gateway was attempting to scale from zero
to min.

This logic has been corrected and separated from the
a holding pattern where the gateway waits for a ready
replica.

Tested with KinD and an edited function which had a
readiness probe, which was failing and no ready
replicas. As desired, the gateway did not scale to min.

However, when setting desired replicas to zero, the
gateway did scale up as expected.

This change also modifies all print statements for
"seconds" and makes them use 4 decimal places instead of
the default which was a longer, more verbose string for
the logs.

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
2022-09-08 11:21:29 +01:00
Alex Ellis (OpenFaaS Ltd)
4604271076 Introduce welcome message and change default timeout
The welcome message shows the difference between
Pro and CE.

The timeout of 8 seconds was never going to be useful as
a default, so changing to 60 seconds.

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alex@openfaas.com>
2022-08-30 14:02:44 +01:00
Alex Ellis (OpenFaaS Ltd)
9fccc67b9c Remove OpenFaaS Pro metrics from OpenFaaS CE
* Removes service min and target metrics from the CE gateway

OpenFaaS Pro metrics are no longer required in OpenFaaS CE
since there is an OpenFaaS Pro gateway available.

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alex@openfaas.com>
2022-08-30 11:30:58 +01:00
Alex Ellis (OpenFaaS Ltd)
dc2a7a0c6e Update alpine version for basic-auth-plugin
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alex@openfaas.com>
2022-08-24 18:31:14 +01:00
Alex Ellis (OpenFaaS Ltd)
ce5ea178ec Upgrade x/sync, Prometheus client and faas-provider
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alex@openfaas.com>
2022-08-24 18:12:23 +01:00
Alex Ellis (OpenFaaS Ltd)
20b62e3cc9 Remove deprecated files
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alex@openfaas.com>
2022-08-24 18:09:02 +01:00
Alex Ellis
2e8ec683eb
Update README.md
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2022-08-24 11:46:39 +01:00
Alex Ellis
774c7bb133
Update README.md
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2022-08-24 11:45:07 +01:00
Alex Ellis (OpenFaaS Ltd)
40bb3581b7 Remove sample-functions in favour of newer examples
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alex@openfaas.com>
2022-08-24 11:44:05 +01:00
Alex Ellis (OpenFaaS Ltd)
1ee7db994c Remove deprecated stack files
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alex@openfaas.com>
2022-08-24 11:35:37 +01:00
Derek Colley
2cdc7f3083 Update ADOPTERS.md
Signed-off-by: Derek Colley <derek@colley.cc>
2022-08-11 12:22:34 +01:00
Alex Ellis (OpenFaaS Ltd)
b87b96ae45 Migrate to Go 1.18 and update dependencies
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alex@openfaas.com>
2022-08-05 09:03:31 +01:00
Alex Ellis (OpenFaaS Ltd)
2e14a34243 Update example for golang-http
Fixes: #1741

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
2022-07-13 14:32:33 +01:00
Alex Ellis (OpenFaaS Ltd)
88eea5f62e Feature for probing functions
Introduces a single-flight call to a function's health
endpoint to verify that it is registered with an Istio
sidecar (Envoy) before letting the invocation through.

Results are cached for 5 seconds, before a probe is
required again.

Tested without Istio, with probe_functions environment
variable set to true, I saw a probe execute in the logs.

Fixes: #1721 for Istio users.

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alex@openfaas.com>
2022-07-07 10:35:07 +01:00
Alex Ellis (OpenFaaS Ltd)
01841f605c Use sync package from unofficial Go library
Uses the sync package from the unofficial Go library instead
of simpler solution.

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alex@openfaas.com>
2022-06-29 09:43:58 +01:00
Alex Ellis (OpenFaaS Ltd)
6ed0ab71fb Move to single-flight for back-end queries
When querying for replicas during a scale up event, then the
gateway can overwhelm the provider with requests. This is
especially true under high concurrent load.

The changes in this PR limit the inflight requests.

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alex@openfaas.com>
2022-06-29 09:43:58 +01:00
Alex Ellis (OpenFaaS Ltd)
8f8a93d43f Add Makefile for testing gateway builds
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alex@openfaas.com>
2022-06-29 09:43:58 +01:00
Alex Ellis (OpenFaaS Ltd)
08279fb79b Update a couple of adopters as disclosed outside of NDA
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
2022-06-06 14:50:40 +01:00
Andreas Mosti
df3d59c918 Removed newline and corrected markdown-table for Interviews and podcasts
👋 
There was an extra newline character after the first entry in the `Interviews and podcasts` sections breaking the markdown preview. Corrected it.

Signed-off-by: Andreas Mosti <andreas.mosti@gmail.com>
2022-06-04 08:37:20 +01:00
Han Verstraete (OpenFaaS Ltd)
d1022c410a Add blog post on event-driven edge
Signed-off-by: Han Verstraete (OpenFaaS Ltd) <han@openfaas.com>
2022-06-04 08:34:21 +01:00
Han Verstraete (OpenFaaS Ltd)
5b77ad4af0 Add blog post on running faasd on azure arm vm
Signed-off-by: Han Verstraete (OpenFaaS Ltd) <han@openfaas.com>
2022-06-02 08:56:07 +01:00
Alex Ellis (OpenFaaS Ltd)
cc2f38938e Add HTTP status code to histogram
The histogram for gateway_functions_seconds excluded the status
code that gives important information for setting up SLOs.

Fixes: #1725

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alex@openfaas.com>
2022-06-01 10:14:18 +01:00
Han Verstraete (OpenFaaS Ltd)
96cfdee085 Add blog post on wasm functions using Sat
Signed-off-by: Han Verstraete (OpenFaaS Ltd) <han@openfaas.com>
2022-05-30 16:56:52 +01:00
Alex Ellis (OpenFaaS Ltd)
2fad85681d Update events for 2021 and 2022
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alex@openfaas.com>
2022-05-26 15:10:37 +01:00
Alex Ellis (OpenFaaS Ltd)
e778a3a6de Move to Alpine 3.16 and add blog posts
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alex@openfaas.com>
2022-05-26 15:03:48 +01:00
Alex Ellis (OpenFaaS Ltd)
3544fff1d2 Update some details learned at KubeCon
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
2022-05-20 15:14:38 +01:00
Han Verstraete
4e868f5f9d Add welteki for Derek curation
Signed-off-by: Han Verstraete <welteki@pm.me>
2022-05-09 10:18:30 +01:00
Alex Ellis (OpenFaaS Ltd)
0d7ace76b6 Pin Alpine Linux patch version
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
2022-05-06 17:43:02 +01:00
Alex Ellis (OpenFaaS Ltd)
b097c87b80 Update whitespace in Dockerfile
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
2022-05-06 17:42:10 +01:00
Alex Ellis (OpenFaaS Ltd)
4783845bc2 Update Go module for basic-auth and remove Gopkg file
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
2022-05-06 17:40:59 +01:00
Hilário Coelho
a530b9dd63 update prometheus client golang
update docker/distribution lib

Signed-off-by: Hilário Coelho <hilario.coelho@securityside.com>
2022-05-06 17:40:00 +01:00
Simon Emms
8065a4baa2 Add my blog post
Signed-off-by: Simon Emms <simon@simonemms.com>
2022-05-03 16:45:00 +01:00
Alex Ellis (OpenFaaS Ltd)
e5dc98c917 Add ADOPTER
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
2022-04-19 10:06:09 +01:00
Alex Ellis
c32d94f1ca
Update .DEREK.yml 2022-04-14 07:37:26 +01:00
Alex Ellis
05b25f22ae
Update ISSUE_TEMPLATE.md 2022-04-12 17:23:22 +01:00
Alex Ellis
ba9302070b
Update ISSUE_TEMPLATE.md 2022-04-12 17:22:58 +01:00
Alex Ellis
74b0261a28
Update .DEREK.yml 2022-04-12 17:22:32 +01:00
Alex Ellis
fe0ba7be23
Update stack diagram to remove OpenFaaS Cloud 2022-04-12 11:12:41 +01:00
Alex Ellis (OpenFaaS Ltd)
4602fa7c97 Fix typo in error message
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
2022-03-25 10:16:03 +00:00
Alex Ellis (OpenFaaS Ltd)
c2381102d0 Update CI runtime version for basic-auth build
Changes from Go 1.13 to 1.17, although this is not used
since Docker is used at build time.

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
2022-02-22 18:45:22 +00:00
Alex Ellis (OpenFaaS Ltd)
5a1c9d925c Rename nodejs-npm to npm in sample packages
The legacy samples should not be used for anything at this
point, however this change is needed for the new alpine:3.15
base image.

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
2022-02-21 10:32:19 +00:00
Alex Ellis (OpenFaaS Ltd)
b4293967d2 Upgrade to alpine:3.15 where possible
Upgrades OS for some base images, no expected issues.

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
2022-02-21 10:30:22 +00:00
Alex Ellis (OpenFaaS Ltd)
e29d96a172 Update dashboard image
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
2022-02-21 10:26:20 +00:00
Alex Ellis
ca2575afc5
Update casing of Pro
* Updates OpenFaaS PRO to Pro
2022-02-08 09:51:36 +00:00
Alex Ellis (OpenFaaS Ltd)
85ffec17b9 Add some more blog posts
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
2022-02-01 21:08:25 +00:00
Ivan Velichko
012fc386cc Add blog post on OpenFaaS from iximiuz.com
Signed-off-by: Ivan Velichko <iximiuz@gmail.com>
2022-02-01 21:03:33 +00:00
Alex Ellis (OpenFaaS Ltd)
e1016c185d Update image for Serverless For Everyone Else
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
2022-01-25 16:03:50 +00:00