Skip to content
This repository was archived by the owner on Jul 26, 2025. It is now read-only.

TiFlash docker compose#89

Open
Ishiihara wants to merge 4 commits intopingcap:masterfrom
Ishiihara:tiflash
Open

TiFlash docker compose#89
Ishiihara wants to merge 4 commits intopingcap:masterfrom
Ishiihara:tiflash

Conversation

@Ishiihara
Copy link

@Ishiihara Ishiihara commented Mar 18, 2020

Note: You may need to provide enough resources for docker. For example, 8 CPUs and 10GB memory.

Here is the instruction to test:

Start the services:
$docker-compose -f docker-compose-tiflash-nightly.yml pull
$docker-compose -f docker-compose-tiflash-nightly.yml up -d

Connect to TiDB (you may need to wait a minute or so to wait for everything to start)
$mysql -h 127.0.0.1 -P 4000 -u root

Test TiFlash

use test;
drop table t;

create table t (c1 int, c2 varchar(64));
insert into t values(1, "abc");

insert into t select * from t;
insert into t select * from t;
insert into t select * from t;
insert into t select * from t;
insert into t select * from t;
insert into t select * from t;
insert into t select * from t;
insert into t select * from t;
insert into t select * from t;
insert into t select * from t;

ALTER TABLE t SET TIFLASH REPLICA 1;

explain analyze select * from t;

select count(*) from t;

SELECT * FROM information_schema.tiflash_replica;

set @@session.tidb_isolation_read_engines='tiflash';

explain analyze select * from t;

To stop services:
$docker-compose -f docker-compose-tiflash-nightly.yml stop

@Ishiihara Ishiihara force-pushed the tiflash branch 2 times, most recently from 889d255 to be0f0ce Compare March 19, 2020 06:50
@Ishiihara Ishiihara changed the title Tiflash with tidb.toml from tidb master TiFlash docker compose Mar 19, 2020
@Anutrix
Copy link

Anutrix commented May 28, 2022

Any reason why this is not merged?

@pencal
Copy link

pencal commented Dec 6, 2023

+1. this will be extremely useful for me to eval tiflash.

Copy link

@pencal pencal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants