Git Product home page Git Product logo

flink-bench's Introduction

Flink-microbenchmarks

Build instructions

  • Required software:
    • Apache Maven 3.x.
    • Java JDK 8
  • Run mvn clean package inside the map-chain directory. If the command succeeds you will find the application jar in target/map-chain-0.1.jar

Flink installation and setup

  • Download and extract Apache Flink 1.7.2..
  • Copy the opt/flink-metrics-slf4j-1.7.1.jar file inside the lib folder.
  • Add the following lines in conf/flink-conf.yaml:
    • metrics.reporter.slf4j.class: org.apache.flink.metrics.slf4j.Slf4jReporter
    • metrics.reporter.slf4j.interval: 30 SECONDS (metrics will be reported every 30s)

Run the job

  • Start Flink with ./bin/start-cluster.sh. Visit http://localhost:8081 to make sure it is running and check your configuration.

  • Submit the job: ./bin/flink run /path-to-your-jar/map-chain-0.1.jar [parameters], where the following parameters can be specified with --param-name param-value:

    • chain-length: number of map operators, DEFAULT: 5
    • enable-chaining: whether or not to execute all mappers in the same thread, DEFAULT: true
    • source-rate: integers per second pushed by the source, DEFAULT: 50000
    • source-max-events: maximum number of generated numbers, DEFAULT: 1000000
    • source-parallelism: the source parallelism, DEFAULT: 1
    • latency-interval: how often to measure latency, DEFAULT: 5000 (ms)

    Metrics collection

    The metrics will be written in the task manager's log inside the log folder, e.g. *-taskexecutor-0.log. You will need to extract the following:

    • numRecordsInPerSecond
    • numRecordsOutPerSecond
    • %latency% or histogram reports

flink-bench's People

Contributors

jliagouris avatar

Watchers

 avatar

Forkers

mdasifazhar

flink-bench's Issues

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.