-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
benchmark: add lightning import for TPC-C #2169
Conversation
Signed-off-by: Shuaipeng Yu <jackysp@gmail.com>
I'll update 3.0 and 3.1 when it is ready to merge. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rest LGTM
dev/benchmark/how-to-run-tpcc.md
Outdated
* 在 Importer 目录下创建一个 log 文件夹 | ||
* 在 Importer 目录下执行 `scripts/start_importer.sh`,启动 Importer | ||
* 在 Lightning 目录下创建一个 log 文件夹 | ||
* 在 Lightning 目录下执行 `scripts/start_lightning.sh`,开始导入数据 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The log
folders should be created automatically by the shell scripts 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
\cc @liubo0127
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All directorys should be created automatically. I'll check it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in pingcap/tidb-ansible#1103
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great
Co-Authored-By: kennytm <kennytm@gmail.com>
Co-Authored-By: kennytm <kennytm@gmail.com>
dev/benchmark/how-to-run-tpcc.md
Outdated
|
||
```yaml | ||
tikv_importer: | ||
addr: "172.16.5.34:13323" # 这里指向 importer 的地址,需要将上面 inventory.ini 里指定的再写一次 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we improve this? I mean it doesn't need to set IP:port once again. @kennytm @liubo0127
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be configured automatically.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have tested, and it can be configured automatically.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
port does not set automatically.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, it's actually set automatically, but it doesn't match the custom port.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great, thx
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some small editing advice on improving the language. Rest LGTM.
Co-Authored-By: Keke Yi <40977455+yikeke@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Language LGTM
Signed-off-by: Shuaipeng Yu <jackysp@gmail.com>
Signed-off-by: Shuaipeng Yu <jackysp@gmail.com>
All comments addressed, and apply to v3.0 and v3.1, PTAL @yikeke |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/run-all-tests |
... the bot blocks CLA. |
I asked the bot's manager @you06 to sign it. Wait a moment. |
Facing a bot-login issue, we're trying to solve this. |
LS1 ansible_host=172.16.5.34 deploy_dir=/data2/ls1 tidb_lightning_pprof_port=23323 data_source_dir=/home/user/csv | ||
``` | ||
|
||
##### 修改 conf/tidb-lightning.yml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not toml
? @kennytm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
YAML is correct, Ansible uses YAML as template. 😓 @july2993
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I methinks this is the config file lightning
use directly 😓
The issue found in this PR is fixed by pingcap/tidb-ansible#1105, pingcap/tidb-ansible#1104 and pingcap/tidb-ansible#1103 |
Signed-off-by: Shuaipeng Yu jackysp@gmail.com
What is changed, added or deleted?
Add lightning import for TPC-C.
What is the related PR or file link(s)?
Which version does your change affect?
dev, 3.0, 3.1