Set sequencer resource limits¶
Protect against large requests¶
Max request size is a dynamic Synchronizer parameter. You update the maxRequestSize field when you change the dynamic Synchronizer parameters.
Protect the Sequencer via rate limiting¶
Confirmation request max rate is a dynamic Synchronizer parameter. You update the confirmationRequestsMaxRate field when you change the dynamic Synchronizer parameters.
Protect the Byzantine Fault Tolerance orderer from large requests¶
When starting the Byzantine Fault Tolerance (BFT) orderer, you can provide limits for both max-request-payload-bytes how many bytes one transaction can handle, and max-request-in-batch for how many transactions can be handled in a batch.
sequencers {
sequencer1 {
sequencer {
config {
max-request-payload-bytes = 1000000
max-requests-in-batch = 16
}
type = BFT
}
}
}
Note
Do note that max-requests-in-batch is a network wide parameter and should be the same for all orderers in the network.
Protect the Sequencer from too many acknowledgements¶
To limit the amount of acknowledgements on the network, the Sequencer can conflate acknowledgements that come from the same member and are too close in time to each other. You can configure the window by setting the following value in the config.
sequencers.sequencer1.acknowledgements-conflate-window = "1 minute"