pingcap / tiup

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

Support deploying microservice #2377

Closed rleungx closed 2 months ago

rleungx commented 5 months ago

What problem does this PR solve?

Ref #2429

What is changed and how it works?

Check List

Tests

monitored:

The communication port for reporting system information of each node in the TiDB cluster.

node_exporter_port: 9200

Blackbox_exporter communication port, used for TiDB cluster port monitoring.

blackbox_exporter_port: 9215

Storage directory for deployment files, startup scripts, and configuration files of monitoring components.

deploy_dir: "/tidb-deploy/monitored-9100"

Data storage directory of monitoring components.

data_dir: "/tidb-data/monitored-9100"

Log storage directory of the monitoring component.

log_dir: "/tidb-deploy/monitored-9100/log"

Server configs are used to specify the configuration of PD Servers.

pd_servers:

The ip address of the PD Server.

Server configs are used to specify the configuration of TiDB Servers.

tidb_servers:

The ip address of the TiDB Server.

Server configs are used to specify the configuration of TiKV Servers.

tikv_servers:

The ip address of the TiKV Server.

tso_servers:

scheduling_servers:

Server configs are used to specify the configuration of Prometheus Server.

monitoring_servers:

The ip address of the Monitoring Server.

Server configs are used to specify the configuration of Grafana Servers.

grafana_servers:

The ip address of the Grafana Server.

Code changes

Side effects

Related changes

Release notes:

NONE
codecov-commenter commented 5 months ago

Codecov Report

Attention: Patch coverage is 9.26573% with 519 lines in your changes are missing coverage. Please review.

Project coverage is 54.89%. Comparing base (6f01692) to head (6ec0e82). Report is 6 commits behind head on master.

:exclamation: Current head 6ec0e82 differs from pull request most recent head 9218e5b. Consider uploading reports for the commit 9218e5b to get more accurate results

Files Patch % Lines
pkg/cluster/spec/scheduling.go 6.95% 173 Missing and 1 partial :warning:
pkg/cluster/spec/tso.go 6.95% 173 Missing and 1 partial :warning:
pkg/cluster/api/pdapi.go 0.00% 117 Missing :warning:
pkg/cluster/template/scripts/scheduling.go 0.00% 15 Missing :warning:
pkg/cluster/template/scripts/tso.go 0.00% 15 Missing :warning:
pkg/cluster/spec/monitoring.go 16.67% 8 Missing and 2 partials :warning:
pkg/cluster/task/update_meta.go 42.86% 6 Missing and 2 partials :warning:
pkg/cluster/template/config/prometheus.go 0.00% 6 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #2377 +/- ## ========================================== - Coverage 55.96% 54.89% -1.06% ========================================== Files 329 333 +4 Lines 35221 35592 +371 ========================================== - Hits 19709 19538 -171 - Misses 13141 13712 +571 + Partials 2371 2342 -29 ``` | [Flag](https://app.codecov.io/gh/pingcap/tiup/pull/2377/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/2377/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pingcap) | `44.43% <9.27%> (-0.81%)` | :arrow_down: | | [dm](https://app.codecov.io/gh/pingcap/tiup/pull/2377/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pingcap) | `25.06% <0.18%> (-0.45%)` | :arrow_down: | | [playground](https://app.codecov.io/gh/pingcap/tiup/pull/2377/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pingcap) | `14.74% <0.00%> (-1.79%)` | :arrow_down: | | [tiup](https://app.codecov.io/gh/pingcap/tiup/pull/2377/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pingcap) | `33.60% <ø> (-0.04%)` | :arrow_down: | | [unittest](https://app.codecov.io/gh/pingcap/tiup/pull/2377/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=pingcap) | `21.87% <3.71%> (-0.29%)` | :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 2 months ago

[LGTM Timeline notifier]

Timeline:

kaaaaaaang commented 2 months ago

/approve

ti-chi-bot[bot] commented 2 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