Skip to main content

Resource Requirements

Cadence services are stateless, so their CPU, memory, and network use grows with the amount of work flowing through the cluster rather than with the number of workflows stored. This page explains what drives that usage and reports measurements from a reference benchmark, run once on a single cluster and once on two replicated clusters. Use the numbers to estimate a starting footprint, then confirm it with a bench run on your own hardware and datastore. Disk and datastore needs are covered on Storage requirements.

Summary​

  • Throughput. The benchmark sustained about 610 decisions and 305 activities per second. The CPU, memory, datastore, and network figures below are for that load.
  • CPU. A CPU core is one vCPU, usually one hardware thread. The four Cadence services had 26 CPU cores in total and averaged about 35% utilization, about 9 cores busy. History did about three quarters of that work.
  • Memory. History is the memory-heavy service because it caches workflow state and history events for the shards it owns. It used 71% to 81% of its 96 GB allocation on average, and its busiest instance ran near 94% of its limit. Frontend, Matching, and Worker averaged under about 40% of their 2 GB. One minute on a Frontend instance reached about 43% of its memory limit, and one minute of Frontend or Matching CPU reached about 44%.
  • Datastore. Cassandra ran as 3 nodes, 7 CPU cores and 64 GB each. One node had 60 GB. On the single-cluster run it averaged about 76% CPU and 62% memory, so it had less headroom than the Cadence services. It is the first component to scale as load grows.
  • Network. The benchmark did not measure bandwidth. Traffic is RPC among workers, the Cadence services, and the datastore. With two clusters in different zones, cross-region bandwidth grows with the event rate and payload size, and that is what drives network cost.

What drives resource usage​

Cadence does its work per event. History writes every event to the workflow history, and Matching dispatches every task to a worker. CPU and memory therefore track the number of events and tasks in the system much more closely than the number of workflows. One workflow that fans out thousands of activities costs about as much as thousands of workflows that run one activity each.

The main drivers are:

  • Decisions, activities, timers, and signals per second.
  • Payload size, which affects history writes, caches, and persistence traffic.
  • Workers polling, and the number of task lists they poll. Each waiting poll holds an open request on Frontend and Matching.
  • The number of history shards. History keeps queues and caches per shard, so memory grows with the number of shards each instance owns and with the cache settings in dynamic configuration (history.cacheMaxSize, history.executionCacheMaxByteSize, history.eventsCacheMaxSize, and history.eventsCacheMaxSizeInBytes).
  • One cluster or two. A standby cluster applies every replicated event, so it needs about as much History and datastore capacity as the active cluster. See cross-DC replication.

Reference benchmark​

The Cadence maintainers ran these tests in November 2026. Each run held a steady load for 100 to 110 minutes. They are sustained-load tests, not maximum-throughput tests: they show what one footprint used at one load, with headroom left on the Cadence services. Your workflow shapes, payload sizes, datastore, and hardware will move the numbers. The dynamic configuration and full counters are in Benchmark details.

Setup​

Every cluster in the tests used the same footprint:

ComponentvCPU per instanceMemory per instanceInstances
Frontend12 GB5
History212 GB8
Matching12 GB3
Worker (Cadence internal service)12 GB2
Cassandra764 GB (one node had 60 GB)3
Application workers running the bench workflows24 GB10
  • Cluster. 8,192 history shards, Cassandra for persistence, and one benchmark domain with 30 days of retention.
  • Workload. A nested workflow test configured with 400 child workflows, 2 activities per child workflow, 3 activities per grandchild workflow, and 1 KB payloads. It exercises child workflows, activities, timers, search attribute updates, and continue-as-new.
  • Workers. Application workers were sized so task lists never built a backlog. Their own usage is not part of the results.
  • Configuration. The bench used the dynamic configuration values in Dynamic configuration. The replicated run set history.ReplicationTaskProcessorShardQPS to 50. That setting limits how many replication tasks each shard applies per second, and the default is 5.

