Skip to content

tennix/tiflash-docker-compose

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TiFlash cluster Docker Compose

  1. Put the following binaries into bin/ directory
  • pd-server
  • tikv-server
  • tidb-server
  • tikv-server-rngine
  • tiflash
  • flash_cluster_manager
  1. Run docker-compose
docker-compose up
  1. Connect TiDB
mysql -h 127.0.0.1 -P 4000 -u root -D test --comments
MySQL [test]> create table cluster (id int, name varchar(10));
MySQL [test]> insert into cluster values(10, "name");
MySQL [test]> alter table test.cluster set tiflash replica 1;
MySQL [test]> select /*+ read_from_storage(tiflash[t]) */ count(*) from test.cluster t;
MySQL [test]> explain select /*+ read_from_storage(tiflash[t]) */ count(*) from test.cluster t;

If the plan output contains tiflash, then the TiFlash cluster is normal.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •