MynaDB Documentation
The Voice of Your Machines. Welcome to the MynaDB documentation. Your infrastructure is talking — MynaDB listens. A high-performance time series database built with Rust, Apache DataFusion, and Parquet for modern infrastructure monitoring and analytics.
Read our ten-part implementation series, from standalone storage to distributed coordination. Articles are in Chinese. Engineering articles (中文) →
Start with our Quick Start Guide to get up and running in minutes.
OpenTelemetry (OTLP) - Native ingestion for metrics, logs, and traces.
Apache Iceberg - REST Catalog API for multi-engine analytics.
Grafana Integration - Built-in monitoring dashboard and InfluxDB-compatible endpoints.
Continuous Aggregates - Materialized views with automatic refresh.
Streaming Queries - Real-time subscriptions via WebSocket and SSE.
RBAC & Security - Role-based access control, TLS, and audit logging.
Forecasting & Geospatial - Built-in UDFs for predictive and spatial analytics.
What is MynaDB?
Like the myna bird known for its remarkable ability to listen and perfectly recall sounds, MynaDB captures every signal from your infrastructure with perfect fidelity. It's a time series database designed for high-throughput ingestion and fast analytical queries, combining the best of modern data infrastructure:
- InfluxDB Line Protocol & OpenTelemetry - Multi-protocol ingestion for metrics, logs, and traces
- Apache Parquet & Iceberg - Columnar storage with multi-engine catalog support
- Apache DataFusion - Full SQL with forecasting UDFs and geospatial functions
- Apache Arrow Flight - High-performance gRPC streaming for data transfer
- Grafana & Prometheus - Native monitoring integration and metrics export
- Rust - Memory-safe, zero-cost abstractions for maximum performance
Key Features
High Performance
Written in Rust with zero-copy deserialization for maximum throughput and low latency.
SQL Queries
Full SQL support including JOINs, aggregations, window functions, and CTEs.
Columnar Storage
Parquet format provides up to 90% compression with excellent query performance.
InfluxDB Compatible
Drop-in replacement for InfluxDB write API for seamless migration.
Instant Visibility
Query fresh writes immediately via Memtable - no flush required!
Smart Caching
Multi-level caching: metadata, query results, and Parquet files on SSD.
Quick Example
# Write metrics using InfluxDB Line Protocol
curl -X POST http://localhost:7000/write/mydb -d '
cpu,host=server01,region=us-west usage=75.5,temp=45
cpu,host=server02,region=us-east usage=82.3,temp=50
memory,host=server01 used=16.5,total=32.0
'
# Query immediately - no flush needed! (Memtable provides instant visibility)
curl 'http://localhost:7000/query/mydb' \
-d 'SELECT host, AVG(usage) as avg_cpu FROM cpu GROUP BY host'
# Time series aggregation with GROUP BY time()
curl 'http://localhost:7000/query/mydb' \
-d 'SELECT AVG(usage) FROM cpu GROUP BY time(5m), host'
Architecture Overview
MynaDB uses a layered architecture designed for performance and reliability:
Client Request
|
v
+------------------+
| HTTP Server | Port 7000/7001/7002
| (Axum/Flight/MySQL)|
+--------+---------+
|
+-----+-----+
| |
v v
+------+ +-------+
|Write | | Query |
| API | | API |
+--+---+ +---+---+
| |
v |
+------+ |
|Cache |<------+ (Memtable: instant query visibility)
+--+---+ |
| v
| +----------+
| |DataFusion|
| +----+-----+
| |
+----+----+
|
v
+-----+------+
| Metadata |
| Manager |
+-----+------+
|
v
+-----+------+
| Parquet |
| Storage |
+-----+------+
|
v
+-----+------+
| Compactor |
| (LSM-style)|
+------------+
Documentation Sections
| Section | Description |
|---|---|
| Quick Start | Get up and running in 5 minutes |
| Architecture | Deep dive into system design and components |
| OpenTelemetry (OTLP) | Native OTLP ingestion for metrics, logs, and traces |
| Apache Iceberg | REST Catalog API for multi-engine analytics |
| Grafana Integration | InfluxDB-compatible datasource and monitoring dashboard |
| Continuous Aggregates | Materialized views with automatic refresh and query rewriting |
| Streaming Queries | Real-time subscriptions via WebSocket and SSE |
| Forecasting & Geospatial | Built-in forecasting and geospatial UDFs |
| Security & RBAC | Authentication, roles, TLS, and audit logging |
| Monitoring | Prometheus metrics, query tracing, and health endpoints |
| Admin Console | Web-based SQL editor, storage browser, and cluster management |
| Admin Dashboard Guide | Getting started tour, navigation reference, and key concepts for the admin UI |
| Cluster Operations | Node management, tables, scale-in, events, meta/data ops, and debug tools |
| Enterprise Cluster | Distributed cluster with Meta, Router, Data, and Admin nodes |
| Cluster Getting Started | Step-by-step guide to launching a local development cluster |
| Cluster Architecture | Raft consensus, table-level routing, and node internals |
| Cluster Scaling | Scale-out, scale-in, failover detection, and cold standby |
| API Reference | Complete HTTP and Flight API documentation |
| Configuration | All configuration options explained |
Getting Help
If you run into issues or have questions:
- Check the Troubleshooting Guide
- Browse the FAQ
- Open an issue on GitHub
Head to the Quick Start Guide to write your first query!