{"id":662,"date":"2016-01-11T06:20:03","date_gmt":"2016-01-11T14:20:03","guid":{"rendered":"https:\/\/cloudinsidr.com\/content\/?p=662"},"modified":"2016-02-14T02:48:08","modified_gmt":"2016-02-14T10:48:08","slug":"how-do-you-check-your-cpu-credits-usage-and-remaining-balance-of-a-burstable-performance-instance-on-aws-ec2","status":"publish","type":"post","link":"https:\/\/www.cloudinsidr.com\/content\/how-do-you-check-your-cpu-credits-usage-and-remaining-balance-of-a-burstable-performance-instance-on-aws-ec2\/","title":{"rendered":"How to Check CPU Credits Usage and Remaining Balance of a Burstable Performance Instance on AWS EC2"},"content":{"rendered":"<p>For workloads that don&#8217;t require a consistent CPU performance but do experience spikes in service demand, Amazon&#8217;s AWS EC2 service offers\u00a0Burstable Performance Instances. Their competitive pricing can contribute to considerable savings and improve service availability, but how do you know if\u00a0you are getting a good deal? You don&#8217;t, unless you are able to verify your CPU credits usage and the remaining balance. Here is how to figure out what&#8217;s really going on.<\/p>\n<p><!--more--><\/p>\n<p>In terms of its\u00a0CPU performance, each type of an AWS EC2 instance belongs to one of two different categories:<\/p>\n<ul>\n<li>Fixed Performance Instances (m3, c3, etc.) and<\/li>\n<li>Burstable Performance (such as t2).<\/li>\n<\/ul>\n<p>A Fixed Performance Instance offers a consistent CPU performance throughout its\u00a0lifetime, which also means that you will be\u00a0paying for all idle CPU cycles even though your instance isn&#8217;t using them.<\/p>\n<p>Burstable Performance Instances provide a baseline CPU performance that allows your instance to operate predictably and burst on demand.<\/p>\n<p>When you create an instance of the Burstable Performance type, AWS allocates to it an initial amount of CPU credits. Hour by hour, your instance keeps\u00a0accruing a certain amount of CPU credits\u00a0that accumulate\u00a0over the course of a month. During spikes of demand for CPU resources, an instance with a positive credit balance may\u00a0temporarily increase its\u00a0CPU performance and\u00a0meet its operational requirements far above the baseline level, up to the total amount of available CPU credits.<\/p>\n<h4>A real-world example of a burstable performance instance on EC2 in action<\/h4>\n<p>In the image below, you can see the CloudWatch Monitoring Details graph depicting the metric\u00a0<strong>CPU Credit Usage<\/strong> for a burstable performance instance on EC2 as a Maximum in a period of 5 minutes. The sudden spike\u00a0in credit balance was a result of computing an 8192 bit Diffie-Hellman encryption job.<\/p>\n<figure id=\"attachment_842\" aria-describedby=\"caption-attachment-842\" style=\"width: 680px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/www.cloudinsidr.com\/content\/wp-content\/uploads\/2016\/01\/burstable_perforrmance_instance2.png\" rel=\"attachment wp-att-842\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-842\" src=\"https:\/\/www.cloudinsidr.com\/content\/wp-content\/uploads\/2016\/01\/burstable_perforrmance_instance2.png\" alt=\"CloudWatch monitoring for a burstable perforrmance instance on EC2\" width=\"680\" height=\"428\" srcset=\"https:\/\/www.cloudinsidr.com\/content\/wp-content\/uploads\/2016\/01\/burstable_perforrmance_instance2.png 917w, https:\/\/www.cloudinsidr.com\/content\/wp-content\/uploads\/2016\/01\/burstable_perforrmance_instance2-600x378.png 600w, https:\/\/www.cloudinsidr.com\/content\/wp-content\/uploads\/2016\/01\/burstable_perforrmance_instance2-300x189.png 300w, https:\/\/www.cloudinsidr.com\/content\/wp-content\/uploads\/2016\/01\/burstable_perforrmance_instance2-768x483.png 768w\" sizes=\"(max-width: 680px) 100vw, 680px\" \/><\/a><figcaption id=\"caption-attachment-842\" class=\"wp-caption-text\">CloudWatch monitoring for a burstable perforrmance instance on EC2<\/figcaption><\/figure>\n<p>The following graph shows the other side of the coin: the metric\u00a0<strong>CPU Credit Balance<\/strong> for the same burstable performance instance on EC2: the drop in credit balance is\u00a0a result of the same\u00a08192 bit Diffie-Hellman encryption job.<\/p>\n<figure id=\"attachment_840\" aria-describedby=\"caption-attachment-840\" style=\"width: 680px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/www.cloudinsidr.com\/content\/wp-content\/uploads\/2016\/01\/burstable_perforrmance_instance.png\" rel=\"attachment wp-att-840\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-840\" src=\"https:\/\/www.cloudinsidr.com\/content\/wp-content\/uploads\/2016\/01\/burstable_perforrmance_instance.png\" alt=\"CloudFront monitoring for a burstable perforrmance instance in the AWS Management Console\" width=\"680\" height=\"428\" srcset=\"https:\/\/www.cloudinsidr.com\/content\/wp-content\/uploads\/2016\/01\/burstable_perforrmance_instance.png 917w, https:\/\/www.cloudinsidr.com\/content\/wp-content\/uploads\/2016\/01\/burstable_perforrmance_instance-600x378.png 600w, https:\/\/www.cloudinsidr.com\/content\/wp-content\/uploads\/2016\/01\/burstable_perforrmance_instance-300x189.png 300w, https:\/\/www.cloudinsidr.com\/content\/wp-content\/uploads\/2016\/01\/burstable_perforrmance_instance-768x483.png 768w\" sizes=\"(max-width: 680px) 100vw, 680px\" \/><\/a><figcaption id=\"caption-attachment-840\" class=\"wp-caption-text\">CloudFront monitoring for a burstable perforrmance instance: watch your CPU credits rise and fall<\/figcaption><\/figure>\n<p>The above graph shows that the <strong>remaining credits balance<\/strong> continues to\u00a0offer <strong>a sufficient margin of safety<\/strong>\u00a0(even though at one point the remaining balance\u00a0had fallen\u00a0considerably, it has never reached the bottom and it has managed to somewhat recover).<\/p>\n<h4>Baseline performance is guaranteed<\/h4>\n<p>Should your instance <strong>run out of CPU credits<\/strong> (your CPU Credit Balance fall to zero), your instance will continue to <strong>operate on baseline performance<\/strong> until it receives additional credit.<\/p>\n<h4>Verify your balance of CPU credits<\/h4>\n<p>You can verify your balance of CPU credits over time using the AWS Management Console for CloudWatch. Navigate to the section Metrics &gt; EC2 and filter the list of available metrics using the Seatch Metrics field either by instance ID or by metric name.<\/p>\n<figure id=\"attachment_672\" aria-describedby=\"caption-attachment-672\" style=\"width: 660px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/cloudinsidr.com\/content\/wp-content\/uploads\/2016\/01\/CPU_credit_usage3.png\" rel=\"attachment wp-att-672\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-672\" src=\"https:\/\/cloudinsidr.com\/content\/wp-content\/uploads\/2016\/01\/CPU_credit_usage3-1024x514.png\" alt=\"AWS Management Console: verifying CPU-related metrics\" width=\"660\" height=\"331\" srcset=\"https:\/\/www.cloudinsidr.com\/content\/wp-content\/uploads\/2016\/01\/CPU_credit_usage3-1024x514.png 1024w, https:\/\/www.cloudinsidr.com\/content\/wp-content\/uploads\/2016\/01\/CPU_credit_usage3-600x301.png 600w, https:\/\/www.cloudinsidr.com\/content\/wp-content\/uploads\/2016\/01\/CPU_credit_usage3-300x151.png 300w, https:\/\/www.cloudinsidr.com\/content\/wp-content\/uploads\/2016\/01\/CPU_credit_usage3-768x386.png 768w, https:\/\/www.cloudinsidr.com\/content\/wp-content\/uploads\/2016\/01\/CPU_credit_usage3.png 2020w\" sizes=\"(max-width: 660px) 100vw, 660px\" \/><\/a><figcaption id=\"caption-attachment-672\" class=\"wp-caption-text\">AWS Management Console: verifying CPU-related metrics<\/figcaption><\/figure>\n<p>Select the instance(s) you want to investigate by activating the checkbox next to each relevant entry. The AWS Management Console displays the\u00a0relevant graphs in the lower section\u00a0of the document window. You can navigate along the timeline and adjust other parameters.<\/p>\n<p>Look at\u00a0these metrics:<\/p>\n<ul>\n<li>CPUCreditBalance,<\/li>\n<li>CPUCreditUsage, and<\/li>\n<li>CPUUtilization.<\/li>\n<\/ul>\n<figure id=\"attachment_666\" aria-describedby=\"caption-attachment-666\" style=\"width: 660px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/cloudinsidr.com\/content\/wp-content\/uploads\/2016\/01\/CPU_credit.png\" rel=\"attachment wp-att-666\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-666\" src=\"https:\/\/cloudinsidr.com\/content\/wp-content\/uploads\/2016\/01\/CPU_credit-1024x409.png\" alt=\"AWS Management Console: CPU credits\" width=\"660\" height=\"264\" srcset=\"https:\/\/www.cloudinsidr.com\/content\/wp-content\/uploads\/2016\/01\/CPU_credit-1024x409.png 1024w, https:\/\/www.cloudinsidr.com\/content\/wp-content\/uploads\/2016\/01\/CPU_credit-600x240.png 600w, https:\/\/www.cloudinsidr.com\/content\/wp-content\/uploads\/2016\/01\/CPU_credit-300x120.png 300w, https:\/\/www.cloudinsidr.com\/content\/wp-content\/uploads\/2016\/01\/CPU_credit-768x307.png 768w, https:\/\/www.cloudinsidr.com\/content\/wp-content\/uploads\/2016\/01\/CPU_credit.png 1149w\" sizes=\"(max-width: 660px) 100vw, 660px\" \/><\/a><figcaption id=\"caption-attachment-666\" class=\"wp-caption-text\">AWS Management Console: viewing the CPU credits accruals of an EC2 Burstable Performance instance<\/figcaption><\/figure>\n<figure id=\"attachment_667\" aria-describedby=\"caption-attachment-667\" style=\"width: 660px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/cloudinsidr.com\/content\/wp-content\/uploads\/2016\/01\/CPU_credit_usage.png\" rel=\"attachment wp-att-667\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-667 size-large\" src=\"https:\/\/cloudinsidr.com\/content\/wp-content\/uploads\/2016\/01\/CPU_credit_usage-1024x415.png\" alt=\"AWS Management Console: CPU credit balance vs. credit usage of an EC2 Burstable Performance instance\" width=\"660\" height=\"267\" srcset=\"https:\/\/www.cloudinsidr.com\/content\/wp-content\/uploads\/2016\/01\/CPU_credit_usage-1024x415.png 1024w, https:\/\/www.cloudinsidr.com\/content\/wp-content\/uploads\/2016\/01\/CPU_credit_usage-600x243.png 600w, https:\/\/www.cloudinsidr.com\/content\/wp-content\/uploads\/2016\/01\/CPU_credit_usage-300x122.png 300w, https:\/\/www.cloudinsidr.com\/content\/wp-content\/uploads\/2016\/01\/CPU_credit_usage-768x311.png 768w, https:\/\/www.cloudinsidr.com\/content\/wp-content\/uploads\/2016\/01\/CPU_credit_usage.png 1140w\" sizes=\"(max-width: 660px) 100vw, 660px\" \/><\/a><figcaption id=\"caption-attachment-667\" class=\"wp-caption-text\">AWS Management Console: CPU credit balance vs. credit usage of an EC2 Burstable Performance instance<\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>For workloads that don&#8217;t require a consistent CPU performance but do experience spikes in service demand, Amazon&#8217;s AWS EC2 service offers\u00a0Burstable Performance Instances. Their competitive pricing can contribute to considerable savings and improve service availability, but how do you know if\u00a0you are getting a good deal? You don&#8217;t, unless you are able to verify your [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":667,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"categories":[17],"tags":[58,116,95,63,117],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v14.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Check CPU Credits Usage and Remaining Balance of a Burstable Performance Instance on AWS EC2 - CloudInsidr<\/title>\n<meta name=\"robots\" content=\"index, follow\" \/>\n<meta name=\"googlebot\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta name=\"bingbot\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.cloudinsidr.com\/content\/how-do-you-check-your-cpu-credits-usage-and-remaining-balance-of-a-burstable-performance-instance-on-aws-ec2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Check CPU Credits Usage and Remaining Balance of a Burstable Performance Instance on AWS EC2 - CloudInsidr\" \/>\n<meta property=\"og:description\" content=\"For workloads that don&#8217;t require a consistent CPU performance but do experience spikes in service demand, Amazon&#8217;s AWS EC2 service offers\u00a0Burstable Performance Instances. Their competitive pricing can contribute to considerable savings and improve service availability, but how do you know if\u00a0you are getting a good deal? You don&#8217;t, unless you are able to verify your [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.cloudinsidr.com\/content\/how-do-you-check-your-cpu-credits-usage-and-remaining-balance-of-a-burstable-performance-instance-on-aws-ec2\/\" \/>\n<meta property=\"og:site_name\" content=\"CloudInsidr\" \/>\n<meta property=\"article:published_time\" content=\"2016-01-11T14:20:03+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2016-02-14T10:48:08+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.cloudinsidr.com\/content\/wp-content\/uploads\/2016\/01\/CPU_credit_usage.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1140\" \/>\n\t<meta property=\"og:image:height\" content=\"462\" \/>\n<meta name=\"twitter:card\" content=\"summary\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.cloudinsidr.com\/content\/#website\",\"url\":\"https:\/\/www.cloudinsidr.com\/content\/\",\"name\":\"CloudInsidr\",\"description\":\"Cyber security, infotech\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/www.cloudinsidr.com\/content\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.cloudinsidr.com\/content\/how-do-you-check-your-cpu-credits-usage-and-remaining-balance-of-a-burstable-performance-instance-on-aws-ec2\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/www.cloudinsidr.com\/content\/wp-content\/uploads\/2016\/01\/CPU_credit_usage.png\",\"width\":1140,\"height\":462,\"caption\":\"AWS Management Console: CPU credits vs. usage\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.cloudinsidr.com\/content\/how-do-you-check-your-cpu-credits-usage-and-remaining-balance-of-a-burstable-performance-instance-on-aws-ec2\/#webpage\",\"url\":\"https:\/\/www.cloudinsidr.com\/content\/how-do-you-check-your-cpu-credits-usage-and-remaining-balance-of-a-burstable-performance-instance-on-aws-ec2\/\",\"name\":\"How to Check CPU Credits Usage and Remaining Balance of a Burstable Performance Instance on AWS EC2 - CloudInsidr\",\"isPartOf\":{\"@id\":\"https:\/\/www.cloudinsidr.com\/content\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.cloudinsidr.com\/content\/how-do-you-check-your-cpu-credits-usage-and-remaining-balance-of-a-burstable-performance-instance-on-aws-ec2\/#primaryimage\"},\"datePublished\":\"2016-01-11T14:20:03+00:00\",\"dateModified\":\"2016-02-14T10:48:08+00:00\",\"author\":{\"@id\":\"https:\/\/www.cloudinsidr.com\/content\/#\/schema\/person\/dd6ee9cb21cf05763fd7cff3d6f11b2b\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.cloudinsidr.com\/content\/how-do-you-check-your-cpu-credits-usage-and-remaining-balance-of-a-burstable-performance-instance-on-aws-ec2\/\"]}]},{\"@type\":[\"Person\"],\"@id\":\"https:\/\/www.cloudinsidr.com\/content\/#\/schema\/person\/dd6ee9cb21cf05763fd7cff3d6f11b2b\",\"name\":\"Cloud Insidr\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.cloudinsidr.com\/content\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/8b2fa1415b3d573b97d818b8f8f83b7c?s=96&d=mm&r=g\",\"caption\":\"Cloud Insidr\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","_links":{"self":[{"href":"https:\/\/www.cloudinsidr.com\/content\/wp-json\/wp\/v2\/posts\/662"}],"collection":[{"href":"https:\/\/www.cloudinsidr.com\/content\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cloudinsidr.com\/content\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cloudinsidr.com\/content\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cloudinsidr.com\/content\/wp-json\/wp\/v2\/comments?post=662"}],"version-history":[{"count":13,"href":"https:\/\/www.cloudinsidr.com\/content\/wp-json\/wp\/v2\/posts\/662\/revisions"}],"predecessor-version":[{"id":843,"href":"https:\/\/www.cloudinsidr.com\/content\/wp-json\/wp\/v2\/posts\/662\/revisions\/843"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.cloudinsidr.com\/content\/wp-json\/wp\/v2\/media\/667"}],"wp:attachment":[{"href":"https:\/\/www.cloudinsidr.com\/content\/wp-json\/wp\/v2\/media?parent=662"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cloudinsidr.com\/content\/wp-json\/wp\/v2\/categories?post=662"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cloudinsidr.com\/content\/wp-json\/wp\/v2\/tags?post=662"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}