-
Notifications
You must be signed in to change notification settings - Fork 312
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
tiup deploy should use given address by default instead of 0.0.0.0 #1082
Comments
I deployed a cluster with the following config (with tidb v4.0.9), this issue not reproduced: tidb_servers:
- host: 172.16.5.140
pd_servers:
- host: 172.16.5.140
name: pd-1
tikv_servers:
- host: 172.16.5.140
- host: 172.16.5.139
- host: 172.16.5.134
monitoring_servers:
- host: 172.16.5.140
grafana_servers:
- host: 172.16.5.140
alertmanager_servers:
- host: 172.16.5.140 I notice that the generated tikv script is: #!/bin/bash
set -e
# WARNING: This file was auto-generated. Do not edit!
# All your edit might be overwritten!
cd "/home/tidb/deploy/tikv-20160" || exit 1
echo -n 'sync ... '
stat=$(time sync || sync)
echo ok
echo $stat
exec bin/tikv-server \
--addr "0.0.0.0:20160" \
--advertise-addr "172.16.5.140:20160" \
--status-addr "0.0.0.0:20180" \
--advertise-status-addr "172.16.5.140:20180" \
--pd "172.16.5.140:2379" \
--data-dir "/home/tidb/deploy/tikv-20160/data" \
--config conf/tikv.toml \
--log-file "/home/tidb/deploy/tikv-20160/log/tikv.log" 2>> "/home/tidb/deploy/tikv-20160/log/tikv_stderr.log" Only |
I didn't see
|
So what's the version of tidb you used? |
Nightly, the hash of TiKV is 95951d04e6e8c0bb267c6a5591fb336ed5483b41, which is several days ago. |
The |
I don't understand why utilizing advertise status port is wrong for cluster deployed long time ago. Shouldn't it decide its behavior on what exact version it is? And the cluster was deployed at the beginning of this year. |
TiKV supports And nightly is a special version because we don't know if it supports this arg at all. For example: if I ask, does TiKV nightly support pessimistic lock? I think your answer must be: for nightly released recently, yes, for nightly released two years ago, no. However, it's also reasonable to assume the nightly must be today's nightly, but this may cause the nightly cluster deployed before can't work any more. |
For TiKV 5.0-rc and forward, pessimistic lock is supported. I think you miss the point that TiKV doesn't name the version as nightly, it name it follow semver spec. Nightly is a release channel, rather than version. |
The
Maybe we can use the underlay version |
…version Close pingcap#1119 Partly fix pingcap#1082
…version Close pingcap#1119 Partly fix pingcap#1082
…version (pingcap#1128) * Fix the issue that the default selected version may be a preprelease version Close pingcap#1119 Partly fix pingcap#1082 * Add test * Test * Fix nightly * Fix test * Fix nightly clone Close pingcap#1108 Co-authored-by: Ti Chi Robot <71242396+ti-chi-bot@users.noreply.github.com>
Bug Report
Please answer these questions before submitting your issue. Thanks!
What did you do?
Using tiup to deploy a cluster.
What did you expect to see?
Everything works correctly.
What did you see instead?
There are warnings in logs:
That's because tiup use 0.0.0.0 as status address for all nodes, and same address can't be registered multiple times. Actually I have never configure it to use 0.0.0.0, what I set to host is IP like 127.0.0.1. Tiup should utilize the IP instead.
tiup --version
)?The text was updated successfully, but these errors were encountered: