@@ -44,43 +44,40 @@ var DefaultGetter Getter
4444var Config Schema
4545
4646var Default = Schema {
47- WorkflowLimit : Int (200 ),
48- WorkflowExecutionConcurrencyLimit : Int (200 ), // as discussed on 10/23/2025 increase to 200
49- WorkflowTriggerRateLimit : Rate (200 , 200 ), // rps value and burst value globally
50- GatewayUnauthenticatedRequestRateLimit : Rate (rate .Every (time .Second / 100 ), 100 ), // removed, but enforced in infra, Jin is expert, global
51- GatewayUnauthenticatedRequestRateLimitPerIP : Rate (rate .Every (time .Second ), 1 ), // removed,
52- GatewayIncomingPayloadSizeLimit : Size (1 * config .MByte ), // this exists make it 1MB
47+ WorkflowLimit : Int (200 ),
48+ WorkflowExecutionConcurrencyLimit : Int (200 ),
49+ WorkflowTriggerRateLimit : Rate (200 , 200 ),
50+ GatewayIncomingPayloadSizeLimit : Size (1 * config .MByte ),
5351
5452 PerOrg : Orgs {
55- WorkflowDeploymentRateLimit : Rate (rate .Every (time .Minute ), 1 ), // one deploy per minute and no burst
56- ZeroBalancePruningTimeout : Duration (24 * time .Hour ), // account has zero balance we garbage collect resources (not in effect)
53+ WorkflowDeploymentRateLimit : Rate (rate .Every (time .Minute ), 1 ),
54+ ZeroBalancePruningTimeout : Duration (24 * time .Hour ),
5755 },
5856 PerOwner : Owners {
59- WorkflowExecutionConcurrencyLimit : Int (5 ), //
60- WorkflowTriggerRateLimit : Rate (5 , 5 ), // rps value and burst value for this owner on this DON
57+ WorkflowExecutionConcurrencyLimit : Int (5 ),
58+ WorkflowTriggerRateLimit : Rate (5 , 5 ),
6159 },
6260 PerWorkflow : Workflows {
63- TriggerLimit : Int (10 ), // max number of triggers registered
64- TriggerRateLimit : Rate (rate .Every (30 * time .Second ), 3 ), // how often you run
61+ TriggerRateLimit : Rate (rate .Every (30 * time .Second ), 3 ),
6562 TriggerRegistrationsTimeout : Duration (10 * time .Second ),
6663 TriggerEventQueueLimit : Int (1_000 ),
6764 TriggerEventQueueTimeout : Duration (10 * time .Minute ),
68- TriggerSubscriptionTimeout : Duration (15 * time .Second ), // top level and includes TriggerRateLimit
69- TriggerSubscriptionLimit : Int (10 ), // number of subscriptions in this phase ... should thi be here if we have line 63 TriggerLimit?
70- CapabilityConcurrencyLimit : Int (3 ), // concurrent number of calls, but they will wait, they will block till they can run. execution helper is paused
71- CapabilityCallTimeout : Duration (3 * time .Minute ), // timeout on capability call
72- SecretsConcurrencyLimit : Int (5 ),
73- ExecutionConcurrencyLimit : Int (5 ), // same as per owner , question on http
74- ExecutionTimeout : Duration (5 * time .Minute ), //changing to 5 for now
75- ExecutionResponseLimit : Size (100 * config .KByte ), // go to logs? in future wf invoke others
76- WASMMemoryLimit : Size (100 * config .MByte ), // need load test
77- WASMBinarySizeLimit : Size (100 * config .MByte ),
78- WASMCompressedBinarySizeLimit : Size (20 * config .MByte ), // limit for storage service (check with AW if another place)
79- WASMConfigSizeLimit : Size (1 * config .MByte ), // make 1MB
80- WASMSecretsSizeLimit : Size (1 * config .MByte ), //make 1MB
81- WASMResponseSizeLimit : Size (100 * config .KByte ), // what is diff between this and ExecutionResponseLimit (possible ) Needs investi
82- ConsensusObservationSizeLimit : Size (100 * config .KByte ), // investigate this - load test
83- ConsensusCallsLimit : Int (2000 ), // plugged into execution helper (consider removing)
65+ TriggerSubscriptionTimeout : Duration (15 * time .Second ),
66+ TriggerSubscriptionLimit : Int (10 ),
67+ CapabilityConcurrencyLimit : Int (3 ),
68+ CapabilityCallTimeout : Duration (3 * time .Minute ),
69+ SecretsConcurrencyLimit : Int (5 ),
70+ ExecutionConcurrencyLimit : Int (5 ),
71+ ExecutionTimeout : Duration (5 * time .Minute ),
72+ ExecutionResponseLimit : Size (100 * config .KByte ),
73+ WASMMemoryLimit : Size (100 * config .MByte ),
74+ WASMBinarySizeLimit : Size (100 * config .MByte ),
75+ WASMCompressedBinarySizeLimit : Size (20 * config .MByte ),
76+ WASMConfigSizeLimit : Size (config .MByte ),
77+ WASMSecretsSizeLimit : Size (config .MByte ),
78+ WASMResponseSizeLimit : Size (100 * config .KByte ),
79+ ConsensusObservationSizeLimit : Size (100 * config .KByte ), // investigate this - load test
80+ ConsensusCallsLimit : Int (2000 ), // plugged into execution helper (consider removing)
8481 LogLineLimit : Size (config .KByte ),
8582 LogEventLimit : Int (1_000 ),
8683
@@ -125,12 +122,10 @@ var Default = Schema{
125122}
126123
127124type Schema struct {
128- WorkflowLimit Setting [int ] `unit:"{workflow}"`
129- WorkflowExecutionConcurrencyLimit Setting [int ] `unit:"{workflow}"`
130- WorkflowTriggerRateLimit Setting [config.Rate ]
131- GatewayUnauthenticatedRequestRateLimit Setting [config.Rate ]
132- GatewayUnauthenticatedRequestRateLimitPerIP Setting [config.Rate ]
133- GatewayIncomingPayloadSizeLimit Setting [config.Size ]
125+ WorkflowLimit Setting [int ] `unit:"{workflow}"`
126+ WorkflowExecutionConcurrencyLimit Setting [int ] `unit:"{workflow}"`
127+ WorkflowTriggerRateLimit Setting [config.Rate ]
128+ GatewayIncomingPayloadSizeLimit Setting [config.Size ]
134129
135130 PerOrg Orgs `scope:"org"`
136131 PerOwner Owners `scope:"owner"`
@@ -147,7 +142,6 @@ type Owners struct {
147142}
148143
149144type Workflows struct {
150- TriggerLimit Setting [int ] `unit:"{trigger}"`
151145 TriggerRateLimit Setting [config.Rate ]
152146 TriggerRegistrationsTimeout Setting [time.Duration ]
153147 TriggerSubscriptionTimeout Setting [time.Duration ]
@@ -164,13 +158,13 @@ type Workflows struct {
164158 ExecutionTimeout Setting [time.Duration ]
165159 ExecutionResponseLimit Setting [config.Size ]
166160
167- WASMExecutionTimeout Setting [time.Duration ]
168161 WASMMemoryLimit Setting [config.Size ]
169162 WASMBinarySizeLimit Setting [config.Size ]
170163 WASMCompressedBinarySizeLimit Setting [config.Size ]
171164 WASMConfigSizeLimit Setting [config.Size ]
172165 WASMSecretsSizeLimit Setting [config.Size ]
173- WASMResponseSizeLimit Setting [config.Size ]
166+ // Deprecated: use ExecutionResponseLimit
167+ WASMResponseSizeLimit Setting [config.Size ]
174168
175169 // Deprecated: use Consensus.ObservationSizeLimit
176170 ConsensusObservationSizeLimit Setting [config.Size ]
0 commit comments