Package com.mapr.streams.producer
Class MarlinProducerPerformance
java.lang.Object
com.mapr.streams.producer.MarlinProducerPerformance
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic longstatic booleanstatic booleanstatic booleanstatic longstatic intstatic booleanstatic booleanstatic intstatic intstatic intstatic intstatic intstatic booleanstatic org.apache.kafka.clients.producer.KafkaProducerstatic longstatic booleanstatic intstatic Stringstatic String[]static int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic booleanrunBasicTest(String stream, int nmsgs, int ntopics, int slowTopics, int npartitions, int nbatches, long sleepms, boolean mflushers, boolean progress, int msgsz, long poolsz, long metadataMillis) static booleanrunStressTest(String stream, int nmsgs, int ntopics, int npartitions, int nbatches, long sleepms, boolean verify, boolean mflushers, boolean progress, boolean roundrobin, boolean hashkey) static booleanrunTest()static voidusage()
-
Field Details
-
streamName
-
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
-
MarlinProducerPerformance
public MarlinProducerPerformance()
-
-
Method Details
-
usage
public static void usage() -
main
- 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()
-