fix(mpc-service): reduce Kafka session timeout from 5min to 30s

This commit is contained in:
hailin 2025-12-09 03:24:00 -08:00
parent c05722bbb3
commit 1eca8b3af8
1 changed files with 3 additions and 3 deletions

View File

@ -67,10 +67,10 @@ export class EventConsumerService implements OnModuleInit, OnModuleDestroy {
this.consumer = this.kafka.consumer({
groupId,
sessionTimeout: 300000, // 5 minutes - MPC keygen can take a while
heartbeatInterval: 10000, // 10 seconds
sessionTimeout: 30000, // 30 seconds - enough for normal operations
heartbeatInterval: 3000, // 3 seconds
maxWaitTimeInMs: 5000,
rebalanceTimeout: 300000, // 5 minutes
rebalanceTimeout: 60000, // 60 seconds - for MPC operations
});
try {