pingcap / tiup

A component manager for TiDB
https://tiup.io
Apache License 2.0
417 stars 310 forks source link

numactl: execution of `bin/alertmanager': Permission denied #2329

Closed haiying-gao closed 9 months ago

haiying-gao commented 9 months ago

Bug Report

Please answer these questions before submitting your issue. Thanks!

  1. What did you do?

    deploy tidb cluster with numa_node config on alertmanager server

alertmanager_servers:
- host: xxx.xxx.xxx.xxx
...
  numa_node: "0"
  1. What did you expect to see?

alertmanager start successfully.

  1. What did you see instead?

alertmanager start failed with error "numactl: execution of `bin/alertmanager': Permission denied"

wrong template file run_alertmanager.sh.tpl like this

exec numactl --cpunodebind={{.NumaNode}} --membind={{.NumaNode}} bin/alertmanager \

the correct config sholud be like this

exec numactl --cpunodebind={{.NumaNode}} --membind={{.NumaNode}} bin/alertmanager/alertmanager \
  1. What version of TiUP are you using (tiup --version)?
1.14.0 tiup
Go Version: go1.21.4
Git Ref: v1.14.0
GitHash: c3e9fc518aea0da66a37f82ee5a516171de9c372