Code Monkey home page Code Monkey logo

spark-perf's Introduction

Spark Performance Tests

This is a framework for repeatedly running a suite of performance tests for the Spark cluster computing framework.

The script assumes you already have a binary distribution of Spark 1.0+ installed. It can optionally checkout a new version of Spark and copy configurations over from your existing installation.

Running locally

  1. Download a spark 1.0+ binary distribution.
  2. Set up local SSH server/keys such that ssh localhost works on your machine without a password.
  3. Git clone spark-perf (this repo) and cd spark-perf
  4. Copy config/config.py.template to config/config.py
  5. Set config.py options that are friendly for local execution:
  • SPARK_HOME_DIR = /path/to/your/spark
  • SPARK_CLUSTER_URL = "spark://%s:7077" % socket.gethostname()
  • SCALE_FACTOR = .05
  • SPARK_DRIVER_MEMORY = 512m
  • spark.executor.memory = 2g
  • uncomment at least one SPARK_TESTS entry
  1. Execute bin/run

Running on an existing Spark cluster

  1. SSH into the machine hosting the standalone master
  2. Git clone spark-perf (this repo) and cd spark-perf
  3. Copy config/config.py.template to config/config.py
  4. Set config.py options:
  • SPARK_HOME_DIR = /path/to/your/spark/install
  • SPARK_CLUSTER_URL = "spark://:7077"
  • SCALE_FACTOR =
  • SPARK_DRIVER_MEMORY =
  • spark.executor.memory =
  • uncomment at least one SPARK_TESTS entry
  1. Execute bin/run

Running on a spark-ec2 cluster with a custom Spark version

  1. Launch an EC2 cluster with spark-ec2 scripts.
  2. Git clone spark-perf (this repo) and cd spark-perf
  3. Copy config/config.py.template to config/config.py
  4. Set config.py options:
  • USE_CLUSTER_SPARK = False
  • SPARK_COMMIT_ID =
  • SCALE_FACTOR =
  • SPARK_DRIVER_MEMORY =
  • spark.executor.memory =
  • uncomment at least one SPARK_TESTS entry
  1. Execute bin/run

Requirements

The script requires Python 2.7. For earlier versions of Python, argparse might need to be installed, which can be done using easy_install argparse.

Acknowledgements

Questions or comments, contact @pwendell or @andyk.

This testing framework started as a port + heavy modifiation of a predecessor Spark performance testing framework written by Denny Britz called spark-perf.

spark-perf's People

Contributors

aarondav avatar alig avatar andrewor14 avatar brkyvz avatar davies avatar harveyfeng avatar holdenk avatar joshrosen avatar mateiz avatar mengxr avatar pwendell avatar rxin avatar shivaram avatar tdas avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.