Implementing an Intelligent Log Pipeline Focused on Cost (opens in new tab)
Naver’s Logiss platform, responsible for processing tens of billions of daily logs, evolved its architecture to overcome systemic inefficiencies in resource utilization and deployment stability. By transitioning from a rigid, single-topology structure to an intelligent, multi-topology pipeline, the team achieved zero-downtime deployments and optimized infrastructure costs. These enhancements ensure that critical business data is prioritized during traffic surges while minimizing redundant storage for search-optimized indices.
Limitations of the Legacy Pipeline
- Deployment Disruptions: The previous single-topology setup in Apache Storm lacked a "swap" feature, requiring a total shutdown for updates and causing 3–8 minute processing lags during every deployment.
- Resource Inefficiency: Infrastructure was provisioned based on daytime peak loads, which are five times higher than nighttime traffic, resulting in significant underutilization during off-peak hours.
- Indiscriminate Processing: During traffic spikes or hardware failures, the system treated all logs equally, causing critical service logs to be delayed alongside low-priority telemetry.
- Storage Redundancy: Data was stored at 100% volume in both real-time search (OpenSearch) and long-term storage (Landing Zones), even when sampled data would have sufficed for search purposes.
Transitioning to Multi-Topology and Subscribe Mode
- Custom Storm Client: The team modified
storm-kafka-client2.3.0 to revert from the defaultassignmode back to thesubscribemode for Kafka partition management. - Partition Rebalancing: While
assignmode is standard in Storm 2.x, it prevents multiple topologies from sharing a consumer group without duplication; the customsubscribeimplementation allows Kafka to manage rebalancing across multiple topologies. - Zero-Downtime Deployments: This architectural shift enables rolling updates and canary deployments by allowing new topologies to join the consumer group and take over partitions without stopping the entire pipeline.
Intelligent Traffic Steering and Sampling
- Dynamic Throughput Control: The "Traffic-Controller" (Storm topology) monitors downstream load and diverts excess non-critical traffic to a secondary "retry" path, protecting the stability of the main pipeline.
- Tiered Log Prioritization: The system identifies critical business logs to ensure they bypass bottlenecks, while less urgent logs are queued for post-processing during traffic surges.
- Storage Optimization via Sampling: Logiss now supports per-destination sampling rates, allowing the system to send 100% of data to long-term Landing Zones while only indexing a representative sample in OpenSearch, significantly reducing indexing overhead and storage costs.
Results and Recommendations
The implementation of an intelligent log pipeline demonstrates that modifying core open-source components, such as the Storm-Kafka client, can be a viable path to achieving specific architectural goals like zero-downtime deployment. For high-volume platforms, moving away from a "one-size-fits-all" processing model toward a priority-aware and sampling-capable pipeline is essential for balancing operational costs with system reliability. Organizations should evaluate whether their real-time search requirements truly necessitate 100% data ingestion or if sampling can provide the necessary insights at a fraction of the cost.