vmware-go-kcl-v2/clientlibrary/checkpoint
Aurélien Rainone 6c9e594751 Make the lease refresh period configurable (#56)
* Add LeaseRefreshSpanMillis in configuration

For certain use cases of KCL the hard-coded value of 5s value,
representing the time span before the end of a lease timeout in
which the current owner gets to renew its own lease, is not
sufficient. When the time taken by ProcessRecords is higher
than 5s, the lease gets lost and the shard may end up to another
worker.

This commit adds a new configuration value, that defaults to 5s,
to let the user set this value to its own needs.

Signed-off-by: Aurélien Rainone <aurelien.rainone@gmail.com>

* Slight code simplification

Or readability improvement

Signed-off-by: Aurélien Rainone <aurelien.rainone@gmail.com>
2021-12-20 21:21:15 -06:00
..
checkpointer.go Release shard lease after shutdown (#31) 2021-12-20 21:21:14 -06:00
dynamodb-checkpointer.go Make the lease refresh period configurable (#56) 2021-12-20 21:21:15 -06:00
dynamodb-checkpointer_test.go Expose monitoring service (#49) 2021-12-20 21:21:15 -06:00