Is there any way to set the bucket size for the TTL histogram? Almost all our records are showing up in the first histogram bucket, which means this tool is not very useful to us. Here is an example:
asinfo -v "hist-dump:ns=ns1;hist=ttl"
ns1:ttl=100,20412176,724451269,0,0,0,0,0,0,0,27,0,0,0,0,0,0,0,21,0,0,0,0,0,0,0,2,5,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0;
As you can see, there are a few dozen outlier records which are skewing the histogram, and the other 700 million records all end up in the first histogram bucket. This gives us 2 problems: we don’t have visibility into when records will expire, and second, if the eviction process needs to run, it will consider almost of the records as being equivalent, so will basically evict the records randomly.
Is there a way to pass the bucket size into this command? Is there a way to identify those outlier records so that they can be removed in order to get a better distribution? Would changing the max-ttl config setting have any impact?