<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: CloudGrains</title>
    <description>The latest articles on DEV Community by CloudGrains (@cloudgrains).</description>
    <link>https://dev.to/cloudgrains</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3658632%2F5120a539-41f0-49e7-98da-9a0ed57eb605.png</url>
      <title>DEV Community: CloudGrains</title>
      <link>https://dev.to/cloudgrains</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/cloudgrains"/>
    <language>en</language>
    <item>
      <title>Step-by-Step Guide: Installing wrk (HTTP Benchmarking Tool) on Amazon Linux</title>
      <dc:creator>CloudGrains</dc:creator>
      <pubDate>Sat, 13 Dec 2025 10:32:11 +0000</pubDate>
      <link>https://dev.to/cloudgrains/step-by-step-guide-installing-wrk-http-benchmarking-tool-on-amazon-linux-4e9d</link>
      <guid>https://dev.to/cloudgrains/step-by-step-guide-installing-wrk-http-benchmarking-tool-on-amazon-linux-4e9d</guid>
      <description>&lt;p&gt;If you're working with auto-scaling, load testing, or performance tuning on AWS, then wrk is one of the most powerful yet lightweight benchmarking tools you can use.&lt;/p&gt;

&lt;p&gt;However, Amazon Linux doesn’t provide wrk via yum, so you must build it from source.&lt;br&gt;
In this guide, I’ll walk you through a clean and reliable installation process — perfect for EC2 users.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;🧠 What Is wrk?&lt;/strong&gt;&lt;br&gt;
wrk is a modern HTTP benchmarking tool capable of generating significant load from a single machine.&lt;br&gt;
It uses:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;multithreading&lt;/li&gt;
&lt;li&gt;event-driven architecture (epoll/kqueue)&lt;/li&gt;
&lt;li&gt;Lua scripting for advanced testing&lt;/li&gt;
&lt;li&gt;This makes it ideal for testing:&lt;/li&gt;
&lt;li&gt;API performance&lt;/li&gt;
&lt;li&gt;Auto-scaling groups&lt;/li&gt;
&lt;li&gt;Load balancers&lt;/li&gt;
&lt;li&gt;Backend throughput&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;✅ Prerequisites&lt;/strong&gt;&lt;br&gt;
You’ll need:&lt;/p&gt;

&lt;p&gt;An Amazon Linux / Amazon Linux 2 EC2 instance&lt;/p&gt;

&lt;p&gt;sudo access&lt;/p&gt;

&lt;p&gt;Basic yum packages (which we install anyway)&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;🛠 Step-by-Step Instructions to Install wrk on Amazon Linux&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1️⃣ Install Development Tools &amp;amp; Dependencies&lt;/strong&gt;&lt;br&gt;
Amazon Linux requires build tools to compile wrk:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo yum groupinstall -y "Development Tools"
sudo yum install -y git
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This installs:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;gcc&lt;/li&gt;
&lt;li&gt;make&lt;/li&gt;
&lt;li&gt;automake&lt;/li&gt;
&lt;li&gt;binutils&lt;/li&gt;
&lt;li&gt;git&lt;/li&gt;
&lt;li&gt;and other build dependencies&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;2️⃣ Clone the wrk Repository&lt;/strong&gt;&lt;br&gt;
Download the official wrk source code from GitHub:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;git clone https://github.com/wg/wrk.git&lt;br&gt;
cd wrk&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;This brings you into the project directory, ready for building.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3️⃣ Build wrk Using make&lt;/strong&gt;&lt;br&gt;
Compile:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;make
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The process is fast — you'll get a binary named wrk inside the same folder.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4️⃣ Move wrk to Your PATH&lt;/strong&gt;&lt;br&gt;
Move the binary to a system-wide location such as /usr/local/bin:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo mv wrk /usr/local/bin/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now you can run wrk globally from any shell.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;🎯 Final Command Summary&lt;/strong&gt;&lt;br&gt;
Here’s the complete installation sequence:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sudo yum groupinstall -y "Development Tools"
sudo yum install -y git
git clone https://github.com/wg/wrk.git
cd wrk
make
sudo mv wrk /usr/local/bin/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;🚀 How to Use wrk&lt;/strong&gt;&lt;br&gt;
Once installed, try generating load:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;wrk -t12 -c400 -d30s http://your-server-endpoint/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Explanation:&lt;/p&gt;

