The independent daily for Salesforce admins, developers and architects

Curated by Abhinav (opens in a new tab)

How MuleSoft moved observability to Hyperforce without breaking customers (opens in a new tab)

You will learn how MuleSoft consolidated nearly 3,000 monitoring clusters into 24 multi-tenant clusters, kept legacy query APIs working through a translation layer, and used continuous automated validation and staged cutovers to migrate 39 petabytes of telemetry.

Legacy architecture

  • Nearly 3,000 monitoring clusters
  • 153 services and components
  • Statically provisioned per customer

Hyperforce architecture

  • 24 shared clusters
  • 43 services and components
  • Multi-tenant with automated rebalancing
The legacy architecture was replaced by a consolidated multi-tenant platform

MuleSoft’s legacy observability platform ran on nearly 3,000 independently provisioned monitoring clusters, and operating it at that scale was increasingly hard. The team first stabilized the existing system by reorganizing ownership around horizontal capabilities such as ingestion and logging, so each team maintained its part of the legacy system while building its replacement. Replacing ad hoc production fixes with root cause analysis brought incidents down within about six weeks.

The replacement moved to a shared, multi-tenant platform on Hyperforce. Because customers rarely reach peak utilization at the same time, the team could meet each customer’s capacity guarantees without reserving the sum of every maximum allocation. High-utilization customers were spread across clusters, and automated mechanisms moved customers when utilization rose, with data kept within its region. Unifying ingestion, processing and storage cut the number of services and components from 153 to 43, and the clusters fell to 24, a reduction of about 99 percent.

The backend changed substantially, but customers were meant to notice little. The team standardized telemetry on OpenTelemetry and kept existing log and metrics query APIs working through a translation layer that mapped requests to the new databases. Customers received 60 days of access to both user interfaces when new features such as enhanced log search arrived, so they could give feedback before switching.

Migration ran alongside production. Automated end-to-end validation compared log and metrics queries, alerts and notifications across both environments and reported discrepancies, which surfaced differences caused by customer-specific implementations. Shadow validation covered selected alerting scenarios. Cutovers were grouped into about eight to ten batches by region, service, feature and customer category, moving from lower-risk to more complex workloads, with feature flags and rollback available throughout. The rollout ran for more than a year across more than 12 regions. The authors report P95 telemetry delay falling from several minutes to under one minute and query latencies improving 2X.

Read the original at Salesforce Engineering (opens in a new tab)

Worth reading?

Cloud Atlas replaces per-instance rate limits with fleet-wide protection (opens in a new tab)

An inside account of why per-instance rate limits failed for the identity store behind Salesforce authentication, and what replaced them.

Cloud Atlas is the globally distributed identity data store behind a large share of Salesforce logins and token validations, run to five nines of availability. In this interview, the team’s engineering lead explains why overload at that layer is dangerous: slow responses cause upstream services to retry, the retries add traffic to a system already under pressure, and a local bottleneck spreads. Agent-driven and automated workloads have made traffic burstier and harder to predict than human logins.

The old protection was per-instance rate limiting. That held up while infrastructure was static, but with autoscaling each server’s limits went stale whenever instances were added or removed, and each server knew only its own load rather than a customer’s total usage across the fleet. Busy servers rejected requests while capacity sat idle elsewhere, and one tenant’s spike could still starve others.

The redesign protects the service as a whole instead of individual servers. It combines global quota management that needs no central coordinator with load shedding that acts before retries begin to amplify the overload, so a single customer’s surge is isolated rather than shared.

Read the original at Salesforce Engineering (opens in a new tab)

Worth reading?