Overview
LogFleet is designed for high-throughput edge deployments. This guide covers hardware requirements, performance benchmarks, capacity planning, and tuning recommendations for different scales.All benchmarks were conducted on standard hardware configurations. Your results may vary based on log complexity, network conditions, and workload patterns.
Hardware Requirements
Minimum Requirements (Development/Testing)
For local development and small-scale testing:Recommended (Single Edge Location)
For production single-location deployments handling typical retail/IoT workloads:
Expected throughput: 10,000-50,000 logs/second
Production (High-Volume Location)
For high-volume locations (large retail stores, manufacturing floors):
Expected throughput: 50,000-200,000 logs/second
Enterprise (3-Node Cluster)
For mission-critical deployments requiring high availability:
Expected throughput: 500,000+ logs/second with HA
Performance Benchmarks
Log Ingestion Throughput
Measured on recommended single-location hardware (4 cores, 8 GB RAM):Log-to-Metric Extraction
Vector’slog_to_metric transform performance:
Query Latency (Loki)
Query performance on 7-day retention with 50GB data:Network Bandwidth
Metric shipping bandwidth (compressed, to cloud):
Log streaming bandwidth (when enabled):
- Typical: 1-10 MB/s per location
- Peak: 50-100 MB/s during incident investigation
Capacity Planning
Storage Calculator
Estimate storage requirements based on your workload:Memory Sizing
CPU Sizing
Tuning Guidelines
Vector Configuration
Optimize Vector for your workload:Loki Configuration
Optimize Loki for edge deployments:OS-Level Tuning
For high-throughput Linux deployments:Monitoring & Alerting
Key Metrics to Monitor
Vector Metrics Endpoint
vector_component_received_events_total- Ingestion ratevector_buffer_events- Buffer pressurevector_component_sent_events_total- Output ratevector_component_errors_total- Error rate
Loki Metrics
Loki exposes Prometheus metrics at/metrics:
Key Loki metrics:
loki_ingester_chunks_stored_total- Storage growthloki_request_duration_seconds- Query latencyloki_ingester_memory_chunks- Memory pressureloki_distributor_bytes_received_total- Ingestion rate
Sample Prometheus Alerts
Scaling Strategies
Vertical Scaling
When to scale up a single node:Horizontal Scaling (Multi-Node)
When to deploy a cluster:- High availability requirement - Deploy 3+ nodes with replication
- Throughput >200K logs/s - Distribute ingestion load
- Multi-tenant isolation - Separate workloads
- Geographic distribution - Regional edge clusters
Best Practices
Right-size your hardware
Right-size your hardware
Start with recommended specs and monitor for 2 weeks before scaling. Over-provisioning wastes resources; under-provisioning causes data loss.
Use SSDs, not HDDs
Use SSDs, not HDDs
Loki’s write patterns require fast random I/O. NVMe SSDs provide 10-100x better performance than spinning disks.
Set retention limits
Set retention limits
Always configure retention limits to prevent disk exhaustion. Ring buffer semantics ensure oldest logs are deleted first.
Batch sink writes
Batch sink writes
Configure Vector sinks to batch writes. Larger batches reduce network overhead and improve throughput.
Limit metric cardinality
Limit metric cardinality
High-cardinality labels (user IDs, request IDs) explode storage. Use log fields for high-cardinality data, labels for low-cardinality.
Monitor buffer backpressure
Monitor buffer backpressure
Buffer backpressure indicates sinks can’t keep up. Investigate sink bottlenecks before increasing buffer sizes.
Next Steps
Edge Agent Setup
Deploy the LogFleet agent
Custom Metrics
Extract metrics from logs
Troubleshooting
Debug common issues
Code Examples
Integration examples