Open calvin2021y opened 1 year ago
./scripts/run_tiflash.sh
sync ...
real 0m0.003s
user 0m0.002s
sys 0m0.000s
ok
arg matches is ArgMatches { args: {"pd-endpoints": MatchedArg { occurs: 1, indices: [8, 9, 10], vals: ["pd1:2379", "pd2:2379", "pd3:2379"] }, "engine-addr": MatchedArg { occurs: 1, indices: [14], vals: ["tiflash2:3930"] }, "config": MatchedArg { occurs: 1, indices: [2], vals: ["/app/tidb/tidb-deploy/tiflash-9000/conf/tiflash-learner.toml"] }, "engine-label": MatchedArg { occurs: 1, indices: [12], vals: ["tiflash"] }, "engine-version": MatchedArg { occurs: 1, indices: [4], vals: ["v7.1.0"] }, "engine-git-hash": MatchedArg { occurs: 1, indices: [6], vals: ["cffc61e6ce008286d6ec5db2c6eb30c29bf065ec"] }}, subcommand: None, usage: Some("USAGE:\n TiFlash Proxy [FLAGS] [OPTIONS] --engine-git-hash <engine-git-hash> --engine-label <engine-label> --engine-version <engine-version>") }
I guess this cloud related into tiflash ignored /sys/fs/cgroup/cpuset.cpus
and nproc
, try use all cpu from /proc/cpuinfo
.
Is there a options to set sched_setaffinity from configure file ? or disable it ?
Seems it is caused by some error thrown in build_yatp_read_pool
. @CalvinNeo can you check whether there is a workaround?
@CalvinNeo please feel free to let me know what I can do to help location the problem.
Maybe due to there are fewer cpus than expected? Maybe we can try to reduce the config. This part of TiFlash is actually an embedded TiKV, please feel free to check if there are some TiKV's config that can help. Then you can modify tiflash-learner.toml accordingly. /cc @calvin2021y @JaySon-Huang
sorry for late reply. we are limit the cpu by cgroup cpuset. nproc
show the correct cpu number, but lscpu show much more cpus than process able to use.
1. Minimal reproduce step
use tiup deplaoy 7.1 lts, tiflash not able to start.
2. What did you expect to see?
expect the service work
3. What did you see instead (Required)
check the logs, this is the last error:
4. What is your TiFlash version? (Required)
tiflash-v7.1.0-linux-amd64.tar.gz