Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.
Original topic: tiup 指定选项–uptime 无法显示tiflash的uptime
Cluster version: 6.1.2
tiup version: tiup-v1.11
I have a question. When using tiup --uptime
to check the uptime of various components in the cluster, I noticed that the uptime for tiflash is not displayed, while it is shown for other components. Has anyone encountered this situation before?
I briefly looked at the tiup source code and found that there is no special handling for tiflash.
I checked the latest code on GitHub and found that the uptime for TiFlash has not been implemented:
func (c *TiFlashComponent) Instances() []Instance {
ins := make([]Instance, 0, len(c.Topology.TiFlashServers))
for _, s := range c.Topology.TiFlashServers {
ins = append(ins, &TiFlashInstance{BaseInstance{
InstanceSpec: s,
Name: c.Name(),
Host: s.Host,
Port: s.GetMainPort(),
SSHP: s.SSHPort,
Ports: []int{
s.TCPPort,
s.HTTPPort,
s.FlashServicePort,
s.FlashProxyPort,
s.FlashProxyStatusPort,
s.StatusPort,
},
Dirs: []string{
s.DeployDir,
This file has been truncated. show original
Other components like TiKV have it implemented:
I suspect this is the issue.
The expert is right, thank you, expert.
Future versions will fix this issue~
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.