<?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: Peterson Nwoko</title>
    <description>The latest articles on DEV Community by Peterson Nwoko (@petersonwoko).</description>
    <link>https://dev.to/petersonwoko</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3826601%2Fff9c4a0f-4c00-4645-bd7c-6d29c919e605.jpg</url>
      <title>DEV Community: Peterson Nwoko</title>
      <link>https://dev.to/petersonwoko</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/petersonwoko"/>
    <language>en</language>
    <item>
      <title>Your Pods Are Green. Your App Might Still Be Down.</title>
      <dc:creator>Peterson Nwoko</dc:creator>
      <pubDate>Sat, 21 Nov 2026 20:29:19 +0000</pubDate>
      <link>https://dev.to/petersonwoko/your-pods-are-green-your-app-might-still-be-down-5mi</link>
      <guid>https://dev.to/petersonwoko/your-pods-are-green-your-app-might-still-be-down-5mi</guid>
      <description>&lt;p&gt;&lt;em&gt;What moving Kubernetes workloads from GKE to DigitalOcean taught me about ingress, DNS and data.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Moving an app from one Kubernetes cluster to another sounds easy. Build the new cluster, deploy, switch DNS, switch off the old one.&lt;/p&gt;

&lt;p&gt;On paper, yes. In practice, that's where the trouble starts.&lt;/p&gt;

&lt;p&gt;I've worked with Kubernetes on AWS, Azure and Google Cloud. One migration moved workloads from Google Kubernetes Engine (GKE) to DigitalOcean Kubernetes (DOKS). The manifests were never the hard part. The hard part was making sure the new environment could carry the same workloads, networking and storage before any traffic moved.&lt;/p&gt;

&lt;p&gt;Here's why that matters. Every pod can report healthy while users still can't reach the app. A service can exist with no working ingress. A load balancer can be ready while DNS still points at the old cluster. And a database app can look fine right up until you find the storage never moved.&lt;/p&gt;

&lt;p&gt;None of that shows up when you run &lt;code&gt;kubectl apply&lt;/code&gt; against a new cluster.&lt;/p&gt;

&lt;h2&gt;
  
  
  Kubernetes is portable. Your cluster isn't.
&lt;/h2&gt;

&lt;p&gt;The Kubernetes API is the same everywhere. What sits under it is not.&lt;/p&gt;

&lt;p&gt;GKE and DOKS both run Kubernetes, but their networking, storage, load balancing and identity are different. A deployment may point at a StorageClass that doesn't exist on the new side. An ingress may rely on cloud-specific load balancer annotations. A workload may use Google Workload Identity, which has no direct match in the destination.&lt;/p&gt;

&lt;p&gt;So before moving anything, I take stock of what the app depends on:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Workloads, networking and storage&lt;/span&gt;
kubectl get deployments,statefulsets,daemonsets -A
kubectl get svc,ingress -A
kubectl get pvc,pv -A
kubectl get hpa,pdb -A

&lt;span class="c"&gt;# Storage classes and Helm releases&lt;/span&gt;
kubectl get storageclass
helm list -A

&lt;span class="c"&gt;# Versions and APIs (deprecated APIs bite on newer clusters)&lt;/span&gt;
kubectl version
kubectl api-resources
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Helm matters here because a chart can hide a lot. One release may create a Service, a ConfigMap, a ServiceAccount and several workloads together.&lt;/p&gt;

&lt;p&gt;One thing I won't do is export every resource and apply it to the new cluster. Those exports carry API-generated fields like UIDs and resource versions. I'd rather use the original Helm charts, Kustomize overlays or version-controlled manifests.&lt;/p&gt;

&lt;p&gt;I also list the rest: Secrets, NetworkPolicies, service accounts, external databases, queues, DNS records and TLS certificates. The goal isn't to copy the old cluster. It's to reproduce what the app needs.&lt;/p&gt;

&lt;h2&gt;
  
  
  Build the new cluster in code, and check it's ready
&lt;/h2&gt;

&lt;p&gt;I provision the destination with Terraform. It's repeatable, and I can review changes before they run.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight hcl"&gt;&lt;code&gt;&lt;span class="n"&gt;resource&lt;/span&gt; &lt;span class="s2"&gt;"digitalocean_kubernetes_cluster"&lt;/span&gt; &lt;span class="s2"&gt;"platform"&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;name&lt;/span&gt;    &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"platform-cluster"&lt;/span&gt;
  &lt;span class="n"&gt;region&lt;/span&gt;  &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"nyc1"&lt;/span&gt;
  &lt;span class="n"&gt;version&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kd"&gt;var&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;kubernetes_version&lt;/span&gt;

  &lt;span class="n"&gt;node_pool&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="n"&gt;name&lt;/span&gt;       &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"application-pool"&lt;/span&gt;
    &lt;span class="n"&gt;size&lt;/span&gt;       &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"s-4vcpu-8gb"&lt;/span&gt;
    &lt;span class="n"&gt;node_count&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's an illustrative config, not a production copy. Node size should come from what the workload really needs.&lt;/p&gt;

&lt;p&gt;But a cluster that provisions successfully isn't an app-ready cluster. Before deploying, I ask a few plain questions. Is there enough CPU and memory? Can pods pull their images? Do the StorageClasses exist? Is the ingress controller installed? Can the cluster reach its external dependencies?&lt;/p&gt;

&lt;p&gt;Helm helps too, with one catch. It makes a deployment repeatable. It doesn't make it portable. Values like ingress class, storage and external endpoints often differ between clouds.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="c1"&gt;# values.yaml (simplified)
&lt;/span&gt;&lt;span class="na"&gt;replicaCount&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;
&lt;span class="na"&gt;image&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;repository&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;registry.example.com/application&lt;/span&gt;
  &lt;span class="na"&gt;tag&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"1.4.2"&lt;/span&gt;
&lt;span class="na"&gt;service&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;ClusterIP&lt;/span&gt;
  &lt;span class="na"&gt;port&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;8080&lt;/span&gt;
&lt;span class="na"&gt;ingress&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;enabled&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;
  &lt;span class="na"&gt;className&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;nginx&lt;/span&gt;
  &lt;span class="na"&gt;hosts&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;host&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;app.example.com&lt;/span&gt;
      &lt;span class="na"&gt;paths&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="p"&gt;-&lt;/span&gt; &lt;span class="na"&gt;path&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;/&lt;/span&gt;
          &lt;span class="na"&gt;pathType&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;Prefix&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The image tag and port can stay. The ingress, storage and secrets often can't. So I keep a values file per cloud instead of editing the chart by hand:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;helm/application/
  Chart.yaml
  templates/
  values.yaml
  values-gke.yaml
  values-doks.yaml
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then I render the manifests and check them before installing anything:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;helm template application ./helm/application -f values-doks.yaml

&lt;span class="c"&gt;# Compare against what's really deployed today&lt;/span&gt;
helm get values application -n production -a
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That last command often shows config that never made it into the repo.&lt;/p&gt;

