fix(mpc-service): reduce Kafka session timeout from 5min to 30s
This commit is contained in:
parent
c05722bbb3
commit
1eca8b3af8
|
|
@ -67,10 +67,10 @@ export class EventConsumerService implements OnModuleInit, OnModuleDestroy {
|
||||||
|
|
||||||
this.consumer = this.kafka.consumer({
|
this.consumer = this.kafka.consumer({
|
||||||
groupId,
|
groupId,
|
||||||
sessionTimeout: 300000, // 5 minutes - MPC keygen can take a while
|
sessionTimeout: 30000, // 30 seconds - enough for normal operations
|
||||||
heartbeatInterval: 10000, // 10 seconds
|
heartbeatInterval: 3000, // 3 seconds
|
||||||
maxWaitTimeInMs: 5000,
|
maxWaitTimeInMs: 5000,
|
||||||
rebalanceTimeout: 300000, // 5 minutes
|
rebalanceTimeout: 60000, // 60 seconds - for MPC operations
|
||||||
});
|
});
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue