---
title: Executive Summary
url: https://www.vmware.com/docs/vmw-tanzu-rabbitmq-ova-and-vsphere-vmotion
---

# Executive Summary

VMware OVA simplifies the deployment as a pre-configured virtual appliance. However, many organizations leveraging VMware environments seek clarity on the compatibility and benefits of using OVA with vSphere vMotion. This white paper explores the integration, benefits, and best practices for ensuring seamless operation with OVA.

## Introduction

In dynamic enterprise environments, maintaining high availability and minimizing downtime during infrastructure changes is critical. RabbitMQ, a high-performance message broker, can be deployed as an OVA in VMware vSphere to simplify setup. VMware’s technology enables live migration of virtual machines (VMs) without service interruption. Organizations often questioned whether OVA could handle the complexities of live migrations. Extensive testing has now proven that OVA migrates seamlessly in VMware vSphere, providing operational resilience and flexibility.

## Problem Statement

Organizations previously expressed concerns about the reliability of OVA when used with vSphere vMotion, particularly under high workloads and with active queue processing. However, recent validations have confirmed that OVA with Khepri database enabled works effectively with vSphere vMotion, ensuring:
- Uninterrupted message flow during migrations.
- Consistent service availability, even under high workloads.
- Reliable data integrity and operational resilience.

These issues necessitate a clear approach in performing migration of OVA in vSphere.

## Proposed Solution

By deploying an OVA with the Khepri database and adhering to best practices for configuration and resource allocation, organizations can ensure a seamless and successful migration of the OVA:
- **Zero Downtime:** Ensure message broker availability during live migrations.
- **Data Integrity:** Maintain queue consistency and prevent message loss.
- **Operational Efficiency:** Perform infrastructure upgrades and maintenance without disrupting services.

## Khepri

**Note:** Khepri is a fully supported metadata store starting with the 4.0.x release. However, 3.13.x includes only experimental support for Khepri and is not ready for use in production. Additionally, it is not possible to upgrade from 3.13.x to 4.x or beyond if Khepri was enabled on the 3.13.x node(s).

**Warning:** Users considering enabling Khepri in 3.13.x should carefully evaluate the potential complexities and ensure compatibility before proceeding. During migration, partial network partitioning may occur among the nodes. Khepri provides robust network partition recovery strategies to mitigate potential disruptions. Khepri adheres to the Consistency and Partition Tolerance (CP) model from the CAP theorem, ensuring strong data integrity while remaining resilient in network partitions. Additionally, Khepri’s Raft-based approach to failure handling effectively manages network partitions, enhancing overall system resilience.

### Consistency (C)

- **Quorum Queues & Khepri Metadata Store:**
  - Uses Raft consensus to ensure updates (messages, metadata) are consistently replicated.
- **Publisher Confirms & Transactions:**
  - Guarantees messages are either fully committed or discarded, preventing partial updates.
- **Ordered Log Replication:**
  - Khepri’s Raft-based log ensures nodes replay missed updates in a deterministic manner.

### Partition Tolerance (P)

Key partition tolerance strategies include:

- **Leader Election in Khepri (Raft Algorithm):**
  - If the leader node becomes unavailable due to a network partition, a new leader is elected from the available followers using the Raft leader election process.
  - The old leader steps down upon rejoining to prevent conflicts.
  
- **Network Partition Handling Strategies:**
  - Khepri provides different partition handling strategies (pause_minority, pause_if_all_down, autoheal, and ignore) to manage partitions effectively.
  - The default pause_minority strategy ensures consistency by pausing nodes in the minority partition, preventing them from making conflicting updates.

- **Delayed Synchronization:**
  - Partitioned nodes sync with the leader upon reconnection, ensuring state consistency and avoiding split-brain scenarios.

## Implementation Steps

- Deploy Tanzu RabbitMQ OVA with Khepri database:
  - Import the OVA into the vSphere environment.
  - Enable Khepri database.
  
- Enable vMotion Compatibility:
  - Ensure the virtual machine is hosted on shared storage (e.g., vSAN, NFS) to facilitate live migration.
  - Verify that the VMkernel network adapter supports traffic.
  - Configure CPU and memory reservations to minimize resource contention.

- Tested Live Migration:
  - Monitored RabbitMQ’s performance and logs during the migration to detect potential issues.
  
**Observations:**
- The process was successful even after a longer duration migration time (the migration had consumed 14 minutes).
- No interruptions in message processing or service availability were detected during or after the migration.
- Successful test results:
  - Idle Cluster: Result: Pass
  - Cluster under load: Result: Pass
  - Active Quorum Queues: Result: Pass
  - Active Streams: Result: Pass
  
**Environment Details:**
- Version: 4.0.5
- vSphere: 8.0 U3
- Cluster Configuration: 3-node cluster (with Khepri database)
- Load Details:
  - 3 active queues:
    - Classic queue
    - Quorum queue (10 producers and 10 consumers)
    - Stream queue (20 producers and 10 consumers)
  - Message Rate: 10,000 messages per second per node.
  - Messages: ~6 million

### Benefits:

- **Enhanced Flexibility:** Live migrations allow administrators to perform maintenance or hardware upgrades without downtime.
- **Improved Resilience:** Persistent storage and clustering ensure RabbitMQ remains operational during migrations.
- **Optimized Resource Utilization:** Proper resource allocation ensures efficient workload distribution across the vSphere cluster.

### Conclusion:

With proper planning and adherence to best practices, the risks associated with live migrations can be eliminated, providing a successful migration of OVA in vSphere. Thus ensuring reliable message delivery and operational continuity during and after migration. Furthermore, RabbitMQ's network partition recovery strategies and Khepri’s automatic leader election enable smooth failover and recovery, minimizing service disruptions, providing a resilient and highly available messaging infrastructure for enterprise environments.

### References:

- Official Site: [https://www.rabbitmq.com/](https://www.rabbitmq.com/)
- Khepri database: [https://www.rabbitmq.com/docs/metadata-store#khepri](https://www.rabbitmq.com/docs/metadata-store#khepri)
- OVA Configuration Guide: https://techdocs.broadcom.com/us/en/vmware-tanzu/data-solutions/tanzu-rabbitmq-ova/4-0/tanzu-rabbitmq-ova-virtual-machine/overview.html
- VMware vSphere Documentation: [https://www.vmware.com/products/vsphere.html](https://www.vmware.com/products/vsphere.html)
- VMware Documentation: https://docs.vmware.com/en/VMware-vSphere/6.7/com.vmware.vsphere.vcenterhost.doc/GUID-D19EA1CB-5222-49F9-A002-4F8692B92D63.html
