{"id":3811,"date":"2015-09-23T16:51:53","date_gmt":"2015-09-23T23:51:53","guid":{"rendered":"https:\/\/www.onehub.com\/blog\/?p=3811"},"modified":"2016-01-19T11:08:48","modified_gmt":"2016-01-19T19:08:48","slug":"when-setting-up-a-nat-gateway-with-amazon-vpcs-size-matters","status":"publish","type":"post","link":"https:\/\/www.onehub.com\/blog\/2015\/09\/23\/when-setting-up-a-nat-gateway-with-amazon-vpcs-size-matters\/","title":{"rendered":"When setting up a NAT gateway with Amazon VPCs, size matters"},"content":{"rendered":"<p><img decoding=\"async\" loading=\"lazy\" src=\"https:\/\/www.onehub.com\/blog\/wp-content\/uploads\/2015\/09\/oh-dev-series-blue.png\" alt=\"oh-dev-series-blue\" width=\"860\" height=\"190\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Amazon\u2019s cloud computing services have made launching an app or a startup easier than it has ever been. Sometimes getting set up may be a little <\/span><i><span style=\"font-weight: 400;\">too easy<\/span><\/i><span style=\"font-weight: 400;\"> and you can overlook a simple step that can save your business time, frustration and money.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Paying attention to the size of your NAT gateway is really important when creating your Amazon Virtual Private Cloud (VPC) computing environment, and it\u2019s important to monitor as your business scales. <\/span><\/p>\n<p><span style=\"font-weight: 400;\">The NAT gateway is what allows your VPC to communicate with Amazon services, the Internet, and more importantly &#8212; your customers. It will impact the speed with which your end users will be able to complete the tasks they want to perform through your service. The selection of the NAT gateway instance size is a simple drop-down menu. But it\u2019s a drop-down menu you should pay attention to!<\/span><!--more--><\/p>\n<p><span style=\"font-weight: 400;\">The size of the <\/span><a href=\"http:\/\/www.azavea.com\/blogs\/labs\/2015\/01\/selecting-a-nat-instance-size-on-ec2\/\"><span style=\"font-weight: 400;\">NAT gateway instance you select<\/span><\/a><span style=\"font-weight: 400;\"> depends on the characteristics of the network traffic between your VPC and the Internet. It\u2019s a balance you\u2019ll have to determine between size and cost. You may be able to get by with a smaller size when you are just starting out, but as \u00a0your traffic demands go up, be sure to check the throughput periodically to make sure that you are running a fast enough NAT gateway. <\/span><\/p>\n<p><span style=\"font-weight: 400;\">You may have to experiment to strike the right mix to keep up with your growth. If you don\u2019t, the result can be sluggish performance even though everything inside your VPC is working just fine. You\u2019ll be getting diminished returns, but there won\u2019t be any alarm bells going off. When the NAT gateway starts throttling everything to the maximum throughput of your gateway, it can be difficult to tell that your NAT gateway is saturated because the instance load average will remain low. Amazon grades instance network connectivity for their instances as High, Moderate, and Low, without hard numbers. Some who have tested suggest that Low can sustain 10-15 megabits\/second, Moderate 80-90 Megabits\/s, and High 750-800 Megabits\/second. <\/span><\/p>\n<p><span style=\"font-weight: 400;\">In addition to adjusting the size of your NAT gateway, consider splitting loads across multiple gateways as your requests scale up. This will allow you better load balance and alleviate pressure on a single instance.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">This used to be a worse problem for services running on Amazon before Amazon <\/span><a href=\"https:\/\/aws.amazon.com\/blogs\/aws\/new-vpc-endpoint-for-amazon-s3\/\"><span style=\"font-weight: 400;\">released its VPC endpoints<\/span><\/a><span style=\"font-weight: 400;\">. Prior to the VPC endpoints release, <\/span><i><span style=\"font-weight: 400;\">all<\/span><\/i><span style=\"font-weight: 400;\"> traffic from your VPC to the internet <\/span><i><span style=\"font-weight: 400;\">and even to Amazon S3<\/span><\/i><span style=\"font-weight: 400;\"> ran through your NAT gateway. The release of the endpoint alleviated some of that congestion by removing S3 network traffic from the NAT gateway. Only S3 is supported by VPC endpoints today, expect additional endpoints to support other Amazon services at some point.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">This all probably seems extremely simple. There isn\u2019t much of a technical answer on this particular topic because the installation is easy and maintenance is nearly non-existent. For us, when we noticed a problem, it was faster and easier to just drop in a bigger instance and see if performance improved (it did). <\/span><\/p>\n<p><span style=\"font-weight: 400;\">Consider this post an important reminder that once you set up your NAT gateway, remember its sizing as a possible pain point in your Ops resources. Thankfully, it\u2019s an easy fix.<\/span> <span style=\"font-weight: 400;\">For more help, here\u2019s a good checklist for some <\/span><a href=\"http:\/\/harish11g.blogspot.com\/2014\/01\/Amazon-Virtual-Private-Cloud-VPC-best-practices-tips-for-architecture-migration.html\"><span style=\"font-weight: 400;\">Amazon VPC best practices<\/span><\/a><span style=\"font-weight: 400;\">. <\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Amazon\u2019s cloud computing services have made launching an app or a startup easier than it has ever been. Sometimes getting set up may be a little too easy and you can overlook a simple step that can save your business [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":3817,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_themeisle_gutenberg_block_has_review":false},"categories":[92,9],"tags":[93,96,95,71,94],"_links":{"self":[{"href":"https:\/\/www.onehub.com\/blog\/wp-json\/wp\/v2\/posts\/3811"}],"collection":[{"href":"https:\/\/www.onehub.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.onehub.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.onehub.com\/blog\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.onehub.com\/blog\/wp-json\/wp\/v2\/comments?post=3811"}],"version-history":[{"count":0,"href":"https:\/\/www.onehub.com\/blog\/wp-json\/wp\/v2\/posts\/3811\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.onehub.com\/blog\/wp-json\/wp\/v2\/media\/3817"}],"wp:attachment":[{"href":"https:\/\/www.onehub.com\/blog\/wp-json\/wp\/v2\/media?parent=3811"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.onehub.com\/blog\/wp-json\/wp\/v2\/categories?post=3811"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.onehub.com\/blog\/wp-json\/wp\/v2\/tags?post=3811"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}