gh-ost icon indicating copy to clipboard operation
gh-ost copied to clipboard

exact-rowcount question

Open atulaggarwal opened this issue 6 years ago • 3 comments

I have one question regarding exact-rowcount. We are running gh-ost with exact-rowcount but the number of copy operations goes higher than estimated rows (have seen going above 5% also, in past)

One of the running migration has below numbers Copy: 248905992/241527891 103.1%; Applied: 3881297; Backlog: 590/1000; Time: 45h8m43s(total), 45h8m43s(copy); streamer: mysql-bin-changelog.171846:106740599; State: migrating; ETA: due

I understand, this is not a exact number but what is the typical high number which we can expect from it so that we can plan accordingly.

atulaggarwal avatar Jun 17 '20 12:06 atulaggarwal

I can't attach any labels to the issue. This is a question (not an issue or suggestion)

atulaggarwal avatar Jun 17 '20 12:06 atulaggarwal

Observed this today Copy: 129246000/107354865 120.4%; Applied: 6107; Backlog: 0/1000; Time: 8h32m49s(total), 8h32m48s(copy); streamer: mysql-bin-changelog.139509:8862959; State: migrating; ETA: due

atulaggarwal avatar Jun 24 '20 02:06 atulaggarwal

Today, I found the reason for it. We have global statement timeout configured at x seconds and the row count is taking close to 10x time and hence it might be timing out and then gh-ost is failing back to heuristic row count. One of the probable solution which I see is setting session timeout to specific value and then trying to fetch row count. Since the original question has been answered, closing the issue for now.

atulaggarwal avatar Jul 14 '20 01:07 atulaggarwal