uber / uReplicator

Improvement of Apache Kafka Mirrormaker
Apache License 2.0
917 stars 199 forks source link

change lookback to 2 hours #160

Closed dongxiaoman closed 6 years ago

dongxiaoman commented 6 years ago

When querying workload, only look back 2 hours for maximum workload instead of looking back 25 hours. This will help prevent cases when in the past day there were cases like failover and we over-estimate.

dongxiaoman commented 6 years ago

Added some unit test to test the new logic.

yangy0000 commented 6 years ago

looks good to me