Skip to content

Size of the messages to be acknowledged at subscription level #9254

Closed

Description

@manjupriya-ar

Expected behavior

The partitioned-stats API returns the number of messages that are yet to be acknowledged at each subscription level. In addition to that, we need the number of message bytes [total size of the messages] that are yet to acknowledged at each subscription level.

Actual behavior

At present partitioned-stats returns the number of messages that are yet to acknowledged.[msgBacklog parameter at subscription level]
./pulsar-admin topics partitioned-stats persistent://public/default/sysresmetrics33
{

"averageMsgSize" : 0.0
"backlogSize" : 300,
"publishers" : [ ],
"subscriptions" : {
"0_itom_di_scheduler_provider_default_sysresmetrics33" : {
"msgBacklog" : 2
},
"2_itom_di_scheduler_provider_default_sysresmetrics33" : {
"msgBacklog" : 3,
},
"1_itom_di_scheduler_provider_default_sysresmetrics33" : {
"msgBacklog" : 4,
}
},
"replication" : { },
"metadata" : {
"partitions" : 3
},
"partitions" : { }
}

Expected Output for partitioned-stats

In addition to number of messages that are yet to be acknowledged at each subscription level, number of bytes that are yet to acknowledged needs to be added. Currently, the number of bytes at the topic level is given by backlogSize parameter. A similar parameter is required at each subscription level.
Example:
./pulsar-admin topics partitioned-stats persistent://public/default/sysresmetrics33
{

"averageMsgSize" : 0.0
"backlogSize" : 3500
"publishers" : [ ],
"subscriptions" : {
"0_itom_di_scheduler_provider_default_sysresmetrics33" : {
"msgBacklog" : 2,
"backlogSize" : 20
},
"2_itom_di_scheduler_provider_default_sysresmetrics33" : {
"msgBacklog" : 3,
"backlogSize" : 30
},
"1_itom_di_scheduler_provider_default_sysresmetrics33" : {
"msgBacklog" : 4,
"backlogSize" : 50
}
},
"replication" : { },
"metadata" : {
"partitions" : 3
},
"partitions" : { }
}

Steps to reproduce

Execute "./pulsar-admin topics partitioned-stats <topic_name> for any topic.

System configuration

Pulsar version: 2.6.1

Activity

  1. added a commit that references this issue on Feb 8, 2021
    ab94743
  2. added a commit that references this issue on Feb 18, 2021
    bc18625
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions