Back to Checks
vcf

Stretched clusters meet minimum host count for fault domain resilience

clusters_stretched_validation
Service: clustersSeverity: medium
OfficialVerifiedVMware Cloud FoundationPrivate
Categories:resilience
Resource Type:Cluster

Stretched clusters have enough hosts to survive a full fault domain failure, with a default minimum of 6 hosts (3 per fault domain).

Risk

Stretched clusters with too few hosts may not survive a full fault domain failure, defeating the purpose of the stretched configuration and breaking availability of the workloads they host.

Run this check with Prowler

Run in Prowler Cloud
Install
pip install --extra-index-url https://__token__:${PROWLER_REGISTRY_DOWNLOAD_API_KEY}@registry.prowler.com/simple/ "prowler-provider-vcf[runtime]"
Run
prowler vcf --checks clusters_stretched_validation

Recommendation

Provision stretched clusters with at least 6 hosts (3 per fault domain) so that the loss of a full fault domain leaves a viable cluster.

Remediation

Other

1Add hosts to the stretched cluster via the **SDDC Manager** UI so each fault domain has at least `3` hosts.

Check Code

from prowler.lib.check.models import Check
from prowler_provider_vcf.check_report import CheckReportVCF
from prowler_provider_vcf.services.clusters.clusters_client import clusters_client


class clusters_stretched_validation(Check):
    def execute(self) -> list[CheckReportVCF]:
        findings = []
        min_hosts = clusters_client.audit_config.get("min_stretched_cluster_hosts", 6)
        for cluster in clusters_client.clusters:
            if not cluster.is_stretched:
                continue
            report = CheckReportVCF(
                metadata=self.metadata(),
                resource=cluster,
            )
            if cluster.host_count >= min_hosts:
                report.status = "PASS"
                report.status_extended = (
                    f"Stretched cluster {cluster.name} has {cluster.host_count} hosts "
                    f"(minimum: {min_hosts})."
                )
            else:
                report.status = "FAIL"
                report.status_extended = (
                    f"Stretched cluster {cluster.name} has only {cluster.host_count} host(s) "
                    f"(minimum: {min_hosts} for fault domain resilience)."
                )
            findings.append(report)
        return findings