String bottleneckMsg = "If this occurs consistently the benchmark client could be the bottleneck."; if (this.config.isReadEnabled() && readsStarted.get() && readRps < expectedReadRate) { logger.warn("Observed Read RPS ({}) less than expected read rate + ({}).\n{}", readRps, expectedReadRate, bottleneckMsg);
private void startReadsInternal(LoadPattern loadPattern, int windowSize, long windowDurationInSec, int bulkSize) { logger.info("Starting NdBenchDriver reads..."); NdBenchOperation operation; operation = new ReadOperation(clientRef.get()); KeyGeneratorFactory keyGeneratorFactory = new KeyGeneratorFactory(); KeyGenerator<String> keyGenerator = keyGeneratorFactory.getKeyGenerator(loadPattern, config.getNumKeys(), windowSize, windowDurationInSec, config.isPreloadKeys(), config.getZipfExponent()); keyGeneratorReadRef.set(keyGenerator); startOperation( config.isReadEnabled(), config.getNumReaders(), readWorkers, tpReadRef, readLimiter, operation, keyGenerator, config.isAutoTuneEnabled(), bulkSize); readsStarted.set(true); }
String bottleneckMsg = "If this occurs consistently the benchmark client could be the bottleneck."; if (this.config.isReadEnabled() && readsStarted.get() && readRps < expectedReadRate) { logger.warn("Observed Read RPS ({}) less than expected read rate + ({}).\n{}", readRps, expectedReadRate, bottleneckMsg);
private void startReadsInternal(LoadPattern loadPattern, int windowSize, long windowDurationInSec, int bulkSize) { logger.info("Starting NdBenchDriver reads..."); NdBenchOperation operation; operation = new ReadOperation(clientRef.get()); KeyGeneratorFactory keyGeneratorFactory = new KeyGeneratorFactory(); KeyGenerator<String> keyGenerator = keyGeneratorFactory.getKeyGenerator(loadPattern, config.getNumKeys(), windowSize, windowDurationInSec, config.isPreloadKeys(), config.getZipfExponent()); keyGeneratorReadRef.set(keyGenerator); startOperation( config.isReadEnabled(), config.getNumReaders(), readWorkers, tpReadRef, readLimiter, operation, keyGenerator, config.isAutoTuneEnabled(), bulkSize); readsStarted.set(true); }
when(config.isReadEnabled()).thenReturn(true); when(config.isWriteEnabled()).thenReturn(true);