ipfs-cluster/informer
Hector Sanjuan db00d651bf Balanced allocator: weight-based ordering of partitions
This fixes the issue about partitions not being picked based
on the amount of freespace available in them.

It additionally removes the metrics registry and carries information directly
in the metric.

Metrics have two additional fields: Weight and Partitionable.

Informers have been updated to make use of these fields. Partitions have
weights that equals to the weight of the metrics under them.

Older cluster versions will not set these fields. Partitionable is false by
default and weight has a GetWeight() function to convert value->weight when
unset. This provides backwards compatibility for the freespace metric.
2021-10-06 14:10:06 +02:00
..
disk Balanced allocator: weight-based ordering of partitions 2021-10-06 14:10:06 +02:00
numpin Balanced allocator: weight-based ordering of partitions 2021-10-06 14:10:06 +02:00
tags Balanced allocator: weight-based ordering of partitions 2021-10-06 14:10:06 +02:00