Tech

Deleting DNS records in route53 with the CLI

I could not find a good tutorial for deleting route53 records in DNS. This requires that you have jq installed first Find my hosted zones id $ aws --region us-west-1 --profile client-terraform \ route53 list-hosted-zones-by-name --dns-name example.net \ |jq .HostedZones[].Id \ "/hostedzone/MYZONEID" Get the actual record $ aws --region us-west-1 Read more…

By chris, ago
Analysis

Using JMX on Vagrant

Getting JMX remote from my desktop to a Vagrant machine took a few tries. Vagrant file configuration to add more memory and forward the HTTP and JMX ports Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| config.vm.box = "ubuntu/xenial64" config.vm.network "forwarded_port", guest: 8080, host: 8080 config.vm.network "forwarded_port", guest: 9010, host: 9010 config.vm.provider "virtualbox" do |vb| Read more…

By chris, ago
Analysis

Blogspam Analysis with R Part 1

This morning while checking the comments on this blog I was surprised at the amount of spam comments caught by the Akismet plugin, so I decided to dive in with some logfile analysis using R to see if I could lessen the scourge. Grab the data from my nginx logs, since Read more…

By chris, ago
Tech

Getting started with VimWiki

VimWiki is an excellent tool for creating both a personal knowledgebase and journal.  I use it everyday to keep track of new techniques that I learn as well as to keep notes on how I perform tasks everyday.  Because it is completely text based with minimal formatting, it is possible Read more…

By chris, ago
Tech

Opensource Infrastructure Revisited

In a previous article, I detailed the open source projects that I used to implement a PaaS infrastructure. Since that time the number of instances in the infrastructure has grown by 2.5X and several of the components needed to be rethought. Capacity/Performance Management Previous: Collectd/Visage Replacement: Collectd/Graphite Reasons: The collectd Read more…

By chris, ago
Tech

Upgrading to Puppet 3.0

After spending a few days at PuppetConf and talking with Eric S. and Jeff McC. of puppetlabs, I felt compelled to upgrade the latest version of our architecture to Puppet 3.0 from 2.7. Mainly to fix plugin sync issues and for the increased performance. Here is my list of gotchas: Read more…

By chris, ago
Tech

Sync Puppet Certs between EC2 regions

In the past I have used nginx to route all cert requests to a single cert server. This worked fine when I had limited my puppet infrastructure to a single EC2 region. However, I recently decided to have puppet masters on separate coasts. Keeping the certs in sync requires a Read more…

By chris, ago
Tech

HTTP Troubleshooting with tcpdump/tcptrace

Operations people are often called upon to do low level HTTP troublshooting and I often end up using tcpdump and tcptrace to break out HTTP sessions and troubleshoot. Install tcptrace on your localmachine apt-get install tcptrace or for you Mac people brew install tcptrace Run tcpdump on your server tcpdump Read more…

By chris, ago