Optimize Lumina for high-throughput workloads
const lumina = initLumina({ endpoint: 'http://lumina:9411/v1/traces', service_name: 'high-volume', batchSize: 100, batchTimeout: 1000, });
ENABLE_COMPRESSION=true
kubectl scale deployment lumina-ingestion --replicas=10
ENABLE_QUERY_CACHE=true CACHE_TTL_SECONDS=60
CREATE INDEX CONCURRENTLY idx_traces_service_timestamp ON traces (service_name, timestamp DESC);
ALTER SYSTEM SET shared_buffers = '4GB'; ALTER SYSTEM SET work_mem = '64MB'; ALTER SYSTEM SET effective_cache_size = '16GB'; SELECT pg_reload_conf();
const lumina = initLumina({ endpoint: 'http://lumina:9411/v1/traces', service_name: 'ultra-high-volume', samplingRate: 0.1, alwaysSampleConditions: { error: true, costUsd: { $gt: 0.5 }, }, });