diff options
author | Aravinda VK <avishwan@redhat.com> | 2014-06-23 13:43:20 +0530 |
---|---|---|
committer | Venky Shankar <vshankar@redhat.com> | 2014-07-23 20:36:02 -0700 |
commit | f4110bed9230025ef7cac8e550057e316f9de1cb (patch) | |
tree | 75bd99f7a32bc6a7cf2311fbb17366dcdd54a8ca /cli | |
parent | 8a24b1487d440c23b00b56aba5b9bfb77af6ef03 (diff) |
geo-rep: minimize xsync crawl usage and set upper limit to xsync crawl
For effective handling of deletes and renames use history crawl
as much as possible. History crawl will run in loop till it syncs
all data before live changelog time.
When it uses xsync crawl(fallback when changelog not available, or
very first crawl) it sets upper limit to crawl.
After completing History crawl, it checks actual end time returned
by history api to compare with register time, if actual end is less
than register time then run history crawl one more time.
If first turn history processing time is less than the CHANGELOG
ROLLOVER TIME then sleep for the difference, After sleep if it is
guaranteed that rollover will happen and switches to live changelog
consumption without switching to xsync. This sleep is only when
history processing completed < CHANGELOG_ROLLOVER_TIME and sleep
only after the first turn, So will not affect the performance.
BUG: 1112238
Change-Id: I644ef24b07e42e81cec96a025ebd21244a555ec0
Signed-off-by: Aravinda VK <avishwan@redhat.com>
Reviewed-on: http://review.gluster.org/8151
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
Tested-by: Venky Shankar <vshankar@redhat.com>
Diffstat (limited to 'cli')
0 files changed, 0 insertions, 0 deletions