Skip to main content

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:
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’s log_to_metric transform performance:
Keep metric extractions under 5 per log for optimal performance. Use aggregation for high-cardinality data.

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:
Example calculations:

Memory Sizing

Memory scaling guidelines:

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

Key Vector metrics:
  • vector_component_received_events_total - Ingestion rate
  • vector_buffer_events - Buffer pressure
  • vector_component_sent_events_total - Output rate
  • vector_component_errors_total - Error rate

Loki Metrics

Loki exposes Prometheus metrics at /metrics: Key Loki metrics:
  • loki_ingester_chunks_stored_total - Storage growth
  • loki_request_duration_seconds - Query latency
  • loki_ingester_memory_chunks - Memory pressure
  • loki_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

Start with recommended specs and monitor for 2 weeks before scaling. Over-provisioning wastes resources; under-provisioning causes data loss.
Loki’s write patterns require fast random I/O. NVMe SSDs provide 10-100x better performance than spinning disks.
Always configure retention limits to prevent disk exhaustion. Ring buffer semantics ensure oldest logs are deleted first.
Configure Vector sinks to batch writes. Larger batches reduce network overhead and improve throughput.
High-cardinality labels (user IDs, request IDs) explode storage. Use log fields for high-cardinality data, labels for low-cardinality.
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