{"id":4268,"date":"2017-02-17T10:20:49","date_gmt":"2017-02-17T15:20:49","guid":{"rendered":"https:\/\/www.redline13.com\/blog\/?p=4268"},"modified":"2017-02-17T10:20:49","modified_gmt":"2017-02-17T15:20:49","slug":"load-testing-aws-public-ip-address","status":"publish","type":"post","link":"https:\/\/www.redline13.com\/blog\/2017\/02\/load-testing-aws-public-ip-address\/","title":{"rendered":"Load Testing on AWS with Public IP Address"},"content":{"rendered":"<div>A frequent\u00a0request from\u00a0Operations to QA teams:<\/div>\n<blockquote>\n<div>If you want to load test I will need the public IP address for your load agents.<\/div>\n<\/blockquote>\n<div>It is a fair request from Operations teams, but by default load agents are ephemeral.<\/div>\n<div>Some of the <a href=\"https:\/\/www.redline13.com\/blog\/2015\/10\/hp-load-runner-market-place-pricing-sit-first\/\">expensive<\/a> tools provide their own load agents with fixed IPs, which you pay a large premium for.<\/div>\n<h2>Check box for &#8220;Associate Public IP Address&#8221;<\/h2>\n<p><strong>Situation:\u00a0<\/strong>You can whitelist all of\u00a0EC2\u00a0IP\u00a0ranges, don&#8217;t mind changing white list on every test run, or have API to\u00a0whitelist IPs (ask us about a custom Plugin to support this).<\/p>\n<ul>\n<li>This will assign public IP addresses to your load agents, however, you will not know them ahead of time. \u00a0This makes it very difficult for your operations team to manage the Security rules they will need to put in place.<\/li>\n<li>Once a test is started the <a href=\"https:\/\/www.redline13.com\/blog\/2014\/01\/ip-address-added-to-help-with-whitelist-reporting\/\">public IP addresses<\/a> of the load agents are displayed.<\/li>\n<\/ul>\n<p style=\"padding-left: 60px;\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-4269 alignnone\" src=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2017\/02\/Load-Agents-with-Public-IP.png\" alt=\"load-agents-with-public-ip\" width=\"559\" height=\"452\" srcset=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2017\/02\/Load-Agents-with-Public-IP.png 984w, https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2017\/02\/Load-Agents-with-Public-IP-300x243.png 300w, https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2017\/02\/Load-Agents-with-Public-IP-768x621.png 768w\" sizes=\"auto, (max-width: 559px) 100vw, 559px\" \/><\/p>\n<h2>Using Elastic IP Addresses<\/h2>\n<p><strong>Situation: <\/strong>\u00a0A simple mechanism with a bit of manual setup in AWS Console.<\/p>\n<p>This is an easy setup for load tests which require a fixed IP, but needs a few manual steps to make work. \u00a0We recommend using this in combination with the <a href=\"https:\/\/www.redline13.com\/blog\/pro-features\/pro-feature-server-management\/\">pro feature for server management<\/a>\u00a0will simplify the setup. \u00a0For instructions read\u00a0<a href=\"https:\/\/www.redline13.com\/blog\/2017\/02\/assigning-elastic-ip-load-agents\/\">Assigning Elastic IP to Load Agents<\/a>.<\/p>\n<h2>Using Cross-Account Security Groups<\/h2>\n<p><strong>Situation:<\/strong>\u00a0Both environments are controlled on AWS and using\u00a0cross account security groups is acceptable.<\/p>\n<p>In the case where both the load agents and the test environment are on AWS, but in different accounts, you can use security groups to allow cross account permissions.<\/p>\n<p>This method has some serious limitations as noted in <a href=\"http:\/\/docs.aws.amazon.com\/AmazonVPC\/latest\/UserGuide\/VPC_SecurityGroups.html#VPC_Security_Group_Differences\">Classic and VPC Security Group Differences<\/a>.<\/p>\n<ul>\n<li>EC2-Classic &#8211; You can reference security groups from other AWS accounts.\n<ul>\n<li>Many of the new EC2 locations and sizes do not allow the use of EC2-Classic. \u00a0If you can stick with the m3 sizes in Virginia this is a good method.<\/li>\n<\/ul>\n<\/li>\n<li>EC2-VPC &#8211;\u00a0You can reference security groups from your VPC or from a peer VPC in a VPC peering connection only. The peer VPC can be in a different account.\n<ul>\n<li>This\u00a0requires setting up VPC Peering between accounts. \u00a0A great method but requires work on the operations teams.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h2>Using Internal Security with Security Groups<\/h2>\n<p><strong>Situation:<\/strong>\u00a0 Both environments are on same AWS account but in different VPCs, probably controlled with internal load balancers.<\/p>\n<p>In many test scenarios, you want to hit an internal application\u00a0running on a private AWS subnet. The application access is managed by an internal ELB with a distinct security group. We have documented the <a href=\"https:\/\/www.redline13.com\/blog\/2016\/02\/load-testing-internal-application-using-security-groups\/\">details load testing internal application using security groups.<\/a><\/p>\n<h2>Using\u00a0Private Subnets and NAT Gateways<\/h2>\n<div><strong>Situation:\u00a0<\/strong>Load testing external application and have to supply an IP address to the\u00a0operations team.<\/div>\n<div><\/div>\n<div>While the most complex in setting up, it also provides the most flexibility.\u00a0 \u00a0 We have a <a href=\"https:\/\/www.redline13.com\/blog\/2019\/02\/using-a-nat-gateway-elastic-ips-for-ip-whitelisted-applications\/\">simple setup guide<\/a> and an <a href=\"https:\/\/www.redline13.com\/blog\/2016\/02\/load-testing-with-private-subnets-and-nat-gateways\/\">advanced setup guide<\/a>\u00a0that covers the case where you want to test internal applications (AWS or not) by setting up a NAT gateway.<\/div>\n<ul>\n<li>Once you\u00a0configure your NAT Gateway just launch your\u00a0load agents into the proper subnet.<\/li>\n<li>You will end up with all load agent traffic within a subnet coming from a single IP traffic<\/li>\n<\/ul>\n<div><\/div>\n<div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>A frequent\u00a0request from\u00a0Operations to QA teams: If you want to load test I will need the public IP address for your load agents. It is a fair request from Operations teams, but by default load agents are ephemeral. Some of the expensive tools provide their own load agents with fixed IPs, which you pay a large premium for. Check box for &#8220;Associate Public IP Address&#8221; Situation:\u00a0You can whitelist all of\u00a0EC2\u00a0IP\u00a0ranges, don&#8217;t mind changing white list on<a class=\"more-link\" href=\"https:\/\/www.redline13.com\/blog\/2017\/02\/load-testing-aws-public-ip-address\/\">Read More &rarr;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,2],"tags":[],"class_list":{"0":"entry","1":"post","2":"publish","3":"author-user","4":"post-4268","6":"format-standard","7":"category-aws-faq","8":"category-blog"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.12 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Load Testing on AWS with Public IP Address - RedLine13<\/title>\n<meta name=\"description\" content=\"Load Testing on AWS with Public IP Address. How Operations and QA can work together in different situations that meets the needs of both.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.redline13.com\/blog\/2017\/02\/load-testing-aws-public-ip-address\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Load Testing on AWS with Public IP Address - RedLine13\" \/>\n<meta property=\"og:description\" content=\"Load Testing on AWS with Public IP Address. How Operations and QA can work together in different situations that meets the needs of both.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.redline13.com\/blog\/2017\/02\/load-testing-aws-public-ip-address\/\" \/>\n<meta property=\"og:site_name\" content=\"RedLine13\" \/>\n<meta property=\"article:published_time\" content=\"2017-02-17T15:20:49+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2017\/02\/Load-Agents-with-Public-IP.png\" \/>\n<meta name=\"author\" content=\"RedLine13\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"RedLine13\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.redline13.com\/blog\/2017\/02\/load-testing-aws-public-ip-address\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.redline13.com\/blog\/2017\/02\/load-testing-aws-public-ip-address\/\"},\"author\":{\"name\":\"RedLine13\",\"@id\":\"https:\/\/www.redline13.com\/blog\/#\/schema\/person\/4acbcdcb8a9c72ec5a274e69c0ebea28\"},\"headline\":\"Load Testing on AWS with Public IP Address\",\"datePublished\":\"2017-02-17T15:20:49+00:00\",\"dateModified\":\"2017-02-17T15:20:49+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.redline13.com\/blog\/2017\/02\/load-testing-aws-public-ip-address\/\"},\"wordCount\":549,\"publisher\":{\"@id\":\"https:\/\/www.redline13.com\/blog\/#organization\"},\"articleSection\":[\"AWS FAQ\",\"Blog\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.redline13.com\/blog\/2017\/02\/load-testing-aws-public-ip-address\/\",\"url\":\"https:\/\/www.redline13.com\/blog\/2017\/02\/load-testing-aws-public-ip-address\/\",\"name\":\"Load Testing on AWS with Public IP Address - RedLine13\",\"isPartOf\":{\"@id\":\"https:\/\/www.redline13.com\/blog\/#website\"},\"datePublished\":\"2017-02-17T15:20:49+00:00\",\"dateModified\":\"2017-02-17T15:20:49+00:00\",\"description\":\"Load Testing on AWS with Public IP Address. How Operations and QA can work together in different situations that meets the needs of both.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.redline13.com\/blog\/2017\/02\/load-testing-aws-public-ip-address\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.redline13.com\/blog\/2017\/02\/load-testing-aws-public-ip-address\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.redline13.com\/blog\/2017\/02\/load-testing-aws-public-ip-address\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.redline13.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Load Testing on AWS with Public IP Address\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.redline13.com\/blog\/#website\",\"url\":\"https:\/\/www.redline13.com\/blog\/\",\"name\":\"RedLine13\",\"description\":\"(Almost) Free Load Testing in the Cloud\",\"publisher\":{\"@id\":\"https:\/\/www.redline13.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.redline13.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.redline13.com\/blog\/#organization\",\"name\":\"RedLine13\",\"url\":\"https:\/\/www.redline13.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.redline13.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2013\/06\/cropped-rl13-header-logo.jpg\",\"contentUrl\":\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2013\/06\/cropped-rl13-header-logo.jpg\",\"width\":300,\"height\":68,\"caption\":\"RedLine13\"},\"image\":{\"@id\":\"https:\/\/www.redline13.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.redline13.com\/blog\/#\/schema\/person\/4acbcdcb8a9c72ec5a274e69c0ebea28\",\"name\":\"RedLine13\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.redline13.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/b4c9a289323b21a01c3e940f150eb9b8c542587f1abfd8f0e1cc1ffc5e475514?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/b4c9a289323b21a01c3e940f150eb9b8c542587f1abfd8f0e1cc1ffc5e475514?s=96&d=mm&r=g\",\"caption\":\"RedLine13\"},\"sameAs\":[\"http:\/\/127.0.0.1\"],\"url\":\"https:\/\/www.redline13.com\/blog\/author\/user\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Load Testing on AWS with Public IP Address - RedLine13","description":"Load Testing on AWS with Public IP Address. How Operations and QA can work together in different situations that meets the needs of both.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.redline13.com\/blog\/2017\/02\/load-testing-aws-public-ip-address\/","og_locale":"en_US","og_type":"article","og_title":"Load Testing on AWS with Public IP Address - RedLine13","og_description":"Load Testing on AWS with Public IP Address. How Operations and QA can work together in different situations that meets the needs of both.","og_url":"https:\/\/www.redline13.com\/blog\/2017\/02\/load-testing-aws-public-ip-address\/","og_site_name":"RedLine13","article_published_time":"2017-02-17T15:20:49+00:00","og_image":[{"url":"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2017\/02\/Load-Agents-with-Public-IP.png"}],"author":"RedLine13","twitter_card":"summary_large_image","twitter_misc":{"Written by":"RedLine13","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.redline13.com\/blog\/2017\/02\/load-testing-aws-public-ip-address\/#article","isPartOf":{"@id":"https:\/\/www.redline13.com\/blog\/2017\/02\/load-testing-aws-public-ip-address\/"},"author":{"name":"RedLine13","@id":"https:\/\/www.redline13.com\/blog\/#\/schema\/person\/4acbcdcb8a9c72ec5a274e69c0ebea28"},"headline":"Load Testing on AWS with Public IP Address","datePublished":"2017-02-17T15:20:49+00:00","dateModified":"2017-02-17T15:20:49+00:00","mainEntityOfPage":{"@id":"https:\/\/www.redline13.com\/blog\/2017\/02\/load-testing-aws-public-ip-address\/"},"wordCount":549,"publisher":{"@id":"https:\/\/www.redline13.com\/blog\/#organization"},"articleSection":["AWS FAQ","Blog"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.redline13.com\/blog\/2017\/02\/load-testing-aws-public-ip-address\/","url":"https:\/\/www.redline13.com\/blog\/2017\/02\/load-testing-aws-public-ip-address\/","name":"Load Testing on AWS with Public IP Address - RedLine13","isPartOf":{"@id":"https:\/\/www.redline13.com\/blog\/#website"},"datePublished":"2017-02-17T15:20:49+00:00","dateModified":"2017-02-17T15:20:49+00:00","description":"Load Testing on AWS with Public IP Address. How Operations and QA can work together in different situations that meets the needs of both.","breadcrumb":{"@id":"https:\/\/www.redline13.com\/blog\/2017\/02\/load-testing-aws-public-ip-address\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.redline13.com\/blog\/2017\/02\/load-testing-aws-public-ip-address\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.redline13.com\/blog\/2017\/02\/load-testing-aws-public-ip-address\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.redline13.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Load Testing on AWS with Public IP Address"}]},{"@type":"WebSite","@id":"https:\/\/www.redline13.com\/blog\/#website","url":"https:\/\/www.redline13.com\/blog\/","name":"RedLine13","description":"(Almost) Free Load Testing in the Cloud","publisher":{"@id":"https:\/\/www.redline13.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.redline13.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.redline13.com\/blog\/#organization","name":"RedLine13","url":"https:\/\/www.redline13.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.redline13.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2013\/06\/cropped-rl13-header-logo.jpg","contentUrl":"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2013\/06\/cropped-rl13-header-logo.jpg","width":300,"height":68,"caption":"RedLine13"},"image":{"@id":"https:\/\/www.redline13.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.redline13.com\/blog\/#\/schema\/person\/4acbcdcb8a9c72ec5a274e69c0ebea28","name":"RedLine13","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.redline13.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/b4c9a289323b21a01c3e940f150eb9b8c542587f1abfd8f0e1cc1ffc5e475514?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b4c9a289323b21a01c3e940f150eb9b8c542587f1abfd8f0e1cc1ffc5e475514?s=96&d=mm&r=g","caption":"RedLine13"},"sameAs":["http:\/\/127.0.0.1"],"url":"https:\/\/www.redline13.com\/blog\/author\/user\/"}]}},"_links":{"self":[{"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/posts\/4268","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/comments?post=4268"}],"version-history":[{"count":0,"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/posts\/4268\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/media?parent=4268"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/categories?post=4268"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/tags?post=4268"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}