Skip to content

Kubernetes & Control-Plane Integration

Scaling from a single pilot shard to hundreds or thousands of production shards does not require rewriting your internal Redis PaaS control plane, CMDB discovery jobs, scheduled backup pipelines, or Kubernetes Operators. Engula 2.3.0 confines its architectural redesign strictly beneath the wire protocol and hash-slot routing layer, preserving every management contract expected by enterprise orchestration tooling.


1. Five Zero-Code-Change Control-Plane Contracts

Control-Plane Channel Standard Internal PaaS Operation Engula 2.3.0 Parity & Verified Interop Integration Guidance
1. Process Lifecycle & Config Push Render standard redis.conf templates, manage processes, execute CONFIG GET / SET and CONFIG REWRITE CLI flags, config file grammar, PID/log paths, and external aclfile semantics match Redis 7.2; engine-specific knobs are cleanly namespaced under engula-* Append 6–8 baseline engula-* directives to your standard configuration template
2. Discovery & CMDB Health Polling Poll PING, INFO server, INFO memory, INFO replication, and ROLE With default compatibility enabled, redis_version reports 7.2.14 (preventing version-regex rejections in legacy SDKs or portals) while engula_release exposes 2.3.0 Track physical fleet memory via used_memory_rss; compute eviction fill ratio via (used_memory - mem_not_counted_for_evict) / maxmemory
3. Sentinel Failover Orchestration Monitor primary/replica groups and run automated or manual SENTINEL FAILOVER Verified across mixed-quorum bidirectional failovers (1 primary + 2 replicas + 3 Sentinels, down-after=5s: 5.55s median RTO vs. 5.50s vanilla baseline) Pin shadow evaluation replicas to replica-priority 0; restore normal priority when entering the production failover pool
4. 16,384-Slot Cluster Scaling Run CLUSTER MEET, CLUSTER FAILOVER, CLUSTER SETSLOT, and MIGRATE Unrestricted shard count in release builds; verified across mixed clusters, failover promotion, and lossless bidirectional MIGRATE using standard RDB v11 + CRC64 wire payloads Reuse redis-cli --cluster and existing slot-rebalancing jobs directly — see Mixed-Cluster Live Slot Migration
5. Metrics & Alert Routing Scrape /metrics via sidecar or centralized redis_exporter into Prometheus Adapted engula-redis-exporter preserves 100% of upstream redis_* series while adding all 46 user-tier ENGULA INFO metrics on the same port Existing uptime, client-count, replication-lag, and slowlog alerts continue working unchanged — see ENGULA INFO, Prometheus & Grafana

2. Backup Archival & Offline Data-Pipeline Routing

Integrate with enterprise backup and data-lake workflows without modifying downstream parsers by separating two snapshot consumers at the control plane:

  1. Primary Cold Backup & Cross-DC Disaster Recovery (Keep Default engula-rdb 1): Existing scheduled BGSAVE + S3/OSS/NAS upload agents work without modification. Native v4 whole-block physical snapshots cut 8 GB (40M-key) BGSAVE duration from 50.86s to 3.71s (13.7× faster), speed up cold restarts by 6.1×, and hold random-overwrite CoW growth to roughly +14%. Post-backup hooks can run valkey-check-rdb offline to verify section CRCs, reference invariants, and footer fingerprints.
  2. Downstream Data-Warehouse Ingestion & Third-Party Offline RDB Scanners (Dedicated Replica with engula-rdb 0): If downstream ETL pipelines parse .rdb files directly using third-party open-source RDB readers or logical sync tools, attach a non-serving backup replica configured with engula-rdb 0. Online primaries and HA replicas retain native whole-block snapshots and 1.83s fullsync speed, while the dedicated backup replica emits 100% standard REDIS0011 snapshots for downstream consumers.

3. Kubernetes Production Orchestration Rules

When deploying Engula 2.3.0 via StatefulSet or a custom Redis Operator, enforce four container engineering rules:

3.1 Run engula-server Directly as Container PID 1

If startup snapshot validation detects more corrupted records than permitted by engula-rdb-validate-max-drop-ratio (default 100 ppm with a 128-record floor when non-zero), the server refuses automatic repair, preserves the on-disk .rdb file intact for inspection, and exits with code 1.

Never Wrap

engula-server in an Unthrottled Shell Loop Never start containers with while true; do engula-server ...; done. If a load is refused with exit code 1, an outer loop respawns the process every second while keeping the container alive — leaving the Kubernetes Pod permanently Running with restartCount=0 (ready=false), masking CrashLoopBackOff alerts and flooding disk logs. Always launch via exec engula-server /etc/engula/engula.conf so engula-server runs as PID 1.

3.2 Pin Guaranteed QoS & 1.30–1.35× Memory Limits

Set identical resources.requests and resources.limits for both CPU and memory so Kubernetes assigns Guaranteed QoS, protecting database pods from Burstable OOM-killer eviction under host pressure. Size container memory limits to 1.30–1.35× maxmemory to cover +14% native BGSAVE CoW headroom, repl-backlog, and client output buffers.

3.3 Decouple startupProbe from livenessProbe

During cold recovery or fullsync loading of multi-tens-of-GB shards, the server responds with -LOADING. Configure a dedicated startupProbe (e.g., periodSeconds: 5 × failureThreshold: 60 = 300s startup budget) so livenessProbe never kills a healthy instance mid-load.

3.4 Reference Production StatefulSet + Exporter Sidecar Manifest

1apiVersion: apps/v1
2kind: StatefulSet
3metadata:
4  name: engula-cluster-shard
5spec:
6  serviceName: engula-cluster-headless
7  replicas: 2
8  template:
9    spec:
10      terminationGracePeriodSeconds: 60
11      containers:
12        - name: engula
13          image: registry.internal.corp/cache/engula-server:2.3.0
14          command: ["sh", "-c", "exec engula-server /etc/engula/engula.conf"]
15          resources:
16            requests:
17              cpu: "4"
18              memory: "44Gi"
19            limits:
20              cpu: "4"
21              memory: "44Gi"
22          startupProbe:
23            exec:
24              command: ["redis-cli", "-p", "6379", "PING"]
25            periodSeconds: 5
26            failureThreshold: 60
27          readinessProbe:
28            exec:
29              command: ["redis-cli", "-p", "6379", "PING"]
30            periodSeconds: 3
31            failureThreshold: 3
32          livenessProbe:
33            tcpSocket:
34              port: 6379
35            periodSeconds: 10
36            failureThreshold: 3
37          volumeMounts:
38            - name: data
39              mountPath: /data
40            - name: config
41              mountPath: /etc/engula
42        - name: exporter
43          image: registry.internal.corp/cache/engula-redis-exporter:2.3.0
44          args:
45            - "--redis.addr=redis://127.0.0.1:6379"
46            - "--web.listen-address=:9121"
47          ports:
48            - name: metrics
49              containerPort: 9121
50          resources:
51            requests:
52              cpu: "200m"
53              memory: "256Mi"
54            limits:
55              cpu: "200m"
56              memory: "256Mi"

For regulated environments, pin container images by immutable @sha256:<digest> references and enable TopologyManagerPolicy: single-numa-node on cache worker nodes.

Related: Zero-Downtime Rolling Upgrade · ENGULA INFO, Prometheus & Grafana · Production Go-Live Checklist