&lt;h2&gt;
  
  
  Test ingress before you touch DNS
&lt;/h2&gt;

&lt;p&gt;This is the step I watch most closely.&lt;/p&gt;

&lt;p&gt;Ingress sits between the internet and your services. Get it wrong, and a perfect deployment is still unusable. Annotations that work on one controller can be ignored on another. Even two NGINX setups can behave differently if the versions differ.&lt;/p&gt;

&lt;p&gt;Before cutover, I check that the controller is ready, its Service has an external endpoint, TLS certificates are valid, and host and path routing work.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;kubectl get ingress -A
kubectl get svc -n ingress-nginx
kubectl get endpointslice -A
kubectl logs -n ingress-nginx \
  -l app.kubernetes.io/component=controller --tail=200
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Namespace and labels depend on how you installed the controller.&lt;/p&gt;

&lt;p&gt;My favourite trick is testing the new endpoint with the real hostname before any DNS change:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl --resolve app.example.com:443:203.0.113.10 \
  https://app.example.com/health
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That IP is a documentation example. The &lt;code&gt;--resolve&lt;/code&gt; flag makes curl connect to a specific address while still using the real hostname for TLS and routing. Many ingress rules depend on the hostname, so hitting the bare load balancer IP won't prove much.&lt;/p&gt;

&lt;p&gt;And don't stop at &lt;code&gt;/health&lt;/code&gt;. A 200 there doesn't tell you that login, database queries or file uploads work. Test what users actually do.&lt;/p&gt;

&lt;h2&gt;
  
  
  DNS is slower than you think
&lt;/h2&gt;

&lt;p&gt;Once the new side is ready, DNS usually moves the traffic. But DNS changes aren't instant. Resolvers and clients cache records, and some hold on longer than they should.&lt;/p&gt;

&lt;p&gt;So I lower the TTL ahead of time, say to 60 seconds. That shortens the caching window, though it doesn't guarantee every client switches at once. Because of this, I never shut down the old cluster the moment DNS changes. It stays up while the new one proves itself.&lt;/p&gt;

&lt;p&gt;My sequence looks like this:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Provision the destination cluster&lt;/li&gt;
&lt;li&gt;Deploy applications and validate internal services&lt;/li&gt;
&lt;li&gt;Validate ingress and TLS&lt;/li&gt;
&lt;li&gt;Run smoke tests&lt;/li&gt;
&lt;li&gt;Prepare data sync&lt;/li&gt;
&lt;li&gt;Update DNS&lt;/li&gt;
&lt;li&gt;Monitor both environments&lt;/li&gt;
&lt;li&gt;Confirm the destination is stable&lt;/li&gt;
&lt;li&gt;Only then, decommission the source cluster&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Stateless is easy. Stateful is where the pain lives.
&lt;/h2&gt;

&lt;p&gt;A stateless API can often run in both clusters at once, as long as both reach the same dependencies. A database-backed StatefulSet is a different story.&lt;/p&gt;

&lt;p&gt;A PVC in GKE doesn't turn into a usable PVC in DOKS. The data has to be migrated or replaced. Sometimes the database is external and stays put. Then the job is mostly network access and connection settings. If the data itself moves, you're looking at replication, backup and restore, or a write freeze. The right choice depends on your recovery point and recovery time targets.&lt;/p&gt;

&lt;p&gt;A backup-and-restore move may need a maintenance window. Replication can shorten the cutover, but it brings lag, consistency and promotion to worry about.&lt;/p&gt;

&lt;p&gt;I wouldn't promise zero downtime on a stateful migration until I'd worked out how the data stays consistent. Zero downtime is a goal you prove with testing and monitoring. Kubernetes doesn't hand it to you.&lt;/p&gt;

&lt;h2&gt;
  
  
  Green pods are not a finish line
&lt;/h2&gt;

&lt;p&gt;Pod health and app health are different things. A readiness probe can pass while a dependency is failing. A Service can have endpoints while the ingress is misconfigured.&lt;/p&gt;

&lt;p&gt;So I check in layers:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Nodes&lt;/span&gt;
kubectl get nodes -o wide
kubectl top nodes

&lt;span class="c"&gt;# Workloads&lt;/span&gt;
kubectl get pods -A
kubectl get deployments -A

&lt;span class="c"&gt;# Services and endpoints&lt;/span&gt;
kubectl get svc -A
kubectl get endpointslice -A
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then comes the layer that matters most, which is real user flows. That means login, API calls, database operations and background jobs. I also compare source and destination on request throughput, error rate, P95 latency, pod restarts, database connection errors and ingress errors.&lt;/p&gt;

&lt;p&gt;If the pods are green but errors are climbing, the migration isn't done.&lt;/p&gt;

&lt;h2&gt;
  
  
  Plan the rollback before the cutover
&lt;/h2&gt;

&lt;p&gt;"Point DNS back" is not a rollback plan.&lt;/p&gt;

&lt;p&gt;Say users create records in the new environment after cutover. Point DNS back to the old one, and those records aren't there. Rollback has to cover data, and not only routing.&lt;/p&gt;

&lt;p&gt;So before the migration, I agree on the triggers and write them down:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Rollback if:
- Critical application functionality fails
- Error rate exceeds the agreed threshold
- P95 latency exceeds the agreed limit
- Data consistency checks fail
- Required dependencies become unavailable
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The thresholds should come from the app's normal behaviour and its service targets. I also decide who can call the rollback. During a production cutover, those decisions shouldn't be made on the fly.&lt;/p&gt;

&lt;p&gt;I'd automate the evidence. Terraform for the cluster, Helm or GitOps for the app, CI checks on the manifests, automated smoke tests and monitoring checks. For a high-risk migration, though, I'd keep the final cutover as an explicit human approval.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I'd do again, and what I'd change
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Build the destination early.&lt;/strong&gt; Find out about a missing StorageClass or a bad annotation weeks before the cutover, and not during it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Change one thing at a time.&lt;/strong&gt; Same app version on both sides. New app version, new schema, new ingress and new cloud all at once makes troubleshooting a nightmare.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Test with realistic traffic.&lt;/strong&gt; Health checks catch the obvious. Real requests catch the rest.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Budget for the overlap.&lt;/strong&gt; Running both clusters for a while costs money, and it's worth it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Treat data as its own workstream.&lt;/strong&gt; Don't bury it in a deployment checklist.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keep the old cluster alive&lt;/strong&gt; until the new one is proven and the rollback window has passed.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Final thoughts
&lt;/h2&gt;

&lt;p&gt;Kubernetes gives you a consistent way to deploy apps. It doesn't make every cloud the same. The API may be portable. Your networking, storage, identity and load balancing assumptions may not be.&lt;/p&gt;

&lt;p&gt;If the first time you test ingress is after the DNS change, you've left too much to chance. If you find out mid-cutover that your storage isn't portable, the plan wasn't finished.&lt;/p&gt;

