|
| 1 | +# CRE Settings |
| 2 | + |
| 3 | +```mermaid |
| 4 | +--- |
| 5 | +title: Legend |
| 6 | +--- |
| 7 | +flowchart |
| 8 | + bound{{Bound}} |
| 9 | + gate[/Gate\] |
| 10 | + queue[[Queue]] |
| 11 | + rate[\Rate/] |
| 12 | + resource([Resource]) |
| 13 | + time>Time] |
| 14 | + |
| 15 | + bound:::bound |
| 16 | + gate:::gate |
| 17 | + queue:::queue |
| 18 | + rate:::rate |
| 19 | + resource:::resource |
| 20 | + time:::time |
| 21 | +
|
| 22 | + classDef bound stroke:#f00 |
| 23 | + classDef gate stroke:#0f0 |
| 24 | + classDef queue stroke:#00f |
| 25 | + classDef rate stroke:#ff0 |
| 26 | + classDef resource stroke:#f0f |
| 27 | + classDef time stroke:#0ff |
| 28 | +``` |
| 29 | + |
| 30 | + |
| 31 | +```mermaid |
| 32 | +--- |
| 33 | +title: Limits |
| 34 | +--- |
| 35 | +flowchart |
| 36 | + subgraph handleRequest[httpServer/websocketServer.handleRequest] |
| 37 | + GatewayIncomingPayloadSizeLimit{{GatewayIncomingPayloadSizeLimit}}:::bound |
| 38 | + end |
| 39 | +%% WorkflowLimit - Deprecated |
| 40 | +%% TODO unused |
| 41 | +%% PerOrg.ZeroBalancePruningTimeout |
| 42 | +
|
| 43 | + subgraph Store.FetchWorkflowArtifacts |
| 44 | + PerWorkflow.WASMConfigSizeLimit{{PerWorkflow.WASMConfigSizeLimit}}:::bound |
| 45 | + PerWorkflow.WASMBinarySizeLimit{{PerWorkflow.WASMBinarySizeLimit}}:::bound |
| 46 | + PerWorkflow.WASMSecretsSizeLimit{{PerWorkflow.WASMSecretsSizeLimit}}:::bound |
| 47 | + end |
| 48 | +
|
| 49 | + subgraph host.NewModule |
| 50 | + PerWorkflow.WASMCompressedBinarySizeLimit{{PerWorkflow.WASMCompressedBinarySizeLimit}}:::bound |
| 51 | + end |
| 52 | + |
| 53 | + subgraph Engine.init |
| 54 | + WorkflowExecutionConcurrencyLimit([WorkflowExecutionConcurrencyLimit]):::resource |
| 55 | + PerOwner.WorkflowExecutionConcurrencyLimit([PerOwner.WorkflowExecutionConcurrencyLimit]):::resource |
| 56 | +
|
| 57 | + WorkflowExecutionConcurrencyLimit-->PerOwner.WorkflowExecutionConcurrencyLimit |
| 58 | + end |
| 59 | + |
| 60 | + subgraph Engine.runTriggerSubscriptionPhase |
| 61 | +
|
| 62 | + PerWorkflow.TriggerSubscriptionTimeout>PerWorkflow.TriggerSubscriptionTimeout]:::time |
| 63 | + PerWorkflow.WASMMemoryLimit{{PerWorkflow.WASMMemoryLimit}}:::bound |
| 64 | + PerWorkflow.TriggerRegistrationsTimeout>PerWorkflow.TriggerRegistrationsTimeout]:::time |
| 65 | + PerWorkflow.TriggerSubscriptionLimit{{PerWorkflow.TriggerSubscriptionLimit}}:::bound |
| 66 | +
|
| 67 | + PerWorkflow.TriggerSubscriptionTimeout-->PerWorkflow.WASMMemoryLimit-->PerWorkflow.TriggerSubscriptionLimit-->PerWorkflow.TriggerRegistrationsTimeout |
| 68 | + end |
| 69 | +
|
| 70 | + subgraph triggers |
| 71 | + direction TB |
| 72 | +
|
| 73 | + subgraph PerWorkflow.CRONTrigger |
| 74 | + FastestScheduleInterval>FastestScheduleInterval]:::time |
| 75 | + end |
| 76 | + subgraph PerWorkflow.HTTPTrigger |
| 77 | + RateLimit[\RateLimit/]:::rate |
| 78 | + end |
| 79 | + subgraph PerWorkflow.LogTrigger |
| 80 | + direction LR |
| 81 | +
|
| 82 | + EventRateLimit[\EventRateLimit/]:::rate |
| 83 | + EventSizeLimit{{EventSizeLimit}}:::bound |
| 84 | + FilterAddressLimit{{FilterAddressLimit}}:::bound |
| 85 | + FilterTopicsPerSlotLimit{{FilterTopicsPerSlotLimit}}:::bound |
| 86 | + end |
| 87 | + end |
| 88 | +
|
| 89 | + subgraph Engine.handleAllTriggerEvents |
| 90 | + PerWorkflow.TriggerEventQueueLimit[[PerWorkflow.TriggerEventQueueLimit]]:::queue |
| 91 | + PerWorkflow.TriggerEventQueueTimeout>PerWorkflow.TriggerEventQueueTimeout]:::time |
| 92 | + PerWorkflow.ExecutionConcurrencyLimit([PerWorkflow.ExecutionConcurrencyLimit]):::resource |
| 93 | +
|
| 94 | + PerWorkflow.TriggerEventQueueLimit-->PerWorkflow.TriggerEventQueueTimeout-->PerWorkflow.ExecutionConcurrencyLimit |
| 95 | + end |
| 96 | +
|
| 97 | + subgraph Engine.startExecution |
| 98 | + direction TB |
| 99 | + |
| 100 | + subgraph logs |
| 101 | + PerWorkflow.LogLineLimit{{PerWorkflow.LogLineLimit}}:::bound |
| 102 | + PerWorkflow.LogEventLimit{{PerWorkflow.LogEventLimit}}:::bound |
| 103 | + end |
| 104 | + |
| 105 | + PerWorkflow.ExecutionTimeout>PerWorkflow.ExecutionTimeout]:::time |
| 106 | + PerWorkflow.ExecutionResponseLimit{{PerWorkflow.ExecutionResponseLimit}}:::bound |
| 107 | +
|
| 108 | + PerWorkflow.ExecutionTimeout-->PerWorkflow.ExecutionResponseLimit |
| 109 | + end |
| 110 | + |
| 111 | + subgraph ExecutionHelper.GetSecrets |
| 112 | + PerWorkflow.SecretsConcurrencyLimit([PerWorkflow.SecretsConcurrencyLimit]):::resource |
| 113 | + end |
| 114 | + subgraph ExecutionHelper.CallCapability |
| 115 | + PerWorkflow.ChainAllowed[/PerWorkflow.ChainAllowed\]:::gate |
| 116 | + PerWorkflow.CapabilityConcurrencyLimit([PerWorkflow.CapabilityConcurrencyLimit]):::resource |
| 117 | + PerWorkflow.CapabilityCallTimeout>PerWorkflow.CapabilityCallTimeout]:::time |
| 118 | + |
| 119 | + PerWorkflow.ChainAllowed-->PerWorkflow.CapabilityConcurrencyLimit-->PerWorkflow.CapabilityCallTimeout |
| 120 | + end |
| 121 | + |
| 122 | + subgraph actions |
| 123 | + direction TB |
| 124 | + |
| 125 | + subgraph PerWorkflow.ChainWrite |
| 126 | + direction LR |
| 127 | + |
| 128 | + TargetsLimit{{TargetsLimit}}:::bound |
| 129 | + ReportSizeLimit{{ReportSizeLimit}}:::bound |
| 130 | +
|
| 131 | + subgraph EVM |
| 132 | + GasLimit{{GasLimit}}:::bound |
| 133 | + end |
| 134 | + end |
| 135 | + subgraph PerWorkflow.ChainRead |
| 136 | + direction LR |
| 137 | + chainread.CallLimit{{CallLimit}}:::bound |
| 138 | + LogQueryBlockLimit{{LogQueryBlockLimit}}:::bound |
| 139 | + PayloadSizeLimit{{PayloadSizeLimit}}:::bound |
| 140 | + end |
| 141 | + subgraph PerWorkflow.Consensus |
| 142 | + ObservationSizeLimit{{ObservationSizeLimit}}:::bound |
| 143 | + consensus.CallLimit{{CallLimit}}:::bound |
| 144 | + end |
| 145 | + subgraph PerWorkflow.HTTPAction |
| 146 | + direction LR |
| 147 | + |
| 148 | + httpaction.CallLimit{{CallLimit}}:::bound |
| 149 | + CacheAgeLimit{{CacheAgeLimit}}:::bound |
| 150 | + ConnectionTimeout{{ConnectionTimeout}}:::bound |
| 151 | + RequestSizeLimit{{RequestSizeLimit}}:::bound |
| 152 | + ResponseSizeLimit{{ResponseSizeLimit}}:::bound |
| 153 | + end |
| 154 | + subgraph PerWorkflow.Secrets |
| 155 | + secrets.CallLimit{{CallLimit}}:::bound |
| 156 | + end |
| 157 | + end |
| 158 | + subgraph vault |
| 159 | + VaultCiphertextSizeLimit{{VaultCiphertextSizeLimit}}:::bound |
| 160 | + VaultIdentifierKeySizeLimit{{VaultIdentifierKeySizeLimit}}:::bound |
| 161 | + VaultIdentifierOwnerSizeLimit{{VaultIdentifierOwnerSizeLimit}}:::bound |
| 162 | + VaultIdentifierNamespaceSizeLimit{{VaultIdentifierNamespaceSizeLimit}}:::bound |
| 163 | + VaultPluginBatchSizeLimit{{VaultPluginBatchSizeLimit}}:::bound |
| 164 | + VaultRequestBatchSizeLimit{{VaultRequestBatchSizeLimit}}:::bound |
| 165 | + PerOwner.VaultSecretsLimit{{PerOwner.VaultSecretsLimit}}:::bound |
| 166 | + end |
| 167 | +
|
| 168 | + handleRequest-->Store.FetchWorkflowArtifacts-->host.NewModule-->Engine.init-->Engine.runTriggerSubscriptionPhase-->triggers-->Engine.handleAllTriggerEvents-->Engine.startExecution |
| 169 | + Engine.startExecution-->ExecutionHelper.CallCapability-->actions |
| 170 | + Engine.startExecution-->PerWorkflow.SecretsConcurrencyLimit-->vault |
| 171 | +
|
| 172 | + classDef bound stroke:#f00 |
| 173 | + classDef gate stroke:#0f0 |
| 174 | + classDef queue stroke:#00f |
| 175 | + classDef rate stroke:#ff0 |
| 176 | + classDef resource stroke:#f0f |
| 177 | + classDef time stroke:#0ff |
| 178 | +``` |
0 commit comments