The single-cluster run had no replication. The two-cluster run used a global domain active in one cluster and replicated to a standby cluster in another region. The standby received no client traffic.

Throughput​

MetricSingle clusterTwo clusters, active cluster
Decisions completed per second611613
Activities completed per second306307
Workflows completed per second6161
Workflows continued as new per second6161
User timers fired per second6161
History tasks processed per second2,6722,583
Frontend requests per second, all APIs1,6171,580
Frontend requests per second, excluding long polls922925
Persistence requests per second5,3595,434

No workflow or activity failed in either run.

CPU and memory​

Utilization is usage divided by allocation across all instances of a service, averaged over the run. "Used" multiplies that back out to CPU cores and GB.

Single cluster​

ServiceAllocatedCPU usedMemory usedBusiest instance
Frontend5 vCPU, 10 GB31% (1.6 vCPU)37% (3.7 GB)34% CPU, 38% memory
History16 vCPU, 96 GB41% (6.6 vCPU)71% (68 GB)48% CPU, 94% memory
Matching3 vCPU, 6 GB25% (0.7 vCPU)35% (2.1 GB)34% CPU, 36% memory
Worker2 vCPU, 4 GB9% (0.2 vCPU)31% (1.2 GB)9% CPU, 31% memory
Cadence total26 vCPU, 116 GB9.1 vCPU75 GB
Cassandra21 vCPU, 188 GB76% (16 vCPU)62% (117 GB)79% CPU, 68% memory

"Busiest instance" is the highest per-instance average over the run, which shows how evenly load spread across instances.

Two clusters​

ServiceActive cluster CPUActive cluster memoryStandby cluster CPUStandby cluster memory
Frontend32%39%2%28%
History44%81%37%31%, rising
Matching25%35%2%24%
Worker8%31%12%24%
Cassandra73%61%62%61%

What the measurements show:

  • History does most of the work. It used about 7 of the 9 CPU cores Cadence consumed, and nearly all of the memory.
  • History memory fills up over time. In the two-cluster run, History memory rose through the window as the per-shard caches filled, and one active History instance stayed near 94% of its limit. On the single-cluster run one History instance stayed near 94% for the whole window. Leave memory headroom on History, and bound the caches through dynamic configuration rather than relying on the container limit.
  • One task list skews Matching. History work is spread across shards, so its instances stayed closer together (33% to 48% CPU on the single-cluster run). Matching follows task lists. This bench used one task list, so one Matching instance averaged 7% CPU and another 34%. More task lists spread that work. Size each Matching instance for the busiest one, not the average.
  • Replication adds little to the active cluster. Compared with the single-cluster run, active History CPU rose from 41% to 44%, and Frontend and Matching did not change.
  • A standby cluster is not idle. Its History applies every replicated event and verifies standby tasks, which took about 37% CPU, or roughly 85% of the active cluster's History CPU. Its datastore handled about 5,100 requests per second, close to the active cluster's 5,400. Give a standby cluster the same History and datastore capacity as the active one, which it needs anyway to take over traffic on failover.
  • The datastore was the most heavily used component. At about 75% CPU, Cassandra had the least headroom, so it is the first component to scale as load grows.

Latency and availability​

These numbers confirm the footprint was not overloaded at this load. Percentiles come from server latency histograms, so each value is accurate to within one histogram bucket, roughly 10% to 20%.

MeasurementSingle clusterTwo clusters, active cluster
Persistence latency, p50 / p994.8 ms / 19.0 ms4.8 ms / 19.0 ms
RespondDecisionTaskCompleted latency, p50 / p9914.1 ms / 39.2 ms14.0 ms / 39.8 ms
RespondActivityTaskCompleted latency, p50 / p9913.7 ms / 36.7 ms13.7 ms / 38.4 ms
Persistence availability, excluding "entity not exists"99.9998%99.99999%

Frontend returned no "service busy", "service unavailable", or timeout errors in either run. The only API errors were a handful of "entity not exists" responses for tasks whose workflow had already moved on, which are client-side conditions rather than failures. In the standby cluster, which applies replicated writes, persistence latency was higher, at 15.6 ms p50 and 86.0 ms p99.

