pingcap / tiup

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

fix the start script for alertmanager when enabling numa #2337

Closed KanShiori closed 9 months ago

KanShiori commented 9 months ago

What problem does this PR solve?

Close #2329

What is changed and how it works?

Check List

Tests

Deploy a cluster with a alertmanager.

alertmanager_servers:
  - host: 127.0.0.1
    numa_node: "0"

Check the start script of this alertmanager.

#!/bin/bash
set -e

DEPLOY_DIR=/tidb-deploy/alertmanager-9093
cd "${DEPLOY_DIR}" || exit 1

# WARNING: This file was auto-generated. Do not edit!
#          All your edit might be overwritten!

exec > >(tee -i -a "/tidb-deploy/alertmanager-9093/log/alertmanager.log")
exec 2>&1
exec numactl --cpunodebind=0 --membind=0 bin/alertmanager/alertmanager \
    --config.file="conf/alertmanager.yml" \
    --storage.path="/tidb-data/alertmanager-9093" \
    --data.retention=120h \
    --log.level="info" \
    --web.listen-address="0.0.0.0:9093" \
    --web.external-url="http://127.0.0.1:9093" \
    --cluster.peer="127.0.0.1:9094" \
    --cluster.listen-address="127.0.0.1:9094"

Code changes

Side effects

Related changes

Release notes:

NONE
codecov-commenter commented 9 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (0a96dad) 55.51% compared to head (a519d44) 55.37%.

:exclamation: Current head a519d44 differs from pull request most recent head e76f364. Consider uploading reports for the commit e76f364 to get more accurate results

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #2337 +/- ## ========================================== - Coverage 55.51% 55.37% -0.14% ========================================== Files 328 328 Lines 34823 34823 ========================================== - Hits 19330 19282 -48 - Misses 13180 13231 +51 + Partials 2313 2310 -3 ``` | [Flag](https://app.codecov.io/gh/pingcap/tiup/pull/2337/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pingcap) | Coverage Δ | | |---|---|---| | [cluster](https://app.codecov.io/gh/pingcap/tiup/pull/2337/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pingcap) | `44.71% <ø> (-0.16%)` | :arrow_down: | | [dm](https://app.codecov.io/gh/pingcap/tiup/pull/2337/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pingcap) | `25.44% <ø> (-0.05%)` | :arrow_down: | | [playground](https://app.codecov.io/gh/pingcap/tiup/pull/2337/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pingcap) | `15.31% <ø> (ø)` | | | [tiup](https://app.codecov.io/gh/pingcap/tiup/pull/2337/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pingcap) | `33.56% <ø> (ø)` | | | [unittest](https://app.codecov.io/gh/pingcap/tiup/pull/2337/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pingcap) | `22.35% <ø> (-0.01%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pingcap#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

ti-chi-bot[bot] commented 9 months ago

[LGTM Timeline notifier]

Timeline:

kaaaaaaang commented 9 months ago

/lgtm

kaaaaaaang commented 9 months ago

/approve

ti-chi-bot[bot] commented 9 months ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: kaaaaaaang

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files: - ~~[OWNERS](https://github.com/pingcap/tiup/blob/master/OWNERS)~~ [kaaaaaaang] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment