mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
21 lines
359 B
Go
21 lines
359 B
Go
package balancer
|
|
|
|
import cmap "github.com/orcaman/concurrent-map"
|
|
|
|
type Balancer struct {
|
|
brokers cmap.ConcurrentMap[string, *BrokerStats]
|
|
}
|
|
type BrokerStats struct {
|
|
stats map[TopicPartition]*TopicPartitionStats
|
|
}
|
|
|
|
type TopicPartition struct {
|
|
Topic string
|
|
RangeStart int32
|
|
RangeStop int32
|
|
}
|
|
|
|
type TopicPartitionStats struct {
|
|
Throughput int64
|
|
}
|