微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

db.Bifrost

[root@MysqL-host1 /data/bifrost/data]# cat db.Bifrost | python3 -mjson.tool
{
    "Version": "v1.8.0-beta.01",
    "ToServer": {
        "dba_test-tb1_all": {
            "PluginName": "clickhouse",
            "PluginVersion": "v1.7.3",
            "ConnUri": "tcp://192.168.56.11:9000?username=default&password=123&compress=true",
            "Notes": "dba_test-tb1_all",
            "LastID": 3,
            "CurrentConn": 3,
            "MaxConn": 20,
            "MinConn": 1,
            "AvailableConn": 3,
            "UpdateTime": 1661154931
        }
    },
    "DbInfo": {
        "dba_test": {
            "Name": "dba_test",
            "ConnectUri": "bifrost:123@tcp(10.0.0.11:3306)/dba_test",
            "ConnStatus": "running",
            "ConnErr": "",
            "ChannelMap": {
                "1": {
                    "Name": "default",
                    "MaxThreadNum": 1,
                    "CurrentThreadNum": 0,
                    "Status": "running"
                },
                "2": {
                    "Name": "channel10",
                    "MaxThreadNum": 10,
                    "CurrentThreadNum": 0,
                    "Status": "running"
                }
            },
            "LastChannelID": 2,
            "TableMap": {
                "dba_test_-tb1": {
                    "Name": "tb1",
                    "ChannelKey": 2,
                    "LastToServerID": 1,
                    "ToServerList": [
                        {
                            "ToServerID": 1,
                            "PluginName": "clickhouse",
                            "MustBeSuccess": true,
                            "FilterQuery": false,
                            "FilterUpdate": true,
                            "FieldList": [],
                            "ToServerKey": "dba_test-tb1_all",
                            "LastSuccessbinlog": {
                                "binlogFileNum": 265,
                                "binlogPosition": 802,
                                "GTID": "ea42d50c-88c0-11ec-9a53-000c2911ac8b:1-3627862",
                                "Timestamp": 1661226651,
                                "EventID": 1119
                            },
                            "LastQueuebinlog": {
                                "binlogFileNum": 265,
                                "binlogPosition": 771,
                                "GTID": "",
                                "Timestamp": 1661226651,
                                "EventID": 1118
                            },
                            "binlogFileNum": 265,
                            "binlogPosition": 802,
                            "PluginParam": {
                                "autocreateTable": false,
                                "BatchSize": 1,
                                "BifrostFilterQuery": false,
                                "BifrostMustBeSuccess": true,
                                "CkSchema": "dba_test",
                                "CkTable": "tb1_all",
                                "Field": [
                                    {
                                        "CK": "id",
                                        "MysqL": "id"
                                    },
                                    {
                                        "CK": "c1",
                                        "MysqL": "c1"
                                    },
                                    {
                                        "CK": "c2",
                                        "MysqL": "c2"
                                    },
                                    {
                                        "CK": "c3",
                                        "MysqL": "c3"
                                    },
                                    {
                                        "CK": "c4",
                                        "MysqL": "c4"
                                    },
                                    {
                                        "CK": "c5",
                                        "MysqL": "c5"
                                    },
                                    {
                                        "CK": "create_time",
                                        "MysqL": "create_time"
                                    },
                                    {
                                        "CK": "update_time",
                                        "MysqL": "update_time"
                                    },
                                    {
                                        "CK": "binlog_event_type",
                                        "MysqL": "{$EventType}"
                                    },
                                    {
                                        "CK": "ts",
                                        "MysqL": "{$binlogTimestamp}"
                                    },
                                    {
                                        "CK": "dts",
                                        "MysqL": ""
                                    }
                                ],
                                "LowerCaseTableNames": 0,
                                "NullNottransferDefault": true,
                                "PriKey": [
                                    {
                                        "CK": "id",
                                        "MysqL": "id"
                                    }
                                ],
                                "SyncType": "insertAll"
                            },
                            "Status": "",
                            "Error": "",
                            "ErrorWaitDeal": 0,
                            "ErrorWaitData": null,
                            "LastbinlogFileNum": 265,
                            "LastbinlogPosition": 771,
                            "QueueMsgCount": 0,
                            "FileQueueStatus": false,
                            "Notes": "",
                            "ThreadCount": 0,
                            "FileQueueUsableCount": 0,
                            "FileQueueUsableCountStartTime": 0
                        }
                    ],
                    "IgnoreTable": ""
                }
            },
            "IsGtid": true,
            "LastEventID": 1119,
            "Gtid": "ea42d50c-88c0-11ec-9a53-000c2911ac8b:1-3627862",
            "binlogDumpFileName": "MysqL-bin.000265",
            "binlogDumpPosition": 802,
            "binlogDumpTimestamp": 1661226651,
            "MaxbinlogDumpFileName": "",
            "MaxinlogDumpPosition": 0,
            "ReplicateDoDb": {
                "dba_test": 1
            },
            "ServerId": 113313,
            "AddTime": 1661154319
        }
    },
    "User": null,
    "Warning": null
}
[root@MysqL-host1 /data/bifrost/data]#

 

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