Closed LaPetiteSouris closed 2 years ago
The build in CI looks a bit weird to me.
#!/bin/bash -eo pipefail
sudo apt-get update -yqq && sudo apt-get install -yqq bzr
E: Repository 'http://security.debian.org/debian-security buster/updates InRelease' changed its 'Suite' value from 'stable' to 'oldstable'
E: Repository 'http://deb.debian.org/debian buster InRelease' changed its 'Suite' value from 'stable' to 'oldstable'
E: Repository 'http://deb.debian.org/debian buster-updates InRelease' changed its 'Suite' value from 'stable-updates' to 'oldstable-updates'
Exited with code exit status 100
CircleCI received exit code 100
Regarding the failed CI, it looks like the circleci docker image probably needs to be updated.
Motivation
Required: https://github.com/liftbridge-io/liftbridge-api/pull/53 and https://github.com/liftbridge-io/liftbridge/pull/362
To solve: https://github.com/liftbridge-io/liftbridge/issues/274
Solution
broker
, add the state for each broker. The state containsPartitionCount
andLastKnownLatency
.PartitionCount
represents the sum of all partitions hosted on this server . I.e:LastKnownLatency
is the server latency in milliseconds, retrieved by measuring latency when the server callsFetchMetadata
of each broker.SetConnectToLowWorkLoadServer()
orSetConnectionToLowLatencyServer()
to decide a better server it shall connect to. If nothing is chosen, then a random broker will be given (default behavior)