Overview
This template provides a production‑ready Aerospike instance as a Monk runnable. You can:- Run it directly to get a managed Aerospike container with sensible defaults
- Inherit it in your own runnable to seamlessly add a high-performance NoSQL database to your stack
What this template manages
- Aerospike container (
aerospikeimage, configurable tag) - Network service on port 3000
- Persistent volume for data storage
- Hybrid memory architecture combining DRAM and flash memory for optimal performance
Quick start (run directly)
- Load templates
- Run Aerospike with defaults
- Customize configuration (recommended via inheritance)
variables. To customize, you can either:
- Preferred: inherit and override variables as shown below.
- Alternative: fork/clone and edit the
variablesinaerospike.yml, thenmonk load MANIFESTand run.
localhost:3000 (or the runnable hostname inside Monk networks) to access the Aerospike service.
Configuration
Key variables you can customize in this template:${monk-volume-path}/aerospike:/opt/aerospike/data on the host.
Use by inheritance (recommended for apps)
Inherit the Aerospike runnable in your application and declare a connection. Example:Ports and connectivity
- Service:
base-svcon TCP port3000 - From other runnables in the same process group, use
connection-hostname("\<connection-name>")to resolve the DB host.
Persistence
- Data path:
${monk-volume-path}/aerospike:/opt/aerospike/data - All data is automatically persisted to the host volume, ensuring data durability across container restarts.
Key features
- High Performance: Optimized for low latency and high throughput operations
- Distributed Architecture: Built-in support for data replication and automatic data distribution
- Fault Tolerance: Automatic failover in case of node failure
- Hybrid Memory: Combines DRAM and flash memory to maximize performance and minimize cost
- Key-Value Model: Supports key-value pairs with complex data types (lists, maps, sets)
Use cases
Aerospike is particularly well-suited for:- Real-time bidding platforms
- Fraud detection systems
- Recommendation engines
- E-commerce applications
- Ad tech solutions
- Financial services
- Any application requiring fast data access with high throughput
Troubleshooting
- Ensure the host volumes are writable by the container user.
- Check logs:
- Verify the service is listening on the expected port:
Related tools
- Aerospike Query Language (ASQL): SQL-like query language for Aerospike
- Aerospike Management Console (AMC): Web-based interface for monitoring and managing Aerospike clusters