&lt;p&gt;A good migration isn't about getting pods running somewhere else. It's about moving the service without losing the behaviour, reliability and data users already count on.&lt;/p&gt;

&lt;p&gt;That's the gap between a successful deployment and a successful migration.&lt;/p&gt;

</description>
      <category>kubernetes</category>
      <category>sre</category>
      <category>devops</category>
    </item>
    <item>
      <title>[Boost]</title>
      <dc:creator>Peterson Nwoko</dc:creator>
      <pubDate>Tue, 10 Nov 2026 00:48:43 +0000</pubDate>
      <link>https://dev.to/petersonwoko/-3mjf</link>
      <guid>https://dev.to/petersonwoko/-3mjf</guid>
      <description>&lt;div class="ltag__link--embedded"&gt;
  &lt;div class="crayons-story "&gt;
  &lt;a href="https://dev.to/aws-builders/beyond-green-cluster-health-what-i-learned-designing-amazon-opensearch-for-production-243m" class="crayons-story__hidden-navigation-link"&gt;Beyond Green Cluster Health: What I Learned Designing Amazon OpenSearch for Production&lt;/a&gt;


  &lt;div class="crayons-story__body crayons-story__body-full_post"&gt;
    &lt;div class="crayons-story__top"&gt;
      &lt;div class="crayons-story__meta"&gt;
        &lt;div class="crayons-story__author-pic"&gt;
          &lt;a class="crayons-logo crayons-logo--l" href="/aws-builders"&gt;
            &lt;img alt="AWS Community Builders  logo" src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Forganization%2Fprofile_image%2F2794%2F88da75b6-aadd-4ea1-8083-ae2dfca8be94.png" class="crayons-logo__image" width="350" height="350"&gt;
          &lt;/a&gt;

          &lt;a href="/petersonwoko" class="crayons-avatar  crayons-avatar--s absolute -right-2 -bottom-2 border-solid border-2 border-base-inverted  "&gt;
            &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3826601%2Fff9c4a0f-4c00-4645-bd7c-6d29c919e605.jpg" alt="petersonwoko profile" class="crayons-avatar__image" width="96" height="96"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
        &lt;div&gt;
          &lt;div&gt;
            &lt;a href="/petersonwoko" class="crayons-story__secondary fw-medium m:hidden"&gt;
              Peterson Nwoko
            &lt;/a&gt;
            &lt;div class="profile-preview-card relative mb-4 s:mb-0 fw-medium hidden m:inline-block"&gt;
              
                Peterson Nwoko
                
                
              
              &lt;div id="story-author-preview-content-5003449" class="profile-preview-card__content crayons-dropdown branded-7 p-4 pt-0"&gt;
                &lt;div class="gap-4 grid"&gt;
                  &lt;div class="-mt-4"&gt;
                    &lt;a href="/petersonwoko" class="flex"&gt;
                      &lt;span class="crayons-avatar crayons-avatar--xl mr-2 shrink-0"&gt;
                        &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3826601%2Fff9c4a0f-4c00-4645-bd7c-6d29c919e605.jpg" class="crayons-avatar__image" alt="" width="96" height="96"&gt;
                      &lt;/span&gt;
                      &lt;span class="crayons-link crayons-subtitle-2 mt-5"&gt;Peterson Nwoko&lt;/span&gt;
                    &lt;/a&gt;
                  &lt;/div&gt;
                  &lt;div class="print-hidden"&gt;
                    
                      Follow
                    
                  &lt;/div&gt;
                  &lt;div class="author-preview-metadata-container"&gt;&lt;/div&gt;
                &lt;/div&gt;
              &lt;/div&gt;
            &lt;/div&gt;

            &lt;span&gt;
              &lt;span class="crayons-story__tertiary fw-normal"&gt; for &lt;/span&gt;&lt;a href="/aws-builders" class="crayons-story__secondary fw-medium"&gt;AWS Community Builders &lt;/a&gt;
            &lt;/span&gt;
          &lt;/div&gt;
          &lt;a href="https://dev.to/aws-builders/beyond-green-cluster-health-what-i-learned-designing-amazon-opensearch-for-production-243m" class="crayons-story__tertiary fs-xs"&gt;&lt;time&gt;Nov 9&lt;/time&gt;&lt;span class="time-ago-indicator-initial-placeholder"&gt;&lt;/span&gt;&lt;/a&gt;
        &lt;/div&gt;
      &lt;/div&gt;

    &lt;/div&gt;

    &lt;div class="crayons-story__indention"&gt;
      &lt;h2 class="crayons-story__title crayons-story__title-full_post"&gt;
        &lt;a href="https://dev.to/aws-builders/beyond-green-cluster-health-what-i-learned-designing-amazon-opensearch-for-production-243m" id="article-link-5003449"&gt;
          Beyond Green Cluster Health: What I Learned Designing Amazon OpenSearch for Production
        &lt;/a&gt;
      &lt;/h2&gt;
        &lt;div class="crayons-story__tags"&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/aws"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;aws&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/devops"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;devops&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/operations"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;operations&lt;/a&gt;
            &lt;a class="crayons-tag  crayons-tag--monochrome " href="/t/terraform"&gt;&lt;span class="crayons-tag__prefix"&gt;#&lt;/span&gt;terraform&lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="crayons-story__bottom"&gt;
        &lt;div class="crayons-story__details"&gt;
          &lt;a href="https://dev.to/aws-builders/beyond-green-cluster-health-what-i-learned-designing-amazon-opensearch-for-production-243m" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left"&gt;
            &lt;div class="multiple_reactions_aggregate"&gt;
              &lt;span class="multiple_reactions_icons_container"&gt;
                  &lt;span class="crayons_icon_container"&gt;
                    &lt;img src="https://assets.dev.to/assets/sparkle-heart-5f9bee3767e18deb1bb725290cb151c25234768a0e9a2bd39370c382d02920cf.svg" width="24" height="24"&gt;
                  &lt;/span&gt;
              &lt;/span&gt;
              &lt;span class="aggregate_reactions_counter"&gt;6&lt;span class="hidden s:inline"&gt;&amp;nbsp;reactions&lt;/span&gt;&lt;/span&gt;
            &lt;/div&gt;
          &lt;/a&gt;
            &lt;a href="https://dev.to/aws-builders/beyond-green-cluster-health-what-i-learned-designing-amazon-opensearch-for-production-243m#comments" class="crayons-btn crayons-btn--s crayons-btn--ghost crayons-btn--icon-left flex items-center"&gt;
              

              &lt;span class="hidden s:inline"&gt;Add&amp;nbsp;Comment&lt;/span&gt;
            &lt;/a&gt;
        &lt;/div&gt;
        &lt;div class="crayons-story__save"&gt;
          &lt;small class="crayons-story__tertiary fs-xs mr-2"&gt;
            9 min read
          &lt;/small&gt;
          
          &lt;div class="only-sidebar-menu-item trusted-visible-block print-hidden align-center"&gt;
                
                    
                
          &lt;/div&gt;

        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;

&lt;/div&gt;


</description>
    </item>
    <item>
      <title>Beyond Green Cluster Health: What I Learned Designing Amazon OpenSearch for Production</title>
      <dc:creator>Peterson Nwoko</dc:creator>
      <pubDate>Mon, 09 Nov 2026 09:25:48 +0000</pubDate>
      <link>https://dev.to/aws-builders/beyond-green-cluster-health-what-i-learned-designing-amazon-opensearch-for-production-243m</link>
      <guid>https://dev.to/aws-builders/beyond-green-cluster-health-what-i-learned-designing-amazon-opensearch-for-production-243m</guid>
      <description>&lt;p&gt;&lt;em&gt;Building a reliable OpenSearch environment with dedicated master nodes, VPC networking, Terraform, and operational monitoring.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;When you set up Amazon OpenSearch Service, it's easy to focus on one thing. Get the domain deployed and see a green cluster status.&lt;/p&gt;

&lt;p&gt;The infrastructure provisions fine. The endpoint comes up. The cluster says everything is healthy.&lt;/p&gt;

&lt;p&gt;That's a good start. But it doesn't tell you if the environment is ready for production.&lt;/p&gt;

&lt;p&gt;A green cluster can still have badly spread shards, too little storage headroom, expensive queries, or security settings that make future maintenance hard. I had to think through all of this while working on an Amazon OpenSearch deployment for a production environment.&lt;/p&gt;

&lt;p&gt;The job wasn't just to create another AWS resource. I needed an architecture that could carry production workloads and fit into an existing deployment process. It also had to stay manageable as the environment grew.&lt;/p&gt;

&lt;p&gt;In this article, I'll go through the architecture, the decisions behind it, the deployment points and the operational checks I think matter most.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Starting With the Architecture
&lt;/h2&gt;

&lt;p&gt;The OpenSearch environment was built around this setup:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Component&lt;/th&gt;
&lt;th&gt;Configuration&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;AWS Region&lt;/td&gt;
&lt;td&gt;us-east-1&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Service&lt;/td&gt;
&lt;td&gt;Amazon OpenSearch Service&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Data nodes&lt;/td&gt;
&lt;td&gt;6 × r6g.large.search&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Dedicated master nodes&lt;/td&gt;
&lt;td&gt;3 × r6g.large.search&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Storage&lt;/td&gt;
&lt;td&gt;Amazon EBS gp3&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Networking&lt;/td&gt;
&lt;td&gt;VPC-based deployment&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Security&lt;/td&gt;
&lt;td&gt;Encryption and controlled access&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Deployment&lt;/td&gt;
&lt;td&gt;Infrastructure as Code, integrated with Azure DevOps&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The six data nodes handle indexing, storage and search. The three dedicated master nodes do something else. They manage the cluster state and keep the cluster coordinated.&lt;/p&gt;

&lt;p&gt;This split matters. When data nodes are busy with queries or indexing, you don't want that work fighting with cluster management. Dedicated master nodes lower that risk.&lt;/p&gt;

&lt;p&gt;I also had to think about Availability Zone spread, storage capacity and network access. On top of that, I had to plan how the configuration would be maintained after the first deployment.&lt;/p&gt;

&lt;p&gt;Node count alone doesn't make a cluster highly available. Where the nodes sit, how shards are allocated and how the cluster recovers matter just as much.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Why I Used Dedicated Master Nodes
&lt;/h2&gt;

&lt;p&gt;One of my first decisions was to keep cluster management apart from data processing.&lt;/p&gt;

&lt;p&gt;OpenSearch keeps track of its nodes, indexes, shards and routing. Whenever a node joins or leaves, or an index is created or changed, the cluster state has to be updated. If the cluster can't elect a master node, the service can be affected.&lt;/p&gt;

&lt;p&gt;For production, three dedicated master nodes give a good balance between resilience and cost. With three master-eligible nodes, a quorum of two is needed. So the cluster can lose one master node and still elect a leader, as long as the remaining nodes can talk to each other.&lt;/p&gt;

&lt;p&gt;There's one more thing. Dedicated master nodes don't handle normal search and indexing requests. They still need enough memory and CPU to manage the cluster state.&lt;/p&gt;

&lt;p&gt;A cluster with many indexes, mappings and shards can put real pressure on the master nodes, even when the data nodes look fine. Because of this, master node sizing shouldn't be based on the data node count alone.&lt;/p&gt;

&lt;p&gt;I would watch these closely:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Master JVM memory pressure&lt;/li&gt;
&lt;li&gt;Master CPU utilisation&lt;/li&gt;
&lt;li&gt;Cluster state changes&lt;/li&gt;
&lt;li&gt;Total shard count&lt;/li&gt;
&lt;li&gt;Master reachability&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These signals tell you if the master nodes have enough capacity.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Availability Zones: A Deployment Detail That Matters
&lt;/h2&gt;

&lt;p&gt;Availability Zone configuration needed attention during the planning.&lt;/p&gt;

&lt;p&gt;It's tempting to turn on zone awareness and assume AWS handles the rest. It doesn't. The subnet setup must support the number of Availability Zones you pick. If you configure a domain across two zones, the VPC needs suitable subnets in two separate zones.&lt;/p&gt;

&lt;p&gt;This gets tricky inside an existing enterprise VPC, where network policies may already limit which subnets you can use.&lt;/p&gt;

&lt;p&gt;For this deployment, I adjusted the configuration around a two-zone data-node layout. With six data nodes, that gives three data nodes per zone.&lt;/p&gt;

&lt;p&gt;However, spreading nodes across zones is one thing. Guaranteeing that every workload survives a zone failure is another. You also have to look at replica placement, the capacity that's left and how the cluster recovers after losing nodes.&lt;/p&gt;

&lt;p&gt;If I were designing this from scratch today, I would look at Multi-AZ with Standby, which AWS recommends for production workloads. It uses three Availability Zones and gives a more structured way to handle availability and recovery.&lt;/p&gt;

&lt;p&gt;The bigger lesson is simple. Availability should be a clear architectural decision. It shouldn't be a checkbox in the deployment config.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Storage Is More Than Choosing gp3
&lt;/h2&gt;

&lt;p&gt;The data nodes use Amazon EBS gp3 volumes. I like to treat storage capacity and storage performance as two separate decisions.&lt;/p&gt;

&lt;p&gt;The amount of data you expect to store is only part of the sum. OpenSearch also needs room for replica shards, segment merges, indexing and recovery. If you size storage only around today's document volume, the cluster can hit trouble much sooner than expected.&lt;/p&gt;

&lt;p&gt;Here's an example. Say a workload has 1 TiB of primary index data and one replica for each primary shard. That's already about 2 TiB of shard data, before any overhead or operational headroom. The real storage need will be higher.&lt;/p&gt;

