Skip to content

Commit

Permalink
chore(plugin-server): use existing INGESTION_BATCH_SIZE and KAFKA_CON… (
Browse files Browse the repository at this point in the history
#17927)

chore(plugin-server): use existing INGESTION_BATCH_SIZE and KAFKA_CONSUMPTION_SESSION_TIMEOUT_MS
  • Loading branch information
bretthoerner authored Oct 11, 2023
1 parent 0df3b2f commit ed40b77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin-server/src/main/ingestion-queues/kafka-queue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,11 +240,11 @@ export class IngestionConsumer {
topic: this.topic,
groupId: this.consumerGroupId,
autoCommit: true,
sessionTimeout: 30000,
sessionTimeout: this.pluginsServer.KAFKA_CONSUMPTION_SESSION_TIMEOUT_MS,
consumerMaxBytes: this.pluginsServer.KAFKA_CONSUMPTION_MAX_BYTES,
consumerMaxBytesPerPartition: this.pluginsServer.KAFKA_CONSUMPTION_MAX_BYTES_PER_PARTITION,
consumerMaxWaitMs: this.pluginsServer.KAFKA_CONSUMPTION_MAX_WAIT_MS,
fetchBatchSize: 500,
fetchBatchSize: this.pluginsServer.INGESTION_BATCH_SIZE,
topicCreationTimeoutMs: this.pluginsServer.KAFKA_TOPIC_CREATION_TIMEOUT_MS,
eachBatch: (payload) => this.eachBatchConsumer(payload),
})
Expand Down

0 comments on commit ed40b77

Please sign in to comment.