{"id":11110,"date":"2024-04-10T00:55:25","date_gmt":"2024-04-10T04:55:25","guid":{"rendered":"https:\/\/www.redline13.com\/blog\/?p=11110"},"modified":"2024-04-10T00:55:26","modified_gmt":"2024-04-10T04:55:26","slug":"large-scale-and-distributed-load-testing-with-k6","status":"publish","type":"post","link":"https:\/\/www.redline13.com\/blog\/2024\/04\/large-scale-and-distributed-load-testing-with-k6\/","title":{"rendered":"Large-Scale and Distributed Load Testing with k6"},"content":{"rendered":"<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-11111 aligncenter\" src=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/04\/word-image-11110-1.png\" alt=\"Large-Scale and Distributed Load Testing with k6\" width=\"400\" height=\"300\" srcset=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/04\/word-image-11110-1.png 400w, https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/04\/word-image-11110-1-300x225.png 300w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/strong><\/p>\n<p>Owing to an efficient design and low overhead, <a href=\"https:\/\/k6.io\/\" target=\"_blank\" rel=\"noopener\">k6<\/a> tests have an inherent ability to scale well. Compared to other testing frameworks, users of k6 can often expect less resource utilization. As described in the <a href=\"https:\/\/grafana.com\/docs\/k6\/latest\/testing-guides\/running-large-tests\/\" target=\"_blank\" rel=\"noopener\">official documentation<\/a>, k6 tests scale well on single instances, lending to reduced requirements when performing distributed load testing. In this brief article, we will show you how cloud-based platforms like RedLine13 allow you scale your k6 tests across multiple load generator servers easily and with minimal effort.<\/p>\n<h3><a id=\"post-11110-_25k3trwj20fq\"><\/a>Transitioning to Distributed Tests<\/h3>\n<p>Even with the efficiencies offered by k6, scaling beyond hardware and network limitations of the test machine will necessitate moving to a distributed architecture. While k6 does have <a href=\"https:\/\/grafana.com\/docs\/k6\/latest\/testing-guides\/running-large-tests\/#distributed-execution\" target=\"_blank\" rel=\"noopener\">native support for distributed tests<\/a> built into the architecture, this feature is experimental and dependent on an orchestration script to coordinate instances. Having a cloud-based platform like RedLine13 allows these considerations to be abstracted and handled automatically.<\/p>\n<h3><a id=\"post-11110-_vbfdgxrwir4e\"><\/a>Distributed k6 Tests in RedLine13<\/h3>\n<p>Running distributed tests is what RedLine13 was built for. Once you have created a test plan that runs on your local machine, our intuitive tools can scale that test across dozens or even hundreds of instances in the cloud with a few simple clicks.<\/p>\n<p>In a <a href=\"https:\/\/www.redline13.com\/blog\/2023\/12\/getting-started-with-k6-load-tests-on-redline13\/\" target=\"_blank\" rel=\"noopener\">previous post<\/a>, we outlined the basics of running a k6 test in RedLine13. Taking that one step further, we can parallelize and scale any test simply by adding additional load generator servers. This can be done with the simple action of increasing the server count when starting the test:<\/p>\n<figure id=\"attachment_11112\" class=\"wp-caption aligncenter\" style=\"max-width: 632px\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-11112\" src=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/04\/word-image-11110-2.png\" alt=\"Parallelization can be increased by simply increasing the number of servers\" width=\"632\" height=\"63\" srcset=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/04\/word-image-11110-2.png 682w, https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/04\/word-image-11110-2-300x30.png 300w, https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/04\/word-image-11110-2-425x42.png 425w\" sizes=\"auto, (max-width: 632px) 100vw, 632px\" \/><figcaption class=\"wp-caption-text\">Parallelization can be increased by simply increasing the number of servers.<\/figcaption><\/figure>\n<p>For instance, if a test was designed to simulate 3,000 users, leveraging RedLine13 and entering \u201c4\u201d into the servers box will instantly scale that test to simulate 12,000 users. There are no practical limits to the degree to which you can scale your test in this manner. You are only limited by the number of <a href=\"https:\/\/www.redline13.com\/blog\/amazon-approval-for-large-tests\/\" target=\"_blank\" rel=\"noopener\">AWS resources<\/a> you wish to provision.<\/p>\n<h3><a id=\"post-11110-_iowy7g6ys3zy\"><\/a>Viewing Results in One Place<\/h3>\n<p>A major benefit of using a managed cloud-platform such as RedLine13 for distributed tests is results aggregation into a single dashboard. The alternative approach involves collecting and combining the results from multiple instances, and the associated work that goes into this. RedLine13 does all this work automatically, and in real time. This allows you to focus on your results without the distractions or worry of combining this data.<\/p>\n<figure id=\"attachment_11113\" class=\"wp-caption aligncenter\" style=\"max-width: 750px\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-11113\" src=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/04\/word-image-11110-3.png\" alt=\"An example of combined data from multiple parallel tests\" width=\"750\" height=\"200\" srcset=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/04\/word-image-11110-3.png 934w, https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/04\/word-image-11110-3-300x80.png 300w, https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/04\/word-image-11110-3-768x205.png 768w, https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/04\/word-image-11110-3-425x113.png 425w\" sizes=\"auto, (max-width: 750px) 100vw, 750px\" \/><figcaption class=\"wp-caption-text\">An example of combined data from multiple parallel tests.<\/figcaption><\/figure>\n<hr \/>\n<p>Did you know that RedLine13 offers a full-featured, time-limited free trial? <a href=\"https:\/\/www.redline13.com\/Service\" target=\"_blank\" rel=\"noopener\">Sign up now<\/a>, and start running your own distributed k6 tests in the cloud today!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Owing to an efficient design and low overhead, k6 tests have an inherent ability to scale well. Compared to other testing frameworks, users of k6 can often expect less resource utilization. As described in the official documentation, k6 tests scale well on single instances, lending to reduced requirements when performing distributed load testing. In this brief article, we will show you how cloud-based platforms like RedLine13 allow you scale your k6 tests across multiple load generator<a class=\"more-link\" href=\"https:\/\/www.redline13.com\/blog\/2024\/04\/large-scale-and-distributed-load-testing-with-k6\/\">Read More &rarr;<\/a><\/p>\n","protected":false},"author":11,"featured_media":11111,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,1],"tags":[128,567,705,596,671,704,318,424],"class_list":{"0":"entry","1":"post","2":"publish","3":"author-dkoziel","4":"post-11110","6":"format-standard","7":"has-post-thumbnail","8":"category-blog","9":"category-uncategorized","10":"post_tag-cloud-load-testing","11":"post_tag-distributed","12":"post_tag-distributed-k6-tests","13":"post_tag-k6","14":"post_tag-k6-load-tests","15":"post_tag-large-scale-load-test","16":"post_tag-load-testing","17":"post_tag-redline13"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.12 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Large-Scale and Distributed Load Testing with k6 - RedLine13<\/title>\n<meta name=\"description\" content=\"In this post, we will show you how RedLine13 allows you easily scale your k6 tests across multiple load generator servers.\" \/>\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\/2024\/04\/large-scale-and-distributed-load-testing-with-k6\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Large-Scale and Distributed Load Testing with k6 - RedLine13\" \/>\n<meta property=\"og:description\" content=\"In this post, we will show you how RedLine13 allows you easily scale your k6 tests across multiple load generator servers.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.redline13.com\/blog\/2024\/04\/large-scale-and-distributed-load-testing-with-k6\/\" \/>\n<meta property=\"og:site_name\" content=\"RedLine13\" \/>\n<meta property=\"article:published_time\" content=\"2024-04-10T04:55:25+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-10T04:55:26+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/04\/word-image-11110-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"400\" \/>\n\t<meta property=\"og:image:height\" content=\"300\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"David Koziel\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"David Koziel\" \/>\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\/2024\/04\/large-scale-and-distributed-load-testing-with-k6\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.redline13.com\/blog\/2024\/04\/large-scale-and-distributed-load-testing-with-k6\/\"},\"author\":{\"name\":\"David Koziel\",\"@id\":\"https:\/\/www.redline13.com\/blog\/#\/schema\/person\/51d282221e3230ab35f964f98ada9b20\"},\"headline\":\"Large-Scale and Distributed Load Testing with k6\",\"datePublished\":\"2024-04-10T04:55:25+00:00\",\"dateModified\":\"2024-04-10T04:55:26+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.redline13.com\/blog\/2024\/04\/large-scale-and-distributed-load-testing-with-k6\/\"},\"wordCount\":449,\"publisher\":{\"@id\":\"https:\/\/www.redline13.com\/blog\/#organization\"},\"keywords\":[\"Cloud Load Testing\",\"Distributed\",\"distributed k6 tests\",\"k6\",\"k6 load tests\",\"large scale load test\",\"Load Testing\",\"RedLine13\"],\"articleSection\":[\"Blog\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.redline13.com\/blog\/2024\/04\/large-scale-and-distributed-load-testing-with-k6\/\",\"url\":\"https:\/\/www.redline13.com\/blog\/2024\/04\/large-scale-and-distributed-load-testing-with-k6\/\",\"name\":\"Large-Scale and Distributed Load Testing with k6 - RedLine13\",\"isPartOf\":{\"@id\":\"https:\/\/www.redline13.com\/blog\/#website\"},\"datePublished\":\"2024-04-10T04:55:25+00:00\",\"dateModified\":\"2024-04-10T04:55:26+00:00\",\"description\":\"In this post, we will show you how RedLine13 allows you easily scale your k6 tests across multiple load generator servers.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.redline13.com\/blog\/2024\/04\/large-scale-and-distributed-load-testing-with-k6\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.redline13.com\/blog\/2024\/04\/large-scale-and-distributed-load-testing-with-k6\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.redline13.com\/blog\/2024\/04\/large-scale-and-distributed-load-testing-with-k6\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.redline13.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Large-Scale and Distributed Load Testing with k6\"}]},{\"@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\/51d282221e3230ab35f964f98ada9b20\",\"name\":\"David Koziel\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.redline13.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/2babf644e0993fc86893c24d7525f1e3be114a8746c01249797f25587ae1697a?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/2babf644e0993fc86893c24d7525f1e3be114a8746c01249797f25587ae1697a?s=96&d=mm&r=g\",\"caption\":\"David Koziel\"},\"url\":\"https:\/\/www.redline13.com\/blog\/author\/dkoziel\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Large-Scale and Distributed Load Testing with k6 - RedLine13","description":"In this post, we will show you how RedLine13 allows you easily scale your k6 tests across multiple load generator servers.","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\/2024\/04\/large-scale-and-distributed-load-testing-with-k6\/","og_locale":"en_US","og_type":"article","og_title":"Large-Scale and Distributed Load Testing with k6 - RedLine13","og_description":"In this post, we will show you how RedLine13 allows you easily scale your k6 tests across multiple load generator servers.","og_url":"https:\/\/www.redline13.com\/blog\/2024\/04\/large-scale-and-distributed-load-testing-with-k6\/","og_site_name":"RedLine13","article_published_time":"2024-04-10T04:55:25+00:00","article_modified_time":"2024-04-10T04:55:26+00:00","og_image":[{"width":400,"height":300,"url":"https:\/\/www.redline13.com\/blog\/wp-content\/uploads\/2024\/04\/word-image-11110-1.png","type":"image\/png"}],"author":"David Koziel","twitter_card":"summary_large_image","twitter_misc":{"Written by":"David Koziel","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.redline13.com\/blog\/2024\/04\/large-scale-and-distributed-load-testing-with-k6\/#article","isPartOf":{"@id":"https:\/\/www.redline13.com\/blog\/2024\/04\/large-scale-and-distributed-load-testing-with-k6\/"},"author":{"name":"David Koziel","@id":"https:\/\/www.redline13.com\/blog\/#\/schema\/person\/51d282221e3230ab35f964f98ada9b20"},"headline":"Large-Scale and Distributed Load Testing with k6","datePublished":"2024-04-10T04:55:25+00:00","dateModified":"2024-04-10T04:55:26+00:00","mainEntityOfPage":{"@id":"https:\/\/www.redline13.com\/blog\/2024\/04\/large-scale-and-distributed-load-testing-with-k6\/"},"wordCount":449,"publisher":{"@id":"https:\/\/www.redline13.com\/blog\/#organization"},"keywords":["Cloud Load Testing","Distributed","distributed k6 tests","k6","k6 load tests","large scale load test","Load Testing","RedLine13"],"articleSection":["Blog"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.redline13.com\/blog\/2024\/04\/large-scale-and-distributed-load-testing-with-k6\/","url":"https:\/\/www.redline13.com\/blog\/2024\/04\/large-scale-and-distributed-load-testing-with-k6\/","name":"Large-Scale and Distributed Load Testing with k6 - RedLine13","isPartOf":{"@id":"https:\/\/www.redline13.com\/blog\/#website"},"datePublished":"2024-04-10T04:55:25+00:00","dateModified":"2024-04-10T04:55:26+00:00","description":"In this post, we will show you how RedLine13 allows you easily scale your k6 tests across multiple load generator servers.","breadcrumb":{"@id":"https:\/\/www.redline13.com\/blog\/2024\/04\/large-scale-and-distributed-load-testing-with-k6\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.redline13.com\/blog\/2024\/04\/large-scale-and-distributed-load-testing-with-k6\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.redline13.com\/blog\/2024\/04\/large-scale-and-distributed-load-testing-with-k6\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.redline13.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Large-Scale and Distributed Load Testing with k6"}]},{"@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\/51d282221e3230ab35f964f98ada9b20","name":"David Koziel","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.redline13.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/2babf644e0993fc86893c24d7525f1e3be114a8746c01249797f25587ae1697a?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2babf644e0993fc86893c24d7525f1e3be114a8746c01249797f25587ae1697a?s=96&d=mm&r=g","caption":"David Koziel"},"url":"https:\/\/www.redline13.com\/blog\/author\/dkoziel\/"}]}},"_links":{"self":[{"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/posts\/11110","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\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/comments?post=11110"}],"version-history":[{"count":2,"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/posts\/11110\/revisions"}],"predecessor-version":[{"id":11115,"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/posts\/11110\/revisions\/11115"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/media\/11111"}],"wp:attachment":[{"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/media?parent=11110"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/categories?post=11110"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.redline13.com\/blog\/wp-json\/wp\/v2\/tags?post=11110"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}