• Oran Agra's avatar
    Better INFO fields to track diskless and disk-based replication progress (#7981) · 7ace7231
    Oran Agra authored
    Expose new `loading_rdb_used_mem` showing the used memory of the server
    that saved the RDB file we're currently using.
    This is useful in diskless replication when the total size of the rdb is
    unkown, and can be used as a rought estimation of progres.
    
    Use that new field to calculate the "user friendly"
    `loading_loaded_perc` and `loading_eta_seconds`.
    
    Expose `master_sync_total_bytes` and `master_sync_total_bytes` to complement
    on the existing `master_sync_total_bytes` (which cannot be used on its own
    to calculate progress).
    
    Add "user friendly" field for `master_sync_perc`
    7ace7231
server.h 116 KB