Cross-cluster replication​

In the two-cluster run, the standby cluster applied about 2,150 replication tasks per second: about 1,840 for replicated history events and about 310 for activity state. That was close to the rate at which the active cluster appended history, about 1,900 per second. End-to-end replication latency, from when the active cluster created a task to when the standby applied it, was 1.45 s at p50 and 3.84 s at p99, and stayed flat for the whole run. No shard fell behind.

The replication_latency gauge on the active cluster reports the age of each shard's oldest replication task not yet fetched by the standby. It read 0 for all 8,192 shards during this run.

Network​

The benchmark did not measure bandwidth. Request rates are in Benchmark details. What follows is which paths have to exist. Cross-region bandwidth, and its cost, grows with the event rate and payload size when the two clusters are in different zones. Cadence uses no external message broker for task dispatch. Traffic is RPC between components, plus Kafka when advanced visibility is enabled.

In-cluster​

  • Workers to Frontend. Workers open outbound connections to Frontend and long poll for tasks. Cadence never dials into a worker.
  • Between Cadence services. Frontend, History, Matching, and Worker must all reach each other for RPC and for ringpop membership.
  • Cadence to the datastore. Every service reaches the execution store. Frontend, History, and Worker also reach the visibility store, and Kafka when advanced visibility is enabled. Each process opens its own connection pool, so total database connections grow with the number of instances.

Service dependencies lists every dependency and port.

Cross-cluster​

History and Worker in each cluster must reach Frontend in the other cluster. History pulls workflow replication tasks in batches, and Worker pulls domain replication messages. Frontend can also forward API calls to the cluster where a domain is active, depending on the cluster redirection policy. Datastores never talk to each other across clusters. Cadence replicates workflow data itself, which lets the clusters use different databases and makes moving from one database to another a cluster migration.

Replication is asynchronous. Latency between regions does not slow running workflows, but it adds to replication lag, which is how much recent progress a failover can lose. Replication traffic grows with the event rate.

Sizing guidelines​

Treat these as starting points:

  • Start History with at least 2 CPU cores and enough memory for its caches. In the benchmark, 12 GB per instance with 1,024 shards per instance ran close to the limit on the busiest instance.
  • Frontend, Matching, and Worker are light at 1 CPU core and 2 GB per instance. Service averages stayed under about 40%. One-minute peaks reached about 44% CPU on Frontend and Matching, and about 43% of Frontend memory.
  • Architecture requirements recommends at least 4 instances each of Frontend, History, and Matching. Run at least 2 Worker instances as well, so internal workflows keep running if one instance is lost. Load spreads more evenly across more instances.
  • Size the datastore first. In the benchmark, it had the least headroom of any component.
  • With two clusters, give the standby the same History and datastore capacity as the active cluster.
  • Before provisioning, run the bench suite against your own hardware, datastore, and workflow shapes, and run it again whenever the setup changes. The official Helm chart sets no CPU or memory requests by default, so set them from your bench results.

Cluster monitoring shows how to chart decision, activity, and persistence rates and per-service resource use on your own cluster.

Benchmark details​

The sections above summarize the two runs. This section records the dynamic configuration and the counters behind those summaries.

Percentiles come from server latency histograms, so each value is accurate to within one histogram bucket, roughly 10% to 20%. Counts are totals over the window. Per-second figures divide that total by the length of the window. CPU and memory are container usage divided by the allocation.

Dynamic configuration​

These are the values used for both runs. The two-cluster run also set history.ReplicationTaskProcessorShardQPS to 50. Several differ from the compiled defaults. New behavior usually ships behind a dynamic configuration flag, and when scalability improves, the ceiling is raised there instead of by changing the default.

KeyValue
frontend.globalDomainrps20000
frontend.globalRatelimiterModeglobal-shadow-local
frontend.persistenceGlobalMaxQPS30000
history.enableTaskListAwareTaskSchedulerByDomaintrue
history.enableTransferQueueV2PendingTaskCountAlerttrue
history.eventsCacheMaxSizeInBytes1048576 (1 MiB)
history.executionCacheMaxByteSize1048576 (1 MiB)
history.persistenceGlobalMaxQPS500000
history.replicationBudgetManagerMaxSizeBytes104857600 (100 MiB)
history.replicationBudgetManagerMaxSizeCount1000000
history.replicatorCacheCapacity10000
history.replicatorCacheMaxSize1073741824 (1 GiB)
history.ReplicationTaskProcessorShardQPS50, two-cluster run only
history.rewriteSampleRate100
history.serializationEncodingthriftrw_snappy
history.taskProcessRPS1000000
history.workflowIDExternalRPS100
history.workflowIDInternalRPS1000
matching.enableAdaptiveScalertrue
matching.enableClientAutoConfigtrue
matching.enableGetNumberOfPartitionsFromCachetrue
matching.localPollWaitTime5ms
matching.partitionDownscaleSustainedDuration1m
matching.persistenceGlobalMaxQPS30000
system.enableConnectionRetainingDirectChoosertrue
system.minRetentionDays0

Single cluster​

100 minutes. Per-second figures divide the total by 6,000. Replication was off.

CPU and memory​

"Avg" is total usage divided by the total allocation across all instances. "Per instance avg" is the lowest and highest per-instance average over the window. "1-min min / max" is the lowest and highest single minute on any instance.

ServiceInstancesCPU avgCPU per instance avgCPU 1-min min / maxMem avgMem per instance avgMem 1-min min / max
Frontend531.3%29.3-33.9%24.4% / 44.2%36.6%35.3-38.3%34.5% / 39.7%
History841.3%33.1-48.2%29.0% / 71.3%71.1%59.4-93.8%59.3% / 93.9%
Matching324.5%7.1-34.0%6.3% / 43.4%35.3%34.7-36.0%34.0% / 36.7%
Worker28.5%8.4-8.5%7.6% / 10.8%30.8%30.6-31.1%30.2% / 32.6%
Cassandra3 nodes75.9%72.6-78.9%57.5% / 88.2%62.0%53.9-67.6%49.6% / 73.9%

Whole-service CPU stayed in a narrow band each minute: Frontend 30-34%, History 38-44%, Matching 24-28%, Worker 8-10%. Cassandra ranged from 59% to 83% because it dipped to about 59-62% twice.

Workflows, decisions, activities, and timers​

MetricTotalPer second
Decisions completed3,668,497611.4
Activities completed1,834,257305.7
Activities failed00
Workflows completed366,89861.2
Workflows continued as new366,88961.2
Workflows failed / timed out / terminated0 / 0 / 00
User timers fired366,88961.2

About 75% of activities were locally dispatched: 466,265 TransferActivity tasks for 1,834,257 completed activities.

History tasks​

Counts include retries, so a task that is tried again is counted more than once. 7 task errors occurred in the window.

Task typeTotalPer second
TimerDecisionTimeout6,602,9031,100.5
TransferDecision3,668,473611.4
TimerActivityTimeout2,310,112385.0
TransferRecordWorkflowStarted733,799122.3
TransferCloseExecution733,789122.3
TransferActivity466,26577.7
TimerWorkflowTimeout369,32661.6
TransferUpsertSearchAttributes366,91061.2
TransferStartChildExecution366,89561.2
TimerUserTimer366,88961.2
TimerDeleteHistoryEvent47,4657.9
TimerActivityRetryTimer40.0
Total16,032,8302,672.1

Processing time is the time spent executing the task. Queue time is end to end, from when the task was due until it finished. Both are p50 / p99, in milliseconds.