&lt;p&gt;I would work out storage around four questions:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;How much primary data will the cluster hold?&lt;/li&gt;
&lt;li&gt;How many replicas will be kept?&lt;/li&gt;
&lt;li&gt;How fast will the data grow?&lt;/li&gt;
&lt;li&gt;How much free space must stay available for normal operations and recovery?&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;For gp3, I would also check the required IOPS and throughput against the expected indexing and search patterns. A big volume doesn't mean every storage-heavy operation will run well. The workload still has to be measured.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why free storage matters&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;OpenSearch uses disk watermarks to manage shard allocation and protect the cluster when storage runs low. As free space drops, shard allocation can be restricted. At the more severe thresholds, indexes can become write-blocked.&lt;/p&gt;

&lt;p&gt;This is why I wouldn't wait for an application error before looking at storage pressure. I would monitor FreeStorageSpace, disk utilisation, shard distribution and indexing failures together. The goal is to spot capacity problems before users feel them.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Keeping OpenSearch Inside the VPC
&lt;/h2&gt;

&lt;p&gt;Network isolation was part of the design here. The OpenSearch domain was set up for VPC access, with no public endpoint.&lt;/p&gt;

&lt;p&gt;That means clients need a proper network path to reach the domain. It also changes how you handle administration and troubleshooting. You can't assume an engineer can fire a request from a laptop and hit the endpoint. The request has to come from an authorised network location, such as an approved workload, a connected private network or a controlled admin environment.&lt;/p&gt;

&lt;p&gt;I would build the access model in three layers.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Network access:&lt;/strong&gt; Security groups and routing decide which systems can connect to the domain.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;IAM and domain access policies:&lt;/strong&gt; These decide which AWS principals and requests are allowed.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Fine-grained access control:&lt;/strong&gt; Where it's enabled, OpenSearch roles can limit access to certain indexes, documents and operations.&lt;/p&gt;

&lt;p&gt;Each layer solves a different problem. A security group that allows TCP 443 doesn't mean a caller should be able to delete indexes. And a valid IAM identity doesn't remove the need for the right network access.&lt;/p&gt;

&lt;p&gt;For production, I also treat encryption at rest, node-to-node encryption and HTTPS enforcement as the baseline.&lt;/p&gt;

&lt;p&gt;What matters is making access intentional and auditable. Relying on the endpoint not being public is not enough.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Integrating the Deployment With an Existing Azure DevOps Pipeline
&lt;/h2&gt;

&lt;p&gt;Something interesting about this work was the deployment route. The AWS infrastructure went out through an existing Azure DevOps process.&lt;/p&gt;

&lt;p&gt;The pipeline already used a repository structure to pick the target environment and the right AWS deployment context. I didn't want to redesign the whole pipeline just to add one OpenSearch resource. That would widen the change and could affect other deployments that use the same workflow.&lt;/p&gt;

&lt;p&gt;So the aim was to make the new infrastructure fit the existing deployment conventions. I've learned to watch for this in enterprise environments. A technically correct change can still add risk if it needs wide changes to shared deployment automation.&lt;/p&gt;

&lt;p&gt;For this environment, I had to think about:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Keeping the existing environment selection behaviour&lt;/li&gt;
&lt;li&gt;Using the correct AWS account and region&lt;/li&gt;
&lt;li&gt;Keeping production configuration separate from other environments&lt;/li&gt;
&lt;li&gt;Handling sensitive credentials through an approved secret store&lt;/li&gt;
&lt;li&gt;Keeping deployment and rollback procedures predictable&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The infrastructure definition and the pipeline have different jobs. The definition describes what should exist. The pipeline controls how changes are validated, approved and applied. Keeping them apart makes infrastructure changes easier to review, and you don't change deployment behaviour for unrelated services by accident.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. Why a Green Cluster Isn't Enough
&lt;/h2&gt;

&lt;p&gt;Once a domain is available, the next question is whether it's running properly. This is where monitoring comes in.&lt;/p&gt;

&lt;p&gt;OpenSearch exposes many CloudWatch metrics. I wouldn't treat them all as equally useful. For production, I would start with these:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Metric&lt;/th&gt;
&lt;th&gt;What I want to know&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;ClusterStatus.red&lt;/td&gt;
&lt;td&gt;Are any primary shards unavailable?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ClusterStatus.yellow&lt;/td&gt;
&lt;td&gt;Are replica shards unassigned?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;JVMMemoryPressure&lt;/td&gt;
&lt;td&gt;Is the data-node Java heap under pressure?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;MasterJVMMemoryPressure&lt;/td&gt;
&lt;td&gt;Are the cluster management nodes under pressure?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;FreeStorageSpace&lt;/td&gt;
&lt;td&gt;Is storage capacity getting tight?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;CPUUtilization&lt;/td&gt;
&lt;td&gt;Are data nodes under sustained CPU pressure?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ThreadpoolSearchRejected&lt;/td&gt;
&lt;td&gt;Are search requests being rejected?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ThreadpoolWriteRejected&lt;/td&gt;
&lt;td&gt;Are indexing requests being rejected?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ClusterIndexWritesBlocked&lt;/td&gt;
&lt;td&gt;Has the cluster stopped accepting writes?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;AutomatedSnapshotFailure&lt;/td&gt;
&lt;td&gt;Are automated snapshots failing?&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Each one tells a different part of the story. A cluster can report green while JVM memory pressure stays high. That doesn't mean the cluster is down. It could point to a capacity problem on the way.&lt;/p&gt;

&lt;p&gt;The same goes for storage. A cluster might have enough total space while one node has far less free space than the others. If you only look at the combined number, you'll miss that gap.&lt;/p&gt;

&lt;p&gt;I would also set up CloudWatch alarms with thresholds that fit the workload. Relying on dashboards that someone has to remember to check is a weak plan. A dashboard helps with investigation. An alarm is what tells you a problem is building. You need both.&lt;/p&gt;

&lt;h2&gt;
  
  
  8. Shard Allocation Can Become a Hidden Problem
&lt;/h2&gt;

&lt;p&gt;Shard management is one area I would never ignore in OpenSearch.&lt;/p&gt;

&lt;p&gt;Every index has primary shards, and those shards can have replicas. Shards let you spread data and search work across nodes. But too many shards has a cost. Each shard uses resources, including heap memory and file handles. A large number of small shards adds cluster management overhead and can hurt performance.&lt;/p&gt;

&lt;p&gt;With six data nodes, I wouldn't automatically create six primary shards for every index. So how many is right? It depends on data volume, query patterns, expected growth and recovery needs. A small index may need far fewer shards. A larger one may gain from more spread. The decision should come from the workload, not from matching shard count to node count.&lt;/p&gt;

&lt;p&gt;Two useful diagnostic commands are:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight http"&gt;&lt;code&gt;&lt;span class="err"&gt;GET /_cluster/health?pretty
GET /_cat/shards?v
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I would also check allocation and node-level stats:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight http"&gt;&lt;code&gt;&lt;span class="err"&gt;GET /_cat/allocation?v
GET /_nodes/stats/jvm,fs,indices
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;These help answer a few questions:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Are shards spread reasonably across nodes?&lt;/li&gt;
&lt;li&gt;Are there unassigned or relocating shards?&lt;/li&gt;
&lt;li&gt;Is one node carrying a lot more data?&lt;/li&gt;
&lt;li&gt;Are JVM or storage limits affecting the cluster?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A green cluster tells you primary and replica shards are assigned. That's all. It doesn't promise the spread is efficient, or that the cluster can handle the next workload spike.&lt;/p&gt;

&lt;h2&gt;
  
  
  9. Think About Recovery Before You Need It
&lt;/h2&gt;

&lt;p&gt;One of the most important questions I ask when designing production infrastructure is this. What happens when part of the system becomes unavailable?&lt;/p&gt;

&lt;p&gt;For OpenSearch, that could mean losing a data node, an Availability Zone disruption, running out of disk space or an unhealthy index. A recovery plan has to cover more than restarting a service. I would want to know:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Can the remaining nodes handle the workload after a failure?&lt;/li&gt;
&lt;li&gt;Are replica shards placed properly?&lt;/li&gt;
&lt;li&gt;How long could shard recovery take?&lt;/li&gt;
&lt;li&gt;Are snapshots available and recoverable?&lt;/li&gt;
&lt;li&gt;What happens if an infrastructure update fails?&lt;/li&gt;
&lt;li&gt;Can we restore the service without making the original problem worse?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Amazon OpenSearch Service provides automated snapshots. Even so, I would check the retention and recovery options that apply. For workloads that need longer retention or more recovery flexibility, manual snapshots to a properly configured S3 repository may also be needed.&lt;/p&gt;

&lt;p&gt;Having a snapshot is not the same as having a tested recovery process. For a production system, restore steps should be written down and practised in a suitable non-production environment.&lt;/p&gt;

&lt;h2&gt;
  
  
  10. What I Would Improve in a Future Deployment
&lt;/h2&gt;

&lt;p&gt;Looking back at this architecture, a few areas would get extra attention in a new build.&lt;/p&gt;

&lt;p&gt;First, look at three Availability Zones from day one. Two zones give you redundancy. But a three-zone Multi-AZ with Standby design may handle failures better for supported production workloads.&lt;/p&gt;

&lt;p&gt;Second, size storage from evidence. I would use real ingestion rates, index sizes, replica needs and retention policies to set capacity.&lt;/p&gt;

&lt;p&gt;Third, manage index lifecycles on purpose. Index State Management policies can automate rollover and retention where it makes sense. That lowers the risk of old indexes eating up storage forever.&lt;/p&gt;

&lt;p&gt;Fourth, make monitoring part of provisioning. CloudWatch alarms, log publishing and operational dashboards should ship with the infrastructure. They shouldn't be added after an incident.&lt;/p&gt;

&lt;p&gt;Finally, test failure scenarios. A production-ready design should have written expectations for node loss, recovery, capacity pressure and restoration. These exercises often show assumptions that you can't see in the infrastructure config.&lt;/p&gt;

&lt;h2&gt;
  
  
  Final Thoughts
&lt;/h2&gt;

&lt;p&gt;Working on this OpenSearch architecture reinforced something I've seen across AWS infrastructure projects. Provisioning the service is usually the easy part. The harder work starts when you think about how the service behaves after deployment.&lt;/p&gt;

&lt;p&gt;For OpenSearch, that means understanding cluster management, node placement, shard allocation, storage headroom, access controls and recovery.&lt;/p&gt;

&lt;p&gt;The architecture I worked with used six data nodes, three dedicated master nodes, gp3 storage and VPC networking, all fitted into an existing enterprise deployment workflow. Those pieces gave the environment its foundation.&lt;/p&gt;

&lt;p&gt;But production readiness isn't set by how many resources you've provisioned. It comes down to how well you understand the workload, how you catch problems and how confidently you can recover when something breaks.&lt;/p&gt;

&lt;p&gt;A green cluster is a useful health signal. It isn't a production-readiness certificate.&lt;/p&gt;

&lt;p&gt;That's the point I'd want engineers to keep in mind when they design Amazon OpenSearch environments.&lt;/p&gt;

</description>
      <category>aws</category>
      <category>devops</category>
      <category>operations</category>
      <category>terraform</category>
    </item>
    <item>
      <title>Windows Server 2016 is going end of life: how I did in-place upgrades on EC2 with an agent</title>
      <dc:creator>Peterson Nwoko</dc:creator>
      <pubDate>Sat, 24 Oct 2026 19:00:44 +0000</pubDate>
      <link>https://dev.to/aws-builders/windows-server-2016-is-going-end-of-life-how-i-did-in-place-upgrades-on-ec2-with-an-agent-4fpi</link>
      <guid>https://dev.to/aws-builders/windows-server-2016-is-going-end-of-life-how-i-did-in-place-upgrades-on-ec2-with-an-agent-4fpi</guid>
      <description>&lt;p&gt;Windows Server 2016 reaches end of extended support on January 12, 2027. If you still run it on EC2, the clock is ticking.&lt;/p&gt;

&lt;p&gt;I recently upgraded 10+ EC2 instances in place to Windows Server 2022. An agent did the pre and post validation, and a human approved every step. It saved us at least a few hours of checking. Also, every server got the same checks.&lt;/p&gt;

&lt;p&gt;Testing taught me a few things.&lt;/p&gt;

&lt;p&gt;First, pin the edition. A plain setup command stalled on the edition page, and SSM can't click a button. Now the agent detects the edition and a human confirms it.&lt;/p&gt;

&lt;p&gt;Disk space was next. One test run failed because C: was too full. We grew the root volume from 30 GB to 50 GB. Today, 20 GB free is a hard gate. And never copy the media onto C:.&lt;/p&gt;

&lt;p&gt;Know your rollback. Restoring an AMI gives you a new instance ID and IP. Replace Root Volume keeps both. So take a direct root snapshot before you start.&lt;/p&gt;

&lt;p&gt;Go canary first. Upgrade one server, check it, then do the rest. Also, test the app and not only the OS. Seeing the new build number tells you very little.&lt;/p&gt;

&lt;p&gt;One more thing. After the upgrade, our patch tool still showed the old OS version, so patching stalled until it refreshed. Check that early.&lt;/p&gt;

&lt;p&gt;SSM has to be online before anything else. It is the only way in. When it wasn't, the agent helped troubleshoot it first.&lt;/p&gt;

&lt;p&gt;Still on 2016? What's your plan?&lt;/p&gt;

