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
import boto3 | |
import time | |
import datetime | |
from dateutil import parser | |
import botocore.exceptions | |
from colorama import init, Fore, Style | |
from rich.console import Console | |
from rich.table import Table | |
from rich.panel import Panel | |
from rich.progress import Progress, SpinnerColumn, TextColumn |
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 | |
export AWS_CA_BUNDLE="/etc/pki/ca-trust/source/anchors/cert.pem" | |
unset AWS_ACCESS_KEY_ID | |
unset AWS_SECRET_ACCESS_KEY | |
unset AWS_SESSION_TOKEN | |
echo "Getting the JWT from SSO..." | |
KC_ACCESS_TOKEN="$(./get_web_token.sh $1 $2 | jq -r '.id_token')" | |
if [ $? != 0 ] ; then echo "Failed to get token from SSO" ; exit 1 ; fi | |
echo -e "\n" |
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
# cat check_token.sh | |
USERNAME=$1 | |
PASSWORD=$2 | |
KC_CLIENT="ceph" | |
KC_CLIENT_SECRET="XXXXXSECRETXXXX" | |
KC_ACCESS_TOKEN="$(./get_web_token.sh $USERNAME $PASSWORD | jq -r '.access_token')" | |
KC_SERVER="https://keycloak-sso.apps.example.local" | |
KC_CONTEXT="auth" | |
KC_REALM="ceph" | |
curl -k -s -q \ |
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 | |
SITE1=cluster1 | |
SITE2=cluster2 | |
TOKEN='irw4CeuS7CgbSLMk6/k2YDJkAXmAKdndCYMZ4XXTYtwrTXgX6oghTbS4su7WMq4WAi' | |
HOOK1=http://rocket-chat-rocket-chat.apps.bos1.chris.ocs.ninja/hooks/${TOKEN} | |
HOOK2=http://rocket-chat-rocket-chat.apps.bos2.chris.ocs.ninja/hooks/${TOKEN} | |
TIME=10 | |
export NUMBER1=0 | |
export NUMBER2=0 | |
while true ; do |
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
#Check bucket limits: | |
$ radosgw-admin bucket limit check | jq '.[].buckets[].fill_status' | uniq | |
$ radosgw-admin bucket limit check | jq '.[].buckets[].objects_per_shard' | sort -n | uniq | |
#Default WARN Thresholds: | |
"osd_deep_scrub_large_omap_object_key_threshold": "2000000", | |
"osd_deep_scrub_large_omap_object_value_sum_threshold": "1073741824" #1G | |
#Warnings you get in the cluster log: |
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
These are the compression perf stats for the tests run with: 84 rbd volumes, 32 IO-Depth, 100% Random Write. | |
FIO config: | |
- LibRBD engine | |
- refill_buffers | |
- buffer_compress_percentage=80 | |
- buffer_pattern=0xdeadfac | |
Ceph config: | |
- bluestore_compression_algorithm: snappy |
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
# MariaDB Server configuration | |
# | |
# Please do not change this file directly since it is managed by Ansible and will be overwritten | |
[mariadb] | |
socket = /var/lib/mysql/mysql.sock | |
port = 3306 | |
default_storage_engine = InnoDB |
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
cat /usr/lib/tuned/ceph-tuned/tuned.conf | |
[main] | |
summary=ceph_perf | |
[cpu] | |
governor=performance | |
energy_perf_bias=performance | |
min_perf_pct=100 | |
force_latency=1 |
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
### PLEASE TAKE IN ACCOUNT THIS FILE IS CONFIGURED FOR BECHNMARK TESTING OF CEPH NOT PRODUCTION USE | |
# cat ceph-ansible-3.2/group_vars/all.yml | |
--- | |
dummy: | |
#ceph_release_num: | |
# dumpling: 0.67 | |
# emperor: 0.72 | |
# firefly: 0.80 |
NewerOlder