Skip to content

Instantly share code, notes, and snippets.

View mainframe's full-sized avatar

Andres Toomsalu mainframe

View GitHub Profile
@mainframe
mainframe / ceph-rados-latency.py
Created December 6, 2016 13:29 — forked from wido/ceph-rados-latency.py
Simple Python script to store RADOS read/write latency in Graphite
#!/usr/bin/env python
'''
This script writes X MegaByte random data to 10 RADOS objects and read the data again afterwards
It writes these statistics towards a Graphite server so you can see what the latency
inside your cluster is for both Read and Write
Author: Wido den Hollander <[email protected]>
'''
#!/usr/bin/env python
'''
Simple Python script which endlessly keeps writing 100MB to a temp file.
Used to demonstrate a Ceph cluster. This script runs inside a Virtual Machine (KVM)
running on a RBD image on a Ceph cluster.
The demo is to randomly pull out machines and show that the script can still write
and read data.