You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/10/28 15:33:15 UTC

[GitHub] [pulsar] michaeljmarshall added a comment to the discussion: ProducerBlockedQuotaExceededError: Cannot create producer on topic with backlog quota exceeded

GitHub user michaeljmarshall added a comment to the discussion: ProducerBlockedQuotaExceededError: Cannot create producer on topic with backlog quota exceeded

@Icemap - the proper way to change the backlog is by using the admin http endpoints. You can do this with the pulsar admin cli tool. Here are example commands:

```shell
bin/pulsar-admin namespaces set-backlog-quota
The following options are required: [-l | --limit], [-p | --policy]

Set a backlog quota policy for a namespace
Usage: set-backlog-quota [options] tenant/namespace
  Options:
  * -l, --limit
      Size limit (eg: 10M, 16G)
    -lt, --limitTime
      Time limit in second (or minutes, hours, days, weeks eg: 100m, 3h, 2d, 
      5w), non-positive number for disabling time limit.
  * -p, --policy
      Retention policy to enforce when the limit is reached. Valid options 
      are: [producer_request_hold, producer_exception, 
      consumer_backlog_eviction] 
    -t, --type
      Backlog quota type to set. Valid options are: destination_storage and 
      message_age. destination_storage limits backlog by size (in bytes). 
      message_age limits backlog by time, that is, message timestamp (broker 
      or publish timestamp). You can set size or time to control the backlog, 
      or combine them together to control the backlog.
      Default: destination_storage
```

```shell
bin/pulsar-admin namespaces remove-backlog-quota --help

Remove a backlog quota policy from a namespace
Usage: remove-backlog-quota [options] tenant/namespace
  Options:
    -t, --type
      Backlog quota type to remove. Valid options are: destination_storage, 
      message_age 
      Default: destination_storage
```


GitHub link: https://github.com/apache/pulsar/discussions/18189#discussioncomment-3994199

----
This is an automatically sent email for dev@pulsar.apache.org.
To unsubscribe, please send an email to: dev-unsubscribe@pulsar.apache.org