&lt;p&gt;-t12 → number of threads&lt;/p&gt;

&lt;p&gt;-c400 → number of open connections&lt;/p&gt;

&lt;p&gt;-d30s → duration of test&lt;/p&gt;

&lt;p&gt;URL → your target API or load balancer&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;🏁 Summary&lt;/strong&gt;&lt;br&gt;
Installing wrk on Amazon Linux is straightforward once you install development tools.&lt;br&gt;
You simply:&lt;/p&gt;

&lt;p&gt;Install build dependencies&lt;/p&gt;

&lt;p&gt;Clone wrk&lt;/p&gt;

&lt;p&gt;Compile it&lt;/p&gt;

&lt;p&gt;Move the binary&lt;/p&gt;

&lt;p&gt;After that, you can benchmark anything from APIs to auto-scaling groups with a single command.&lt;/p&gt;

</description>
      <category>aws</category>
      <category>performance</category>
      <category>tutorial</category>
      <category>linux</category>
    </item>
    <item>
      <title>K9s Installation Script for Amazon Linux / RHEL-Based Systems-</title>
      <dc:creator>CloudGrains</dc:creator>
      <pubDate>Fri, 12 Dec 2025 12:10:34 +0000</pubDate>
      <link>https://dev.to/cloudgrains/k9s-installation-script-for-amazon-linux-rhel-based-systems--160f</link>
      <guid>https://dev.to/cloudgrains/k9s-installation-script-for-amazon-linux-rhel-based-systems--160f</guid>
      <description>&lt;p&gt;This guide provides a shell script to automatically install the latest version of K9s, a terminal UI for managing Kubernetes clusters.&lt;/p&gt;

&lt;p&gt;🚀 What This Script Does&lt;/p&gt;

&lt;p&gt;Updates system packages&lt;/p&gt;

&lt;p&gt;Installs required dependencies (wget, tar)&lt;/p&gt;

&lt;p&gt;Fetches the latest K9s release version from GitHub&lt;/p&gt;

&lt;p&gt;Downloads and installs the K9s binary&lt;/p&gt;

&lt;p&gt;Cleans up leftover files&lt;/p&gt;

&lt;p&gt;Verifies the installation&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#!/bin/bash

# Update packages and install necessary dependencies
sudo yum update -y
sudo yum install -y wget tar

# Fetch the latest K9s version
K9S_VERSION=$(curl -s https://api.github.com/repos/derailed/k9s/releases/latest | grep tag_name | cut -d '"' -f 4)

# Download the latest K9s release
wget https://github.com/derailed/k9s/releases/download/${K9S_VERSION}/k9s_Linux_amd64.tar.gz

# Check if the download was successful
if [ $? -ne 0 ]; then
  echo "Failed to download K9s. Please check the version number and URL."
  exit 1
fi

# Extract the tarball and move the binary to /usr/local/bin
tar -xzf k9s_Linux_amd64.tar.gz
sudo mv k9s /usr/local/bin/

# Clean up
rm k9s_Linux_amd64.tar.gz

# Verify installation
k9s version

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;🧩 Usage Instructions&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Save the script to a file
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;nano install_k9s.sh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Paste the script and save.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Make the script executable
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;chmod +x install_k9s.sh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Run the script
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sh install_k9s.sh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;✅ Verify Installation&lt;/p&gt;

&lt;p&gt;Run the following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
## k9s version
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You should see the installed version printed.&lt;/p&gt;

</description>
      <category>bash</category>
      <category>kubernetes</category>
      <category>automation</category>
      <category>linux</category>
    </item>
  </channel>
</rss>
