Managed Valkey
Okustera Managed Valkey delivers enterprise-grade, high-performance in-memory caching and key-value storage powered by Valkey 7.2 with automated high-availability failover.
Valkey is a community-driven, open-source high-performance key-value store maintaining 100% wire-protocol compatibility with the standard RESP specification.
Designed for sub-millisecond latency (< 1 ms), it provides automated 3-node Sentinel quorum election, automatic master failover in under 10 seconds, replicated NVMe persistence, and automated credential escrow with Okustera Key Management Service (KMS).
Architectural Highlights
- Automated Sentinel Failover: Sentinel monitors continuously track primary health. If the primary becomes unresponsive, a healthy replica is automatically promoted with zero manual intervention.
- NVMe Persistence: Data durability is backed by Append-Only File (AOF) logging and Point-in-Time RDB snapshots on replicated NVMe block volumes.
- Wire Compatibility: Fully compatible with standard RESP client SDKs (
valkey-py,iovalkey,go-valkey). - KMS Key Escrow: Cluster authentication passwords are automatically generated, encrypted, and vaulted in Okustera KMS.
Provisioning with Terraform
Declare Valkey clusters using the official Okustera Terraform provider:
resource "okustera_database_valkey" "session_cache" {
name = "production-session-cache"
namespace = "tenant-app"
replicas = 3
sentinel_replicas = 3
memory_limit = "4Gi"
storage_size = "10Gi"
}
output "valkey_master_endpoint" {
value = okustera_database_valkey.session_cache.master_endpoint
}
output "valkey_sentinel_endpoint" {
value = okustera_database_valkey.session_cache.sentinel_endpoint
}
Refer to the Terraform Resource Reference for complete schema documentation.
Connecting from Python (valkey-py)
Because Valkey 7.2 is fully RESP protocol compatible, standard clients connect seamlessly:
import os
import valkey
from valkey.sentinel import Sentinel
# Initialize Sentinel discovery client
sentinel = Sentinel([
('<sentinel-endpoint>', 26379)
], socket_timeout=0.5)
password = os.environ['VALKEY_PASSWORD']
# Discover current Valkey primary
master = sentinel.master_for('mymaster', socket_timeout=0.5, password=password)
# Discover read replicas
replica = sentinel.slave_for('mymaster', socket_timeout=0.5, password=password)
# Execute in-memory cache operations
master.set('session:token:9012', 'authenticated', ex=3600)
session_state = replica.get('session:token:9012')
print("Session State:", session_state)