Skip to content

support global status like 'uptime' #8842

@morgo

Description

@morgo

Feature Request

Is your feature request related to a problem? Please describe:

TiDB does not support the status variable 'uptime'. MySQL dbas use it idiomatically:

  • I restart the server, I check it is the correctly rebooted.
  • My client disconnected. Was it because of a server crash? check uptime.
  • has the server freshly started? = slow performance (not applicable to tidb, since it's stateless).

So it is not critical but helps improve 'comfort'.

Describe the feature you'd like:

SHOW GLOBAL STATUS like 'Uptime' should report uptime in seconds.

Describe alternatives you've considered:

N/A

Teachability, Documentation, Adoption, Migration Strategy:

Compatibility with MySQL.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.priority/P4Minor issue, awaiting more evidence before prioritizingtype/compatibilitytype/enhancementThe issue or PR belongs to an enhancement.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions