The Tungsten Schema
• Tungsten creates a “tracking” schema in the MySQL database
• GTID and binlog positions are stored within this schema
• When a database is restored, Tungsten used the data in the tracking schema to set the
replicator position
9
14
mysql> select * from tungsten_east.trep_commit_seqno;
+---------+-------+--------+-----------+-----------+--------------+-----------------------------------------
+-----------------+---------------------+----------+---------------------+
| task_id | seqno | fragno | last_frag | source_id | epoch_number | eventid |
applied_latency | update_timestamp | shard_id | extract_timestamp |
+---------+-------+--------+-----------+-----------+--------------+-----------------------------------------
+-----------------+---------------------+----------+---------------------+
| 0 | 190 | 0 | 1 | db1 | 0 | mysql-bin.000002:0000000000048972;32826
| 1 | 2017-10-17 03:20:39 | music | 2017-10-17 03:20:38 |