mirror of
https://github.com/minio/minio.git
synced 2025-11-09 13:39:46 -05:00
add batchSize support for webhook endpoints (#19214)
configure batch size to send audit/logger events in batches instead of sending one event per connection. this is mainly to optimize the number of requests we make to webhook endpoint.
This commit is contained in:
@@ -52,6 +52,12 @@ var (
|
||||
Type: "string",
|
||||
Sensitive: true,
|
||||
},
|
||||
config.HelpKV{
|
||||
Key: BatchSize,
|
||||
Description: "Number of events per HTTP send to webhook target",
|
||||
Optional: true,
|
||||
Type: "number",
|
||||
},
|
||||
config.HelpKV{
|
||||
Key: QueueSize,
|
||||
Description: "configure channel queue size for webhook targets",
|
||||
@@ -107,6 +113,12 @@ var (
|
||||
Type: "string",
|
||||
Sensitive: true,
|
||||
},
|
||||
config.HelpKV{
|
||||
Key: BatchSize,
|
||||
Description: "Number of events per HTTP send to webhook target",
|
||||
Optional: true,
|
||||
Type: "number",
|
||||
},
|
||||
config.HelpKV{
|
||||
Key: QueueSize,
|
||||
Description: "configure channel queue size for webhook targets",
|
||||
|
||||
Reference in New Issue
Block a user