Class ProducerPerformance

java.lang.Object
com.mapr.streams.producer.ProducerPerformance

public class ProducerPerformance extends Object
  • Field Details

    • streamName

      public static String streamName
    • topicNames

      public static String[] topicNames
    • numTopics

      public static int numTopics
    • numSlowTopics

      public static int numSlowTopics
    • numPartitions

      public static int numPartitions
    • numMsgsPerPartition

      public static int numMsgsPerPartition
    • numBatches

      public static int numBatches
    • batchSleepMs

      public static long batchSleepMs
    • multipleFlushers

      public static boolean multipleFlushers
    • printProgress

      public static boolean printProgress
    • needVerify

      public static boolean needVerify
    • roundRobin

      public static boolean roundRobin
    • hashKey

      public static boolean hashKey
    • totalNumMsgs

      public static int totalNumMsgs
    • producer

      public static org.apache.kafka.clients.producer.KafkaProducer producer
    • msgValueLength

      public static int msgValueLength
    • producerPoolSz

      public static long producerPoolSz
    • slowToNormalTopicRatio

      public static int slowToNormalTopicRatio
    • checkLag

      public static boolean checkLag
    • ignoreErr

      public static boolean ignoreErr
    • metadataRefreshMs

      public static long metadataRefreshMs
  • Constructor Details

    • ProducerPerformance

      public ProducerPerformance()
  • Method Details

    • usage

      public static void usage()
    • main

      public static void main(String[] args) throws IOException
      Throws:
      IOException
    • runStressTest

      public static boolean runStressTest(String stream, int nmsgs, int ntopics, int npartitions, int nbatches, long sleepms, boolean verify, boolean mflushers, boolean progress, boolean roundrobin, boolean hashkey) throws IOException
      Throws:
      IOException
    • runBasicTest

      public static boolean runBasicTest(String stream, int nmsgs, int ntopics, int slowTopics, int npartitions, int nbatches, long sleepms, boolean mflushers, boolean progress, int msgsz, long poolsz, long metadataMillis) throws IOException
      Throws:
      IOException
    • runTest

      public static boolean runTest()