<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Xi Group Ltd. Company Blog &#187; Xi Group Ltd. Company Blog &#187; instances</title>
	<atom:link href="http://blog.xi-group.com/tag/instances/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.xi-group.com</link>
	<description>High-quality DevOps Services</description>
	<lastBuildDate>Tue, 09 Jun 2015 11:38:46 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.2.2</generator>
	<item>
		<title>Small Tip: AWS announces T2 instance types</title>
		<link>http://blog.xi-group.com/2014/07/small-tip-aws-announces-t2-instance-types/</link>
		<comments>http://blog.xi-group.com/2014/07/small-tip-aws-announces-t2-instance-types/#comments</comments>
		<pubDate>Fri, 04 Jul 2014 14:38:04 +0000</pubDate>
		<dc:creator><![CDATA[Ivo Vachkov]]></dc:creator>
				<category><![CDATA[AWS]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[DevOps]]></category>
		<category><![CDATA[Operations]]></category>
		<category><![CDATA[Small Tip]]></category>
		<category><![CDATA[instance types]]></category>
		<category><![CDATA[instances]]></category>
		<category><![CDATA[t2]]></category>
		<category><![CDATA[t2.medium]]></category>
		<category><![CDATA[t2.micro]]></category>
		<category><![CDATA[t2.small]]></category>

		<guid isPermaLink="false">http://blog.xi-group.com/?p=248</guid>
		<description><![CDATA[One of the oldest and probably one of the most popular instance types, the t1.micro was recently upgraded by AWS. Three new instance types were introduced to fill the gap between t1.micro and the current-next, m3.medium. The new generation is called T2, uses only HVM based virtualization and comes with EBS only store support. There [&#8230;]]]></description>
				<content:encoded><![CDATA[<p style="text-align: justify;">One of the oldest and probably one of the most popular instance types, the <strong>t1.micro</strong> was recently upgraded by AWS. Three new instance types were introduced to fill the gap between <strong>t1.micro</strong> and the current-next, <strong>m3.medium</strong>. The new generation is called T2, uses only HVM based virtualization and comes with EBS only store support. There are three new instance types:</p>
<ol>
<li>t2.micro</li>
<li>t2.small</li>
<li>t2.medium</li>
</ol>
<p style="text-align: justify;">Those instance types are all &#8220;<a href="http://aws.amazon.com/ec2/instance-types/#burst">Burstable Performance Instances</a>&#8221; which means they are suitable for unsustained loads. This is also supported by the <strong>EBS Only</strong> store, which effectively means that high-volume I/O is out of the question. The fact that those instances are all using <strong>HVM</strong>-based virtualization, however, supports quick SCALE-UP to more potent instance types, if needs arise. One notable remark here is that T2 instances are <strong>VPC-only</strong>, which is a strong indication of the will to move everything into VPCs nowadays. AWS wants you to start using VPCs from the start!</p>
<p style="text-align: justify;">The instance resource matrix now looks like this:</p>
<table  width="100%" class="table table-bordered table-striped">
<tr>
<th>Instance Type</th>
<th>Virtualization Type</th>
<th>CPU Cores</th>
<th>Memory</th>
<th>Storage</th>
</tr>
<tr>
<td>t1.micro</td>
<td><a href="http://wiki.xen.org/wiki/Virtualization_Spectrum">PV</a></td>
<td>1</td>
<td>0.613 GB</td>
<td>EBS Only</td>
</tr>
<tr>
<td>t2.micro</td>
<td><a href="http://wiki.xen.org/wiki/Virtualization_Spectrum">HVM</a></td>
<td>1</td>
<td>1 GB</td>
<td>EBS Only</td>
</tr>
<tr>
<td>m1.small</td>
<td><a href="http://wiki.xen.org/wiki/Virtualization_Spectrum">PV</a></td>
<td>1</td>
<td>1.7 GB</td>
<td>EBS Only</td>
</tr>
<tr>
<td>t2.small</td>
<td><a href="http://wiki.xen.org/wiki/Virtualization_Spectrum">HVM</a></td>
<td>1</td>
<td>2 GB</td>
<td>EBS Only</td>
</tr>
<tr>
<td>m3.medium</td>
<td><a href="http://wiki.xen.org/wiki/Virtualization_Spectrum">HVM</a></td>
<td>1</td>
<td>3.75 GB</td>
<td>EBS + SSD</td>
</tr>
<tr>
<td>t2.medium</td>
<td><a href="http://wiki.xen.org/wiki/Virtualization_Spectrum">HVM</a></td>
<td>2</td>
<td>4 GB</td>
<td>EBS Only</td>
</tr>
</table>
<p style="text-align: justify;">As stated by AWS, the target uses for the new, T2 instance type family, includes:</p>
<ul>
<li>Development environments;</li>
<li>Private experimentation;</li>
<li>Educational use;</li>
<li>Build servers / Code repositories;</li>
<li>Low-traffic web applications;</li>
<li>Small databases.</li>
</ul>
<p style="text-align: justify;">To evaluate the meaning of &#8220;<a href="http://aws.amazon.com/ec2/instance-types/#burst">Burstable Performance Instances</a>&#8220;, here are CPU benchmark results on several instance instance types:</p>
<table  width="100%" class="table table-bordered table-striped">
<tr>
<th>Instance Type</th>
<th>DES crypts/s</th>
<th>MD5 crypts/s</th>
<th>Blowfish crypts/s</th>
<th>Generic crypts/s</th>
</tr>
<tr>
<td>t1.micro</td>
<td>~ 2 407 000</td>
<td>~ 6 869</td>
<td>~ 442</td>
<td>~ 187 257</td>
</tr>
<tr>
<td>t2.micro</td>
<td>~ 4 757 000</td>
<td>~ 14 164</td>
<td>~ 851</td>
<td>~ 344 928</td>
</tr>
<tr>
<td>m1.small</td>
<td>~ 1 218 000</td>
<td>~ 3 480</td>
<td>~ 222</td>
<td>~ 92 870</td>
</tr>
<tr>
<td>t2.small</td>
<td>~ 4 993 000</td>
<td>~ 14 245</td>
<td>~ 854</td>
<td>~ 347 961</td>
</tr>
<tr>
<td>m3.medium</td>
<td>~ 2 272 000</td>
<td>~ 6 429</td>
<td>~ 386</td>
<td>~ 158 342</td>
</tr>
<tr>
<td>t2.medium</td>
<td>~ 5 045 000</td>
<td>~ 14 592</td>
<td>~ 878</td>
<td>~ 356 544</td>
</tr>
</table>
<p style="text-align: justify;">All instances use detault settings for storage, Amazon Linux AMI 2014.03.2, John The Ripper 1.8.0, measuring real crypts with many salts! The test is fairly synthetic, but answers the key question: <strong>What difference does it make to have a Burstable instance type?</strong> And the answer: <strong>If CPU load is not sustainable, it&#8217;s more than twice as fast!</strong></p>
<p style="text-align: justify;">Price-wise the new instance types are also better. Cost reduction of <strong>On Demand</strong> prices of more than <strong>35%</strong> allows you to <strong>run t2.micro for less than 10 USD/m</strong>! Watch out, <a href="https://www.digitalocean.com">DigitalOcean</a>! Obviously, Amazon wants change the already established &#8220;AWS for business, DigitalOcean for home&#8221; mantra into &#8220;AWS Everywhere&#8221;.</p>
<p style="text-align: justify;">In conclusion, the new, T2 instance type family, closes the gap between unacceptably low performance instance type (t1.micro) and too expensive instances types (m1.small, m3.medium) which creates the sweet-spot for entry users, cloud enthusiast and home users. As someone said: &#8220;Now you have an instance type to run WordPress on!&#8221;</p>
<div class="rpbt_shortcode">
<h3>Related Posts</h3>
<ul>
					
			<li><a href="http://blog.xi-group.com/2014/11/small-tip-how-to-use-block-device-mappings-to-manage-instance-volumes-with-aws-cli/">Small Tip: How to use &#8211;block-device-mappings to manage instance volumes with AWS CLI</a></li>
					
			<li><a href="http://blog.xi-group.com/2015/02/how-to-deploy-single-node-hadoop-setup-in-aws/">How to deploy single-node Hadoop setup in AWS</a></li>
					
			<li><a href="http://blog.xi-group.com/2015/01/userdata-teplate-for-ubuntu-14-04-ec2-instances-in-aws/">UserData Template for Ubuntu 14.04 EC2 Instances in AWS</a></li>
					
			<li><a href="http://blog.xi-group.com/2015/01/small-tip-how-to-use-aws-cli-filter-parameter/">Small Tip: How to use AWS CLI &#8216;&#8211;filter&#8217; parameter</a></li>
					
			<li><a href="http://blog.xi-group.com/2014/07/how-to-implement-multi-cloud-deployment-for-scalability-and-reliability/">How to implement multi-cloud deployment for scalability and reliability</a></li>
			</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.xi-group.com/2014/07/small-tip-aws-announces-t2-instance-types/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Small Tip: AWS tools are case sensitive, AWS Web Interface is not</title>
		<link>http://blog.xi-group.com/2014/06/small-tip-aws-tools-are-case-sensitive-aws-web-interface-is-not/</link>
		<comments>http://blog.xi-group.com/2014/06/small-tip-aws-tools-are-case-sensitive-aws-web-interface-is-not/#comments</comments>
		<pubDate>Mon, 02 Jun 2014 07:42:26 +0000</pubDate>
		<dc:creator><![CDATA[Ivo Vachkov]]></dc:creator>
				<category><![CDATA[AWS]]></category>
		<category><![CDATA[DevOps]]></category>
		<category><![CDATA[Small Tip]]></category>
		<category><![CDATA[AWS CLI]]></category>
		<category><![CDATA[case sensitive]]></category>
		<category><![CDATA[filters]]></category>
		<category><![CDATA[instances]]></category>
		<category><![CDATA[names]]></category>
		<category><![CDATA[tags]]></category>

		<guid isPermaLink="false">http://blog.xi-group.com/?p=27</guid>
		<description><![CDATA[In a recent investigation, we found an interesting difference between AWS command line tools (based on Boto library) and AWS Web interface. Apparently, command line tools are case sensitive while AWS Web interface is not. This can potentially lead to automated scaling issues. Tooling may not get &#8216;the full picture&#8217; if tags are mixed-case and [&#8230;]]]></description>
				<content:encoded><![CDATA[<p style="text-align: justify;">In a recent investigation, we found an interesting difference between AWS command line tools (based on Boto library) and AWS Web interface. Apparently, command line tools are case sensitive while AWS Web interface is not. This can potentially lead to automated scaling issues. Tooling may not get &#8216;the full picture&#8217; if tags are mixed-case and software does not account for that.</p>
<p style="text-align: justify;">Lets start with simple example &#8230;</p>
<p style="text-align: justify;">We have the following EC2 instances in AWS Account:<br />
<a href="http://blog.xi-group.com/wp-content/uploads/2014/06/Screen-Shot-2014-06-02-at-10.03.04-AM.png"><img class="alignnone size-full wp-image-28 img-thumbnail img-responsive" src="http://blog.xi-group.com/wp-content/uploads/2014/06/Screen-Shot-2014-06-02-at-10.03.04-AM.png" alt="Screen Shot 2014-06-02 at 10.03.04 AM" width="1385" height="300" /></a></p>
<p style="text-align: justify;">Search for the term &#8216;TEST-NODE&#8217; yields the same results as searching for &#8216;test-node&#8217; in the AWS Web interface.</p>
<p style="text-align: justify;">Searching for &#8216;TEST-NODE':<br />
<a href="http://blog.xi-group.com/wp-content/uploads/2014/06/Screen-Shot-2014-06-02-at-10.03.27-AM.png"><img class="alignnone size-full wp-image-29 img-thumbnail img-responsive" src="http://blog.xi-group.com/wp-content/uploads/2014/06/Screen-Shot-2014-06-02-at-10.03.27-AM.png" alt="Screen Shot 2014-06-02 at 10.03.27 AM" width="1385" height="270" /></a></p>
<p>Searching for &#8216;test-node':<br />
<a href="http://blog.xi-group.com/wp-content/uploads/2014/06/Screen-Shot-2014-06-02-at-10.03.49-AM.png"><img class="alignnone size-full wp-image-30 img-thumbnail img-responsive" src="http://blog.xi-group.com/wp-content/uploads/2014/06/Screen-Shot-2014-06-02-at-10.03.49-AM.png" alt="Screen Shot 2014-06-02 at 10.03.49 AM" width="1385" height="270" /></a></p>
<p style="text-align: justify;">&#8230; it behaves the same way. It is case-insensitive.</p>
<p style="text-align: justify;">However, commend line tools will produce totally different output.</p>
<p style="text-align: justify;">Searching for &#8216;TEST-NODE':</p>
<p></p><pre class="crayon-plain-tag">:~&gt; aws ec2 describe-instances --filters "Name=tag:Name,Values=*TEST-NODE*" --query 'Reservations[*].Instances[*].Tags[?Key==`Name`].Value[]' --output text
TEST-NODE-1
:~&gt;</pre><p>Searching for &#8216;test-node':</p><pre class="crayon-plain-tag">:~&gt; aws ec2 describe-instances --filters "Name=tag:Name,Values=*test-node*" --query 'Reservations[*].Instances[*].Tags[?Key==`Name`].Value[]' --output text
test-node-5
:~&gt;</pre><p></p>
<p style="text-align: justify;">Python + Boto shows the same behavior (not surprisingly, AWS CLI uses Boto):</p>
<p style="text-align: justify;">Searching for &#8216;TEST-NODE':</p>
<p></p><pre class="crayon-plain-tag">:~&gt; python
Python 2.7.5 (default, Mar  9 2014, 22:15:05)
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
&gt;&gt;&gt; import boto
&gt;&gt;&gt; import boto.ec2
&gt;&gt;&gt; conn = boto.ec2.connect_to_region('us-east-1', aws_access_key_id='', aws_secret_access_key='')
&gt;&gt;&gt; reservations = conn.get_all_instances(filters = {'instance-state-name' : 'running', "tag:Name": "*" + 'TEST-NODE' + "*"})
&gt;&gt;&gt; for r in reservations:
...     for i in r.instances:
...             print i.tags['Name']
...
TEST-NODE-1
&gt;&gt;&gt; ^D
:~&gt;</pre><p>Searching for &#8216;test-node':</p><pre class="crayon-plain-tag">:~&gt; python
Python 2.7.5 (default, Mar  9 2014, 22:15:05)
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
&gt;&gt;&gt; import boto
&gt;&gt;&gt; import boto.ec2
&gt;&gt;&gt; conn = boto.ec2.connect_to_region('us-east-1', aws_access_key_id='', aws_secret_access_key='')
&gt;&gt;&gt; reservations = conn.get_all_instances(filters = {'instance-state-name' : 'running', "tag:Name": "*" + 'test-node' + "*"})
&gt;&gt;&gt; for r in reservations:
...     for i in r.instances:
...             print i.tags['Name']
...
test-node-5
&gt;&gt;&gt; ^D
:~&gt;</pre><p></p>
<p style="text-align: justify;">Moral of the story: <strong>ALWAYS VERIFY/ENFORCE THAT DATA IS PROPERLY FORMATTED!</strong></p>
<p style="text-align: justify;">There are multiple possible solutions to this issue. With the cost of few extra cycles one can make sure proper comparison is implemented:</p>
<p></p><pre class="crayon-plain-tag">:~&gt; python
Python 2.7.5 (default, Mar  9 2014, 22:15:05)
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.0.68)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
&gt;&gt;&gt; import boto
&gt;&gt;&gt; import boto.ec2
&gt;&gt;&gt; conn = boto.ec2.connect_to_region('us-east-1', aws_access_key_id='', aws_secret_access_key='')
&gt;&gt;&gt; reservations = conn.get_all_instances(filters = {'instance-state-name' : 'running'})
&gt;&gt;&gt; for r in reservations:
...     for i in r.instances:
...             if 'test-node'.upper() in i.tags['Name'].upper():
...                     print i.tags['Name']
...
TEST-NODE-1
TEST-Node-2
TEST-node-3
test-node-5
&gt;&gt;&gt; ^D
:~&gt;</pre><p>References</p>
<ul>
<li><a href="http://docs.aws.amazon.com/cli/latest/reference/ec2/describe-instances.html" target="_blank">http://docs.aws.amazon.com/cli/latest/reference/ec2/describe-instances.html</a></li>
</ul>
<div class="rpbt_shortcode">
<h3>Related Posts</h3>
<ul>
					
			<li><a href="http://blog.xi-group.com/2015/01/small-tip-how-to-use-aws-cli-filter-parameter/">Small Tip: How to use AWS CLI &#8216;&#8211;filter&#8217; parameter</a></li>
					
			<li><a href="http://blog.xi-group.com/2014/11/small-tip-how-to-use-block-device-mappings-to-manage-instance-volumes-with-aws-cli/">Small Tip: How to use &#8211;block-device-mappings to manage instance volumes with AWS CLI</a></li>
					
			<li><a href="http://blog.xi-group.com/2014/07/small-tip-how-to-use-aws-cli-to-start-spot-instances-with-userdata/">Small Tip: How to use AWS CLI to start Spot instances with UserData</a></li>
					
			<li><a href="http://blog.xi-group.com/2014/07/small-tip-aws-announces-t2-instance-types/">Small Tip: AWS announces T2 instance types</a></li>
					
			<li><a href="http://blog.xi-group.com/2014/06/small-tip-ebs-volume-allocation-time-is-linear-to-the-size-and-unrelated-to-the-instance-type/">Small Tip: EBS volume allocation time is linear to the size and unrelated to the instance type</a></li>
			</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.xi-group.com/2014/06/small-tip-aws-tools-are-case-sensitive-aws-web-interface-is-not/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
