Skip to content

FairFeather

FairFeather is the jobs server for the estate. It delivers Bubbl’s outbox to Redfly, runs Cassandra repair and encrypted nightly snapshots for every service, and purges expired telemetry, all over Pulsar.

FairFeather logo

What FairFeather is

The background jobs server, with Pulsar as its only broker, owning outbox delivery, Cassandra maintenance and the telemetry retention purge.

How it benefits you

Data reaches the master database reliably, backups happen every night, and failed work is retried and kept for review rather than lost.

How it works

Jobs arrive on per-type Pulsar topics, are retried with exponential backoff up to 10 times, then move to a dead-letter topic. Schedules run only on the SunLink leader.

Outbox delivery to Redfly

FairFeather carries Bubbl’s redfly_outbox entries to Redfly’s master database, idempotently.

  • A tenant’s entries stay in order: outbox jobs are keyed by <service>:<tenant>.
  • Redfly records each (tenant_id, outbox_id) so an entry is never applied twice.
  • A sweeper on Bubbl’s leader republishes entries still pending after 5 minutes.

Cassandra repair

Scheduled incremental repair for Bubbl, Caulight, Redfly, DarkCrow and FairFeather itself, nightly at 01:17 Pacific, staggered across services.

Encrypted nightly snapshots

Nightly at 02:17, each service snapshots its Cassandra data, encrypts the files client-side with its own snapshot key, and uploads them to S3.

  • AES-256-GCM, with the key wrapped by OpenBao Transit. FairFeather never handles the plaintext.
  • Keeps 30 daily and 12 monthly copies, in a cloud provider’s bucket in a Canadian region.

Telemetry retention purge

Nightly at 03:17, FairFeather calls DarkCrow’s purge so search entries older than one year are removed. Cassandra rows expire by TTL.

Retries and dead letters

Failed jobs are negatively acknowledged and redelivered with exponential backoff, from 1 second up to 15 minutes.

  • After 10 attempts a job moves to jobs-<type>-DLQ.
  • Admins can requeue a dead job with POST /v1/jobs/{id}/requeue.

A record of every attempt

Job state and every attempt are written to Cassandra, with the error and the pod that ran it.

  • Attempts are kept for 90 days.

Get FairFeather

Source code, compiled builds and container images are on the Downloads page.