Skip to content

Instantly share code, notes, and snippets.

View dmsimard's full-sized avatar

David Moreau Simard dmsimard

View GitHub Profile
@dmsimard
dmsimard / gist:7304179
Created November 4, 2013 15:26
Example init.pp puppet-ceph (stackforge)
class { 'ceph::repo':
release => "dumpling"
}
class { 'ceph::init': }
Class['ceph::repo'] -> Class['ceph::init']
@dmsimard
dmsimard / gist:7305126
Created November 4, 2013 16:22
ceph_init_systemspec
# Copyright (C) iWeb Technologies Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
@dmsimard
dmsimard / gist:2737832d077cfc5eff34
Last active February 3, 2020 15:28
Ceph Benchmarks

The tests

fio full write:

fio --name=writefile --size=100G --filesize=100G --filename=/dev/sdX --bs=1M --nrfiles=1 --direct=1 --sync=0 --randrepeat=0 --rw=write --refill_buffers --end_fsync=1 --iodepth=200 --ioengine=libaio

fio random read:

fio --time_based --name=benchmark --size=100G --runtime=30 --filename=/dev/sdX --ioengine=libaio --randrepeat=0 --iodepth=128 --direct=1 --invalidate=1 --verify=0 --verify_fatal=0 --numjobs=4 --rw=randread --blocksize=4k --group_reporting
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
#!/bin/bash
# Workaround for known issues installing Packstack for OpenStack Mitaka RDO Test days
# https://etherpad.openstack.org/p/rdo-test-days-mitaka-m1
yum -y install yum-plugin-priorities
# Add Mitaka repositories
curl http://trunk.rdoproject.org/centos7/delorean-deps.repo |tee /etc/yum.repos.d/delorean-deps.repo
curl http://trunk.rdoproject.org/centos7/current/delorean.repo |tee /etc/yum.repos.d/delorean.repo
# Install packstack and dependencies
#!/bin/bash
echo "Did you really run this ?"
#!/bin/bash -ex
# Exit if we're not running on rhel-like
if [ -f /etc/os-release ]; then
source /etc/os-release
test "$ID" = "fedora" -o "$ID" = "centos"
else
exit 1
fi
if [ $(id -u) != 0 ]; then
---
tasks:
- block:
- debug: msg='I execute normally'
- command: /bin/false
rescue:
- include: rescue.yml
key: 6bf597e0-8a98-478b-9a88-e9e389fdfd38
- name: Capture facts for output to file
setup:
register: ansible_facts
- name: Output facts to file
copy:
content: "{{ ansible_facts | to_nice_json }}"
dest: "./before.txt"
- set_fact: