GithubHelp home page GithubHelp logo

streaming_project_2's Introduction

streaming_project_2

  1. How did changing values on the SparkSession property parameters affect the throughput and latency of the data?

Answer: processedRowsperSecond -- it defines the throughput, and it should be more. Increasing the maxRatePerPartition increases the throughput and decreases latency while increasing processingTime does the opposite, in this case. As the processing time in this application should not be too high, as it processes the data quickly. We can also increase the kafka and spark partitions depending on the number of cores as they map one-to-one and it will increase parallelism and more records can be processed.

  1. What were the 2-3 most efficient SparkSession property key/value pairs? Through testing multiple variations on values, how can you tell these were the most optimal?

Answer: The three most efficent SparkSession propertiy key/value pairs.

  1) spark.streaming.kafka.maxRatePerPartition - 
     On increasing this paramter, there was increase in data ingestion. It sets the maximum number of messages per partition per batch.
     It can be put to an optimal rate where all the messages can be processed in the processing time and there is no lag between receiving and processing of messages.

  2) spark.sql.shuffle.partitions"
     It helped in parallel processing of the data while join and other shuffle operations. Default is 200, but in case where we have a lot of data and then, increasing this will process data faster in more number of tasks. 

  3)  spark.executor.memory
     It will help in assigning appropriate memory to each executors to process the records. In case of out-of-memory issues, this can be used.

streaming_project_2's People

Contributors

roundedski avatar

Watchers

 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.