Skip to content

Commit

Permalink
Updated loadtest example configuration to be more verbose and informa…
Browse files Browse the repository at this point in the history
…tive
  • Loading branch information
tdl-jturner committed Aug 20, 2019
1 parent 2029248 commit 8c1d08d
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 24 deletions.
21 changes: 0 additions & 21 deletions .admin/daodemo.sh

This file was deleted.

3 changes: 2 additions & 1 deletion casquatch-examples/loadtest/env
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
NAME=loadtest
SCHEMA=schema.cql
RUN_COMMAND="mvn clean test package;java -jar target/loadtest-0.0.1-SNAPSHOT.jar"
TEST_COMMAND="mvn clean test package"
RUN_COMMAND="java -jar target/loadtest-0.0.1-SNAPSHOT.jar"
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
casquatch {
basic {
contact-points = [
"127.0.0.1:9077"
"127.0.0.1:9215"
]
session-keyspace = loadtest
load-balancing-policy.local-datacenter=datacenter1
request.timeout=2 seconds
}
generator {
console=false
Expand All @@ -25,7 +26,7 @@ loadtest {
doCheck=true
create=false
delay=1
loops=1
loops=1000
entities=[TableName]
keyspace=${casquatch.basic.session-keyspace}
datacenter=${casquatch.basic.load-balancing-policy.local-datacenter}
Expand Down
35 changes: 35 additions & 0 deletions casquatch-examples/loadtest/src/main/resources/logback.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<!--
~ Copyright 2018 T-Mobile US, Inc.
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->

<configuration>

<statusListener class="ch.qos.logback.core.status.NopStatusListener" />

<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<!-- encoders are assigned the type
ch.qos.logback.classic.encoder.PatternLayoutEncoder by default -->
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
</encoder>
</appender>

<Logger name="com.tmobile.opensource.casquatch" level="${CASQUATCH_LOG_LEVEL:-ERROR}"/>
<Logger name="com.tmobile.opensource.casquatch.examples.loadtest" level="${CASQUATCH_LOG_LEVEL:-INFO}"/>

<root level="ERROR">
<appender-ref ref="STDOUT" />
</root>
</configuration>
5 changes: 5 additions & 0 deletions casquatch-examples/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ fi;

source ./.setup.sh

echo "---------------------------------------------"
echo "Test App"
echo "---------------------------------------------"
$TEST_COMMAND;

echo "---------------------------------------------"
echo "Run App"
echo "---------------------------------------------"
Expand Down

0 comments on commit 8c1d08d

Please sign in to comment.