http-add-on

module
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 25, 2022 License: Apache-2.0

README

Kubernetes-based Event Driven Autoscaling - HTTP Add-On

The KEDA HTTP Add On allows Kubernetes users to automatically scale their HTTP servers up and down (including to/from zero) based on incoming HTTP traffic. Please see our use cases document to learn more about how and why you would use this project.

🚧 Project status: beta 🚧
⚠ The HTTP add-on currently is in beta. We can't yet recommend it for production usage because we are still developing and testing it. It may have "rough edges" including missing documentation, bugs and other issues. It is currently provided as-is without support.

HTTP Autoscaling Made Simple

KEDA provides a reliable and well tested solution to scaling your workloads based on external events. The project supports a wide variety of scalers - sources of these events, in other words. These scalers are systems that produce precisely measurable events via an API.

KEDA does not, however, include an HTTP-based scaler out of the box for several reasons:

  • The concept of an HTTP "event" is not well defined.
  • There's no out-of-the-box single system that can provide an API to measure the current number of incoming HTTP events or requests.
  • The infrastructure required to achieve these measurements is more complex and, in some cases, needs to be integrated into the HTTP routing system in the cluster (e.g. the ingress controller).

For these reasons, the KEDA core project has purposely not built generic HTTP-based scaling into the core.

This project, often called KEDA-HTTP, exists to provide that scaling. It is composed of simple, isolated components and includes an opinionated way to put them together.

Walkthrough

Although this is currently a beta release project, we have prepared a walkthrough document that with instructions on getting started for basic usage.

See that document at docs/walkthrough.md

Design

The HTTP add-on is composed of multiple mostly independent components. This design was chosen to allow for highly customizable installations while allowing us to ship reasonable defaults.

  • We have written a complete design document. Please see it at docs/design.md.
  • For more context on the design, please see our scope document.
  • If you have further questions about the project, please see our FAQ document.

Installation

Please see the complete installation instructions.

Contributing

This project follows the KEDA contributing guidelines, which are outlined in CONTRIBUTING.md.

If you would like to contribute code to this project, please see docs/developing.md.


We are a Cloud Native Computing Foundation (CNCF) incubation project.

Code of Conduct

Please refer to the organization-wide Code of Conduct document.

Directories

Path Synopsis
api/v1alpha1
Package v1alpha1 contains API Schema definitions for the http v1alpha1 API group +kubebuilder:object:generate=true +groupName=http.keda.sh
Package v1alpha1 contains API Schema definitions for the http v1alpha1 API group +kubebuilder:object:generate=true +groupName=http.keda.sh
pkg
env
k8s
log
net
test
Package test contains helper and utility functions for use primarily in tests.
Package test contains helper and utility functions for use primarily in tests.
Handlers contains the gRPC implementation for an external scaler as defined by the KEDA documentation at https://keda.sh/docs/2.0/concepts/external-scalers/#built-in-scalers-interface This is the interface KEDA will poll in order to get the request queue size and scale user apps properly The HTTP Scaler is the standard implementation for a KEDA external scaler which can be found at https://keda.sh/docs/2.0/concepts/external-scalers/ This scaler has the implementation of an HTTP request counter and informs KEDA of the current request number for the queue in order to scale the app This file contains the implementation for the HTTP request queue used by the KEDA external scaler implementation
Handlers contains the gRPC implementation for an external scaler as defined by the KEDA documentation at https://keda.sh/docs/2.0/concepts/external-scalers/#built-in-scalers-interface This is the interface KEDA will poll in order to get the request queue size and scale user apps properly The HTTP Scaler is the standard implementation for a KEDA external scaler which can be found at https://keda.sh/docs/2.0/concepts/external-scalers/ This scaler has the implementation of an HTTP request counter and informs KEDA of the current request number for the queue in order to scale the app This file contains the implementation for the HTTP request queue used by the KEDA external scaler implementation

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL