Close Menu
geekfence.comgeekfence.com
    What's Hot

    Customer experience management (CXM) predictions for 2026: How customers, enterprises, technology, and the provider landscape will evolve 

    December 28, 2025

    What to Know About the Cloud and Data Centers in 2026

    December 28, 2025

    Why Enterprise AI Scale Stalls

    December 28, 2025
    Facebook X (Twitter) Instagram
    • About Us
    • Contact Us
    Facebook Instagram
    geekfence.comgeekfence.com
    • Home
    • UK Tech News
    • AI
    • Big Data
    • Cyber Security
      • Cloud Computing
      • iOS Development
    • IoT
    • Mobile
    • Software
      • Software Development
      • Software Engineering
    • Technology
      • Green Technology
      • Nanotechnology
    • Telecom
    geekfence.comgeekfence.com
    Home»IoT»High availability patterns for AWS IoT Greengrass using Pacemaker
    IoT

    High availability patterns for AWS IoT Greengrass using Pacemaker

    AdminBy AdminNovember 15, 2025No Comments7 Mins Read0 Views
    Facebook Twitter Pinterest LinkedIn Telegram Tumblr Email
    High availability patterns for AWS IoT Greengrass using Pacemaker
    Share
    Facebook Twitter LinkedIn Pinterest Email


    Edge computing downtime in industrial IoT environments can be both inconvenient and costly. Systems at the edge require continuous operation to maintain business continuity. While AWS IoT Greengrass delivers powerful edge computing capabilities, achieving true enterprise-grade high availability requires additional orchestration. This post shows how to use Pacemaker, a cluster resource manager, to build resilient edge infrastructure with automated failover.

    In this walkthrough, you’ll learn to implement active/passive and active/active high availability patterns using Pacemaker with AWS IoT Greengrass, complete with automated failover, state replication, and monitoring integration.

    The high availability challenge for edge computing

    Traditional cloud applications benefit from built-in redundancy and auto-scaling, however, applications on the edge face unique challenges:

    • Physical isolation: Edge devices operate in remote locations with limited connectivity
    • Resource constraints: Unlike cloud environments, edge resources are finite and precious
    • Service criticality: Edge failures can halt physical operations immediately
    • Recovery complexity: Manual intervention at remote sites is expensive and slow

    AWS IoT Greengrass addresses many edge computing challenges, but high availability requires thoughtful architecture beyond a single device deployment.

    How Pacemaker enhances AWS IoT Greengrass

    Pacemaker helps you build highly available AWS IoT Greengrass deployments through cluster management capabilities:

    Proven reliability

    • Used in mission-critical environments for over a decade
    • Handles complex failure scenarios with sophisticated fencing mechanisms
    • Works in both active/passive and active/active configurations

    AWS IoT Greengrass-aware resource management

    • Monitors Greengrass service health and component states
    • Manages shared storage for seamless state transfer
    • Coordinates failover of dependent services and network resources

    Enterprise-ready integration

    • Integrates with existing Linux infrastructure management
    • Supports complex dependency chains and resource constraints
    • Provides detailed logging and monitoring for compliance requirements

    Together, these tools keep your edge workloads running during hardware failures or network disruptions.

    Architecture overview: High availability patterns

    AWS IoT Greengrass high availability can be implemented using two primary patterns, each optimized for different use cases.

    Active/Passive configuration: Maximizing data consistency

    This mode maximizes data consistency and automated failover—ideal for mission-critical applications where data integrity and service continuity are paramount. One node runs Greengrass actively while the other stands ready in standby mode. A software-based, block-level data replication service like Distributed Replicated Block Device (DRBD) ensures instant state synchronization between nodes, enabling failover with zero data loss and maintaining device identity.

    
    ┌─────────────────┐    ┌─────────────────┐ 
    │   Primary Node  │    │  Standby Node   │ 
    │                 │    │                 │ 
    │ ┌─────────────┐ │    │ ┌─────────────┐ │ 
    │ │ Greengrass  │ │    │ │ Greengrass  │ │ 
    │ │   ACTIVE    │ │    │ │  STANDBY    │ │ 
    │ └─────────────┘ │    │ └─────────────┘ │ 
    │                 │    │                 │ 
    │ ┌─────────────┐ │    │ ┌─────────────┐ │ 
    │ │   DRBD      │◄┼────┼►│   DRBD      │ │ 
    │ │  Primary    │ │    │ │ Secondary   │ │ 
    │ └─────────────┘ │    │ └─────────────┘ │ 
    └─────────────────┘    └─────────────────┘ 

    Key benefits:

    This configuration ensures complete state preservation during failover with sub-minute downtime, zero data loss for in-flight transactions and critical operations, while maintaining device identity, certificates, and Stream Manager persistence seamlessly.

    Real-world use cases:

    Active/Passive configurations are essential in scenarios requiring zero or minimal data loss, such as in-flight entertainment systems that handle offline payment processing and battery manufacturing facilities where production lines depend on continuous data flow from critical manufacturing sensors and ML model outputs to maintain operational integrity and quality control.

    Active/Active: Maximum throughput and scalability

    This mode maximizes throughput and provides horizontal scaling for high-volume workloads. Multiple independent Greengrass instances run simultaneously across cluster nodes, with intelligent load balancing distributing work based on node health and capacity. Each node operates with its own unique device credentials and configurations.

    
    ┌─────────────────┐    ┌─────────────────┐ 
    │   Node 1        │    │   Node 2        │ 
    │                 │    │                 │ 
    │ ┌─────────────┐ │    │ ┌─────────────┐ │ 
    │ │ Greengrass  │ │    │ │ Greengrass  │ │ 
    │ │   ACTIVE    │ │    │ │   ACTIVE    │ │ 
    │ └─────────────┘ │    │ └─────────────┘ │ 
    │                 │    │                 │ 
    │ ┌─────────────┐ │    │ ┌─────────────┐ │ 
    │ │Load Balancer│◄┼────┼►│Load Balancer│ │ 
    │ │ (A/P Mode)  │ │    │ │ (Standby)   │ │ 
    │ └─────────────┘ │    │ └─────────────┘ │ 
    └─────────────────┘    └─────────────────┘ 

    Key benefits:

    These configurations enable horizontal scaling for high-throughput scenarios, improve resource utilization across nodes, and provide graceful degradation under partial failures.

    Real-world use cases:

    Active/Active configurations are ideal for high-volume scenarios such as automotive parts manufacturing facilities and large-scale manufacturing operations with multiple production lines, where each node handles different line segments to provide both redundancy and increased processing capacity for real-time analytics and anomaly detection.

    Configuration selection guide

    Use Active/Passive for applications that require zero data loss, shared state, and device identity preservation. This pattern works well when you need a single point of control and can accept failover times under one minute.Use Active/Active when you need high throughput and horizontal scaling. This pattern suits applications that can operate independently without shared state, where load distribution provides operational benefits, and graceful degradation is preferable to complete failover.

    How to implementation the solution

    The complete playbook, including detailed configuration examples and testing procedures, is available in the GitHub respository. This provides an Active/Passive implementation automation using Ansible that you can customize for your specific requirements. Active/Active setup steps are also available in MANUAL-SETUP-GUIDE within the same repository.

    Setup steps

    1. Environment setup

    Clone the repository and set up the development environment

    git clone 
    cd sample-greengrass-ha-pacemaker
    ./scripts/setup-dev-env.sh && source .venv/bin/activate
    

    2. Configure cluster secrets

    Generate and encrypt cluster credentials using Ansible Vault

    # Create vault password file
    echo "your_secure_password" > .vault_pass
    chmod 600 .vault_pass
    # Auto-generate encrypted secrets
    ./scripts/setup-vault.sh

    This creates `vars/cluster-vault.yml` with encrypted credentials for cluster authentication and DRBD replication.

    3. Prepare Greengrass credentials

    Note: This approach is designed for testing and demonstration purposes only.

    Download Greengrass installation files from AWS IoT Console.

    1. Navigate to AWS IoT Core console → Greengrass → Core devices
    2. Click ‘Set up one core device’ → ‘Set up a device with installer download’
    3. Name your device (e.g., ‘greengrass-ha-device’)
    4. Select or create a Thing Group
    5. Download both files and rename them:
      1. Rename hash-setup.sh to greengrass-setup.sh
      2. Rename hash.zip to greengrass-certs.zip
    6. Place files in `files/greengrass/` directory

    4. Deploy and configure

    This will deploy AWS EC2 and necessary resources to test on AWS.

    # Deploy infrastructure
    make cdk-deploy && make cdk-inventory
    # Retrieve SSH private key
    ./scripts/get-ssh-key.sh
    # Configure HA cluster
    ansible-playbook playbooks/setup/system-prerequisites.yml -i inventory/cdk-dev-hosts
    ansible-playbook playbooks/setup/configure-ha.yml -i inventory/cdk-dev-hosts --vault-password-file .vault_pass

    5. Validate and test

    Check cluster status and optionally, run an automated failover test.

    # Check cluster status
    ansible node-1 -i inventory/cdk-dev-hosts -m shell -a "sudo pcs status" --become
    # Test failover (optional)
    ansible-playbook playbooks/testing/test-failover-simulation.yml -i inventory/cdk-dev-hosts --vault-password-file .vault_pass

    The automated tests validate resource migration, DRBD promotion, and data consistency during failover.

    Cleanup

    This will destroy the resources created by CDK.

    # Destroy infrastructure
    make cdk-destroy

    Conclusion: Enterprise-ready edge computing

    AWS IoT Greengrass and Pacemaker together provide the high availability needed for mission-critical edge deployments. By using Pacemaker’s cluster management capabilities, organizations can confidently deploy Greengrass where reliability is essential.Whether you’re managing industrial control systems, processing real-time analytics, or orchestrating edge AI workloads, this architectural pattern provides the foundation for resilient, scalable edge computing that your business can depend on.

    Next steps

    Ready to implement enterprise-grade high availability for your AWS IoT Greengrass deployments? Here’s your path forward:

    Repository: sample-greengrass-ha-pacemaker

     


    About the authors

    Yong Ji Yong Ji is a Senior Solutions Architect at Amazon Web Services (AWS), helping enterprises build innovative cloud-based solutions. With over 25 years of experience in cloud architecture, analytics and data engineering, Yong brings deep technical expertise and a passion for solving complex business challenges. Outside of work, Yong is a passionate table tennis player.

    Siddhant Srivastava Siddhant Srivastava is a Software Development Engineer with AWS IoT Greengrass. He has 3+ years of experience in edge computing with focus on building resilient, scalable distributed systems. Outside work, Siddhant participates in soccer leagues and billiards tournaments.



    Source link

    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email

    Related Posts

    3D-Printed Cinema Film Camera Oozes Vintage Vibes

    December 28, 2025

    Kickstart Your 2026 Security Strategy: Master Automation at the DevNet Ignite Security Workshop

    December 27, 2025

    Streamlining Amazon Sidewalk Device Fleet Management with AWS IoT Core’s New Bulk Operations

    December 26, 2025

    SEALSQ partners with Airmod to embed a quantum-ready middleware platform

    December 25, 2025

    Keysight’s new handheld analyser simplifies RF troubleshooting Internet of Things News %

    December 24, 2025

    Project Kenner Garage Session at TH/NGS Conference – THE INTERNET OF THINGS

    December 23, 2025
    Top Posts

    Understanding U-Net Architecture in Deep Learning

    November 25, 20258 Views

    Microsoft 365 Copilot now enables you to build apps and workflows

    October 29, 20258 Views

    Here’s the latest company planning for gene-edited babies

    November 2, 20257 Views
    Don't Miss

    Customer experience management (CXM) predictions for 2026: How customers, enterprises, technology, and the provider landscape will evolve 

    December 28, 2025

    After laying out our bold CXM predictions for 2025 and then assessing how those bets played out…

    What to Know About the Cloud and Data Centers in 2026

    December 28, 2025

    Why Enterprise AI Scale Stalls

    December 28, 2025

    New serverless customization in Amazon SageMaker AI accelerates model fine-tuning

    December 28, 2025
    Stay In Touch
    • Facebook
    • Instagram
    About Us

    At GeekFence, we are a team of tech-enthusiasts, industry watchers and content creators who believe that technology isn’t just about gadgets—it’s about how innovation transforms our lives, work and society. We’ve come together to build a place where readers, thinkers and industry insiders can converge to explore what’s next in tech.

    Our Picks

    Customer experience management (CXM) predictions for 2026: How customers, enterprises, technology, and the provider landscape will evolve 

    December 28, 2025

    What to Know About the Cloud and Data Centers in 2026

    December 28, 2025

    Subscribe to Updates

    Please enable JavaScript in your browser to complete this form.
    Loading
    • About Us
    • Contact Us
    • Disclaimer
    • Privacy Policy
    • Terms and Conditions
    © 2025 Geekfence.All Rigt Reserved.

    Type above and press Enter to search. Press Esc to cancel.