Skip to content

Instantly share code, notes, and snippets.

View rustyrazorblade's full-sized avatar

Jon Haddad rustyrazorblade

View GitHub Profile
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
@rustyrazorblade
rustyrazorblade / gist:1a326496cced131db34c100452821519
Created December 7, 2023 23:02
compile bcc tools on ubuntu
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 ..
---
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:
---
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:
---
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:*"]
#!/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
#!/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
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")
<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>
@rustyrazorblade
rustyrazorblade / fio
Created January 16, 2019 02:34
test.fio
[global]
name=cassandra
bs=4k
direct=1
directory=data/
time_based=1
runtime=600
write_bw_log
write_lat_log