Skip to content

Instantly share code, notes, and snippets.

View mulbc's full-sized avatar

Chris Blum mulbc

  • IBM
  • Berlin, Germany
  • 15:16 (UTC +02:00)
View GitHub Profile
@mulbc
mulbc / brew install -debug -verbose ceph-client
Created July 14, 2018 13:57
Building ceph-client Homebrew tap with ceph mimic branch and PR 23034
$ brew reinstall -debug -verbose ceph-client
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/ceph-client.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/openssl.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/makedepend.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/pkg-config.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/ccache.rb
/usr/local/Homebrew/Library/Homebrew/brew.rb (Formulary::FormulaLoader): loading /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/cmake.rb
/usr/local/Homebrew/Library/Homebrew
@mulbc
mulbc / init_secret.sh
Created September 25, 2018 13:57
oncall.tools deployment on Kubernetes
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
#!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
#!/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():
@mulbc
mulbc / Gosbench Dashboard.json
Created September 4, 2019 09:05
Gosbench Dashboard
{
"__inputs": [
{
"name": "DS_LOCAL",
"label": "Local",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}
@mulbc
mulbc / keybase.md
Created September 15, 2019 16:06
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:

@mulbc
mulbc / cosbench.xml
Last active January 3, 2020 01:27
Cosbench versus Gosbench test config files
<?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>
@mulbc
mulbc / ceph-client.rb
Last active May 6, 2020 03:36
ceph client library CLI tools for OSX
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
---
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: disk-gatherer
namespace: default
labels:
k8s-app: disk-gatherer
spec:
selector:
@mulbc
mulbc / state.json
Last active October 4, 2021 09:32 — forked from dobbythebot/state.json
{
"ocs": {
"flashSize": 2.5,
"usableCapacity": 10,
"deploymentType": "internal",
"nvmeTuning": false,
"cephFSActive": true,
"nooBaaActive": true,
"rgwActive": false,
"dedicatedMachines": []