Spedo
SPEDO ENGINE
v0.69.0 PREVIEW
โ† Documentation

๐Ÿ‘‘ Spedo Engine Admin Control Center

Since version v0.60.0 ยท Official System Guide ยท Single-Node Master Control & Observability
User Profiles since v0.66.0: the private portal adds a consolidated account, licence, order, and Direct Inbox view. See Private User Profiles.
Renderer compatibility since v0.62.0: table commands may safely contain escaped pipes (for example lru\|noeviction) or pipes inside inline code without creating extra columns.

1. Overview & Architecture

The Spedo Engine Control Center (http://127.0.0.1:8080) provides low-level operational visibility, live metrics, memory telemetry, and administrative control over the Spedo database runtime:

+-----------------------------------------------------------------------------------------+
|                        SPEDO ENGINE CONTROL CENTER (PORT 8080)                          |
+-----------------------------------------------------------------------------------------+
  โ€ข Low-Level Engine Telemetry & Live QPS Graphs (Sub-second resolution)
  โ€ข Live Keyspace Explorer & Deep Metadata Inspector (TTL, bytes, types)
  โ€ข Client IP Traffic & Security Inspector (SPEDO.IPSTATS 60-min sliding windows)
  โ€ข Top Reads & Hot Keys Monitor (SPEDO.TOPREADS CPU contention monitor)
  โ€ข Real-Time CDC Mutation Stream (CDC.READ event log)
  โ€ข In-Engine SIMD AI Vector & Hybrid Search Studio (VECTOR.SEARCH, SEARCH.HYBRID)
  โ€ข Dynamic Observability Flags (Zero-cost toggleable profiler)
  โ€ข User Permissions & Role-Based Access Control (ACL SETUSER)
  โ€ข Interactive Web CLI Terminal (Direct RESP Command Execution)
+-----------------------------------------------------------------------------------------+

The Control Center operates on zero-overhead principles: all heavy telemetry, sorting, and scraping routines are isolated on background threads or guarded behind dynamic feature flags to maintain sub-microsecond GET/SET execution on the hot path.


2. What You Can See (Observability & Telemetry)

๐Ÿ“Š 1. Live Engine Telemetry & Health

๐Ÿ”‘ 2. Keyspace Explorer & Inspector

๐ŸŒ 3. Client IP Traffic & Security Inspector (SPEDO.IPSTATS)

๐Ÿ”ฅ 4. Top Reads & Hot Keys Monitor (SPEDO.TOPREADS)

๐Ÿ”„ 5. Real-Time CDC Mutation Stream (CDC.READ)

๐Ÿง  6. AI Vector & Search Studio


3. What You Can Control (Management & Actions)

Control AreaAction / FeatureMechanism / CommandImpact
Memory QuotasSet Max RAM LimitCONFIG SET maxmemory <bytes>Enforces upper RAM ceiling dynamically without restart.
Eviction PolicyChange Eviction RuleCONFIG SET maxmemory-policy <lru|noeviction>Controls whether old keys are pruned or writes are rejected on full RAM.
ColdArchive TieringConfigure RAM ThresholdSPEDO_COL_THRESHOLD_PERCENT (e.g. 70%)Triggers automated LZ4 offloading of idle keys to NVMe disk when threshold is met.
Observability FlagsDynamic Flag TogglesSPEDO.OBSERVABILITY SET <flag> on|offDynamically turns on/off command_metrics, stage_profile, ip_stats, cdc, and prometheus. Zero cost when off.
Prometheus ExporterMaster Scraping SwitchToggle switch in Admin UI or /metricsEnables/disables live OpenMetrics standard endpoint for Grafana, Datadog, or Vector scrapers.
User Role PermissionsCreate / Delete / Grant RoleACL SETUSER <user> <pass> <role>Assigns admin (full access), rw (read-write), or ro (read-only) roles per user.
Data DurabilityForce Disk SnapshotSAVE or SAVE WAITForces immediate atomic WAL snapshot to disk with fsync.
Keyspace CleanupFlush DatabaseFLUSHDBRemoves all keys from memory and resets index state (restricted to admin role).
Web CLI TerminalDirect Command PromptInteractive terminal in Control CenterExecutes any arbitrary RESP command directly with formatted return output.

4. User Roles & Access Control Hierarchy

Spedo implements a zero-overhead bitflag security model verified at L1 CPU cache speed:

+-----------------------------------------------------------------------------------------+
|                                RBAC PERMISSION MATRIX                                   |
+-----------------------------------------------------------------------------------------+
| Role    | Allowed Commands                             | Scope & Operational Boundary   |
+---------+----------------------------------------------+--------------------------------+
| admin   | ALL Commands (173/173)                       | Engine reconfig, FLUSHDB, ACL  |
| rw      | Read, Write, Vector, Queue, CDC, Tx (150+)   | Application workers & services |
| ro      | GET, MGET, VECSEARCH, QPEEK, STRLEN (40+)    | Read-only replicas & auditors  |
+---------+----------------------------------------------+--------------------------------+

To configure users via the RESP protocol or startup scripts:

# Set up a read-write worker
redis-cli -p 6380 ACL SETUSER worker_app WorkerPass2026! rw

# Set up a read-only analytics auditor
redis-cli -p 6380 ACL SETUSER analytics_ro AuditPass2026! ro

5. Launching & Securing the Control Center

The Control Center can be started with custom authentication credentials:

export SPEDO_ADMIN_USER=engine-admin
export SPEDO_ADMIN_PASS="YourSecurePasswordHere"
make admin

Access the web interface at http://127.0.0.1:8080.