• No results found

Leveraging In-Memory Key/Value Stores in HPC Kelpie Craig Ulmer

N/A
N/A
Protected

Academic year: 2021

Share "Leveraging In-Memory Key/Value Stores in HPC Kelpie Craig Ulmer"

Copied!
20
0
0

Loading.... (view fulltext now)

Full text

(1)

Photos placed in horizontal position with even amount of white space

between photos and header

Leveraging In-Memory Key/Value Stores in HPC

Kelpie

Craig Ulmer

(2)

Overview: Leveraging KV Stores

NoSQL: Dramatic impact on

Out-of-Core

processing

 Frameworks handle scheduling, placement, and reliability

 Enables novice users to take advantage of parallel processing

Good for information apps, but not Scientific Computing

 NoSQL primary concern is disks, assumes cluster hardware

 Can we leverage some of the concepts of NoSQL in HPC?

Distributed In-Memory Key/Value stores are extremely useful

Kelpie: Experimental 2D KV for HPC built on Nessie (portable RDMA)

(3)
(4)

How did we get here?

Sandia started investigating NoSQL frameworks in 2008

 Can we leverage for post-processing on clusters?

 Make it easier to build one-off analysis

Ported analysis kernels to different frameworks/stores

 Hadoop, Pig, Accumulo, Cassandra, MongoDB, SectorSphere…

 LexisNexis DAS, InfoSphere, XtremeData, Netezza

Hadoop MapReduce most practical

200 400 600 800 1,000 1,200 1,400 1,600 Ti m e ( S ) Netezza Mustang Netezza TwinFin6 XtremeData Prototype XtremeData dbX 1008 LexisNexis DAS-20 LexisNexis DAS-60 Hadoop Decline 32 Hadoop Amazon 32 Hadoop Amazon 128 T ime (s)

(5)
(6)

Good Points of MapReduce

Objectify Data Objectify Calculations Load Balancing Framework Handles Scheduling, Reliability

(7)

Bad Points of MapReduce

Data Suitcase Disk-Based Communication Pull-Based I/O Inflexible Data Flow

(8)

Other Lessons from NoSQL

Frameworks trick users into providing useful info

 Atomic operations, data boundaries

Indirection is worthwhile

 Frameworks can do more, Users micromanage less

Basic functionality is often good enough

 HDFS: Append-only writes

2D Stores > 1D Stores

 Accumulo: Use a row to build an index generated by multiple writers

Be open to alternatives

(9)

Meanwhile, Back in HPC

What are the main concerns in HPC today?

 Reliability concerns

 Architecture changes: Fat nodes

 Application pipelines

 New programming models

Are any of the NoSQL ideas relevant to HPC?

(10)
(11)

In-Memory, Key/Value Stores

KV Stores: an old idea with renewed interest

 Distribute a number of servers to hold values

 Use a key label to reference data

 Put/Get interface

Many existing packages

 Cluster: Memcached, Redis, Kyoto Cabinet, RAMCloud,…

 HPC: IBM PIMD

K/V

(12)

Peer Only Remote + Peer Mode

Remote Mode

Kelpie: Distributed KV Store for HPC

SNL Developing experimental KV Store for HPC

Built on top of

Nessie

 Portable RPC+RDMA library (IB, Gemini, BG/P, Portals, MPI)

Typical KV with tweaks

 1D or 2D Keys

 Optional Backing store (local/remote disks)

 Different modes with Location Hints

(13)
(14)

[1/4] Application Caching and I/O

Leverage K/V store simply as a way to store intermediate data

 Users put/get blocks of data via references

 Scale performance tradeoffs by adjusting K/V store size

 Also useful for I/O swells

I/O Compute Job

(15)

Forward/Reverse Cache

BSP Code with forward/reverse dataflow

 During reverse stages, reuse intermediates from forward stages

 Requires in-memory storage to be practical

 Regular access pattern makes prefetch easy

Proxy application for tradeoff studies

Wall Clock Time

Co

re

(16)

[2/4] Muli-Simulation Glue

Many users need to join one monolithic job to another

 Painful to add coupling – some use I/O as the medium

 KV Stores provide a natural exchange point

Compute Job

Analysis 1

Analysis 2

I/O

(17)

Glue: Hardware Fuzzing

SNL: Digital hardware fuzzing for reliability testing

 Flight Recorder Design: Operates in RF-hostile environment

 Will data corruption lock up the hardware?

Parameter study: Many long-running VHDL/Verilog sims

 Previously: Discovered two design problems over multi-month sim

 Current: Capture waveforms, characterize, look for abnormalities

(18)

[3/4] Communication without MPI

Use KV Store for Inter-Process Communication

 Work at a higher level of abstraction

 May be of use in workloads with dynamic data flows

Warning: MPI does IPC very, very well

Early experiences porting

Mantevo

applications

 Positive: Feels more like symbolic language

 Negative: Performance loss due to indirection

(19)

[4/4] Frameworks

Many are working on computational frameworks for HPC

 ASCR FOX: Fault-Oblivious eXecution

 SNL: DAG Task Scheduling for Reliability

KV Stores provide a useful starting point

Example: Go/MR: GoLang implementation of MapReduce

 Utilizes Kelpie for storing objects

 2D Keys useful for collecting related items

(20)

Summary

NoSQL efforts tested out a variety of interesting concepts

Key/Value Stores are a valuable service for HPC

Kelpie

 Currently tested at small scale on IB, BG/P, and Gemini

 Expanding our user examples and making more robust

References

Related documents

In our empirical application, consider the case where we have four fresh retail meat products ordered as follows: fresh beef, fresh pork, fresh chicken and fresh seafood.. This

• In a game like this you can find the NE by cycling through the outcomes, asking if either agent can improve its payoff by switching its strategy... Not every interaction scenario

Canopy

At the same time, it is responding to the challenges and opportunities of electronic procurement (e-procurement), which refers to the utilization of the Internet to buy and

Moreover, the current study aims to investigate the relationship between five dimensions of community capacity in conserving natural environment namely;

Analysis of the minimal CTVAR indicates that Granger causality in continuous time decays exponentially with increas- ing prediction horizon beyond causal feedback time scales,

As per (Welch and Goyal, 2007), the y-axis is the cumulative squared prediction errors of the null model minus the cumulative squared prediction error of the alternative model.

2005- visions on the Finnish work life]. Helsinki: Finnish lnstituite of Occupational Health. Kansanelakelaitos [The Social Insurance Institution of Finland]. Tyo ja terveys