</description>
      <category>aws</category>
      <category>ec2</category>
      <category>microsoft</category>
      <category>awscommunitybuilders</category>
    </item>
    <item>
      <title>Migrating Storage Gateways from Amazon Linux 2 to AL2023 After the EOL Deadline</title>
      <dc:creator>Peterson Nwoko</dc:creator>
      <pubDate>Thu, 23 Jul 2026 23:02:30 +0000</pubDate>
      <link>https://dev.to/aws-builders/migrating-storage-gateways-from-amazon-linux-2-to-al2023-after-the-eol-deadline-24fb</link>
      <guid>https://dev.to/aws-builders/migrating-storage-gateways-from-amazon-linux-2-to-al2023-after-the-eol-deadline-24fb</guid>
      <description>&lt;p&gt;The end of standard support for Amazon Linux 2 was June 30, 2026 – which has now passed. If you are still running AL2-based Storage Gateway appliances, you are in the unsupported window, and here’s how to remediate: the method AWS supports, and the operational lessons that make it go smoothly.&lt;/p&gt;




&lt;p&gt;If you run AWS Storage Gateway, one deadline already changed your roadmap — and it’s in the rearview mirror: *&lt;em&gt;Amazon Linux 2 (AL2) will reach end of standard support on June 30, 2026. *&lt;/em&gt; That date has passed so any AL2-based gateway appliance in operation is no longer receiving software updates, security patches or bug fixes. You can keep running them but now the upkeep of them is your problem and in any environment where there is a compliance or audit obligation, each day in this window is adding up exposure.&lt;/p&gt;

&lt;p&gt;Storage Gateway is worth calling out specifically because it does not behave like a normal EC2 workload in this transition. For a simple EC2 instance you might re-bake an AMI and redeploy. For Storage Gateway, &lt;strong&gt;there is no in-place upgrade path from AL2 to AL2023&lt;/strong&gt; — the appliance OS is managed by AWS, and you move to AL2023 by replacing the underlying instance of the gateway, not patching it.&lt;/p&gt;

&lt;p&gt;This is a guide to planning and lessons learned, not a runbook with exact click-by-click instructions (the exact commands are in AWS’s own docs and I link to them below). The idea is to give you the shape of the migration and the operational judgment around it, so whether it’s one gateway or a fleet, you go in with your eyes open.&lt;/p&gt;

&lt;h2&gt;
  
  
  The time line and where we are now
&lt;/h2&gt;

&lt;p&gt;AWS had a particular migration campaign. All these dates are now in the past but it is useful to have them in front of you to understand the current state:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;October 28, 2025&lt;/strong&gt; — new gateway deployments from Storage Gateway console started to default to AL2023 images.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;January 5, 2026&lt;/strong&gt; — AWS started limiting new AL2 gateway &lt;em&gt;activations&lt;/em&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;June 30, 2026&lt;/strong&gt; — No software updates for AL2 based gateways and no AWS support.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This change applies to all versions of AL2-based appliances in the S3 File Gateway, Tape Gateway, and Volume Gateway families. That final date has passed so any AL2 gateway you’re still running is in the unsupported window right now, so this is no longer “planned work” it’s remediation and should be prioritized accordingly. Sequence by risk (internet facing and compliance critical gateways first) and work the fleet down systematically.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to identify affected gateways
&lt;/h2&gt;

&lt;p&gt;Take a careful inventory before you make any plans. AWS gives you 3 different ways to identify gateways to be migrated and I would use more than one to crosscheck:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;In the &lt;strong&gt;Details&lt;/strong&gt; tab of the affected gateway, the AWS Console displays a deprecation message.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The &lt;code&gt;DescribeGatewayInformation&lt;/code&gt; API&lt;/strong&gt; exposes a deprecation-date field, which is the programmatic way to sweep many gateways at once.&lt;/li&gt;
&lt;li&gt;In the &lt;strong&gt;AWS Health Dashboard&lt;/strong&gt;, on the &lt;strong&gt;Affected resources&lt;/strong&gt; tab, you can view the affected gateways.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you have more than a handful of gateways, the API is your friend, script the check across every account and Region rather than clicking through consoles. These migrations have one thing in common. They fail because they don’t take inventory. You can’t migrate the gateway you forgot about.&lt;/p&gt;

&lt;h2&gt;
  
  
  Migration approach supported
&lt;/h2&gt;

&lt;p&gt;AWS documents a replacement procedure for an S3 File Gateway that &lt;strong&gt;retains the cache disk and the current gateway ID.&lt;/strong&gt; The important part here is to keep that gateway-ID; it is what keeps your file shares, their names and their configuration during the move. Conceptually the flow is:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Stop the applications&lt;/strong&gt; through the gateway so that nothing is writing during the swap.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Deploy a new AL2023 gateway instance&lt;/strong&gt; from the latest gateway image.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Detach the cache disk(s)&lt;/strong&gt; from the old instance and &lt;strong&gt;attach to the new instance&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Make the migration API call&lt;/strong&gt; to take over the existing gateway ID and configuration on the new instance.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Check result&lt;/strong&gt; — shares are there, available, and healthy.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;There are two constraints from the docs: data can only be moved &lt;strong&gt;between the same gateway type&lt;/strong&gt; and the documented migration steps are for appliance &lt;strong&gt;version 2.x&lt;/strong&gt; and cannot be used for older versions, so part of your pre-work might be getting the current version first.&lt;/p&gt;

&lt;p&gt;I am intentionally not reproducing the exact console clicks and API parameters here, because AWS keeps the authoritative version current. Replace your existing S3 File Gateway with a new instance Begin with the &lt;strong&gt;"Storage Gateway AL2 to AL2023 Migration Campaign"&lt;/strong&gt; pre-migration checklist (linked at the end) and adhere to them to the letter.&lt;/p&gt;

&lt;h2&gt;
  
  
  If you have more than a few, automate it
&lt;/h2&gt;

&lt;p&gt;The stop-detach-attach-migrate-verify dance is fine manually for one or two gateways. It’s slow and error-prone across dozens or hundreds – across multiple accounts and Regions.&lt;/p&gt;

&lt;p&gt;AWS has released a &lt;strong&gt;migration example inside the Storage Gateway Terraform module&lt;/strong&gt; that automates the AL2-to-AL2023 upgrade, and a corresponding &lt;strong&gt;Ansible playbook&lt;/strong&gt; that orchestrates the disk-swap and migration API steps. That combination provides you a repeatable, auditable, scalable path for an entire fleet. If you are running at any kind of real scale, think about the IaC route before you engage an engineer to do weeks of manual cutovers. The auditability alone (a git history of exactly what changed, when) is worth it in a regulated shop.&lt;/p&gt;




&lt;h2&gt;
  
  
  The important lessons you need to know
&lt;/h2&gt;

