lhotari commented on issue #25028:
URL: https://github.com/apache/pulsar/issues/25028#issuecomment-3595969222

   > I do try to reference the discussion 
[#23990](https://github.com/apache/pulsar/discussions/23990) to tune the 
delayed messages.
   > 
   > Forgot to paste my configuration:
   > 
   > ```
   >   managedLedgerMaxUnackedRangesToPersist: "200000"
   >   managedLedgerMaxBatchDeletedIndexToPersist: "200000"
   >   managedLedgerPersistIndividualAckAsLongArray: "true"
   >   managedLedgerUnackedRangesOpenCacheSetEnabled: "true"
   >   persistentUnackedRangesWithMultipleEntriesEnabled: "true"
   >   delayedDeliveryTrackerFactoryClassName: 
"org.apache.pulsar.broker.delayed.BucketDelayedDeliveryTrackerFactory"
   > ```
   > 
   
   You seem to be missing the compression configuration
   ```
   managedCursorInfoCompressionType=LZ4
   managedLedgerInfoCompressionType=LZ4
   ```
   
   you might also want to increase `managedLedgerMaxUnackedRangesToPersist` to 
a value that won't overflow.
   
   
   > Also I'd like to provide my client config:
   > 
   > ```
   >    consumer, err := client.Subscribe(pulsar.ConsumerOptions{
   >            Topic:                       c.Topic,
   >            SubscriptionName:            c.Subscription,
   >            Type:                        pulsar.Shared,
   >            SubscriptionInitialPosition: 
pulsar.SubscriptionPositionEarliest,
   >            ReceiverQueueSize:           1,
   >            Name:                        uuid.NewString(),
   >            AckWithResponse:             true,
   >    })
   > ```
   
   Have you tested with a larger receiver queue size?  The default value is 
1000.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to