@@ -44,44 +44,40 @@ var DefaultGetter Getter
4444var Config Schema
4545
4646var Default = Schema {
47- WorkflowLimit : Int (200 ),
48- WorkflowExecutionConcurrencyLimit : Int (50 ),
49- WorkflowTriggerRateLimit : Rate (200 , 200 ),
50- GatewayUnauthenticatedRequestRateLimit : Rate (rate .Every (time .Second / 100 ), 100 ),
51- GatewayUnauthenticatedRequestRateLimitPerIP : Rate (rate .Every (time .Second ), 1 ),
52- GatewayIncomingPayloadSizeLimit : Size (10 * config .KByte ),
47+ WorkflowLimit : Int (200 ),
48+ WorkflowExecutionConcurrencyLimit : Int (200 ),
49+ WorkflowTriggerRateLimit : Rate (200 , 200 ),
50+ GatewayIncomingPayloadSizeLimit : Size (1 * config .MByte ),
5351
5452 PerOrg : Orgs {
5553 WorkflowDeploymentRateLimit : Rate (rate .Every (time .Minute ), 1 ),
5654 ZeroBalancePruningTimeout : Duration (24 * time .Hour ),
5755 },
5856 PerOwner : Owners {
59- WorkflowExecutionConcurrencyLimit : Int (50 ),
60- WorkflowTriggerRateLimit : Rate (200 , 200 ),
57+ WorkflowExecutionConcurrencyLimit : Int (5 ),
58+ WorkflowTriggerRateLimit : Rate (5 , 5 ),
6159 },
6260 PerWorkflow : Workflows {
63- TriggerLimit : Int (10 ),
6461 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 (5 * time .Second ),
65+ TriggerSubscriptionTimeout : Duration (15 * time .Second ),
6966 TriggerSubscriptionLimit : Int (10 ),
7067 CapabilityConcurrencyLimit : Int (3 ),
71- CapabilityCallTimeout : Duration (8 * time .Minute ),
72- SecretsConcurrencyLimit : Int (3 ),
73- ExecutionConcurrencyLimit : Int (10 ),
74- ExecutionTimeout : Duration (10 * time .Minute ),
68+ CapabilityCallTimeout : Duration (3 * time .Minute ),
69+ SecretsConcurrencyLimit : Int (5 ),
70+ ExecutionConcurrencyLimit : Int (5 ),
71+ ExecutionTimeout : Duration (5 * time .Minute ),
7572 ExecutionResponseLimit : Size (100 * config .KByte ),
76- WASMExecutionTimeout : Duration (60 * time .Second ),
7773 WASMMemoryLimit : Size (100 * config .MByte ),
7874 WASMBinarySizeLimit : Size (100 * config .MByte ),
7975 WASMCompressedBinarySizeLimit : Size (20 * config .MByte ),
80- WASMConfigSizeLimit : Size (30 * config .MByte ),
81- WASMSecretsSizeLimit : Size (30 * config .MByte ),
82- WASMResponseSizeLimit : Size (5 * config .MByte ),
83- ConsensusObservationSizeLimit : Size (10 * config .KByte ),
84- ConsensusCallsLimit : Int (2 ),
76+ WASMConfigSizeLimit : Size (config .MByte ),
77+ WASMSecretsSizeLimit : Size (config .MByte ),
78+ WASMResponseSizeLimit : Size (100 * config .KByte ),
79+ ConsensusObservationSizeLimit : Size (100 * config .KByte ),
80+ ConsensusCallsLimit : Int (2000 ),
8581 LogLineLimit : Size (config .KByte ),
8682 LogEventLimit : Int (1_000 ),
8783
@@ -100,20 +96,20 @@ var Default = Schema{
10096 },
10197
10298 ChainWrite : chainWrite {
103- TargetsLimit : Int (3 ),
99+ TargetsLimit : Int (10 ),
104100 ReportSizeLimit : Size (config .KByte ),
105101 EVM : evmChainWrite {
106102 TransactionGasLimit : Uint64 (5_000_000 ),
107103 },
108104 },
109105 ChainRead : chainRead {
110- CallLimit : Int (3 ),
106+ CallLimit : Int (10 ),
111107 LogQueryBlockLimit : Uint64 (100 ),
112108 PayloadSizeLimit : Size (5 * config .KByte ),
113109 },
114110 Consensus : consensus {
115- ObservationSizeLimit : Size (10 * config .KByte ),
116- CallLimit : Int (2 ),
111+ ObservationSizeLimit : Size (100 * config .KByte ),
112+ CallLimit : Int (2000 ),
117113 },
118114 HTTPAction : httpAction {
119115 CallLimit : Int (5 ),
@@ -126,12 +122,10 @@ var Default = Schema{
126122}
127123
128124type Schema struct {
129- WorkflowLimit Setting [int ] `unit:"{workflow}"`
130- WorkflowExecutionConcurrencyLimit Setting [int ] `unit:"{workflow}"`
131- WorkflowTriggerRateLimit Setting [config.Rate ]
132- GatewayUnauthenticatedRequestRateLimit Setting [config.Rate ]
133- GatewayUnauthenticatedRequestRateLimitPerIP Setting [config.Rate ]
134- 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 ]
135129
136130 PerOrg Orgs `scope:"org"`
137131 PerOwner Owners `scope:"owner"`
@@ -148,7 +142,6 @@ type Owners struct {
148142}
149143
150144type Workflows struct {
151- TriggerLimit Setting [int ] `unit:"{trigger}"`
152145 TriggerRateLimit Setting [config.Rate ]
153146 TriggerRegistrationsTimeout Setting [time.Duration ]
154147 TriggerSubscriptionTimeout Setting [time.Duration ]
@@ -165,13 +158,13 @@ type Workflows struct {
165158 ExecutionTimeout Setting [time.Duration ]
166159 ExecutionResponseLimit Setting [config.Size ]
167160
168- WASMExecutionTimeout Setting [time.Duration ]
169161 WASMMemoryLimit Setting [config.Size ]
170162 WASMBinarySizeLimit Setting [config.Size ]
171163 WASMCompressedBinarySizeLimit Setting [config.Size ]
172164 WASMConfigSizeLimit Setting [config.Size ]
173165 WASMSecretsSizeLimit Setting [config.Size ]
174- WASMResponseSizeLimit Setting [config.Size ]
166+ // Deprecated: use ExecutionResponseLimit
167+ WASMResponseSizeLimit Setting [config.Size ]
175168
176169 // Deprecated: use Consensus.ObservationSizeLimit
177170 ConsensusObservationSizeLimit Setting [config.Size ]
0 commit comments