# High Availability

In a High Availability deployment, emCA components are clustered across multiple nodes to ensure uninterrupted service. A load balancer directs traffic to healthy servers and reroutes requests if a node fails. Two HSMs are deployed in a trusted zone for redundancy.

<figure><img src="/files/IWaPrj9KcIfNNOdoixGv" alt=""><figcaption></figcaption></figure>

**Key Components**

* **Load Balancer**\
  Distributes client requests, monitors server health, and redirects traffic on failure.
* **Clustered CA Servers**\
  Multiple emCA nodes handle certificate issuance, lifecycle events, and certificate pool management.
* **Redundant TSA Servers**\
  Provide timestamping services with failover capability.
* **Clustered OCSP Servers**\
  Host OCSP responders for real-time revocation status checks.
* **Database Cluster**\
  Multiple database instances store certificates, user data, and audit records with data replication.
* **HSM Cluster**\
  Two or more FIPS-compliant modules store private keys and sensitive material, ensuring key availability.

#### **Multi-Tenancy Support**

emCA natively isolates multiple tenants within one CA infrastructure:

* **Tenant Isolation**\
  Separate namespaces for certificates, CRLs, audit logs, and keys.
* **Dedicated Policies**\
  Tenant-specific certificate profiles, templates, and workflows.
* **Scoped RBAC**\
  Administrative roles confined to each tenant’s domain.
* **Horizontal Scaling**\
  Onboard additional tenants without impacting performance.
* **Tenant-Level Auditing**\
  Exportable logs for compliance reporting.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://emca.emudhra.com/getting-started/deployment-models/high-availability.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
