<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by virajpatoliya on Medium]]></title>
        <description><![CDATA[Stories by virajpatoliya on Medium]]></description>
        <link>https://medium.com/@virajpatoliya?source=rss-65b48ba088e5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*K1jAsbDMtebdWXsA</url>
            <title>Stories by virajpatoliya on Medium</title>
            <link>https://medium.com/@virajpatoliya?source=rss-65b48ba088e5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 22:27:35 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@virajpatoliya/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Scaling to Zero in Kubernetes: How Sablier Can Slash Your Cloud Costs]]></title>
            <link>https://blog.devops.dev/scaling-to-zero-in-kubernetes-how-sablier-can-slash-your-cloud-costs-f5fd814846ef?source=rss-65b48ba088e5------2</link>
            <guid isPermaLink="false">https://medium.com/p/f5fd814846ef</guid>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[k8s]]></category>
            <category><![CDATA[keda]]></category>
            <dc:creator><![CDATA[virajpatoliya]]></dc:creator>
            <pubDate>Sat, 01 Aug 2026 20:41:01 GMT</pubDate>
            <atom:updated>2026-08-01T20:41:01.503Z</atom:updated>
            <content:encoded><![CDATA[<p><em>#Kubernetes, #ScaleToZero, #CloudCostOptimization, #DevOps, #Sablier</em></p><p>Stop paying for empty rooms. Discover how Sablier lets your Kubernetes workloads sleep when idle and wake instantly when the doorbell rings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/667/0*JZzggMwWm_x0pVAH.png" /></figure><p>If you are running a Kubernetes (k8s) cluster, you already know the pain of idle workloads. Internal admin dashboards, feature branch deployments, and QA environments often run 24/7, quietly eating up CPU, memory, and your cloud budget.</p><p>Standard Kubernetes autoscaling — like the Horizontal Pod Autoscaler (HPA) — is fantastic for handling traffic spikes, but out of the box, it hits a floor. It won’t let you scale down to <em>zero</em> based on HTTP traffic.</p><p>This is where <strong>Sablier</strong> comes in.</p><p>Sablier is an open-source tool that brings true “scale-to-zero” capabilities to your HTTP services. Let’s dive into what Sablier is, how it works with Kubernetes, and how it can help you drastically optimize your infrastructure.</p><h3>What is Sablier?</h3><p>At its core, <strong>Sablier</strong> (French for “hourglass”) is a lightweight API that sits between your reverse proxy (like Traefik, Nginx, or Caddy) and your container platform.</p><p>Its job is brilliantly simple: <strong>It starts your workloads on demand upon the first incoming request and shuts them down automatically after a period of inactivity</strong>.</p><p>Whether you are running a massive cloud-native architecture on AWS EKS or a bare-metal Homelab on Raspberry Pis, Sablier ensures you only dedicate compute resources to the applications currently in use.</p><h3>How It Works Under the Hood</h3><p>Sablier doesn’t modify your deployments directly. Instead, it acts as a middleware plugin for your ingress controller or reverse proxy. Here is the lifecycle of a request:</p><ol><li><strong>The Sleep State:</strong> Your Kubernetes Deployment is scaled to 0 replicas.</li><li><strong>The Interception:</strong> A user navigates to your application’s URL. The reverse proxy intercepts the request and forwards it to Sablier.</li><li><strong>The Wake-Up:</strong> Sablier talks to the Kubernetes API, scaling the deployment up to 1 (or your desired minimum).</li><li><strong>The Hand-Off:</strong> Once the pod is healthy and ready, Sablier routes the user to the application.</li><li><strong>The Cooldown:</strong> If no new requests hit the service for a predefined duration (e.g., 20 minutes), Sablier scales the deployment back down to 0.</li></ol><h3>The Two Waiting Strategies</h3><p>Because starting a Kubernetes pod isn’t instantaneous (often taking a few seconds depending on the image size), Sablier handles the user experience elegantly through two distinct strategies:</p><p><strong>StrategyUser ExperienceBest Used ForDynamic</strong>Shows a customizable, auto-refreshing “Waiting Page” while the pod boots up.Frontend UIs, internal tools, and web dashboards.<strong>Blocking</strong>Holds the HTTP connection open in the background until the service is ready, then completes the request.APIs, webhooks, and backend services.</p><h3>Why Pair Sablier with Kubernetes?</h3><p>You might be wondering: <em>Why not just use Knative or KEDA for scaling to zero?</em></p><p>While Knative and KEDA are powerful, they can be heavy and complex to set up, often requiring you to rethink your entire architecture around event-driven patterns. Sablier is incredibly lightweight and specifically tailored for HTTP/web traffic.</p><p>Here is why Sablier shines in a k8s environment:</p><ul><li><strong>Massive Cost Savings:</strong> For cloud environments, turning off 30 idle feature-branch deployments over the weekend translates directly to smaller node pools and lower AWS/GCP bills.</li><li><strong>Resource Reclamation:</strong> If you are running a hardware-constrained cluster (like a Homelab), Sablier frees up RAM and CPU so your active applications have room to breathe.</li><li><strong>Zero Application Code Changes:</strong> Your application doesn’t need to know Sablier exists. It’s handled entirely at the infrastructure layer via Kubernetes labels and proxy configurations.</li><li><strong>Built-in Observability:</strong> Sablier comes with Prometheus metrics and OpenTelemetry tracing out of the box, making it easy to monitor cold starts and session lifecycles.</li></ul><h3>Getting Started: A Quick Look</h3><p>Deploying Sablier in your Kubernetes cluster is highly accessible, especially if you already use Helm and a supported ingress like Traefik.</p><p><strong>1. Install via Helm</strong></p><p>You can deploy Sablier directly into your cluster using their official Helm chart:</p><pre>helm repo add sablierapp https://sablierapp.github.io/helm-charts<br>helm repo update<br>helm install sablier sablierapp/sablier</pre><p><strong>2. Configure Your Ingress</strong></p><p>You simply add Sablier middleware to your ingress routing. (If you use Traefik, this is done via a Middleware CRD).</p><p><strong>3. Label Your Deployments</strong></p><p>To tell Sablier to manage a deployment, you just add a few labels to your workload indicating the group name and your desired session duration:</p><p>YAML</p><pre>labels:<br>  sablier.enable: &quot;true&quot;<br>  sablier.group: &quot;my-internal-dashboard&quot;</pre><p>Once applied, Sablier takes the wheel, automatically spinning down the dashboard when everyone logs off for the day.</p><h3>Final Thoughts</h3><p>Efficiency in Kubernetes isn’t just about packing nodes tightly; it’s about ensuring you aren’t running workloads that nobody is using. Sablier bridges the gap between traditional always-on deployments and complex serverless architectures, giving you an elegant, lightweight way to scale to zero.</p><p>If you are managing ephemeral environments, QA testing grounds, or personal homelabs, giving Sablier a spin might be the easiest win for your infrastructure this year.</p><p><strong>Are you planning to try Sablier in your cluster?</strong> Let me know in the comments if you prefer the Dynamic waiting pages or the invisible Blocking strategy for your apps!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f5fd814846ef" width="1" height="1" alt=""><hr><p><a href="https://blog.devops.dev/scaling-to-zero-in-kubernetes-how-sablier-can-slash-your-cloud-costs-f5fd814846ef">Scaling to Zero in Kubernetes: How Sablier Can Slash Your Cloud Costs</a> was originally published in <a href="https://blog.devops.dev/">DevOps.dev</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Automate the New Amazon CloudWatch Agent Using Terraform]]></title>
            <link>https://blog.devops.dev/how-to-automate-the-new-amazon-cloudwatch-agent-using-terraform-fbfc0b020a81?source=rss-65b48ba088e5------2</link>
            <guid isPermaLink="false">https://medium.com/p/fbfc0b020a81</guid>
            <category><![CDATA[terraform]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <dc:creator><![CDATA[virajpatoliya]]></dc:creator>
            <pubDate>Sun, 19 Jul 2026 20:01:01 GMT</pubDate>
            <atom:updated>2026-07-19T20:01:01.606Z</atom:updated>
            <content:encoded><![CDATA[<p>Terraform, AWS, DevOps, CloudWatch, Infrastructure as Code</p><p>How to Configure CloudWatch Agent with Terraform on EC2!!!</p><p>Monitoring server health shouldn’t require manual clicks. While AWS recently introduced a native, in-console installation experience for the Amazon CloudWatch agent on EC2, clicking buttons inside the AWS Management Console leaves your infrastructure unversioned, hard to replicate, and prone to human error.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5pjlwiLUyEEeil2i9fvklQ.png" /><figcaption>How to Configure CloudWatch Agent with Terraform on EC2.</figcaption></figure><p>If you are running production workloads, you need to manage your system metrics with <strong>Infrastructure as Code (IaC)</strong>.</p><p>In this guide, we will look at how to take an advanced CloudWatch agent configuration JSON — collecting deep OS-level metrics like CPU wait times, memory usage, disk I/O, and ethtool allowances — and deploy it natively using Terraform.</p><h3>The Catch: Why You Can’t Native-Toggle the Console Feature</h3><p>The new “Configure CloudWatch agent” button inside the EC2 console runs an interactive wrapper under the hood. Terraform cannot directly click this button for you.</p><p>However, we can completely replicate the exact same end state. By utilizing the <strong>AWS Systems Manager (SSM) Parameter Store</strong> alongside EC2 user_data bootstrapping, your EC2 instances will boot up, register themselves, and start streaming metrics automatically.</p><p>Here is the exact three-step architecture to achieve this.</p><h3>Step 1: Store Your Advanced Agent Configuration in SSM</h3><p>Instead of maintaining a messy local JSON file on your server, the industry standard is to inject the configuration directly into the AWS SSM Parameter Store.</p><blockquote><strong><em>Important Terraform Tip:</em></strong><em> Because CloudWatch uses native tokens like </em><em>${aws:InstanceId}, you must escape them using a double dollar sign (</em><em>$${aws:InstanceId}) inside your Terraform code. This prevents Terraform from trying to interpolate them at deploy time.</em></blockquote><p>Here is the comprehensive Terraform configuration block containing your complete metrics schema:</p><p>Terraform snip:</p><pre>resource &quot;aws_ssm_parameter&quot; &quot;cw_agent_config&quot; {<br>  name        = &quot;AmazonCloudWatch-Linux-Config&quot;<br>  type        = &quot;String&quot;<br>  description = &quot;CloudWatch Agent Comprehensive Monitoring Configuration&quot;<br>  <br>  value = jsonencode({<br>    &quot;agent&quot; = {<br>      &quot;metrics_collection_interval&quot; = 60<br>      &quot;run_as_user&quot;                 = &quot;cwagent&quot;<br>      &quot;region&quot;                      = &quot;us-east-2&quot;<br>      &quot;usage_metadata&quot; = [<br>        {<br>          &quot;ObservabilitySolution&quot; = &quot;ec2_health&quot;<br>        }<br>      ]<br>    }<br>    &quot;metrics&quot; = {<br>      &quot;namespace&quot; = &quot;CWAgent&quot;<br>      &quot;append_dimensions&quot; = {<br>        &quot;InstanceId&quot;           = &quot;$${aws:InstanceId}&quot;<br>        &quot;InstanceType&quot;         = &quot;$${aws:InstanceType}&quot;<br>        &quot;ImageId&quot;              = &quot;$${aws:ImageId}&quot;<br>        &quot;AutoScalingGroupName&quot; = &quot;$${aws:AutoScalingGroupName}&quot;<br>      }<br>      &quot;aggregation_dimensions&quot; = [<br>        [&quot;InstanceId&quot;]<br>      ]<br>      &quot;metrics_collected&quot; = {<br>        &quot;cpu&quot; = {<br>          &quot;measurement&quot; = [<br>            &quot;cpu_usage_idle&quot;,<br>            &quot;cpu_usage_iowait&quot;,<br>            &quot;cpu_usage_user&quot;,<br>            &quot;cpu_usage_system&quot;<br>          ]<br>        }<br>        &quot;mem&quot; = {<br>          &quot;measurement&quot; = [<br>            &quot;mem_used_percent&quot;<br>          ]<br>        }<br>        &quot;disk&quot; = {<br>          &quot;measurement&quot; = [<br>            &quot;disk_inodes_free&quot;,<br>            &quot;disk_used_percent&quot;<br>          ]<br>          &quot;drop_device&quot; = true<br>        }<br>        &quot;net&quot; = {<br>          &quot;measurement&quot; = [<br>            &quot;net_bytes_recv&quot;,<br>            &quot;net_bytes_sent&quot;<br>          ]<br>        }<br>        &quot;diskio&quot; = {<br>          &quot;measurement&quot; = [<br>            &quot;diskio_io_time&quot;<br>          ]<br>        }<br>        &quot;swap&quot; = {<br>          &quot;measurement&quot; = [<br>            &quot;swap_used_percent&quot;<br>          ]<br>        }<br>        &quot;netstat&quot; = {<br>          &quot;measurement&quot; = [<br>            &quot;netstat_tcp_established&quot;,<br>            &quot;netstat_tcp_time_wait&quot;<br>          ]<br>        }<br>        &quot;processes&quot; = {<br>          &quot;measurement&quot; = [<br>            &quot;processes_running&quot;,<br>            &quot;processes_total&quot;<br>          ]<br>        }<br>        &quot;ethtool&quot; = {<br>          &quot;metrics_include&quot; = [<br>            &quot;bw_in_allowance_exceeded&quot;,<br>            &quot;bw_out_allowance_exceeded&quot;,<br>            &quot;conntrack_allowance_exceeded&quot;,<br>            &quot;linklocal_allowance_exceeded&quot;,<br>            &quot;pps_allowance_exceeded&quot;<br>          ]<br>        }<br>        &quot;ebs&quot; = {<br>          &quot;measurement&quot; = [<br>            &quot;ebs_read_ops&quot;,<br>            &quot;ebs_write_ops&quot;,<br>            &quot;volume_queue_length&quot;<br>          ]<br>        }<br>      }<br>    }<br>  })<br>}</pre><h3>Step 2: Set Up the Required IAM Permissions</h3><p>The CloudWatch Agent cannot publish data or read from the SSM Parameter store out of the box. Your EC2 instance profile must have the required AWS-managed permissions.</p><p>Ensure your aws_iam_role block includes the standard AmazonCloudWatchAgentServerPolicy:</p><p>Terraform</p><pre>resource &quot;aws_iam_role_policy_attachment&quot; &quot;cw_agent_server_policy&quot; {<br>  role       = aws_iam_role.ec2_execution_role.name<br>  policy_arn = &quot;arn:aws:iam::aws:policy/AmazonCloudWatchAgentServerPolicy&quot;<br>}</pre><h3>Step 3: Bootstrap Your EC2 Instance via User Data</h3><p>Finally, pass a shell script down to your instance using the user_data argument. This script fetches the CloudWatch agent RPM binary, installs it, draws down the parameters we saved in Step 1, and fires up the daemon.</p><p>Terraform</p><pre>resource &quot;aws_instance&quot; &quot;app_server&quot; {<br>  ami                  = &quot;ami-0xxxxxxxxxxxxx&quot; # Replace with your target AMI<br>  instance_type        = &quot;t3.medium&quot;<br>  iam_instance_profile = aws_iam_instance_profile.ec2_profile.name</pre><pre>  user_data = &lt;&lt;-EOF<br>              #!/bin/bash<br>              # 1. Download and install the native CloudWatch Agent package<br>              rpm -Uvh <a href="https://s3.amazonaws.com/amazoncloudwatch-agent/amazon_linux/amd64/latest/amazon-cloudwatch-agent.rpm">https://s3.amazonaws.com/amazoncloudwatch-agent/amazon_linux/amd64/latest/amazon-cloudwatch-agent.rpm</a><br>              <br>              # 2. Invoke the controller binary to fetch configuration and run the service<br>              /opt/aws/amazon-cloudwatch-agent/bin/amazon-cloudwatch-agent-ctl \<br>                -a fetch-config \<br>                -m ec2 \<br>                -c ssm:${aws_ssm_parameter.cw_agent_config.name} \<br>                -s<br>              EOF<br>}</pre><h3>Summary: Code vs. Clicks</h3><p>While the new AWS Console feature makes it easy to experiment, it creates hidden technical debt for teams looking to scale. Managing your configurations inside a jsonencode block with Terraform gives your operations crew:</p><ul><li><strong>Change Tracking:</strong> Track changes made to your disk or memory metrics via Git pull requests.</li><li><strong>Consistency:</strong> Ensure that your testing, staging, and production servers gather metrics exactly the same way.</li><li><strong>Zero Post-Deployment Setup:</strong> Avoid clicking inside the console every time an Auto Scaling event replaces an instance.</li></ul><p><strong>📬 Let’s Connect!</strong> Enjoyed this infrastructure guide? Leave a comment below with your favorite CloudWatch tips. Don’t forget to clap 👏 if you found this deployment pattern helpful!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fbfc0b020a81" width="1" height="1" alt=""><hr><p><a href="https://blog.devops.dev/how-to-automate-the-new-amazon-cloudwatch-agent-using-terraform-fbfc0b020a81">How to Automate the New Amazon CloudWatch Agent Using Terraform</a> was originally published in <a href="https://blog.devops.dev/">DevOps.dev</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS Finally Added an "Undo" Button for Amazon EKS Upgrades]]></title>
            <link>https://blog.devops.dev/aws-finally-added-an-undo-button-for-amazon-eks-upgrades-027bbe9b4d06?source=rss-65b48ba088e5------2</link>
            <guid isPermaLink="false">https://medium.com/p/027bbe9b4d06</guid>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[aws-eks]]></category>
            <category><![CDATA[version-upgrade]]></category>
            <dc:creator><![CDATA[virajpatoliya]]></dc:creator>
            <pubDate>Sat, 11 Jul 2026 21:01:00 GMT</pubDate>
            <atom:updated>2026-07-11T21:01:00.866Z</atom:updated>
            <content:encoded><![CDATA[<h3>No More One-Way Streets: A Deep Dive into Amazon EKS Kubernetes Version Rollback</h3><p>AWS Amazon EKS Kubernetes DevOps Cloud Computing</p><p>AWS Finally Added an “Undo” Button for Amazon EKS Upgrades</p><p>Upgrading a Kubernetes cluster on AWS used to feel like jumping out of a plane and hoping your parachute opens. Once you started a minor version upgrade (say, moving from 1.32 to 1.33), you were completely locked in. If an app broke or a plugin stopped working right after the upgrade, you couldn’t just go back. Your only choices were to fix the issue on the fly under intense pressure or build a whole new cluster from scratch and migrate everything over. It was stressful, to say the least.</p><p>That stressful reality is now a thing of the past. AWS has officially introduced <strong>Kubernetes Version Rollback for Amazon EKS</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hNJxvlABlYWL9mkU1ioDWw.png" /></figure><p>This feature allows you to safely revert your cluster’s control plane back to its previous minor version within a designated window after an in-place upgrade.</p><p>Here is a simple breakdown of how it works, the catch (because there is always a catch), and how to use it.</p><h3>How It Works: What Moves and What Stays?</h3><p>Before hitting the rollback button, it’s critical to understand the scope of what actually changes. A version rollback is primarily a control plane operation, though its behavior changes drastically depending on whether you are running a traditional cluster or using EKS Auto Mode.</p><h3>🔎 What Gets Rolled Back:</h3><ul><li><strong>The Control Plane:</strong> The Kubernetes API server and control plane components are reverted to the previous minor version.</li><li><strong>The EKS Platform Version:</strong> The underlying AWS-managed platform version updates to match the targeted minor version.</li><li><strong>EKS Auto Mode Nodes:</strong> If you are using EKS Auto Mode, the managed data plane (nodes managed via built-in Karpenter) is rolled back <strong>automatically</strong> alongside the control plane.</li></ul><h3>🔴 What Does NOT Get Rolled Back:</h3><ul><li><strong>etcd Data &amp; Workload State:</strong> Your actual application data, cluster state, running Pods, Deployments, and Persistent Volumes remain exactly as they are. Rollback only changes the control plane binaries. If you created a new Kubernetes resource using a 1.33-exclusive API feature during the upgrade window, that resource will persist but may become invalid or throw errors once the control plane reverts to 1.32.</li><li><strong>EKS Add-ons:</strong> Core add-ons (like VPC CNI, CoreDNS, or kube-proxy) are not automatically downgraded and must be handled separately.</li><li><strong>Managed Node Groups (MNGs), Self-Managed, or Hybrid Nodes:</strong> For standard clusters, your data plane must be managed and downgraded manually.</li></ul><h3>The Rules of Engagement: Key Constraints</h3><p>To prevent catastrophic configuration skews, AWS enforces strict boundaries around when and how you can trigger a rollback:</p><ol><li><strong>The 7-Day Window:</strong> You must initiate the rollback within <strong>7 days</strong> of completing the upgrade. After 7 days, the rollback window closes permanently.</li><li><strong>Single Minor Version Only (N-1):</strong> You can only roll back by exactly one minor version (e.g., from 1.33 to 1.32). If you have upgraded through multiple versions, you cannot skip versions or roll back multiple steps at once.</li><li><strong>In-Place Upgrades Only:</strong> You can only roll back a cluster that arrived at its current version via an in-place upgrade. If a cluster was newly created at version 1.33, it cannot be rolled back.</li><li><strong>Active Status:</strong> The cluster must be in an ACTIVE state. You cannot trigger a rollback while another update or configuration change is actively processing.</li></ol><h3>Step-by-Step Guide to Rolling Back Your EKS Cluster</h3><p>If you find yourself in a scenario where an upgrade has caused unexpected regressions, follow this sequence to revert safely.</p><h3>Step 1: Review Rollback Readiness Insights</h3><p>AWS automatically evaluates your cluster against point-in-time checks right after an upgrade completes. These are surfaced in EKS Cluster Insights under the ROLLBACK_READINESS category.</p><p>You can check these insights directly in the AWS Management Console under the <strong>Upgrade Insights</strong> tab, or via the AWS CLI:</p><pre>aws eks list-insights \<br>  --cluster-name my-cluster \<br>  --region us-west-2 \<br>  --filter &#39;{&quot;categories&quot;: [&quot;ROLLBACK_READINESS&quot;]}&#39;</pre><p>To see the exact details of a blocking issue, grab the insight ID and describe it:</p><pre>aws eks describe-insight \<br>  --cluster-name my-cluster \<br>  --region us-west-2 \<br>  --id &lt;insight-id&gt;</pre><ul><li><strong>PASSING / WARNING:</strong> Rollback is permitted (Warnings are advisory only).</li><li><strong>ERROR / UNKNOWN:</strong> Rollback is blocked. You must resolve the error first, or explicitly use the --force flag during the rollback command to bypass the block.</li></ul><h3>Step 2: Prepare Your Worker Nodes</h3><p>To avoid unstable master-to-node version skews, your data plane needs attention:</p><ul><li><strong>EKS Auto Mode:</strong> No action required! EKS gracefully coordinates node replacement using Karpenter behind the scenes before updating the control plane.</li><li><strong>Managed Node Groups (MNGs):</strong> You should downgrade your node groups to the previous Kubernetes version <em>before</em> kicking off the control plane rollback using update-nodegroup-version.</li><li><strong>Self-Managed or Hybrid Nodes:</strong> Manually rotate your instances using the previous version’s EKS-optimized AMIs.</li></ul><h3>Step 3: Trigger the Control Plane Rollback</h3><p>Initiating a rollback uses the exact same API endpoint as an upgrade, but you explicitly target the lower version number.</p><h4>Via the AWS Console:</h4><ul><li>Go to your EKS cluster and click the <strong>Actions</strong> dropdown.</li><li>Select <strong>Roll back Cluster version</strong>.</li><li>Review the Insights, select your target version, and confirm.</li></ul><h4>Via the AWS CLI:</h4><p>Run the following command to rollback from 1.33 back to 1.32:</p><pre>aws eks update-cluster-version \<br>  --name my-cluster \<br>  --kubernetes-version 1.32 \<br>  --region us-west-2</pre><p><em>(Note: If you have an </em><em>ERROR insight that you are confident is a false positive, you can append the </em><em>--force flag to bypass it).</em></p><h3>Step 4: Monitor and Know Your Escape Hatch</h3><p>The rollback will put your cluster into an UPDATING state. You can monitor the progress through the console or CLI.</p><p><strong>The Safety Brake:</strong> If you are running an EKS Auto Mode cluster and realize midway through the node-drain phase that you made a mistake, AWS provides a cancellation mechanism. You can halt an in-progress rollback using the cancel-update API:</p><pre>aws eks cancel-update \<br>  --name my-cluster \<br>  --update-id &lt;update-id&gt; \<br>  --region us-west-2</pre><p>Once canceled, the cluster gracefully returns to an ACTIVE state at the higher version it started on.</p><h3>Conclusion: A Game Changer for Platform Engineers</h3><p>The introduction of EKS version rollback fundamentally changes how enterprise platform teams approach lifecycle management. By eliminating the “one-way street” risk of Kubernetes upgrades, teams can migrate production clusters with higher confidence and less operational hesitation.</p><p>While it shouldn’t replace rigorous staging environment testing, having a robust 7-day safety net drastically reduces the blast radius of unexpected Day-2 upgrade issues.</p><p><em>Have you tried out the new EKS rollback feature yet? Let me know your thoughts and experiences in the comments below!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=027bbe9b4d06" width="1" height="1" alt=""><hr><p><a href="https://blog.devops.dev/aws-finally-added-an-undo-button-for-amazon-eks-upgrades-027bbe9b4d06">AWS Finally Added an &quot;Undo&quot; Button for Amazon EKS Upgrades</a> was originally published in <a href="https://blog.devops.dev/">DevOps.dev</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Essential Cheat Sheet: Top API Queries for Managing Amazon OpenSearch Service]]></title>
            <link>https://medium.com/@virajpatoliya/the-essential-cheat-sheet-top-api-queries-for-managing-amazon-opensearch-service-73e31bf7190e?source=rss-65b48ba088e5------2</link>
            <guid isPermaLink="false">https://medium.com/p/73e31bf7190e</guid>
            <category><![CDATA[cheatsheet]]></category>
            <category><![CDATA[opensearch]]></category>
            <category><![CDATA[aws-opensearch]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[virajpatoliya]]></dc:creator>
            <pubDate>Thu, 08 Jan 2026 07:09:39 GMT</pubDate>
            <atom:updated>2026-01-08T07:09:39.897Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>Amazon OpenSearch Service | AWS OpenSearch | OpenSearch API commands | OpenSearch Dev Tools console | OpenSearch cheat sheet | cluster health check | index management | troubleshooting OpenSearch | _cat API | _tasks API | DevOps | SRE tools | AWS cloud operations | Elasticsearch API alternative</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p-xRTMhCoN6mg9AmKPg-OQ.png" /><figcaption><em>A stylized illustration of an engineer using the OpenSearch Dashboards Dev Tools to manage an AWS OpenSearch Service cluster.</em></figcaption></figure><p>While the AWS Management Console is great for provisioning and high-level metrics, the true power of managing Amazon OpenSearch Service lies in its REST API. For DevOps engineers, SREs, and database administrators, the OpenSearch Dashboards <strong>Dev Tools Console</strong> is the cockpit for daily operations.</p><p>Whether you are diagnosing a “yellow” cluster state, figuring out why a query is slow, or just trying to list your indices sorted by size, knowing the right API calls is crucial for operational speed.</p><p>This post is a practical “cheat sheet” of the most essential API queries you need to effectively manage your AWS OpenSearch workloads.</p><h3>Prerequisites: How to Run These Commands</h3><p>The easiest way to run these queries in AWS is via the built-in console:</p><ol><li>Log into your AWS Console and navigate to your OpenSearch Domain.</li><li>Click the <strong>OpenSearch Dashboards URL</strong>.</li><li>In the left-hand menu, go to <strong>Management</strong> -&gt; <strong>Dev Tools</strong>.</li><li>Paste these commands into the left pane and hit the green “Play” button.</li></ol><h3>Section 1: The Daily Health Checks</h3><p>Before diving deep, you always need to know the 30,000-foot view of your domain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zuDyqnhexOWIi4qBGSg38A.png" /><figcaption><em>A screenshot of the OpenSearch Dev Tools console showing the </em><em>GET _cluster/health command and its output, confirming a &quot;green&quot; status.</em></figcaption></figure><h4>1. The Instant Status Check</h4><p>Is your cluster green, yellow, or red? This is the first command you run when alerted to an issue.</p><pre>GET _cluster/health?pretty</pre><p><strong>Pro Tip:</strong> Look at unassigned_shards. If this number is &gt; 0, your cluster is likely yellow or red, indicating data is not fully replicated or available.</p><h4>2. Node Vitals and Resource Usage</h4><p>How are your EC2 instances holding up? This command gives you a tabular view of heap usage, CPU load, and master node status across your data and dedicated master nodes.</p><pre>GET _cat/nodes?v&amp;h=name,node.role,heap.percent,cpu,load_1m,master</pre><blockquote><strong><em>The </em></strong><strong><em>?v Flag:</em></strong><em> You will see </em><em>?v used frequently in </em><em>_cat commands. It stands for &quot;verbose&quot; and adds header rows to the output, making it readable for humans.</em></blockquote><h3>Section 2: Mastering Index Management</h3><p>Managing hundreds or thousands of indices requires powerful filtering and sorting capabilities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5XNTHuS-2JTQc4os0fJulQ.png" /><figcaption>A screenshot of the Dev Tools console displaying a list of all indices, sorted by their storage size, using the GET _cat/indices command.</figcaption></figure><h4>3. The Ultimate Index List</h4><p>Forget scrolling through paginated GUI lists. This command shows you every index, its health, doc count, and store size, sorted so the largest indices are at the top.</p><pre>GET _cat/indices?v&amp;s=store.size:desc</pre><p>Want to filter by a pattern, like your new dev indices?</p><pre>GET _cat/indices/dev-*?v&amp;s=index</pre><h4>4. Inspecting Mappings (Schema)</h4><p>Why is my integer being stored as a string? Use this to view the exact mapping schema of an index.</p><pre>GET your-index-name/_mapping</pre><h4>5. Checking Settings (Shards &amp; Replicas)</h4><p>Verify an index has the correct number of primary shards and replica copies for production loads</p><pre>GET your-index-name/_settings</pre><h3>Section 3: Troubleshooting and Deep Dives</h3><p>When things go wrong, these commands help you find the smoking gun.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MzIEdburerjQ0Khw3u7ELQ.png" /><figcaption>A screenshot of the Dev Tools console showing the GET _tasks command being used to inspect a long-running reindex operation.</figcaption></figure><h4>6. “What is the cluster doing RIGHT NOW?”</h4><p>Is the CPU spiked? Is indexing slow? The Tasks API tells you exactly what operations are currently running on the cluster, how long they’ve been running, and on which node.</p><pre>GET _tasks?detailed=true&amp;actions=*</pre><blockquote><strong><em>AWS Context:</em></strong><em> If you see many long-running </em><em>search tasks, your queries might be unoptimized. If you see many </em><em>bulk tasks, your ingestion rate might be too high for the instance type.</em></blockquote><h4>7. Diagnosing “Yellow” Cluster States</h4><p>If your cluster health is yellow, it means some replica shards are not assigned. This command shows you exactly which shards are unassigned and, crucially, gives a reason <em>why</em>.</p><pre>GET _cat/shards?v&amp;h=index,shard,prirep,state,unassigned.reason</pre><h4>8. Finding Hot Spots (Shard Allocation)</h4><p>Are some nodes filling up their EBS volumes faster than others? This command shows how many shards and how much data resides on each specific node IP.</p><pre>GET _cat/allocation?v</pre><h3>Conclusion</h3><p>Mastering the OpenSearch API is a superpower for managing data on AWS. By keeping these commands handy in your Dev Tools console, you can reduce Mean Time To Recovery (MTTR), gain deeper insights into your data infrastructure, and perform complex operations with a single click.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=73e31bf7190e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Large-Scale Data Migration on AWS OpenSearch Service: Implementing Index Namespacing with the…]]></title>
            <link>https://medium.com/@virajpatoliya/large-scale-data-migration-on-aws-opensearch-service-implementing-index-namespacing-with-the-8341aa0f5eb8?source=rss-65b48ba088e5------2</link>
            <guid isPermaLink="false">https://medium.com/p/8341aa0f5eb8</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[multi-environment]]></category>
            <category><![CDATA[aws-opensearch]]></category>
            <category><![CDATA[opensearch]]></category>
            <category><![CDATA[devops-training]]></category>
            <dc:creator><![CDATA[virajpatoliya]]></dc:creator>
            <pubDate>Thu, 08 Jan 2026 06:39:17 GMT</pubDate>
            <atom:updated>2026-01-08T06:39:17.263Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong><em>Large-Scale Data Migration on AWS OpenSearch Service: Implementing Index Namespacing with the Reindex API</em></strong></h3><blockquote>Amazon OpenSearch Service |AWS OpenSearch migration | OpenSearch Reindex API | OpenSearch index management | AWS environment separation</blockquote><p>To complete your transition, you need to establish a secure connection to <strong>OpenSearch Dashboards</strong> and then create your new prefixed indices.</p><p>Here is the step-by-step guide to connecting and creating your first index.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g5h7-9sn_9zUBRxJ-lSniQ.png" /><figcaption>Amazon OpenSearch Service official branding</figcaption></figure><h3>Step 1: Find your Dashboard URL</h3><ol><li>Log in to the <strong>AWS Management Console</strong>.</li><li>Navigate to <strong>Amazon OpenSearch Service</strong> -&gt; <strong>Domains</strong>.</li><li>Click on your specific domain name.</li><li>In the <strong>General Info</strong> or <strong>Overview</strong> tab, look for the <strong>OpenSearch Dashboards URL</strong>. It will look something like this: <a href="https://vpc-your-domain-name.us-east-1.es.amazonaws.com/_dashboards/">https://vpc-your-domain-name.us-east-1.es.amazonaws.com/_dashboards/</a></li></ol><h3>Step 2: Authenticate and Connect</h3><p>Depending on how your domain was set up, you will use one of these three methods:</p><ul><li><strong>Master User (Internal Database):</strong> Use the username and password you created when the domain was provisioned.</li><li><strong>SAML / Cognito:</strong> If your company uses Okta, Azure AD, or Amazon Cognito, you will be redirected to your company’s SSO page.</li><li><strong>VPC Security Note:</strong> If your domain is in a <strong>Private VPC</strong>, the URL will not open from your home internet. You must be on your <strong>Company VPN</strong>, use a <strong>Jumpbox (EC2)</strong>, or use <strong>AWS SSM Port Forwarding</strong> to reach it.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O0FI5rrf8_tzsSFC5uQ8yA.png" /></figure><h3>Step 3: Create the dev-chat Template</h3><p>Run this in your <strong>OpenSearch DevTools Console</strong>. This is an exact clone of your current template but targets indices starting with dev-chat-*.</p><pre>PUT _index_template/dev-chat<br>{<br>  &quot;index_patterns&quot;: [<br>    &quot;dev-chat-*&quot;<br>  ],<br>  &quot;template&quot;: {<br>    &quot;settings&quot;: {<br>      &quot;index&quot;: {<br>        &quot;number_of_shards&quot;: &quot;3&quot;,<br>        &quot;number_of_replicas&quot;: &quot;2&quot;<br>      }<br>    },<br>    &quot;mappings&quot;: {<br>      &quot;properties&quot;: {<br>        &quot;from&quot;: { &quot;type&quot;: &quot;long&quot; },<br>        &quot;mass_msg_id&quot;: { &quot;type&quot;: &quot;long&quot; },<br>        &quot;id&quot;: { &quot;type&quot;: &quot;long&quot; },<br>        &quot;to&quot;: { &quot;type&quot;: &quot;long&quot; },<br>        &quot;model_id&quot;: { &quot;type&quot;: &quot;long&quot; },<br>        &quot;customer_id&quot;: { &quot;type&quot;: &quot;long&quot; },<br>        &quot;message&quot;: { &quot;type&quot;: &quot;text&quot; },<br>        &quot;sent&quot;: {<br>          &quot;format&quot;: &quot;yyyy-MM-dd HH:mm:ss&quot;,<br>          &quot;type&quot;: &quot;date&quot;<br>        }<br>      }<br>    }<br>  }<br>}</pre><h3>Step 4: The “Dry Run” Reindex</h3><pre>POST _reindex?wait_for_completion=true<br>{<br>  &quot;source&quot;: {<br>    &quot;index&quot;: &quot;chat-2026-01&quot;<br>  },<br>  &quot;dest&quot;: {<br>    &quot;index&quot;: &quot;dev-chat-2026-01&quot;<br>  }<br>}</pre><p><strong>Verify the result:</strong></p><pre># Check if mapping was applied from the new template<br>GET dev-chat-2026-01/_mapping<br><br># Check if doc count matches original<br>GET dev-chat-2026-01/_count</pre><h3>Step 5: Run the Bulk Migration</h3><p>You can trigger the reindex for your other major indices. Since you have many, run these in DevTools</p><pre>POST _reindex?wait_for_completion=false<br>{<br>  &quot;source&quot;: {<br>    &quot;index&quot;: &quot;chat-*&quot;<br>  },<br>  &quot;dest&quot;: {<br>    &quot;index&quot;: &quot;dev-placeholder&quot;<br>  },<br>  &quot;script&quot;: {<br>    &quot;lang&quot;: &quot;painless&quot;,<br>    &quot;source&quot;: &quot;ctx._index = &#39;dev-&#39; + ctx._index&quot;<br>  }<br>}</pre><p><strong>What this does:</strong></p><ul><li>source.index: &quot;chat-*&quot;: Picks up all indices that start with &quot;chat-&quot;.</li><li>dest.index: &quot;dev-placeholder&quot;: This is a dummy name. The script below overrides it.</li><li>ctx._index = &#39;dev-&#39; + ctx._index: This is the key logic. It takes the original index name (e.g., chat-2022-04) and changes the destination to dev-chat-2022-04.</li><li>wait_for_completion=false: Since you have massive amounts of data, this runs in the background so your session doesn&#39;t time out.</li></ul><h4>Monitor Progress</h4><p>Because we used wait_for_completion=false, you need to check when the work is done. OpenSearch will return a <strong>Task ID</strong> when you run the commands above.</p><p>Use this command to see the status of all reindex tasks:</p><p>GET _tasks?actions=*reindex&amp;detailed=true</p><p><strong>Look for:</strong></p><ul><li>total<strong> vs </strong>created: If total is high and created is low,total<strong> vs </strong>created: If total is high and created is low, the data is still moving.</li><li>failures: Look at the failures array. If you see &quot;Mapping errors&quot; or &quot;Version conflicts,&quot; the data is being rejected by the new index.</li></ul><h3>Step 6: Verify the Results</h3><p>Once the tasks are no longer appearing in the _tasks list, verify that your new dev- indices exist and have the correct data.</p><ul><li><strong>List the new indices:</strong></li><li>GET _cat/indices/dev-*?v&amp;s=index</li><li><strong>Check document counts:</strong> Pick a few random months and compare. They should be identical.</li><li>GET chat-2025-01/_count GET dev-chat-2025-01/_count</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8341aa0f5eb8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Configure GitHub Actions Runner on macOS Using LaunchAgent (AWS EC2 Mac)]]></title>
            <link>https://medium.com/@virajpatoliya/configure-github-actions-runner-on-macos-using-launchagent-aws-ec2-mac-a29d9c46e9c9?source=rss-65b48ba088e5------2</link>
            <guid isPermaLink="false">https://medium.com/p/a29d9c46e9c9</guid>
            <category><![CDATA[launchagents]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[self-hosted-runner]]></category>
            <category><![CDATA[macos]]></category>
            <category><![CDATA[black-screen]]></category>
            <dc:creator><![CDATA[virajpatoliya]]></dc:creator>
            <pubDate>Fri, 02 Jan 2026 08:22:37 GMT</pubDate>
            <atom:updated>2026-01-02T08:32:19.563Z</atom:updated>
            <content:encoded><![CDATA[<p><em>GitHub Actions | Self-hosted Runner | macOS CI/CD | AWS EC2 Mac | Automation Testing | Safari Testing | LaunchAgent | DevOps | Continuous Integration | GitHub Workflow</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*VMIIuUKImeYTabParHgKPg.png" /></figure><p>Running <strong>GitHub Actions self-hosted runners on macOS</strong> — especially on <strong>AWS EC2 Mac instances</strong> — can be tricky when your workflows require a <strong>GUI session</strong> (for example, Safari UI tests).</p><p>If your tests are producing <strong>black screenshots</strong>, failing silently, or the runner goes offline after reboot, the root cause is usually that the runner is running as a <strong>background service without a logged-in user session</strong>.</p><p>This guide walks through a <strong>reliable, production-tested approach</strong> using <strong>LaunchAgent</strong> instead of the default service (svc.sh).Phase 1: Clean Up Old Service:</p><p>We must remove the existing background service to prevent conflicts.</p><h3>Why Use LaunchAgent?</h3><ul><li>GitHub’s svc.sh runs the runner as a <strong>background daemon</strong></li><li>GUI-based tests (Safari, WebDriver, Screen Recording) <strong>require an interactive user session</strong></li><li>On AWS EC2 Mac, <strong>no physical login occurs after reboot</strong></li><li>LaunchAgent starts <strong>after user login</strong>, enabling full GUI access</li></ul><h3>Phase 1: Clean Up the Old Runner Service</h3><p>First, remove the existing background service to avoid conflicts.</p><ol><li><strong>SSH into the runner machine</strong></li><li>Stop and uninstall the service:</li></ol><pre>cd ~/actions-runner<br>./svc.sh stop<br>./svc.sh uninstall</pre><p>This ensures only one runner process will exist.</p><h3>Phase 2: Enable Auto-Login (AWS EC2 Mac Requirement)</h3><p>Since EC2 Mac instances don’t have a physical keyboard, <strong>auto-login is mandatory</strong>.</p><ol><li>Connect to the Mac via <strong>VNC</strong></li><li>Open <strong>System Settings → Users &amp; Groups</strong></li><li>Set <strong>Automatically login as</strong> → ec2-user (or your runner user)</li></ol><blockquote><em>⚠️ If this option is greyed out, </em><strong><em>FileVault must be disabled</em></strong><em>.</em></blockquote><p>Without auto-login, the runner will <strong>never start after reboot</strong>.</p><h3>Phase 3: Create the LaunchAgent</h3><p>This LaunchAgent ensures the GitHub runner starts <strong>immediately after the user logs in</strong>.</p><p>Create the plist file</p><pre>nano ~/Library/LaunchAgents/com.github.runner.plist</pre><p>Paste the following configuration:</p><p>(Update paths if your username is not ec2-user)</p><pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;<br>&lt;!DOCTYPE plist PUBLIC &quot;-//Apple//DTD PLIST 1.0//EN&quot; &quot;http://www.apple.com/DTDs/PropertyList-1.0.dtd&quot;&gt;<br>&lt;plist version=&quot;1.0&quot;&gt;<br>&lt;dict&gt;<br>    &lt;key&gt;Label&lt;/key&gt;<br>    &lt;string&gt;com.github.runner&lt;/string&gt;<br>    &lt;key&gt;ProgramArguments&lt;/key&gt;<br>    &lt;array&gt;<br>        &lt;string&gt;/bin/bash&lt;/string&gt;<br>        &lt;string&gt;/Users/ec2-user/actions-runner/run.sh&lt;/string&gt;<br>    &lt;/array&gt;<br>    &lt;key&gt;UserName&lt;/key&gt;<br>    &lt;string&gt;ec2-user&lt;/string&gt;<br>    &lt;key&gt;RunAtLoad&lt;/key&gt;<br>    &lt;true/&gt;<br>    &lt;key&gt;KeepAlive&lt;/key&gt;<br>    &lt;true/&gt;<br>    &lt;key&gt;WorkingDirectory&lt;/key&gt;<br>    &lt;string&gt;/Users/ec2-user/actions-runner&lt;/string&gt;<br>    &lt;key&gt;StandardOutPath&lt;/key&gt;<br>    &lt;string&gt;/Users/ec2-user/actions-runner/launchagent.log&lt;/string&gt;<br>    &lt;key&gt;StandardErrorPath&lt;/key&gt;<br>    &lt;string&gt;/Users/ec2-user/actions-runner/launchagent_error.log&lt;/string&gt;<br>    &lt;key&gt;ProcessType&lt;/key&gt;<br>    &lt;string&gt;Interactive&lt;/string&gt;<br>&lt;/dict&gt;<br>&lt;/plist&gt;</pre><h3>Phase 4: Permissions &amp; macOS Security (Critical)</h3><p>macOS <strong>will block GUI access</strong> unless permissions are granted manually.<br> This <strong>cannot be done via SSH</strong>.</p><h3>Load the LaunchAgent</h3><pre>launchctl load ~/Library/LaunchAgents/com.github.runner.plist</pre><h3>Enable Safari WebDriver</h3><pre>safaridriver --enable</pre><h3>Grant Required TCC Permissions</h3><p>Go to <strong>System Settings → Privacy &amp; Security</strong>:</p><h4>Full Disk Access</h4><p>Add:</p><ul><li><strong>Terminal</strong></li><li><strong>bash</strong> (if listed)</li></ul><h4>Screen Recording</h4><p>Add:</p><ul><li><strong>Terminal</strong></li><li>Toggle it <strong>ON</strong></li></ul><blockquote><em>If you see a popup saying<br> </em>“Terminal would like to record this screen”<em> → click </em><strong><em>Allow</em></strong></blockquote><h3>Troubleshooting</h3><h3>Verification Checklist</h3><h4>1. Reboot the Instance</h4><pre>sudo reboot</pre><p>Wait ~2 minutes.</p><h4>2. Check GitHub Settings</h4><ul><li>Runner status should be <strong>Idle (Green)</strong></li></ul><h4>3. Run a Test Workflow</h4><ul><li>Trigger a <strong>Safari-based job</strong></li><li>Watch via <strong>VNC</strong></li><li>Safari should visibly open and navigate</li></ul><h4>4. Validate Artifacts</h4><ul><li>Screenshots should show <strong>actual UI</strong></li><li>No more black screens.</li></ul><h3>Troubleshooting</h3><h3>❌ Issue: “Session Conflict” or Job Cancellation Loop</h3><p><strong>Cause:</strong><br> Old svc.sh service or zombie runner process.</p><p><strong>Fix:</strong></p><pre>pkill -9 -f Runner.Listener<br>launchctl unload ~/Library/LaunchAgents/com.github.runner.plist<br>launchctl load ~/Library/LaunchAgents/com.github.runner.plist</pre><h3>❌ Issue: Runner Offline After Reboot</h3><p><strong>Cause:</strong><br> Auto-login is not enabled.</p><p><strong>Fix:</strong></p><ul><li>VNC into the instance</li><li>Verify <strong>Users &amp; Groups → Auto-login</strong></li><li>Ensure the correct user is selected</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a29d9c46e9c9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Effortless Load Balancing: Setting Up Classic Load Balancer on AWS]]></title>
            <link>https://medium.com/@virajpatoliya/effortless-load-balancing-setting-up-classic-load-balancer-on-aws-76f256b01dee?source=rss-65b48ba088e5------2</link>
            <guid isPermaLink="false">https://medium.com/p/76f256b01dee</guid>
            <category><![CDATA[aws-elb]]></category>
            <category><![CDATA[aws-alb]]></category>
            <category><![CDATA[aws-load-balancing]]></category>
            <category><![CDATA[aws-load-balancer]]></category>
            <category><![CDATA[ec2]]></category>
            <dc:creator><![CDATA[virajpatoliya]]></dc:creator>
            <pubDate>Mon, 19 May 2025 09:26:27 GMT</pubDate>
            <atom:updated>2025-05-19T09:26:27.120Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>AWS Classic Load Balancer Tutorial | AWS Load Balancer Setup Guide | Elastic Load Balancer Configuration | Load Balancing EC2 Instances AWS | Classic vs Application Load Balancer AWS</blockquote><h3>🔀 Types of Elastic Load Balancers</h3><ul><li><strong>Classic</strong> Load Balancer ( Layer 4 and Layer 7)</li><li><strong>Application</strong> Load Balancer (Layer 7)</li><li><strong>Network</strong> Load Balancer (Layer 4)</li></ul><h3>Type 1: Classic Load Balancer</h3><ul><li><strong>Older</strong> version of ELB</li><li><strong>Not recommended anymore</strong></li><li>Supports TCP, SSL/TLS and HTTP(S) (Layer 4 and 7)</li></ul><h3>Type 2: Application Load Balancer</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/381/0*4PSuTZmU-qLRnQwO.png" /></figure><ul><li><strong>Most popular</strong> and frequently used ELB in AWS</li><li>Supports WebSockets and HTTP/HTTPS (Layer 7)</li><li>Supports all important load balancer features</li><li>Scales <strong>automatically</strong> based on demand (Auto Scaling)</li><li>Can load balance between:</li><li>EC2 instances (AWS)</li><li>Containerized applications (Amazon ECS)</li><li>Web applications (using IP addresses)</li><li>Lambdas (serverless)</li></ul><h3>Type 3: Network Load Balancer</h3><p>Network Load Balancer functions at the <strong>Transport Layer</strong> — Layer 4 (Protocols TCP, TLS and UDP). It is recommended for <strong>high performance</strong> use cases (millions of requests per second).</p><p>Here are the important things to note:</p><ul><li>Can be assigned a <strong>Static IP/Elastic IP</strong></li><li>Can load balance between:</li><li>EC2 instances</li><li>Containerized applications (Amazon ECS)</li><li>Web applications (using IP addresses)</li></ul><p>1.Sign in to AWS Console:</p><ul><li>Navigate to the AWS Management Console and sign in to your AWS account.</li></ul><p>2.Navigate to EC2 Dashboard:</p><ul><li>From the services menu, select EC2 to access the EC2 Dashboard.</li></ul><p>3.Create Load Balancer:</p><ul><li>In the EC2 Dashboard, under “Load Balancing”, select “Load Balancers”.</li><li>Click on “Create Load Balancer”.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sqSEWIOdlpn6h8UMA7i95A.png" /></figure><ul><li>Choose “Classic Load Balancer” as the type.</li></ul><p>4.Configure Load Balancer Settings:</p><ul><li>Specify basic configuration details such as name, listeners (protocol and port), and availability zones.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CYSJcgkbO-gF6JVZBo7Z2Q.png" /></figure><p>5.Configure Security Settings:</p><ul><li>Configure security settings by selecting or creating a security group that controls inbound traffic to your load balancer.</li></ul><p>6.Configure Security Group for Instances:</p><ul><li>Ensure that the security group associated with your EC2 instances allows inbound traffic from the load balancer.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1TnBVt6Jnt395rWPzGrSHA.png" /></figure><p>7.Configure Health Check:</p><ul><li>Set up a health check to monitor the health of your EC2 instances.</li><li>Specify the protocol, ping port, ping path, response timeout, and intervals for health checks.</li></ul><p>8.Add EC2 Instances:</p><ul><li>Add EC2 instances to your load balancer by selecting them from the available instances list.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TJZtxyAm0UeJHDfHOf4TZg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BBV0syb_AyTjvykBBb_2TQ.png" /></figure><p>9.Configure Cross-Zone Load Balancing (Optional):</p><ul><li>Choose whether to enable cross-zone load balancing to distribute incoming requests evenly across instances in all enabled Availability Zones.</li></ul><p>10.Configure Idle Timeout (Optional):</p><ul><li>Set the idle timeout value for the load balancer connections.</li></ul><p>11.Add Tags (Optional):</p><ul><li>Add tags to your load balancer for better organization and management.</li></ul><p>12.Review and Create:</p><ul><li>Review the configuration settings and click on “Create” to create your Classic Load Balancer.</li></ul><p>13.Wait for Provisioning:</p><ul><li>Wait for the load balancer to be provisioned. It may take a few minutes for the load balancer to become available.</li></ul><p>14.DNS Name:</p><ul><li>Once the load balancer is created, note down its DNS name. This is the endpoint that clients will use to access your application.</li></ul><p>15.Update DNS Records:</p><ul><li>If necessary, update your DNS records to point to the DNS name of your load balancer.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yf533Zzlfdw4EIcZDYkJJg.png" /></figure><h3>✅ Conclusion</h3><p>While the <strong>Classic Load Balancer</strong> may be legacy technology, it’s still supported for certain use cases. For modern apps, <strong>Application Load Balancer (ALB)</strong> or <strong>Network Load Balancer (NLB)</strong> is recommended. Regardless of type, AWS ELB provides a reliable, scalable way to distribute traffic and improve availability.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=76f256b01dee" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting Started with AWS GameLift Servers for Multiplayer Game Hosting]]></title>
            <link>https://medium.com/@virajpatoliya/getting-started-with-aws-gamelift-servers-for-multiplayer-game-hosting-03d9ffb4beaa?source=rss-65b48ba088e5------2</link>
            <guid isPermaLink="false">https://medium.com/p/03d9ffb4beaa</guid>
            <category><![CDATA[game-hosting]]></category>
            <category><![CDATA[aws-game]]></category>
            <category><![CDATA[multiplayer-game]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[gamelift]]></category>
            <dc:creator><![CDATA[virajpatoliya]]></dc:creator>
            <pubDate>Mon, 19 May 2025 09:18:49 GMT</pubDate>
            <atom:updated>2025-05-19T09:18:49.070Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VFn17qjA0C5YkuOjnzQjjA.png" /></figure><p>As the demand for scalable, reliable multiplayer games continues to grow, developers are turning to cloud-based game server solutions to handle the heavy lifting. <strong>AWS GameLift</strong> stands out as a fully managed service that helps you deploy, operate, and scale dedicated game servers for session-based multiplayer games. In this blog, we’ll explore what GameLift is, how it works, and how you can set up a simple game server using it.</p><h3>🚀 What is AWS GameLift?</h3><p><strong>AWS GameLift</strong> is a managed service designed for game developers. It offers:</p><ul><li>Auto-scaling of game servers</li><li>Low-latency performance across multiple AWS regions</li><li>Matchmaking integration</li><li>Cost optimization by using Spot Instances</li><li>Server health monitoring and automatic recovery</li></ul><p>Whether you’re working on a competitive FPS, a co-op survival game, or a real-time strategy game, GameLift helps ensure your servers are available when and where players need them.</p><h3>🛠️ Core Components of GameLift</h3><ol><li><strong>GameLift Fleet</strong>: A collection of EC2 instances running your game server builds.</li><li><strong>GameLift Build</strong>: The uploaded game server code (Windows or Linux binaries).</li><li><strong>Game Session</strong>: A single instance of a multiplayer game session.</li><li><strong>Alias</strong>: A pointer to a fleet, allowing for redirection during version changes or testing.</li><li><strong>Matchmaking</strong> (Optional): GameLift FlexMatch helps pair players into games based on skill, latency, and other rules.</li></ol><h3>🧪 Prerequisites Before You Start</h3><p>Before diving in, make sure you have:</p><ul><li>An AWS account with admin privileges</li><li>Your multiplayer game server build ready (compiled for Linux or Windows)</li><li>Basic understanding of Amazon EC2 and IAM roles</li></ul><h3>🧱 Step-by-Step: Deploying a Game Server with GameLift</h3><h4>1. Prepare Your Game Server Build</h4><p>Your server must:</p><ul><li>Be compiled and packaged as a .zip (with executable in the root)</li><li>Handle command-line parameters like -port and -log</li><li>Log server startup and shutdown cleanly</li></ul><h4>2. Upload the Game Build to GameLift</h4><ul><li>Go to the <strong>AWS GameLift Console</strong></li><li>Choose <strong>“Create a new build”</strong></li><li>Upload the .zip file and select the platform (Windows/Linux)</li></ul><h4>3. Create a Fleet</h4><ul><li>Once the build is uploaded and validated, create a <strong>Fleet</strong></li><li>Choose instance type (e.g., c5.large for testing)</li><li>Set runtime configuration (how many server processes per instance, launch path, etc.)</li><li>Enable Spot Instances to save costs if downtime is acceptable</li></ul><h4>4. Create an Alias (Recommended)</h4><p>An alias makes version management easy. You can point players to an alias instead of a specific fleet ID and change the alias to point to new fleets as needed.</p><h4>5. Launch Game Sessions</h4><p>Use the GameLift SDK (available for Unity, Unreal, C++, C#, and JavaScript) to:</p><ul><li>Start game sessions</li><li>Join sessions</li><li>Check player status and match health</li></ul><h4>6. Monitoring and Scaling</h4><ul><li>GameLift provides dashboards to monitor player count, session health, CPU/memory usage, and more</li><li>Use <strong>Auto-Scaling policies</strong> to increase or decrease fleet capacity based on demand</li></ul><h3>🧩 Integrating GameLift FlexMatch (Optional)</h3><p>For competitive games, GameLift FlexMatch allows you to define matchmaking rules using JSON, like team sizes, latency filters, and skill brackets. It works in tandem with queues and fleets to allocate sessions to matched players.</p><h3>📈 Best Practices</h3><ul><li><strong>Use Spot Instances for cost-effective scaling</strong>, but have On-Demand fallback</li><li><strong>Implement health checks</strong> in your server code</li><li><strong>Separate game logic from server logic</strong> where possible</li><li><strong>Use aliases</strong> to simplify deployment and updates</li><li><strong>Monitor CloudWatch logs</strong> for troubleshooting</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=03d9ffb4beaa" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automating Your CI/CD Pipeline: A Comprehensive Guide to GitHub Actions]]></title>
            <link>https://medium.com/@virajpatoliya/automating-your-ci-cd-pipeline-a-comprehensive-guide-to-github-actions-8a1f327019e5?source=rss-65b48ba088e5------2</link>
            <guid isPermaLink="false">https://medium.com/p/8a1f327019e5</guid>
            <category><![CDATA[deploy-on-github-pages]]></category>
            <category><![CDATA[ci-cd-pipeline]]></category>
            <category><![CDATA[github-actions]]></category>
            <category><![CDATA[github-workflow]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[virajpatoliya]]></dc:creator>
            <pubDate>Wed, 05 Jun 2024 12:11:33 GMT</pubDate>
            <atom:updated>2024-06-05T12:11:33.012Z</atom:updated>
            <content:encoded><![CDATA[<p>To create a GitHub Actions workflow file for a project, you need to define a series of steps to build and deploy both parts of the application. Here’s an example of a .github/workflows/deploy.yml file:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2qzcblOraR55Q7zA.png" /></figure><h3>Types of Triggers</h3><p><strong>1.Push Events: </strong>Triggered when code is pushed to a repository branch.</p><pre>on:<br>  push:<br>    branches:<br>      - main</pre><p><strong>2.Pull Request Events:</strong> Triggered when a pull request is opened, synchronized, or reopened.</p><pre>on:<br>  pull_request:<br>    branches:<br>      - main</pre><p><strong>3.Schedule: </strong>Triggers workflows at scheduled times, similar to cron jobs.</p><pre>on:<br>  schedule:<br>    - cron: &#39;0 0 * * *&#39;</pre><p><strong>4.Manual Triggers:</strong> Allows workflows to be manually triggered from the GitHub UI.</p><pre>on:<br>  workflow_dispatch:</pre><p><strong>5.Release Events:</strong> Triggered by creating, updating, or deleting releases.</p><pre>on:<br>  release:<br>    types: [published, updated]</pre><p><strong>6.Workflow Events:</strong> Triggered by specific actions within workflows, such as workflow_run or workflow_call.</p><pre>on:<br>  workflow_run:<br>    workflows: [&quot;Build&quot;]<br>    types:<br>      - completed</pre><h3>How It Is Set Up</h3><p>Triggers are defined in the workflow YAML file under the on key. Here’s an example combining multiple triggers:</p><pre>name: CI Pipeline<br><br>on:<br>  push:<br>    branches:<br>      - main<br>  pull_request:<br>    branches:<br>      - main<br>  schedule:<br>    - cron: &#39;0 0 * * *&#39;<br>  workflow_dispatch:</pre><h3>How Triggers Work</h3><ul><li>When an event occurs (e.g., a push to the main branch), GitHub Actions checks the workflow configuration to see if it matches the event.</li><li>If the event matches a trigger, the workflow is executed.</li><li>You can define multiple events in a single workflow file to cover various scenarios.</li></ul><h3>Jobs in GitHub Actions</h3><p>A job is a set of steps executed in the same runner environment. Jobs can be run sequentially or in parallel.</p><h4>Basic Job Structure</h4><pre>jobs:<br>  build:<br>    runs-on: ubuntu-latest<br>    steps:<br>      - name: Checkout code<br>        uses: actions/checkout@v2<br><br>      - name: Set up Node.js<br>        uses: actions/setup-node@v2<br>        with:<br>          node-version: &#39;14&#39;<br><br>      - name: Install dependencies<br>        run: npm install<br><br>      - name: Run tests<br>        run: npm test</pre><h4>Key Components of a Job</h4><ul><li><strong>runs-on</strong>: Specifies the runner environment (e.g., ubuntu-latest, windows-latest, macos-latest).</li><li><strong>steps</strong>: A series of tasks that the job will perform. Steps can include actions, shell commands, or scripts.</li><li><strong>uses</strong>: References an action defined in a repository or a pre-built action from the GitHub Marketplace.</li><li><strong>run</strong>: Executes a command in the runner&#39;s shell environment.</li><li><strong>env</strong>: Defines environment variables for the job.</li><li><strong>if</strong>: Conditional statements to control job or step execution.</li><li><strong>needs</strong>: Specifies dependencies on other jobs, ensuring they run in a specific order.</li></ul><h3>Example Workflow</h3><pre>name: Build &amp; Deploy<br><br>on:<br>  push:<br>    branches:<br>      - main<br>      <br>env:<br>  CI: false<br><br>jobs:<br>  build:<br>    name: Build<br>    runs-on: ubuntu-latest<br><br>    steps:<br>      - name: Checkout repo<br>        uses: actions/checkout@v2<br><br>      - name: Setup Node<br>        uses: actions/setup-node@v1<br>        with:<br>          node-version: 16<br><br>      - name: Install dependencies<br>        uses: bahmutov/npm-install@v1<br><br>      - name: Build project<br>        run: npm run build<br><br>      - name: Upload production-ready build files<br>        uses: actions/upload-artifact@v2<br>        with:<br>          name: production-files<br>          path: ./build<br><br>  deploy:<br>    name: Deploy<br>    needs: build<br>    runs-on: ubuntu-latest<br>    if: github.ref == &#39;refs/heads/main&#39;<br><br>    steps:<br>      - name: Download artifact<br>        uses: actions/download-artifact@v2<br>        with:<br>          name: production-files<br>          path: ./build<br><br>      - name: Deploy to GitHub Pages<br>        uses: peaceiris/actions-gh-pages@v3<br>        with:<br>          github_token: ${{ secrets.TOKEN }}<br>          publish_dir: ./build</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8a1f327019e5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding the Cost of GitHub Actions: Free and Paid Plans Explained]]></title>
            <link>https://medium.com/@virajpatoliya/understanding-the-cost-of-github-actions-free-and-paid-plans-explained-4c3cd20350d5?source=rss-65b48ba088e5------2</link>
            <guid isPermaLink="false">https://medium.com/p/4c3cd20350d5</guid>
            <category><![CDATA[github-actions-needs]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[cost-saving-tips]]></category>
            <category><![CDATA[cicd-pipeline]]></category>
            <category><![CDATA[github-actions]]></category>
            <dc:creator><![CDATA[virajpatoliya]]></dc:creator>
            <pubDate>Wed, 05 Jun 2024 12:09:49 GMT</pubDate>
            <atom:updated>2024-06-05T12:09:49.707Z</atom:updated>
            <content:encoded><![CDATA[<h4>GitHub Actions cost, GitHub Actions pricing, GitHub free tier, GitHub paid plans, GitHub Actions minutes, GitHub self-hosted runners, GitHub Pro cost, GitHub Team cost, GitHub Enterprise cost, GitHub Actions billing</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*C8siHICA1LL_XT6u" /></figure><p>The cost of GitHub Actions depends on your GitHub plan and the usage limits. Here are the key points:</p><h3>Free Tier</h3><p>For public repositories, GitHub Actions is free. For private repositories, the free tier includes:</p><ul><li>2,000 minutes per month for GitHub Free for personal accounts.</li><li>3,000 minutes per month for GitHub Free for organizations.</li></ul><h3>Paid Plans</h3><p>For additional usage or more features, you can upgrade to a paid plan:</p><ul><li><strong>GitHub Pro</strong>: $4 per month, which includes 3,000 minutes per month for private repositories.</li><li><strong>GitHub Team</strong>: $4 per user per month, which includes 3,000 minutes per month for private repositories.</li><li><strong>GitHub Enterprise</strong>: $21 per user per month, which includes 50,000 minutes per month for private repositories.</li></ul><h3>Additional Usage</h3><p>If you exceed the included minutes, additional usage is billed as follows:</p><ul><li>Linux runners: $0.008 per minute</li><li>macOS runners: $0.08 per minute</li><li>Windows runners: $0.016 per minute</li></ul><h3>Self-Hosted Runners</h3><p>Using self-hosted runners does not incur any additional charges from GitHub Actions, but you bear the cost of maintaining and running the hardware.</p><h3>Summary</h3><p>To summarize, the cost can vary widely based on your usage patterns and whether you are using public or private repositories. For heavy usage or for private repositories beyond the free tier, you might need to consider the cost of additional minutes or upgrading your plan.</p><p>For the most accurate and up-to-date information, please refer to GitHub’s official pricing page: <a href="https://github.com/pricing">GitHub Pricing</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4c3cd20350d5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>