GitHub user KannarFr edited a discussion: topic's totalSize, storageSize, 
offloadedStorageSize

Hi,

Running pulsar v3.2.0

```
yo-pulsar-broker-c3-n1 ~ # pulsar-admin topics stats X/Y/Z-partition-0
{
  ...
  "storageSize" : 3 414 640 099 816,
  ...
  "offloadedStorageSize" : 2 877 652 907 299,
  ...
}
```

According to 
https://pulsar.apache.org/docs/3.2.x/administration-stats/#topic-stats there is 
no totalSize in metrics and it should be computed "manually" as totalSize = 
storageSize (BK) + offloadedStorageSize (offloaded). But I got the following 
offload policies:

```
yo-pulsar-broker-c3-n1 ~ # pulsar-admin namespaces get-offload-policies X/Y
{
  "managedLedgerOffloadThresholdInBytes" : 536 870 912 000,
  "managedLedgerOffloadDeletionLagInMillis" : 1800000,
```

And here storageSize = offloadedStorageSize + 
managedLedgerOffloadThresholdInBytes, so storageSize looks to be total, right?

Is there an implementation issue or documentation issue?

GitHub link: https://github.com/apache/pulsar/discussions/22301

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to