Task typeProcessingQueue
TransferDecision15.5 / 42.624.2 / 60.4
TransferActivity12.9 / 32.021.3 / 53.2
TransferRecordWorkflowStarted13.1 / 33.921.9 / 56.0
TransferCloseExecution16.2 / 44.824.0 / 61.9
TransferUpsertSearchAttributes7.7 / 25.915.8 / 41.2
TransferStartChildExecution40.2 / 88.948.6 / 114.2
TimerUserTimer11.4 / 31.312.1 / 32.0
TimerDecisionTimeout0.5 / 1.00.6 / 10.5
TimerActivityTimeout0.5 / 1.00.6 / 10.2
TimerWorkflowTimeout2.5 / 11.33.3 / 16.3
TimerDeleteHistoryEvent30.0 / 63.030.6 / 63.7

Frontend​

APIRequestsPer second
All APIs9,701,8981,617.0
All APIs except long polls5,531,895922.0
PollForDecisionTask3,685,466614.2
RespondDecisionTaskCompleted3,666,665611.1
RespondActivityTaskCompleted1,834,179305.7
PollForActivityTask484,53780.8
Other (replication, heartbeat)31,0515.2
APIp50 (ms)p99 (ms)ErrorsAvailability
RespondDecisionTaskCompleted14.139.2799.99981%
RespondActivityTaskCompleted13.736.7399.99984%

All 10 errors were "entity not exists": the task or workflow was already gone. There were no "service busy", "service unavailable", or timeout errors. Excluding those client-side errors, both APIs were at 100%.

Persistence​

OperationRequestsPer second
All operations32,150,9595,358.5
AppendHistoryNodes11,372,3011,895.4
UpdateWorkflowExecution11,104,8061,850.8
ReadHistoryBranch3,667,084611.2
GetHistoryTasks2,030,318338.4
RangeCompleteHistoryTask2,022,159337.0
GetWorkflowExecution979,073163.2
All other operations975,218162.5
ScopeRequestsp50 (ms)p99 (ms)
All services, all operations32.15M4.819.0
History28.43M5.019.6
Frontend3.69M3.714.6
Matching36K5.118.7
AppendHistoryNodes11.37M3.012.5
UpdateWorkflowExecution11.11M7.422.3
CategoryCountAvailability
Requests32,150,959
Unexpected errors, all 51 timeouts5199.99984%
Also counting "entity not exists" (4,616)4,66799.9855%

"Entity not exists" means the record was not there, for example a workflow that had already closed. Those are not counted as failures.

Two clusters, active cluster​

110 minutes. Per-second figures divide the total by 6,600. This cluster served all client traffic.

CPU and memory​

ServiceInstancesCPU avgCPU per instance avgCPU 1-min min / maxMem avgMem per instance avgMem 1-min min / max
Frontend531.7%29.9-33.9%24.7% / 41.3%39.4%38.3-41.0%37.5% / 42.9%
History843.6%35.1-50.8%30.3% / 68.5%80.7%65.2-94.4%63.5% / 94.7%
Matching325.1%23.0-28.9%14.7% / 42.4%35.2%35.2-35.4%34.1% / 36.8%
Worker28.4%8.4-8.4%7.6% / 10.8%30.9%30.9-30.9%30.3% / 31.9%
Cassandra3 nodes73.0%72.2-74.2%67.8% / 79.8%61.2%52.8-72.0%45.6% / 89.4%

History memory rose through the window, from 78.5% to 82.7%. Cassandra memory varied from 52.4% to 73.6%. Matching CPU spiked once to 35%.

Workflows, decisions, activities, and timers​

MetricTotalPer second
Decisions completed4,048,209613.4
Activities completed2,023,709306.6
Activities failed00
Workflows completed404,81261.3
Workflows continued as new404,79761.3
Workflows failed / timed out / terminated0 / 0 / 00
User timers fired404,83961.3

About 88.5% of activities were locally dispatched: 232,290 TransferActivity tasks for 2,023,709 completed activities.

History tasks​

6 task errors occurred in the window.

Task typeTotalPer second
TimerDecisionTimeout7,286,1841,104.0
TransferDecision4,048,210613.4
TimerActivityTimeout2,250,336341.0
TransferRecordWorkflowStarted809,592122.7
TransferCloseExecution809,503122.7
TimerUserTimer404,83961.3
TransferUpsertSearchAttributes404,82761.3
TransferStartChildExecution404,76161.3
TimerWorkflowTimeout393,88859.7
TransferActivity232,29035.2
TimerDeleteHistoryEvent110.0
Total17,044,4412,582.5
Task typeProcessing (p50 / p99, ms)Queue (p50 / p99, ms)
TransferDecision15.4 / 43.124.1 / 60.1
TransferActivity12.7 / 39.220.9 / 57.5
TransferRecordWorkflowStarted13.3 / 41.721.8 / 60.2
TransferCloseExecution16.5 / 54.524.3 / 63.9
TransferUpsertSearchAttributes8.0 / 30.816.0 / 44.4
TransferStartChildExecution40.2 / 89.548.8 / 113.3
TimerUserTimer11.2 / 30.911.9 / 31.9
TimerDecisionTimeout0.5 / 1.00.6 / 11.3
TimerActivityTimeout0.5 / 1.00.6 / 11.2
TimerWorkflowTimeout2.9 / 15.33.6 / 21.2

Frontend​

APIRequestsPer second
All APIs10,426,0891,579.7
All APIs except long polls6,105,644925.1
PollForDecisionTask4,067,936616.4
RespondDecisionTaskCompleted4,047,833613.3
RespondActivityTaskCompleted2,023,898306.7
PollForActivityTask252,50938.3
Other (replication, heartbeat)33,9135.1
APIp50 (ms)p99 (ms)ErrorsAvailability
RespondDecisionTaskCompleted14.039.80100%
RespondActivityTaskCompleted13.738.40100%

Persistence​

OperationRequestsPer second
All operations35,864,3385,434.0
AppendHistoryNodes12,548,2681,901.3
UpdateWorkflowExecution11,970,9781,813.8
ReadHistoryBranch4,047,715613.3
GetHistoryTasks3,278,520496.8
RangeCompleteHistoryTask2,156,432326.7
GetWorkflowExecution1,023,674155.1
All other operations838,751127.1
ScopeRequestsp50 (ms)p99 (ms)
All services, all operations35.86M4.819.0
History31.75M5.119.7
Frontend4.07M3.612.9
Matching42K4.916.8
AppendHistoryNodes12.55M2.912.8
UpdateWorkflowExecution11.97M7.321.6
GetHistoryTasks3.28M6.622.8
CategoryCountAvailability
Requests35,864,338
Unexpected errors399.99999%
Also counting "entity not exists"5,07099.9859%

Two clusters, standby cluster​

Same 110-minute window. The standby applied replicated changes and ran standby tasks. It completed no decisions and no activities.

CPU and memory​

ServiceInstancesCPU avgCPU per instance avgCPU 1-min min / maxMem avgMem per instance avgMem 1-min min / max
Frontend52.1%2.0-2.3%1.7% / 9.7%28.4%27.5-29.5%26.2% / 32.5%
History836.6%30.5-46.4%27.4% / 53.5%30.5%25.4-40.7%21.0% / 47.9%
Matching31.5%1.4-1.5%1.1% / 4.5%24.4%23.5-24.8%23.1% / 27.5%
Worker212.0%11.7-12.3%8.6% / 15.0%24.3%24.1-24.4%23.4% / 24.9%
Cassandra3 nodes62.0%53.4-66.7%48.7% / 71.1%61.2%61.1-61.4%55.3% / 67.2%

History memory climbed from 25.8% in the first 10 minutes to 35.1% in the last 10.

Workflows and history tasks​

MetricTotalPer second
Decisions completed00
Activities completed00
Workflows completed (replicated closes)404,81561.3
Workflows continued as new (replicated closes)404,80661.3
Workflows failed / timed out / terminated0 / 0 / 00
User timers fired00

The completed workflows are closes replicated from the active cluster, not workflows that ran on the standby.

