Open avalon566 opened 4 years ago
I has some questions for this issue.
I think we should show HISTORY status and REALTIME status, because uses can know which process the scaling job is in. Same reason for delay second, in history data sync stage will return Interge.MAX_VALUE is unfriendly. we can count before task start and record the current rows have been migrate.
How about provider two interface? one for shardingsphere, another for admin user. Their concerns are different. For admin user, not only max delay datanode value, need return all.
The process information should be collected and saved fully, but users can judge which informations need to use.
the admin user or UI controller, need to show detail information, ShardingSphere program may only need the final status.
This issue only talk about when and how to switch with sharding-jdbc and sharding-proxy. UI and admin will be design and discuss in new issues.
This issue only talk about when and how to switch with sharding-jdbc and sharding-proxy. UI and admin will be design and discuss in new issues.
OK, if only sharding-jdbc and sharding-proxy, the final status should be enough.
ScalingProgress Model
How to calculate delay second
The solution references pt-heartbeat.
How to coordinate shardingsphere and shardingscaling