Skip to content

Instantly share code, notes, and snippets.

Avatar

Chris Blum mulbc

  • Berlin, Germany
View GitHub Profile
View disk-id-ds.yaml
---
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: disk-gatherer
namespace: default
labels:
k8s-app: disk-gatherer
spec:
selector:
@mulbc
mulbc / ceph-client.rb
Last active May 6, 2020
ceph client library CLI tools for OSX
View ceph-client.rb
class CephClient < Formula
desc "Rados and RBD CLIs and libraries of the Ceph project"
homepage "https://ceph.com"
url "git@github.com:ceph/ceph.git", :using => :git, :tag => "v13.2.0"
sha256 "9469c2af0a997a27ddfced71cef3fd55483ab0e34cc36a07a46ccf0d886a2d91"
depends_on :python if MacOS.version <= :snow_leopard
depends_on :osxfuse
depends_on "openssl" => :build
@mulbc
mulbc / cosbench.xml
Last active Jan 3, 2020
Cosbench versus Gosbench test config files
View cosbench.xml
<?xml version="1.0" encoding="UTF-8" ?>
<workload name="7-RGW-64K-1M-32M" description="7 RGW 64K-1M-32M test" config="">
<storage type="s3" config="accesskey=S3user1;secretkey=S3user1key;timeout=999999;endpoint=http://192.168.170.20:8080" />
<workflow>
<!-- ************************* 64K ********************************* -->
<workstage name="init">
<work type="init" workers="8" config="cprefix=7rgw64k;containers=r(1,70)"></work>
View keybase.md

Keybase proof

I hereby claim:

  • I am mulbc on github.
  • I am chrisnblum (https://keybase.io/chrisnblum) on keybase.
  • I have a public key whose fingerprint is 536F 2CCA CC87 1421 DC69 84A1 FE67 A71B 6BDE BDA8

To claim this, I am signing this object:

View Gosbench Dashboard.json
{
"__inputs": [
{
"name": "DS_LOCAL",
"label": "Local",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}
@mulbc
mulbc / cosb_grafa_link.py
Created Sep 4, 2019
Cosbench misc parses
View cosb_grafa_link.py
View radosgw-exporter.service
[Unit]
Description=Ceph RGW Prometheus Exporter
After=docker.service
[Service]
EnvironmentFile=-/etc/environment
ExecStart=/usr/local/bin/python3 /usr/bin/rgw_exporter.py
Restart=always
RestartSec=90s
TimeoutStartSec=300
View get_omap_stats.py
#!/usr/bin/env python2
import rados
import sys
import time
cluster = rados.Rados(conffile='/etc/ceph/ceph.conf')
cluster.connect()
for pool in cluster.list_pools():
View boot.ipxe
#!ipxe
# Source: https://gist.github.com/robinsmidsrod/2234639#file-menu-ipxe
# Some menu defaults
#set menu-timeout 5000
set menu-timeout 0
set submenu-timeout ${menu-timeout}
isset ${menu-default} || set menu-default exit
@mulbc
mulbc / init_secret.sh
Created Sep 25, 2018
oncall.tools deployment on Kubernetes
View init_secret.sh
kubectl create ns oncall
kubectl config set-context (kubectl config current-context) --namespace=oncall
kubectl create secret generic mysql-pass --from-literal=password='1234'
kubectl apply -f oncall_config.yml
kubectl apply -f oncall_depl.yml