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

faq: remove ansible related things (#19668) #19669

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 0 additions & 24 deletions faq/deploy-and-maintain-faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,30 +49,6 @@ TiDB 支持部署和运行在 Intel x86-64 架构的 64 位通用硬件服务器

查看访问监控的机器时间跟集群内机器的时间差,如果比较大,更正时间后即可显示正常。

### supervise/svc/svstat 服务具体起什么作用?

- supervise 守护进程
- svc 启停服务
- svstat 查看进程状态

### inventory.ini 变量参数解读

| **变量** | **含义** |
| --- | --- |
| cluster_name | 集群名称,可调整 |
| tidb_version | TiDB 版本 |
| deployment_method | 部署方式,默认为 binary,可选 docker |
| process_supervision | 进程监管方式,默认为 systemd,可选 supervise |
| timezone | 修改部署目标机器时区,默认为 Asia/Shanghai,可调整,与 set_timezone 变量结合使用 |
| set_timezone | 默认为 True,即修改部署目标机器时区,关闭可修改为 False |
| enable_elk | 目前不支持,请忽略 |
| enable_firewalld | 开启防火墙,默认不开启 |
| enable_ntpd | 检测部署目标机器 NTP 服务,默认为 True,请勿关闭 |
| machine_benchmark | 检测部署目标机器磁盘 IOPS,默认为 True,请勿关闭 |
| set_hostname | 根据 IP 修改部署目标机器主机名,默认为 False |
| enable_slow_query_log | TiDB 慢查询日志记录到单独文件({{ deploy_dir }}/log/tidb_slow_query.log),默认为 False,记录到 tidb 日志 |
| deploy_without_tidb | KV 模式,不部署 TiDB 服务,仅部署 PD、TiKV 及监控服务,请将 inventory.ini 文件中 tidb_servers 主机组 IP 设置为空。 |

### 如何单独记录 TiDB 中的慢查询日志,如何定位慢查询 SQL?

1. TiDB 中,对慢查询的定义在 TiDB 的配置文件中。`tidb_slow_log_threshold: 300`,这个参数是配置慢查询记录阈值的,单位是 ms。
Expand Down
Loading