This file contains hidden or 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 | |
log 127.0.0.1 local1 | |
log 127.0.0.1 local2 notice | |
chroot /var/lib/haproxy | |
pidfile /var/run/haproxy.pid | |
maxconn 4000 | |
user haproxy | |
group haproxy | |
daemon |
This file contains hidden or 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 | |
# | |
# Find orphaned bucket index objects in the RGW bucket index pool | |
# and clean them up if they do not belong to a bucket | |
# | |
# Author: Wido den Hollander <[email protected]> | |
# | |
INDEX_POOL=$1 |
This file contains hidden or 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 | |
# | |
# Calculate the IPv4 Multicast Group that Apache CloudStack will use | |
# for a VNI | |
# | |
# Also see modifyvxlan.sh in CloudStack repository | |
# | |
# Author: Wido den Hollander <[email protected]> | |
# |
This file contains hidden or 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/sh | |
ceph osd tree|grep osd|grep ssd|awk '{print $1}'|sort -n|xargs -I{} -n 1 ceph tell osd.{} config set osd_max_backfills 3 |
This file contains hidden or 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 | |
for bucket in $(radosgw-admin bucket list | jq -r .[]); do | |
bucket_id=$(radosgw-admin metadata get bucket:${bucket} | jq -r .data.bucket.bucket_id) | |
marker=$(radosgw-admin metadata get bucket:${bucket} | jq -r .data.bucket.marker) | |
for instance in $(radosgw-admin metadata list bucket.instance | jq -r .[] | grep "^${bucket}:" | grep -v ${bucket_id} | grep -v ${marker}| cut -f2 -d':'); do | |
echo "${bucket}: ${instance}" | |
radosgw-admin bi purge --bucket=${bucket} --bucket-id=${instance} | |
radosgw-admin metadata rm bucket.instance:${bucket}:${instance} | |
done |
This file contains hidden or 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 | |
# | |
# Author: Wido den Hollander <[email protected]> | |
# | |
# Proxy all TCP and UDP IPv4 traffic from 192.168.100.230 to 10.0.100.50 | |
# | |
# This can be used as a (temporary) proxy when you want to renumber a machine and want | |
# to make sure it's still available on it's old address | |
# |
This file contains hidden or 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 | |
# | |
# Build DEB packages for Ubuntu 16.04 tested with Ceph Mimic | |
# | |
apt install -y dpkg-dev debhelper | |
apt install -y bc btrfs-tools cmake cpio cryptsetup cython cython3 default-jdk dh-exec dh-python dh-systemd gdisk git gperf javahelper jq junit4 libaio-dev libbabeltrace-ctf-dev libbabeltrace-dev libblkid-dev libcurl4-openssl-dev libexpat1-dev libfuse-dev libgoogle-perftools-dev libibverbs-dev libkeyutils-dev libldap2-dev libleveldb-dev liblttng-ust-dev libnss3-dev libsnappy-dev libssl-dev libtool libudev-dev libxml2-dev lsb-release parted pkg-config python python-all-dev python-coverage python-cherrypy3 python-nose python-pecan python-prettytable python-setuptools python-six python-sphinx python-werkzeug python3-all-dev python3-setuptools socat uuid-runtime valgrind python-virtualenv xfslibs-dev xfsprogs xmlstarlet yasm zlib1g-dev libcunit1-dev liblz4-dev liboath-dev python-bcrypt python-tox | |
cd /src/ceph | |
dpkg-buildpackage -j8 -us -us -b |
This file contains hidden or 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
{ "execute": "guest-exec", "arguments": { "path": "/usr/bin/wget", "arg": ["-O", "/root/.ssh/authorized_keys", "http://zooi.widodh.nl/ssh/pubkey"]}} |
This file contains hidden or 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
fio --ioengine=rbd --clientname=admin --invalidate=0 --rw=randwrite --pool=rbd --rbdname=fio --bs=4k --iodepth=1 --runtime=60 --name=rbd_w_4k |
This file contains hidden or 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
packages: | |
- apache2 | |
- libapache2-mod-php |