- Jan 11, 2023
-
-
Alex Ellis (OpenFaaS Ltd) authored
There is no need for OpenFaaS CE to have external auth plugins since this added extra overhead and was never used. OpenFaaS Pro retains the option so it can use the OIDC auth plugin. It's still possible, as it ever was to put a proxy in front of any HTTP server like the gateway. Tested with a local KinD cluster, auth still worked for the API and UI. Signed-off-by:
Alex Ellis (OpenFaaS Ltd) <alex@openfaas.com>
-
Alex Ellis (OpenFaaS Ltd) authored
This change removes the direct functions option which was used originally for Docker Swarm. The Community Edition will rely on the faas provider - faas-netes / faasd for load-balancing of requests. Direct Functions is required in order to delegate load-balancing to Istio, Linkerd or some other kind of service mesh. Tested by deploying a modified gateway image to a KinD cluster, deploying the env function, and scaling to two replicas. This balanced the load between the two pods by printing out the names and then I ran a test with hey which returned 200s for all the requests. The prober which was part of the Istio support is no longer required in the CE gateway so is removed for simplicity. Signed-off-by:
Alex Ellis (OpenFaaS Ltd) <alex@openfaas.com>
-
- Dec 14, 2022
-
-
流雨声 authored
ioutil.ReadAll will delete in future Signed-off-by:
流雨声 <212724256@qq.com>
-
Alex Ellis (OpenFaaS Ltd) authored
Signed-off-by:
Alex Ellis (OpenFaaS Ltd) <alex@openfaas.com>
-
Alex Ellis (OpenFaaS Ltd) authored
Signed-off-by:
Alex Ellis (OpenFaaS Ltd) <alex@openfaas.com>
-
Alex Ellis (OpenFaaS Ltd) authored
NATS Streaming is deprecated and will have no support from early 2023 by Synadia. Upgrade to OpenFaaS Pro as soon as possible. Signed-off-by:
Alex Ellis (OpenFaaS Ltd) <alex@openfaas.com>
-
- Oct 24, 2022
-
-
Lucas Roesler authored
Return the original upstream response body when the the list request returns an error. In general, the provider is returning useful and actionable error messages for the user, the previous code hid this in the logs and this is easy for user to overlook. Additionally, remove an early return from error case after fetching metrics. This looked like a bug and could result in empty api responses if there was a prometheus error. Signed-off-by:
Lucas Roesler <roesler.lucas@gmail.com>
-
- Sep 29, 2022
-
-
Alex Ellis (OpenFaaS Ltd) authored
We now have two write interceptors, with one moved into faas-provider. This commit makes the gateway use the new external package and deletes its own. Signed-off-by:
Alex Ellis (OpenFaaS Ltd) <alex@openfaas.com>
-
- Sep 21, 2022
-
-
Alex Ellis (OpenFaaS Ltd) authored
Signed-off-by:
Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
-
Alex Ellis (OpenFaaS Ltd) authored
Related to: #1022 Signed-off-by:
Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
-
- Sep 08, 2022
-
-
Alex Ellis (OpenFaaS Ltd) authored
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>
-
- Aug 30, 2022
-
-
Alex Ellis (OpenFaaS Ltd) authored
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>
-
Alex Ellis (OpenFaaS Ltd) authored
* 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>
-
- Aug 24, 2022
-
-
Alex Ellis (OpenFaaS Ltd) authored
Signed-off-by:
Alex Ellis (OpenFaaS Ltd) <alex@openfaas.com>
-
- Aug 05, 2022
-
-
Alex Ellis (OpenFaaS Ltd) authored
Signed-off-by:
Alex Ellis (OpenFaaS Ltd) <alex@openfaas.com>
-
- Jul 07, 2022
-
-
Alex Ellis (OpenFaaS Ltd) authored
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>
-
- Jun 29, 2022
-
-
Alex Ellis (OpenFaaS Ltd) authored
Uses the sync package from the unofficial Go library instead of simpler solution. Signed-off-by:
Alex Ellis (OpenFaaS Ltd) <alex@openfaas.com>
-
Alex Ellis (OpenFaaS Ltd) authored
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>
-
Alex Ellis (OpenFaaS Ltd) authored
Signed-off-by:
Alex Ellis (OpenFaaS Ltd) <alex@openfaas.com>
-
- Jun 01, 2022
-
-
Alex Ellis (OpenFaaS Ltd) authored
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>
-
- May 26, 2022
-
-
Alex Ellis (OpenFaaS Ltd) authored
Signed-off-by:
Alex Ellis (OpenFaaS Ltd) <alex@openfaas.com>
-
- May 06, 2022
-
-
Alex Ellis (OpenFaaS Ltd) authored
Signed-off-by:
Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
-
Alex Ellis (OpenFaaS Ltd) authored
Signed-off-by:
Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
-
Hilário Coelho authored
update docker/distribution lib Signed-off-by:
Hilário Coelho <hilario.coelho@securityside.com>
-
- Mar 25, 2022
-
-
Alex Ellis (OpenFaaS Ltd) authored
Signed-off-by:
Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
-
- Feb 21, 2022
-
-
Alex Ellis (OpenFaaS Ltd) authored
Upgrades OS for some base images, no expected issues. Signed-off-by:
Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
-
- Jan 24, 2022
-
-
Alex Ellis (OpenFaaS Ltd) authored
The defer close statement was causing issues in CI Signed-off-by:
Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
-
Alex Ellis (OpenFaaS Ltd) authored
Signed-off-by:
Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
-
Alex Ellis (OpenFaaS Ltd) authored
Signed-off-by:
Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
-
Alex Ellis (OpenFaaS Ltd) authored
* Add service target metric * Add service min replicas metric * Add scale type metric These combined allow new auto-scaling modes and parameters for OpenFaaS Pro customers. Signed-off-by:
Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
-
- Oct 22, 2021
-
-
Alex Ellis (OpenFaaS Ltd) authored
Signed-off-by:
Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
-
- Jul 27, 2021
-
-
Alex Ellis (OpenFaaS Ltd) authored
3.13 has vulnerabilities Signed-off-by:
Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
-
- Jul 26, 2021
-
-
Alex Ellis (OpenFaaS Ltd) authored
Signed-off-by:
Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
-
Alex Ellis (OpenFaaS Ltd) authored
The queue type now resides in the provider, so that there is no risk of a circular reference. Signed-off-by:
Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
-
Alex Ellis (OpenFaaS Ltd) authored
For compatibility with newer NATS streaming version https://github.com/openfaas/faas-netes/pull/819 Signed-off-by:
Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
-
- Mar 11, 2021
-
-
Alex Ellis (OpenFaaS Ltd) authored
Includes CreatedAt Signed-off-by:
Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
-
- Feb 27, 2021
-
-
Alex Ellis (OpenFaaS Ltd) authored
This is currently being hidden and needs to be bubbled up into the logs to show an issue with calling list functions during a deletion in faasd. Signed-off-by:
Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
-
Lucas Roesler authored
**What** - Add unit test that verifies the behavior of the logging middleware in various reponse cases Signed-off-by:
Lucas Roesler <roesler.lucas@gmail.com>
-
- Feb 26, 2021
-
-
Alex Ellis (OpenFaaS Ltd) authored
Reduce cache expiry to help support issues where a function may be scaled down by a user, when it is still in use. The 5s cache meant that all requests would fail until the expiry. The 250ms setting is a 20x reduction. Signed-off-by:
Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
-
Alex Ellis (OpenFaaS Ltd) authored
Signed-off-by:
Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
-