HUB
Sign inSign up

featurehub/dacha

By featurehub

•Updated 4 months ago

FeatureHub Dacha1: legacy NATS-only feature cache (use dacha2 for new installs)

Image
0

100K+

featurehub/dacha repository overview

⁠FeatureHub Dacha (Dacha1 Cache)

Dacha (Dacha1) is FeatureHub's original "active" feature cache. It sits between the Management Repository (MR) and Edge, and holds the environments, service accounts and features Edge needs to answer SDK requests.

When it starts, Dacha1 fills its whole cache, either from another Dacha instance or from MR. This shields MR from miss traffic. The cost is slower start-up when you have many environments, and MR must be available during the fill. Dacha1 requires NATS.

New installations should use dacha2⁠, the lazy, CloudEvents-based cache that supports NATS, Kafka and Google Pub/Sub. It has been recommended since FeatureHub 1.5.9. See Architectural Choices for Dacha⁠.

Full documentation: https://docs.featurehub.io⁠

⁠Running

docker run --user 999:999 -e nats.urls=nats://nats:4222 featurehub/dacha:latest

⁠Ports

PortPurpose
8902Dacha API (server.port)
8279Prometheus metrics and health checks (monitor.port)

⁠Configuration

You can set any configuration property as an environment variable with the same name and case. You can also mount /etc/app-config/application.properties and /etc/app-config/secrets.properties. See Run configuration⁠.

PropertyDescription
nats.urlsComma-separated NATS servers. See NATS⁠.
cache.nameName of the cache group (default default).
cache.timeoutTime in ms to find and resolve a master cache (default 5000).
cache.complete-timeoutTime in ms to wait for data after another cache becomes master (default 15000).
cache.pool-sizeWorker thread pool size (default 10).

See Dacha1 Config⁠ and the NATS channels⁠ Dacha1 uses.

⁠Health and metrics

⁠More information

License: Apache 2 with Commons Clause.

Tag summary

Content type

Image

Digest

sha256:36b4f8b2f…

Size

105.9 MB

Last updated

4 months ago

docker pull featurehub/dacha