TL;DR
This paper introduces "time-series graphs" – data structures that capture both evolving network topology and changing attribute values over time. They propose GoFFish, a framework with a novel iterative BSP programming model and a specialized storage system (GoFS), to efficiently analyze these complex datasets. This work enables scalable analysis of dynamic, interconnected data, crucial for domains like social networks and IoT.
What Problem Does This Paper Address?
The proliferation of data from sources like IoT devices and social media has led to an explosion of interconnected data that changes over time. Traditional graph analytics frameworks are often ill-suited to handle this "time-series graph" data, which exhibits both evolving network structures and rapidly changing attribute values. Analyzing such data requires methods that can efficiently manage and query both the temporal and topological dimensions simultaneously. Existing approaches struggle with scalability, performance, and ease of use when dealing with this emerging class of Big Data.
Methods
The core of this paper lies in the GoFFish framework, which addresses time-series graph analytics through several key innovations:
- Time-Series Graph Model: They formalize time-series graphs as a collection of graph instances ordered by time, built upon a static or slowly changing "graph template." Each instance captures the state of the graph at a specific point or duration in time.
- Iterative Bulk Synchronous Parallel (iBSP) Abstraction: This is a novel programming model that extends the traditional BSP approach. It introduces "timesteps" for iterating through graph instances and "supersteps" for processing subgraphs within each instance. This allows for both temporal and spatial parallelism.
- Sub-graph Centric Programming: Building on prior work, GoFFish uses a sub-graph centric model where computation is defined for a unit of connected vertices and edges within a partition, rather than individual vertices. This reduces communication overhead and improves efficiency.
- Design Patterns for Time-Series Analytics: They define three patterns to simplify the development of time-series graph applications:
- Independent: Each graph instance is analyzed independently.
- Eventually Dependent: Instances are analyzed independently, but their results need to be aggregated.
- Sequentially Dependent: Analysis of one instance depends on the completion of the previous one.
- Graph-Oriented File System (GoFS): This is a distributed storage system co-designed with GoFFish. It optimizes for time-series graph access patterns by:
- Partitioning: Dividing the graph template across nodes.
- Temporal Packing: Grouping adjacent time instances within slices to improve I/O efficiency.
- Subgraph Bin Packing: Grouping subgraphs into fixed-size "bins" to balance load and optimize slice access.
- Slice Caching: Employing an LRU cache to reduce disk reads.
Datasets
The paper uses a real-world dataset called TR (Traceroute-based Time-Series Graph) for evaluation.
- TR Dataset: This dataset captures snapshots of internet-work behavior by periodically sending network traceroutes.
- Template: Represents the internet topology (routers and hosts as vertices, hops as edges).
- Instances: Created for every 2-hour window, capturing dynamic attributes like hop latency and destination IP.
- Scale: The template has ~19.4 million vertices and ~22.8 million edges. There are 146 instances covering a 12-day period.
Key Insights and Ideas
- Time-Series Graphs are a Distinct Data Model: The paper clearly articulates the need for a dedicated model for data that is both networked and temporal, moving beyond simple snapshots or dynamic graphs.
- iBSP Unlocks Temporal Parallelism: By extending BSP with timesteps, they enable a powerful way to exploit parallelism across time, which is often overlooked.
- Sub-graph Centricity is Key for Scale: This approach significantly reduces communication overhead compared to vertex-centric models, especially for large graphs.
- Co-design of Storage and Computation is Crucial: The GoFS storage system is not an afterthought; its design directly supports the GoFFish programming model and time-series access patterns, leading to significant performance gains.
- Temporal Packing and Binning Pay Off (with Caching): While temporal packing and binning offer benefits, their full potential is realized only when combined with effective caching, highlighting the interplay between storage, I/O, and memory.
Key Results
The paper demonstrates the effectiveness of GoFFish and GoFS through application benchmarks, particularly for a Single Source Shortest Path (SSSP) algorithm using the sequentially dependent pattern.
- Caching is Paramount: Micro-benchmarks show that caching can reduce read times by up to three times compared to non-cached configurations.
- Temporal Packing Benefits Emerge: For larger subgraphs, temporal packing (i=20) shows benefits over no packing (i=1), especially when combined with caching. The crossover point for benefits was observed around 80 subgraphs.
- Bin Packing Improves Performance: Using fewer bins (20 vs. 40) for subgraph bin packing generally led to better performance, particularly when temporal packing was not used.
- SSSP Performance: The iBSP SSSP application showed that the first timestep (template loading) dominates, but subsequent timesteps exhibit modest differences across GoFS configurations, indicating that the application becomes more compute-bound than I/O-bound with optimizations. Figure 7 shows that time per iteration stabilizes after the initial load. Figure 8 highlights the cumulative slice reads, showing a clear benefit from caching.
Limitations and Future Work
- Dataset Availability: The authors note that curated time-series graph datasets are not yet widely available, necessitating the use of real-world traceroute data and synthetic generation for some aspects.
- Partitioning Strategy: While current partitioning balances vertices and minimizes edge cuts, future work aims to further optimize partitioning to ensure uniform subgraph sizes and align with the number of host cores to mitigate slowest subgraph bottlenecks.
- Online Processing: GoFFish is designed for offline bulk processing and does not aim to provide streaming or online graph processing services.
- More Complex Patterns: The paper omits discussion of more complex patterns like monotonic dependency or random access across instances for brevity, suggesting these as avenues for future exploration.
- Further Optimization: The authors believe there are significant opportunities for further optimization by leveraging the degrees of parallelism exposed by their framework.
Summary updated