← Back to Case Studies
Multi-tenant

Multi-Tenant Mautic: White-Label Marketing Automation on Kubernetes

SaaS Platform — User Management Industry

7 min
Automated provisioning
500x
Storage performance gain
50-65%
Cost savings
671
Metrics monitored

The client is a SaaS company providing a platform for organizations to manage their end-user databases. They wanted to offer marketing automation as a native feature of their product — fully branded, seamlessly integrated, and independently scalable. The existing approach — a separate, manually configured Mautic instance per customer — would not scale.

The Challenge

The client needed a full marketing automation engine that could:

1Run as a white-labeled product under their own brand
2Support hundreds of independent tenants with isolated data
3Scale automatically — new instances without manual intervention
4Integrate with each tenant's existing user database via APIs
5Support custom email templates with dynamic content per tenant
6Be maintainable and upgradeable without disrupting production

The Solution

We delivered a production-ready, multi-instance Mautic platform running on Kubernetes (EKS) on AWS. Each tenant gets an independent Mautic installation — with its own database, configuration, and branding — while sharing infrastructure and deployment tooling.

What We Built

Automated Tenant Provisioning

When the client onboards a new customer, their management system sends a request to our custom installer microservice. It provisions AWS resources (SQS, S3, Route 53), triggers a Jenkins job, registers DNS, and verifies the installation — all automatically.

7–8 minnew tenant
~1 hrpreviously

Kubernetes Architecture with Intelligent Scaling

The platform runs on AWS EKS with three node group types:

ManagementDedicated on-demand instance running Carpenter. Never scales down.
ApplicationApache/FPM pods with anti-affinity for high availability.
WorkerSpot instances for 50-65% cost savings.

Wave-Based Deployment with Argo CD

Deploying updates across 100+ instances requires careful orchestration. Our Argo CD pipeline with Helm charts supports:

  • Sync Waves controlling the deployment sequence
  • Zero-downtime rolling updates
  • Canary group — first batch fails, rollout stops
  • Post-deploy health checks per instance

Custom Self-Healing Infrastructure

Custom Kubernetes jobs monitor node health every 5 minutes. Unhealthy nodes are automatically removed — critical because Carpenter's default recovery can take hours. A separate cleanup job detects and removes stuck pods, first gracefully, then forcefully if needed.

Storage Performance: 500x Improvement

We hit a critical performance wall with shared filesystem storage — throughput around 30 KB/s. After migrating to a high-performance filesystem:

30 KB/s
~15 MB/s
500x

White-Label Mautic Customization

  • Completely rebranded UI with reorganized menu
  • Custom email builder plugin with 4 dynamic block types
  • Conditional content per branch/segment
  • Successful Mautic 5→6 migration (3-week, 2-person effort)

Python Integration Services

A suite of Python microservices running on AWS Lambda keeps Mautic in sync with the client's platform:

Monthly syncWelcome flowsRegister & VerifyAuto RenewRecommends

Originally 15 repositories — consolidated into a single monorepo.

Comprehensive Monitoring

Our Grafana + Prometheus stack tracks 671 metrics across the entire infrastructure — cluster health, pod lifecycle, Argo CD deployments, Traefik ingress performance, and container resources. Issues are caught before they impact tenants.

0
Min automated provisioning
0
x storage performance gain
0
% infrastructure cost savings
0
Metrics monitored

Business Impact

Product-ready platform — the client is actively selling white-labeled marketing automation
4-5 production tenants live, infrastructure designed and tested for 300-500
Successful Mautic 5→6 upgrade across all instances without disruption
15 repositories consolidated into a single monorepo

Technology Stack

Marketing Automation
Mautic 6 (customizedwhite-labeled)
Orchestration
Kubernetes (AWS EKS)HelmArgo CD
Infrastructure
TerraformEC2S3Route 53CloudFrontSQSDynamoDBRDSECRFSxRedis
Email Builder
Custom plugindynamic content blocks
Backend
PHP/SymfonyPython (Lambda services)
CI/CD
JenkinsArgo CD (GitOps)
Monitoring
GrafanaPrometheusLoki
Autoscaling
Carpentercustom self-healing jobs

Need a Multi-Tenant Mautic Platform?

Let's discuss your multi-tenant architecture goals and requirements.