Task typeTotalPer second
TransferStandbyDecision4,144,162627.9
TimerStandbyDecisionTimeout4,048,279613.4
TimerStandbyActivityTimeout3,923,645594.5
TransferStandbyActivity2,048,081310.3
TransferStandbyRecordWorkflowStarted809,622122.7
TransferStandbyCloseExecution809,526122.7
TimerStandbyUserTimer596,83590.4
TransferStandbyStartChildExecution421,39863.8
TransferStandbyUpsertSearchAttributes404,80861.3
TimerStandbyWorkflowTimeout394,04359.7
Total17,600,3992,666.7

There were few re-checks, because replication was keeping up. TransferStandbyDecision ran 4.14 million times for 4.05 million tasks.

A p99 near 25 to 33 seconds is how long a standby task waits for the matching change to arrive from the active cluster, not processing time.

Task typeProcessing (p50 / p99, ms)Queue (p50 / p99, ms)
TransferStandbyDecision41.4 / about 28,70073.1 / about 28,700
TransferStandbyActivity16.7 / about 24,80061.0 / about 24,800
TransferStandbyRecordWorkflowStarted68.8 / 293.6107.4 / 410.9
TransferStandbyCloseExecution16.1 / 105.745.9 / 226.4
TransferStandbyUpsertSearchAttributes38.4 / 219.686.7 / 361.6
TransferStandbyStartChildExecution35.2 / about 30,40062.5 / about 30,400
TimerStandbyUserTimer102.8 / about 32,600169.8 / about 32,600
TimerStandbyDecisionTimeout0.5 / 40.90.9 / 64.0
TimerStandbyActivityTimeout0.5 / 39.00.8 / 55.3
TimerStandbyWorkflowTimeout2.5 / 80.63.7 / 94.4

Frontend and persistence​

The standby Frontend served replication fetches, not worker traffic.

APIRequestsPer second
All APIs54,0118.2
GetReplicationMessages24,1183.7
PollForDecisionTask11,8881.8
PollForActivityTask11,8811.8
GetDomainReplicationMessages6,1190.9
DescribeDomain50.0
OperationRequestsPer second
All operations33,936,2245,141.9
UpdateWorkflowExecution13,764,9392,085.6
AppendHistoryNodes12,550,4201,901.6
GetHistoryTasks3,067,371464.8
RangeCompleteHistoryTask2,293,556347.5
GetWorkflowExecution1,026,465155.5
All other operations1,233,473186.9
ScopeRequestsp50 (ms)p99 (ms)
All services, all operations33.93M15.686.0
History33.88M15.686.0
Frontend33K3.833.9
Matching20K4.040.2
UpdateWorkflowExecution13.76M21.692.4
AppendHistoryNodes12.55M13.779.7
GetHistoryTasks3.07M6.573.4
CategoryCountAvailability
Requests33,936,224
Unexpected errors199.99999%
Also counting "entity not exists"413,14398.78%

About 405,000 of the "entity not exists" errors are the expected lookup for a current workflow when a replicated workflow is created.

Replication​

Task typeTotalPer second
HistoryReplicationV212,144,3491,840.1
SyncActivity2,024,069306.7
Total14,168,4182,146.7
MetricWhat it measuresCountp50p99
Replication task latency, all typesFrom creation on the active cluster to apply on the standby14.17M1.45 s3.84 s
HistoryReplicationV2Replicated history events12.14M1.44 s3.83 s
SyncActivityActivity state sync2.02M1.55 s3.90 s
Fetch latencyOne standby fetch from the active cluster25K100 ms232 ms
Apply latencyApplying one fetched batch1.89M305 ms1.2 s

In every 10-minute slice, p50 was 1.44-1.48 s and p99 was 3.8-3.9 s. The active cluster's replication lag gauge read 0 for all 8,192 shards.

Replication lag on the standby cluster at p50

p50 stayed between about 1 and 2 seconds, with one spike to about 3 seconds.

Replication lag on the standby cluster at p99

p99 stayed near 4 seconds, with two spikes to about 6 seconds.