Tech

How-To: Mcollective/RabbitMQ on Ubuntu

1 ) Install RabbitMQ Prerequisites apt-get install -y erlang-base erlang-nox 2 ) Install RabbitMQ from the Download Site wget http://www.rabbitmq.com/releases/rabbitmq-server/v2.8.1/rabbitmq-server_2.8.1-1_all.deb dpkg -i rabbitmq-server_2.8.1-1_all.deb 3 ) Enable the stomp and AMQ plugins rabbitmq-plugins enable amqp_client rabbitmq-plugins enable rabbitmq_stomp 4 ) Create the rabbitmq config file in /etc/rabbitmq/rabbitmq.config %% Single broken configuration Read more…

By chris, ago
Tech

Load Balancing Puppet with Nginx

Due to the holidays, I’ve had to add a large number of new nodes to our infrastructure. This started putting too much CPU and memory load on the puppet master. Instead of moving to a larger instance, I looked to spread out to multiple boxes. This presented the problem of Read more…

By chris, ago
Tech

Deploying Ruby Applications Like an Adult

“Push button deploy” is something that is often hear people requesting or mentioning as something they would like to have. What’s more important, in my opinion, is to provide a reliable and scalable system for both internal and external developers to deploy code to the staging environment for clients to Read more…

By chris, ago
Tech

Dashboard Example with Sinatra and Mcollective

Having a dashboard to provide real time data to users helps minimize interruptions at work. The combination of Sinatra handling the incoming HTTP requests and Mcollective pulling real time data from the infrastructure provides the responsiveness and self-service that saves everyone time and effort. The example code is available on Read more…

By chris, ago
Tech

How to monitor like a grown up

Go to your monitoring system right now. What color is everything? If you even have to look you need to rethink how you’re monitoring The answer is that everything is green or acknowledged. Here are my rules for making monitoring useful again by monitoring like an adult. Monitoring is configured Read more…

By chris, ago
Tech

Puppet – so now what?? (Introduction)

After installing puppet a lot of people ask – “Now what?” My plan is to write a few posts on things that I have found useful in puppet other than the actual configuration of your nodes. These are things that have saved me trouble and/or made my infrastructure run more Read more…

By chris, ago
Tech

Better EC2 facts for Puppet

I didn’t like the facts that came with the standard facter for ec2, so I wrote a custom fact plugin returning more detailed information. It’s available on my GitHub Sample output is below   ec2_ami_id => ami-cdXXXXXX ec2_ami_launch-index => 0 ec2_ami_manifest-path => myamis/lenny-XXXXXXX-x86-20101207.manifest.xml ec2_ancestor_ami-ids => ami-XXXXXXXX,ami-XXXXXXXXXX ec2_block_device-mapping_ami => sda1 ec2_block_device-mapping_ephemeral0 Read more…

By chris, ago