Skip to content

Conversation

@jiafu1115
Copy link
Contributor

@jiafu1115 jiafu1115 commented Nov 22, 2025

Sometimes we need to know how long Kafka takes to start in order to make certain decisions—for example, tuning configuration parameters or estimating how much time operations will require. However, it’s quite inconvenient to manually look for the timestamp of the first log line and then the first log line hint the server has started, and calculate the difference.
So this PR adds a direct log output for the startup duration.

Log the total startup time after successful server startup: "Kafka startup completed in ${startupDurationMs} ms"

Benefits:

  1. Quickly identify slow startups
  2. Easily know startup duration directly in logs without repeat manual calculation

@github-actions github-actions bot added triage PRs from the community core Kafka Broker small Small PRs labels Nov 22, 2025
@jiafu1115 jiafu1115 marked this pull request as ready for review November 22, 2025 00:28
@github-actions
Copy link

A label of 'needs-attention' was automatically added to this PR in order to raise the
attention of the committers. Once this issue has been triaged, the triage label
should be removed to prevent this automation from happening again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-approved core Kafka Broker needs-attention small Small PRs triage PRs from the community

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants