Skip to content

Instantly share code, notes, and snippets.

View ivanthelad's full-sized avatar

Ivan Mc Kinley ivanthelad

  • Microsoft
  • Munich
View GitHub Profile
#!/bin/bash
###########################################################
# Configure Swarm Mode One Box
#
# This installs the following components
# - Docker
# - Docker Compose
# - Swarm Mode masters
# - Swarm Mode agents
apiVersion: v1
items:
- apiVersion: v1
kind: DeploymentConfig
metadata:
annotations:
openshift.io/generated-by: OpenShiftNewApp
openshift.io/scc: restricted
creationTimestamp: null
labels:
@Filirom1
Filirom1 / README.md
Last active August 29, 2015 14:04
What happens when you create an application on OpenShift.

What happens when you create an application on OpenShift.

             __________                __________
            |          |     mco      |          |__
rhc ----->  |  Broker  |  --------->  |   Node   |  |__
            |__________| \            |__________|  |  |
                  /\     \  --------->   |__________|  |
                  |       \ --------->      |__________|
             _____|____ 

| |

@rantav
rantav / riemann-dynamic-threshold.rb
Last active May 17, 2018 05:51
Example how to do dynamic threshold in riemann
vagrant@precise64:~$ irb
1.9.3-p484 :002 > require "riemann"
=> true
# Set the threshold for the service "load" for "precise64" to 1
1.9.3-p484 :016 > Riemann::Client.new << {service: "dynamic-threshold-load", host: "precise64", metric: 1.0, ttl: Float::INFINITY}
# Set the threshold for the service "load" for "precise64" to 0
1.9.3-p484 :015 > Riemann::Client.new << {service: "dynamic-threshold-load", host: "precise64", metric: 0, ttl: Float::INFINITY}
# Set the threshold to 10
1.9.3-p484 :017 > Riemann::Client.new << {service: "dynamic-threshold-load", host: "precise64", metric: 10, ttl: Float::INFINITY}
# Clear the threshold