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|
@rhoml
rhoml / ab_benchmark.md
Created October 29, 2013 14:23
Benchmarking Lua and Mruby on Nginx
Metric Lua Mruby Metric
Concurrency Level 150 150 transactions
Time taken for tests 7.981 8.269 seconds
Complete requests 3000 3000 requests
Failed requests 0 0 requests
Write errors 0 0
Non-2xx responses 3001 3001 requests
Total transferred 1233411 1206402 bytes
HTML transferred 582194 582194 bytes
192.168.2.1
192.168.2.2
@rhoml
rhoml / unicorn
Created September 16, 2013 15:21
Init for unicorn and puppet
#! /bin/bash
### BEGIN INIT INFO
# Provides: unicorn-puppet
# Required-Start: $local_fs $remote_fs $network $syslog
# Required-Stop: $local_fs $remote_fs $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts the unicorn app server
# Description: starts unicorn puppet
Check out README.md to get started editing Clojure with Emacs.
@rhoml
rhoml / clear_hipchat.rb
Created June 29, 2013 00:24
Erase Hipchat history
#!/usr/lib/ruby env
# Modified from https://gist.github.com/jpr5/4260656
require 'rubygems'
require 'mechanize'
account = {
:email => "example@example.com",
:password => "123456",
}
agent = Mechanize.new
@rhoml
rhoml / b00m.rb
Created June 28, 2013 19:26 — forked from jpr5/b00m.rb
require 'rubygems'
require 'mechanize'
account = {
:email => "jpr5@serv.io",
:password => "balls",
}
agent = Mechanize.new
site = agent.post("https://www.hipchat.com/sign_in", account).uri.host