tiup cluster deploy tidb v4.0.0-rc.2 ./topology.yaml --user appadmin [-p] [-i /home/root/.ssh/gcp_rsa]
create table lidane (id int,name varchar(20));
insert into lidane values (1,‘asdfasdfasdf’);
Query OK, 1 row affected (0.09 sec)
ALTER TABLE lidane SET TIFLASH REPLICA 1;
MySQL [test]> SELECT * FROM information_schema.tiflash_replica WHERE TABLE_SCHEMA = ‘test’ and TABLE_NAME = ‘lidane’;
±-------------±-----------±---------±--------------±----------------±----------±---------+
| TABLE_SCHEMA | TABLE_NAME | TABLE_ID | REPLICA_COUNT | LOCATION_LABELS | AVAILABLE | PROGRESS |
±-------------±-----------±---------±--------------±----------------±----------±---------+
| test | lidane | 45 | 1 | | 0 | 0 |
±-------------±-----------±---------±--------------±----------------±----------±---------+
PROGRESS 一直是0 无法试用tiflash
配置文件如下:
global:
user: "tidb"
ssh_port: 22
deploy_dir: "/data/tidb/tidb-deploy"
data_dir: "/data/tidb/tidb-data"
server_configs:
pd:
replication.enable-placement-rules: true
pd_servers:
- host: 10.120.114.197
tidb_servers:
- host: 10.120.114.197
tikv_servers:
- host: 10.120.114.197
tiflash_servers:
- host: 10.120.114.197
data_dir: /data/tiflash/data
monitoring_servers:
- host: 10.120.114.197
grafana_servers:
- host: 10.120.114.197
alertmanager_servers:
- host: 10.120.114.197