Skip to content

Instantly share code, notes, and snippets.

View tsmgeek's full-sized avatar

Ricardo tsmgeek

  • London
View GitHub Profile
@tsmgeek
tsmgeek / findLongRunningOp.js
Created January 21, 2019 11:32 — forked from kylemclaren/findLongRunningOp.js
Find and (safely) kill long running MongoDB ops
db.currentOp().inprog.forEach(
function(op) {
if(op.secs_running > 5) printjson(op);
}
)
@tsmgeek
tsmgeek / gist:b0fea6a486a8279f88e760b236957cb1
Created June 28, 2017 13:35
Pacemaker OCF resource agent for Minio
#!/bin/sh
#
# Resource script for Minio
#
# Description: Manages Minio as an OCF resource in
# an Active-Passive High Availability setup.
#
# Author: Ricardo Branco <[email protected]> : Initial script for minio server
# License: GNU General Public License (GPL)
#