InfoHeap
Tech
Navigation
  • Home
  • Tutorials
    • CSS tutorials & examples
    • CSS properties
    • Javascript cookbook
    • Linux/Unix Command Line
    • Mac
    • PHP
      • PHP functions online
      • PHP regex
    • WordPress
  • Online Tools
    • Text utilities
    • Online Lint Tools
search

AWS and EC2

  • AWS benefits
  • Broken sudoers file
  • EBS and reliability/durability
  • EC2 api tools on Ubuntu
  • How to extend disk (EBS) size on Amazon Linux
  • Install wordpress AWS Classic Ubuntu
  • Linux instance on AWS Classic
  • Mysql access
  • Mysql service and micro instance
  • Route53 as DNS
  • Upgrade Linux micro instance to small
  • ssh automation
 
  • Home
  • > Tutorials
  • > AWS and EC2

How to upgrade EC2 Ubuntu Linux micro instance to small

By admin | Last updated on Mar 15, 2016

I was running my wordpress site on Amazon EC2 Ubuntu micro instance and it was performing pretty good. Even though I did not see any issue with this setup (micro instance), I decided to upgrade to small instance. The cost of small instance is approx 2.5 times of micro instance.

Reasons for the upgrade

  1. Small instance gives you 1.7GB memory as compared to 0.6GGB RAM. So far I have been on the border in terms of memory usage. Now I can increase php apc memory size.
  2. Small instance provide  compute unit of 1 (1 core x 1 unit). Micro instance provides 2 compute units (only for short bursts). Otherwise it is a fraction of what small instance provides.
  3. Small instance has better io performance and more storage.

Steps to upgrade

The easiest option it to shutdown the instance and then change the instance type. With this approach no data copying will be required. Here are the steps:

  1. First make sure you take a snapshot of your EBS volume in case something goes wrong. Click on Volumes, select desired EBS volume, click action and then click create snapshot. Here is how it looks in AWS console.
    aws-ebs-create-snapshot-menuName the snapshot appropriately when asked and wait till the snapshot creation is completely done. You can check the status by clicking on snapshots left menu.
  2. Now ensure that your instance shutdown behavior is set to “stop” and not “terminate”. Otherwise shutting down the instance will terminate it. You can view the current value by going to Action -> Change shutdown behavior.
    aws-ec2-change-shutdown-behavior-menu
  3. Select the instance and click shutdown from the action menu. Wait till the shutdown is complete. Click on Action again and click “Change Instance Type”.
    aws-ec2-change-instance-type-menu
  4. Select the small instance from the list and click “Yes, Change” as shown below.
    aws-ec2-instace-type-dropdown
  5. Now start the instance (from Action menu). You may have to re-attach any elastic IP address which was earlier attached to this instance.
  6. Connect to the Linux machine and run cat /proc/meminfo. You should see something like this.
    MemTotal: 1692584 kB
    MemFree: 1260636 kB
    ...

    Here the total memory is approx 1.69GB which is as expected.

Suggested posts:

  1. Linux rsync tutorial
  2. How to set up google analytics profiles for domain and sub-domain tracking
  3. How to capture php code or included file output in a variable
  4. How to check the performance of a plugin using mysql query log
  5. PHP echo – comma (,) vs dot (.) performance benchmarks
  6. How to convert text to speech on Mac using command line utility say
  7. Find which process is listening on a port on Linux
  8. Php apc vs memcache
Share this article: share on facebook share on linkedin tweet this submit to reddit
Posted in Tutorials | Tagged AWS and EC2, Cloud, Tutorials
  • Browse content
  • Article Topics
  • Article archives
  • Contact Us
Popular Topics: Android Development | AngularJS | Apache | AWS and EC2 | Bash shell scripting | Chrome developer tools | Company results | CSS | CSS cookbook | CSS properties | CSS Pseudo Classes | CSS selectors | CSS3 | CSS3 flexbox | Devops | Git | HTML | HTML5 | Java | Javascript | Javascript cookbook | Javascript DOM | jQuery | Kubernetes | Linux | Linux/Unix Command Line | Mac | Mac Command Line | Mysql | Networking | Node.js | Online Tools | PHP | PHP cookbook | PHP Regex | Python | Python array | Python cookbook | SEO | Site Performance | SSH | Ubuntu Linux | Web Development | Webmaster | Wordpress | Wordpress customization | Wordpress How To | Wordpress Mysql Queries | InfoHeap Money

Copyright © 2025 InfoHeap.

Powered by WordPress