doc/questions.md
The cut-over phase, where the original table is swapped away, and the ghost table takes its place, is an atomic, blocking, controlled operation.
Read more on cut-over and on the cut-over design Issue
Adding a UNIQUE KEY is possible, in the condition that no violation will occur. That is, you must make sure there aren't any violating rows on your table before, and during the migration.
At this time there is no equivalent to ALTER IGNORE, where duplicates are implicitly and silently thrown away. The MySQL 5.7 docs say:
As of MySQL 5.7.4, the IGNORE clause for ALTER TABLE is removed and its use produces an error.
It is therefore unlikely that gh-ost will support this behavior.
Yes. TL;DR if running all on same replica/master, make sure to provide --replica-server-id. Read more
To avoid placing extra load on the master. gh-ost connects as a replication client. Each additional replica adds some load to the master.
To monitor replication lag from a replica. This makes the replication lag throttle, --max-lag-millis, more representative of the lag experienced by other replicas following the master (perhaps N levels deep in a tree of replicas).