799b159bba
In an effort to distribute load on the reputation database, the reputation write cache scheduled nodes to be written at a time offset by the local nodeID. The idea was that no two repair workers would have the same nodeID, so they would not tend to write to the same row at the same time. Instead, since all satellite processes share the same satellite ID (duh), this caused _all_ workers to try and write to the same row at the same time _always_. This was not ideal. This change uses a random number instead of the satellite ID. The random number is sourced from the number of nanoseconds since the Unix epoch. As long as workers are not started at the exact same nanosecond, they ought to get well-distributed offsets. Change-Id: I149bdaa6ca1ee6043cfedcf1489dd9d3e3c7a163 |
||
---|---|---|
.. | ||
audithistory_test.go | ||
audithistory.go | ||
benchmark_test.go | ||
calculations.go | ||
config.go | ||
db_test.go | ||
service_test.go | ||
service.go | ||
suspension_test.go | ||
writecache_service_test.go | ||
writecache_unit_test.go | ||
writecache.go |