Skip to content

Instantly share code, notes, and snippets.

View rhoml's full-sized avatar
WFH

Rhommel Lamas rhoml

WFH
View GitHub Profile
@rhoml
rhoml / gist:e00876b2ad5ad7942e3017197dc5059e
Last active March 13, 2020 02:11
Site Reliability Engineer Jobs

TL;DR

My team is looking for a site reliability engineer passionate about observability and reliability.

We are the team responsible for Platform and Site Reliability at Apptio, building our Kubernetes platform in AWS (EC2), including a bunch of leading-edge technology services around it to reduce the friction for our development teams.

In a typical day on this role, you will interact with Golang, Jsonnet, Kubernetes, Puppet, GitLab CI, Docker, Confluence, Jira, Slack, and AWS.

Don't worry if you don't know all these names/acronyms; we are not expecting you to, technology moves very fast these days.

@rhoml
rhoml / 20130416-todo.md
Created April 28, 2017 09:35 — forked from mrflip/20130416-todo.md
Elasticsearch Tuning Plan

Next Steps

  • Measure time spend on index, flush, refresh, merge, query, etc. (TD - done)
  • Take hot threads snapshots under read+write, read-only, write-only (TD - done)
  • Adjust refresh time to 10s (from 1s) and see how load changes (TD)
  • Measure time of a rolling restart doing disable_flush and disable_recovery (TD)
  • Specify routing on query -- make it choose same node for each shard each time (MD)
  • GC new generation size (TD)
  • Warmers
  • measure before/after of client query time with and without warmers (MD)
@rhoml
rhoml / mesos.conf
Created September 6, 2016 22:41 — forked from gtrummell/mesos.conf
Logstash configuration for Mesos
# Logstash Configuration for Mesos Masters and Slaves
input {
file {
path => "/var/log/mesos/mesos-master.[EIFW]*"
tags => [
"master"
]
}
file {
@rhoml
rhoml / ec2tags.rb
Created April 5, 2016 11:12 — forked from rafaelfelix/ec2tags.rb
Hack to get ec2 tags to facter. Depends on aws-cli (https://github.com/aws/aws-cli), jq (http://stedolan.github.io/jq/) and the JSON RubyGem (http://rubygems.org/gems/json)
require 'facter'
require 'json'
if Facter.value("ec2_instance_id") != nil
instance_id = Facter.value("ec2_instance_id")
region = Facter.value("ec2_placement_availability_zone")[0..-2]
tags = Facter::Util::Resolution.exec("aws ec2 describe-tags --filters \"name=resource-id,values=#{instance_id}\" --region #{region} | jq '[.Tags[] | {key: .Key, value: .Value}]'")
parsed_tags = JSON.parse(tags)
parsed_tags.each do |tag|

Keybase proof

I hereby claim:

  • I am rhoml on github.
  • I am rhoml (https://keybase.io/rhoml) on keybase.
  • I have a public key whose fingerprint is 4289 50B6 1986 2303 5CE5 65EF 4D86 1C8B B81D C778

To claim this, I am signing this object:

@rhoml
rhoml / clients.md
Last active August 29, 2015 14:21 — forked from defunkt/clients.md

Gist Clients

Want to create a Gist from your editor, the command line, or the Services menu? Here's how.

Editor Support

@rhoml
rhoml / reconfigure.sh
Last active August 29, 2015 14:07
Reconfigure script for Sentinel and Twemproxy
#!/bin/bash
# Simple reconfigure script to modify multiple nutcracker(twemproxy) servers in case of Redis
# Failover.
export PATH=/sbin:/usr/local/bin:$PATH
NAME=sentinel
LOGFILE=/opt/sentinel/logs/reconfigure.log
ERRORLOGFILE=/opt/sentinel/logs/reconfigure.error.log
NUTCRACKER_CONF=/opt/nutcracker/etc/nutcracker.yml
@rhoml
rhoml / sentinel-reconfigure.sh
Created June 5, 2014 07:20
SENTINEL CLIENTS RECONFIGURATION SCRIPT to update twemproxy nutcracker.yml when running 2 twemproxy nodes on the same instance.
#!/bin/bash
export PATH=/sbin:/usr/local/bin:$PATH
NAME=sentinel
LOGFILE=/opt/sentinel/logs/reconfigure.log
ERRORLOGFILE=/opt/sentinel/logs/reconfigure.error.log
NUTCRACKER_CONF=/opt/nutcracker/etc/nutcracker.yml
NUTCRACKERFAILOVER_CONF=/opt/nutcracker/etc/nutcrackerfailover.yml
NUTCRACKER_PORTs='22121,22123'
MASTER_NAME=$1
@rhoml
rhoml / 0_reuse_code.js
Created June 2, 2014 14:02
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@rhoml
rhoml / reconfigure.sh
Last active August 29, 2015 14:01
Reconfigure script for sentinel to update twemproxy when certain redis instance fails.
#!/bin/bash
# <master-name> <role> <state> <from-ip> <from-port> <to-ip> <to-port>
export PATH=/sbin:/usr/local/bin:$PATH
NUTCRACKER_CONF='/opt/nutcracker/conf/nutcracker.yml'
NUTCRACKER_PORT=22121
MASTER_NAME=$1
ROLE=$2
STATE=$3
FROM_IP=$4
FROM_PORT=$5