All contributions

fission/fission

Fission

A serverless functions framework for Kubernetes that runs code as functions and scales them down to zero when they are idle.

Language
Go
GitHub stars
8,950
Merged changes
1
Project site
fission.io

What we changed

After scaling a function up from zero, the executor waits until the Deployment controller has observed the new spec and the replica is available, so the router no longer gets a Service without endpoints and no longer returns a 500.

What this work shows

  • Kubernetes Deployments and controllers
  • Scale-from-zero race conditions
  • Error classification in Go with errors.Is
What was broken

The router returned 500 after scale from zero

After scaling a function up from zero, the executor judged readiness from the status written before the scale. That status could still count the pod the idle reaper was terminating, so the router got a Service with no endpoints and returned a 500.

How we fixed it

Waiting for a replica of the current generation

A new DeploymentAvailable check requires the controller to have observed the current spec (ObservedGeneration) and enough replicas to be available, and the newdeploy and container executors wait on it after every scale-up. A timeout on an existing deployment no longer tears it down, and tests cover a stale status and one that never catches up with the spec.

#3725

Merged change 1

  1. #3725 executor: wait for the replica after scaling a function in from zero Merged 10 November 2026

What it taught us

In Kubernetes a Deployment's status can still describe the previous generation, so readiness has to be checked through ObservedGeneration. A timeout must not tear down a deployment that is still serving traffic.

More about this technology: Golang

Other projects we write code for

Describe your project.

A free quote comes back within an hour during working hours.