Remove puppet node license

Remove puppet node license

If you are using Puppet Enterprise, you are limited to 10 nodes before you have to start paying for each node you provision. When you terminate a puppet node, it won’t de-register itself from the node license. To remove puppet node license you need to manually deactivate the node from the PuppetDB and the way […]

Read More

Scaling WordPress in Amazon Cloud

Scaling WordPress in Amazon Cloud

Scaling WordPress is something I’ve been studying for a long time. By nature, WordPress isn’t designed to run on multiple servers unless you do some re-architecting on the server-side. Finally I’ve found a way to scale WordPress elastically and on demand. ?What I’m about to share has worked for me personally and I don’t guarantee […]

Read More

How to install latest Nginx on Ubuntu

How to install latest Nginx on Ubuntu

Ubuntu doesn’t always keep up with the latest stable releases of Nginx. To install latest Nginx on Ubuntu I normally follow these steps: Step 1 Add latest stable release distro to Ubuntu sources file in /etc/apt/sources.list. Replace ‘precise’ with your Ubuntu version: echo 'deb http://nginx.org/packages/ubuntu/ precise nginx' >> /etc/apt/sources.list Step 2 Add public key from […]

Read More

Mysql-bin files too large – solved

Mysql-bin files too large – solved

Newrelic?is an application monitoring tool that truly is developer’s best friend. It’s such a true statement. ?I’ve used Newrelic to pinpoint and successfully troubleshoot numerous applications. ?I’ve recently switched all database tables from MyISAM to InnoDB for a couple of reasons that are outside the scope of this post. What came to my intention is […]

Read More

Basic Auto Scaling configuration on AWS

Basic Auto Scaling configuration on AWS

Auto Scaling The following configuration allows me to sleep at night. It ensures that at least one EC2 instance will be running at any one time. ?The Auto Scaling CLI provided by Amazon is a simple tool that’s required for this configuration. To successfully configure auto scaling you need to follow these 2 steps: 1. […]

Read More

Create AMI image of an EC2 instance store volume

Create AMI image of an EC2 instance store volume

For my reference, these are the steps involved to create an AMI image backup of an Instance Store EC2 volume. 1. Install AMI tools. Might need to uncomment multiverse locations in /etc/apt/sources.list. sudo apt-get install ec2-ami-tools 2. Bundle the volume sudo ec2-bundle-vol -d /tmp -k /mycerts/ec2key.pem --cert /mycerts/cert-xxxxxxxxx.pem -u AWS_ACCOUNT_NUMBER -a -e /tmp -r i386 […]

Read More