Skip to content

Instantly share code, notes, and snippets.

View nerdmagic's full-sized avatar

Trey Palmer nerdmagic

View GitHub Profile
#!/bin/bash
for item in user bucket; do
for cluster in sv5 sv3 dc11; do
count="count_${cluster}"
plug=$count
eval $plug=$(ssh ${cluster}-ceph-rgw1 "sudo radosgw-admin $item list | jq length" 2> /dev/null )
if [[ "$cluster" != "sv5" ]]; then
if (( count_sv5 == ${!plug} )); then
echo "sv5 and $cluster both have $count_sv5 ${item}s"
else
[[email protected] tpalmer] # zfs get logbias,recordsize
NAME PROPERTY VALUE SOURCE
storage_array logbias latency default
storage_array recordsize 1M local
storage_array/mysql logbias latency default
storage_array/mysql recordsize 1M inherited from storage_array
storage_array/mysql/clstr01-us13 logbias latency default
storage_array/mysql/clstr01-us13 recordsize 1M inherited from storage_array
storage_array/mysql/clstr01-us13/data logbias throughput local
storage_array/mysql/clstr01-us13/data recordsize 16K local
<?xml version="1.0" encoding="UTF-8" ?> <workload name="mcceph1" description="MailChimp Ceph Benchmark 64x64KB" config="">
<auth type="none" />
<storage type="s3" config="accesskey=<accesskey>;secretkey=<secretkey>;endpoint=https://my-ceph-testing-url.mailchimp.com" />
<workflow>
<workstage name="init">
<auth type="none" />
<storage type="s3" config="accesskey=<accesskey>;secretkey=<secretkey>;endpoint=https://my-ceph-testing-url.mailchimp.com" />
<work type="init" workers="1" config="cprefix=s3testqwer;containers=r(1,2)">