-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Closed
Labels
type/bugThe PR fixed a bug or issue reported a bugThe PR fixed a bug or issue reported a bug
Description
Describe the bug
The allocator-stats for the broker's entry cache appear to be broken because they are always 0, even when the cache is in use.
To Reproduce
Steps to reproduce the behavior:
- Build apache/pulsar master.
- Run
bin/pulsar standalone - Run
bin/pulsar-perf consume -r 99 test - Run
bin/pulsar-perf produce -r 100 test - Run
bin/pulsar-admin broker-stats allocator-stats ml-cache(I omitted this result because it is too verbose. The allocations are zero every time though and the result aligns with the prometheus metrics.) - You can also observe the broker's
allocationsrelated prometheus metrics - Note that while there is an active producer and consumer, I can see that there are cache hits in the prometheus metrics.
Expected behavior
The broker cache metrics for allocations should produce the real cache size.
** Metrics**
Metrics containing ml_cache:
# TYPE pulsar_ml_cache_evictions gauge
pulsar_ml_cache_evictions{cluster="standalone"} 0 1657749677931
# TYPE pulsar_ml_cache_hits_rate gauge
pulsar_ml_cache_hits_rate{cluster="standalone"} 8.367224481632109 1657749677931
# TYPE pulsar_ml_cache_hits_throughput gauge
pulsar_ml_cache_hits_throughput{cluster="standalone"} 9056.903793586238 1657749677931
# TYPE pulsar_ml_cache_misses_rate gauge
pulsar_ml_cache_misses_rate{cluster="standalone"} 349.73998266551104 1657749677931
# TYPE pulsar_ml_cache_misses_throughput gauge
pulsar_ml_cache_misses_throughput{cluster="standalone"} 377094.08960597374 1657749677931
# TYPE pulsar_ml_cache_pool_active_allocations gauge
pulsar_ml_cache_pool_active_allocations{cluster="standalone"} 0 1657749677931
# TYPE pulsar_ml_cache_pool_active_allocations_huge gauge
pulsar_ml_cache_pool_active_allocations_huge{cluster="standalone"} 0 1657749677931
# TYPE pulsar_ml_cache_pool_active_allocations_normal gauge
pulsar_ml_cache_pool_active_allocations_normal{cluster="standalone"} 0 1657749677931
# TYPE pulsar_ml_cache_pool_active_allocations_small gauge
pulsar_ml_cache_pool_active_allocations_small{cluster="standalone"} 0 1657749677931
# TYPE pulsar_ml_cache_pool_allocated gauge
pulsar_ml_cache_pool_allocated{cluster="standalone"} 0 1657749677931
# TYPE pulsar_ml_cache_pool_used gauge
pulsar_ml_cache_pool_used{cluster="standalone"} 0 1657749677931
# TYPE pulsar_ml_cache_used_size gauge
pulsar_ml_cache_used_size{cluster="standalone"} 1077 1657749677931
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
type/bugThe PR fixed a bug or issue reported a bugThe PR fixed a bug or issue reported a bug