&lt;p&gt;The above mechanics are the easy 20%. Here’s where migrations succeed or are held up: broad principles that apply far beyond Storage Gateway.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The single most important thing for your whole cutover is the gateway&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;The migration replaces the underlying instance, so the IP address for the gateway changes.&lt;/strong&gt; Whether that turns out to be a non-event or fire drill depends on one question: do clients connect by DNS name, or by hardcoded IP address?&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Clean DNS clients. A new instance pops up, you just repoint one DNS record during the maintenance window, and clients keep using the same hostname: they never know anything moved.
-The painful case is IP-hardcoded clients. New IP means every client pointing at the old address is now pointing at nothing until it gets updated. Those updates tend to live with a &lt;em&gt;different&lt;/em&gt; team, on a &lt;em&gt;different&lt;/em&gt; schedule, dragging their timeline into yours.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;*&lt;em&gt;Before you migrate anything, inventory how each client connects. And make the migration the forcing function to replace a raw IP with a proper DNS name anywhere you still have raw IPs — so the *next&lt;/em&gt; lifecycle event is a one-line DNS change instead of a fleet-wide push. This is the most high-leverage habit in the whole exercise.&lt;/p&gt;

&lt;h3&gt;
  
  
  2. Don’t modify the old instance, treat it as immutable infrastructure
&lt;/h3&gt;

&lt;p&gt;The best mental model for this kind of migration is &lt;em&gt;replace, don’t modify&lt;/em&gt;.* Your old AL2 instance is your rollback baseline, This is exactly how you break the thing you were trying to preserve. Little OS level tweaks to a production appliance to "make it work". Build the new AL2023 instance clean, cut over, and leave the old one untouched as your safety net.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. You’re rolling back to the old instance, so don’t kill it prematurely
&lt;/h3&gt;

&lt;p&gt;The biggest comfort of the replace-and-reserved strategy is that *&lt;em&gt;your back-out plan is "the old instance is still sitting there, stopped. *&lt;/em&gt; You moved its cache disks out, but the instance itself is okay.&lt;/p&gt;

&lt;p&gt;Make it a rule to &lt;strong&gt;leave the old instance stopped for a period of time after cutover&lt;/strong&gt; — long enough so that if a problem arises a day or two later under real load, you can still roll back without having to provision from scratch. A few weeks of EBS storage and you can sleep. Document the retention window in your change plan, so a well-meaning cleanup process doesn’t kill your safety net three hours after cutover.&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Different Approaches for State and Stateless Workloads
&lt;/h3&gt;

&lt;p&gt;Storage Gateway is stateful - there's cache data to preserve - so that's why the disk-and-gateway-ID method exists. If your broader AL2 estate includes other workload types, don’t apply one playbook to all:&lt;/p&gt;

&lt;p&gt;Stateful EC2: multiple instances, data sync verified, DNS cutover managed.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Auto Scaling Groups:&lt;/strong&gt; Deploy a new AL2023 AMI with a canary and a guarded instance refresh.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;EKS nodes:&lt;/strong&gt; add AL2023 node groups, stop new pods from scheduling on AL2 nodes, verify cluster add-ons (VPC CNI, CoreDNS, kube-proxy) are compatible with AL2023 AMIs, then cordon/drain/remove the AL2 nodes once stable.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The through-line: introduce the new, validate under real conditions, remove the old last - keep rollback available until final step.&lt;/p&gt;

&lt;h3&gt;
  
  
  5. Validation is a checklist, not a gut feeling
&lt;/h3&gt;

&lt;p&gt;“The shares are back” is not a status. Decide ahead of time what &lt;em&gt;proven&lt;/em&gt; healthy looks like — the share is reachable, the correct share list is present, a test read and write both succeed — and write those checks into the runbook so that any engineer running the cutover knows the exact bar for success. This is even more important when you automate: your playbook should assert health, not assume it.&lt;/p&gt;

&lt;h3&gt;
  
  
  6. Map the human dependencies before the technical
&lt;/h3&gt;

&lt;p&gt;AWS steps are easy to learn in an afternoon. The one thing you can't shortcut is the web of people a cutover touches: whoever owns DNS, whoever pushes config to IP-hardcoded clients, the application owners who need to validate afterward (and be &lt;em&gt;told&lt;/em&gt; in advance their shares will blink), and AWS support or your TAM for the higher-stakes waves. Draw that dependency map per gateway before you touch anything and make “who has to act inside my maintenance window” a first class part of the plan.&lt;/p&gt;

&lt;h3&gt;
  
  
  7. Beyond the deadline – Risk sequence and deliberate move
&lt;/h3&gt;

&lt;p&gt;The technical work per gateway is small; it is the &lt;em&gt;organizational&lt;/em&gt; run to schedule production changes across teams that takes time. But with June 30, 2026 in the rear view, there’s no “early” to be anymore — but that’s no reason to rush sloppily. The right answer is to triage: identify which gateways are most at risk in an unsupported state (internet facing, compliance scoped, highest data sensitivity), and book the change windows for those first, working down the fleet in a controlled sequence. Compressed urgency + organized order &amp;gt; either panic or complacency.&lt;/p&gt;

&lt;p&gt;The takeaway&lt;/p&gt;

&lt;p&gt;Amazon Linux 2 is now at the end of standard support and we have passed the deadline. Are AL2-based Storage Gateways still out there? The good news is that the technical migration to AL2023 is really not the hard part — AWS’s replace-and-preserve method keeps your gateway ID, cache data, and share configuration intact, and there’s now IaC tooling to run it at fleet scale.&lt;/p&gt;

&lt;p&gt;The hard part is everything else: knowing exactly which gateways are affected, how clients actually get to them (DNS or IP), keeping a real rollback path alive through cutover, and coordinating the humans whose actions land within your maintenance window. Follow the mechanics in the AWS docs and the OS swap becomes the easy step it should be. Expect those.&lt;/p&gt;




&lt;h4&gt;
  
  
  Reliable sources
&lt;/h4&gt;

&lt;ul&gt;
&lt;li&gt;Storage Gateway AL2 to AL2023 Migration Campaign (pre-migration checklist, timeline, impacted versions) — &lt;code&gt;docs.aws.amazon.com/filegateway/latest/files3/al2-to-al2023-migration.html.&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Creating a new file gateway instance to replace your existing S3 File Gateway (supported method) — &lt;code&gt;docs.aws.amazon.com/filegateway/latest/files3/migrate-data.html&lt;/code&gt;
-Scale your AWS Storage Gateway AL2023 migration with infrastructure as code (Terraform + Ansible) — &lt;code&gt;aws.amazon.com/blogs/storage/scale-your-aws-storage-gateway-al2023-migration-with-infrastructure-as-code/&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Migrate an EC2 instance from AL2 to AL2023 (general EC2 guidance) — `repost.aws/knowledge-center/al2-migrate-al2023&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;em&gt;Always refer back to the current AWS documentation for exact steps — dates, image versions, and procedures are updated, and the docs are the source of truth.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>storagegateway</category>
      <category>devops</category>
      <category>cloud</category>
      <category>aws</category>
    </item>
  </channel>
</rss>
