Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/main/java/com/yugabyte/sample/apps/AppBase.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
import javax.net.ssl.TrustManagerFactory;

import com.yugabyte.sample.common.metrics.Observation;
import org.apache.log4j.Level;
import org.apache.log4j.Logger;

import com.datastax.driver.core.Cluster;
Expand Down Expand Up @@ -303,6 +304,9 @@ protected synchronized void createCassandraClient(List<ContactPoint> contactPoin
builder = builder
.withCredentials(appConfig.dbUsername, appConfig.dbPassword);
}
if (appConfig.enableDriverDebug) {
Logger.getLogger("com.datastax.driver").setLevel(Level.DEBUG);
}
if (appConfig.sslCert != null) {
builder = builder
.withSSL(createSSLHandler(appConfig.sslCert));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ public List<String> getWorkloadOptionalArguments() {
"--num_threads_read " + appConfig.numReaderThreads,
"--num_threads_write " + appConfig.numWriterThreads,
"--batch_size " + appConfig.batchSize,
"--table_ttl_seconds " + appConfig.tableTTLSeconds);
"--table_ttl_seconds " + appConfig.tableTTLSeconds,
"--debug_driver " + appConfig.enableDriverDebug);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@ public List<String> getWorkloadOptionalArguments() {
"--max_metrics_count " + max_metrics_count,
"--table_ttl_seconds " + appConfig.tableTTLSeconds,
"--batch_size " + appConfig.batchSize,
"--read_batch_size " + appConfig.cassandraReadBatchSize);
"--read_batch_size " + appConfig.cassandraReadBatchSize,
"--debug_driver " + appConfig.enableDriverDebug);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ public List<String> getWorkloadOptionalArguments() {
"--num_threads_write " + appConfig.numWriterThreads, "--num_devices " + appConfig.num_devices,
"--num_event_types " + appConfig.num_event_types, "--table_ttl_seconds " + appConfig.tableTTLSeconds,
"--batch_size " + appConfig.batchSize,
"--read_batch_size " + appConfig.cassandraReadBatchSize);
"--read_batch_size " + appConfig.cassandraReadBatchSize,
"--debug_driver " + appConfig.enableDriverDebug);
}
}
3 changes: 2 additions & 1 deletion src/main/java/com/yugabyte/sample/apps/CassandraInserts.java
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ public List<String> getWorkloadOptionalArguments() {
"--num_threads_write " + appConfig.numWriterThreads,
"--batch_size " + appConfig.batchSize,
"--num_indexes" + appConfig.numIndexes,
"--value_size " + appConfig.valueSize);
"--value_size " + appConfig.valueSize,
"--debug_driver " + appConfig.enableDriverDebug);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ public List<String> getWorkloadOptionalArguments() {
"--value_size " + appConfig.valueSize,
"--num_threads_read " + appConfig.numReaderThreads,
"--num_threads_write " + appConfig.numWriterThreads,
"--table_ttl_seconds " + appConfig.tableTTLSeconds);
"--table_ttl_seconds " + appConfig.tableTTLSeconds,
"--debug_driver " + appConfig.enableDriverDebug);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ public List<String> getWorkloadOptionalArguments() {
"--num_threads_write " + appConfig.numWriterThreads,
"--num_stores " + appConfig.numStores,
"--num_new_coupons_per_customer " + appConfig.numNewCouponsPerCustomer,
"--max_coupons_per_customer " + appConfig.maxCouponsPerCustomer);
"--max_coupons_per_customer " + appConfig.maxCouponsPerCustomer,
"--debug_driver " + appConfig.enableDriverDebug);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ public List<String> getWorkloadOptionalArguments() {
"--num_threads_read " + appConfig.numReaderThreads,
"--num_threads_write " + appConfig.numWriterThreads,
"--batch_write",
"--batch_size " + appConfig.batchSize);
"--batch_size " + appConfig.batchSize,
"--debug_driver " + appConfig.enableDriverDebug);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@ public List<String> getWorkloadOptionalArguments() {
"--num_threads_write " + appConfig.numWriterThreads,
"--num_ticker_symbols " + num_ticker_symbols,
"--data_emit_rate_millis " + data_emit_rate_millis,
"--table_ttl_seconds " + appConfig.tableTTLSeconds);
"--table_ttl_seconds " + appConfig.tableTTLSeconds,
"--debug_driver " + appConfig.enableDriverDebug);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,7 @@ public List<String> getWorkloadOptionalArguments() {
"--min_metrics_count " + min_metrics_count,
"--max_metrics_count " + max_metrics_count,
"--data_emit_rate_millis " + data_emit_rate_millis,
"--table_ttl_seconds " + appConfig.tableTTLSeconds);
"--table_ttl_seconds " + appConfig.tableTTLSeconds,
"--debug_driver " + appConfig.enableDriverDebug);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ public List<String> getWorkloadOptionalArguments() {
"--num_writes " + appConfig.numKeysToWrite,
"--value_size " + appConfig.valueSize,
"--num_threads_read " + appConfig.numReaderThreads,
"--num_threads_write " + appConfig.numWriterThreads);
"--num_threads_write " + appConfig.numWriterThreads,
"--debug_driver " + appConfig.enableDriverDebug);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,8 @@ public List<String> getWorkloadOptionalArguments() {
"--num_reads " + appConfig.numKeysToRead,
"--num_writes " + appConfig.numKeysToWrite,
"--num_threads_read " + appConfig.numReaderThreads,
"--num_threads_write " + appConfig.numWriterThreads);
"--num_threads_write " + appConfig.numWriterThreads,
"--debug_driver " + appConfig.enableDriverDebug);
}

protected void setupLoadBalancingPolicy(Cluster.Builder builder) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ public List<String> getWorkloadOptionalArguments() {
"--num_reads " + appConfig.numKeysToRead,
"--num_writes " + appConfig.numKeysToWrite,
"--num_threads_read " + appConfig.numReaderThreads,
"--num_threads_write " + appConfig.numWriterThreads);
"--num_threads_write " + appConfig.numWriterThreads,
"--debug_driver " + appConfig.enableDriverDebug);
}
}
2 changes: 1 addition & 1 deletion src/main/java/com/yugabyte/sample/common/CmdLineOpts.java
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,7 @@ public static CmdLineOpts createFromArgs(String[] args) throws Exception {
options.addOption("topology_keys", true,
"Set up YugabyteDB JDBC driver with topology aware load balancing capability.");
options.addOption("debug_driver", true,
"Enable debug logs for YugabyteDB JDBC driver");
"Enable debug logs for YugabyteDB YSQL and YCQL drivers");
options.addOption("concurrent_clients", true,
"The number of client connections to establish to each host in the YugaByte DB cluster.");
options.addOption("ssl_cert", true,
Expand Down