This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ubuntu@cassandra0:~$ nt status | |
Datacenter: us-west-2 | |
===================== | |
Status=Up/Down | |
|/ State=Normal/Leaving/Joining/Moving | |
-- Address Load Tokens Owns (effective) Host ID Rack | |
UN 172.31.29.91 68.79 KiB 4 100.0% aaaaf5d0-4f00-48e4-8530-6bb7f951a0d8 us-west-2b | |
UN 172.31.47.193 68.8 KiB 4 100.0% a7399471-7c40-4b00-aa94-0f94594c7cff us-west-2a | |
ubuntu@cassandra0:~$ c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt purge bpfcc-tools libbpfcc python3-bpfcc | |
wget https://github.com/iovisor/bcc/releases/download/v0.25.0/bcc-src-with-submodule.tar.gz | |
tar xf bcc-src-with-submodule.tar.gz | |
cd bcc/ | |
apt install -y python-is-python3 | |
apt install -y bison build-essential cmake flex git libedit-dev libllvm11 llvm-11-dev libclang-11-dev zlib1g-dev libelf-dev libfl-dev python3-distutils | |
apt install -y checkinstall | |
mkdir build | |
cd build/ | |
cmake -DCMAKE_INSTALL_PREFIX=/usr -DPYTHON_CMD=python3 .. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
startDelaySeconds: 0 | |
hostPort: 127.0.0.1:7199 | |
username: | |
password: | |
#jmxUrl: service:jmx:rmi:///jndi/rmi://127.0.0.1:7199/jmxrmi | |
ssl: false | |
lowercaseOutputName: false | |
lowercaseOutputLabelNames: false | |
whitelistObjectNames: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
startDelaySeconds: 0 | |
hostPort: 127.0.0.1:7199 | |
username: | |
password: | |
#jmxUrl: service:jmx:rmi:///jndi/rmi://127.0.0.1:7199/jmxrmi | |
ssl: false | |
lowercaseOutputName: false | |
lowercaseOutputLabelNames: false | |
whitelistObjectNames: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
startDelaySeconds: 0 | |
hostPort: 127.0.0.1:7199 | |
username: | |
password: | |
#jmxUrl: service:jmx:rmi:///jndi/rmi://127.0.0.1:7199/jmxrmi | |
ssl: false | |
lowercaseOutputName: false | |
lowercaseOutputLabelNames: false | |
whitelistObjectNames: ["org.apache.cassandra.metrics:*", "org.apache.cassandra.db:*"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
tlp-cluster init cassandra CASSANDRA-15066 messaging-improvements -s 1 -c 9 --instance r3.xlarge --az a,b,c | |
tlp-cluster up --yes | |
tlp-cluster build -n may28 ~/dev/cassandra | |
tlp-cluster use may28 -c dynamic_snitch:false -c concurrent_reads:128 -c concurrent_writes:128 -c num_tokens:32 -c cross_node_timeout:true -c compaction_throughput_mb_per_sec:64 | |
cat << EOF >> provisioning/cassandra/conf/jvm-server.options | |
-Xmx16G | |
-Xms16G |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
tlp-cluster init cassandra CASSANDRA-15066 messaging-improvements -s 1 -c 9 --instance r3.xlarge --az a,b,c | |
tlp-cluster up --yes | |
tlp-cluster build -n may28 ~/dev/cassandra | |
tlp-cluster use may28 -c dynamic_snitch:false -c concurrent_reads:128 -c concurrent_writes:128 -c num_tokens:32 -c cross_node_timeout:true | |
cat << EOF >> provisioning/cassandra/conf/jvm-server.options | |
-Xmx16G | |
-Xms16G |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fun applyDynamicSettings(workloadParameters: Map<String, String>) { | |
for((key, value) in workloadParameters) { | |
var prop = getProperty(instance, key) as KMutableProperty<*> | |
val annotation = prop.findAnnotation<WorkloadParameter>() | |
log.debug("Annotation for $key found: $annotation") | |
// Int | |
if(prop.returnType.isSubtypeOf(Int::class.createType())) { | |
log.debug("Found the type, we have an int, setting the value") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<configuration> | |
<appender name="FILE" class="ch.qos.logback.core.FileAppender"> | |
<file>/home/jhaddad/.tlpstress/stress.log</file> | |
<append>false</append> | |
<!-- set immediateFlush to false for much higher logging throughput --> | |
<immediateFlush>false</immediateFlush> | |
<!-- encoders are assigned the type | |
ch.qos.logback.classic.encoder.PatternLayoutEncoder by default --> | |
<encoder> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[global] | |
name=cassandra | |
bs=4k | |
direct=1 | |
directory=data/ | |
time_based=1 | |
runtime=600 | |
write_bw_log | |
write_lat_log |
NewerOlder