KeyChooser
class KeyChooser(val distribution: String, val accounts: Int, seed: Long, zipfExponent: Double = DEFAULT_ZIPF_EXPONENT, hotFraction: Double = DEFAULT_HOT_FRACTION, hotKeys: Int = 1)
Which of the accounts seeded accounts a request targets: uniform, zipf (rank k drawn with a probability proportional to 1 / k^s, s = 1.1 by default), hot (a share hotFraction of the requests to the first hotKeys accounts, the rest uniform over all) or single (every request to the first account: the load of one aggregate, whose published stream is one partition's, #7109). Draws come from a seeded generator, so a run's sequence of keys is the same on both versions.
Constructors
Functions
Link copied to clipboard
An account other than index, drawn the same way: a transfer's target. A distribution of one account draws it uniformly among the others, as no draw of its own would ever give one.