Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TiFlash docker compose #89

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants