Skip to content
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

Prefix logger with keyspace/shard #8869

Merged
merged 2 commits into from
Oct 7, 2021
Merged

Conversation

5antelope
Copy link
Member

@5antelope 5antelope commented Sep 23, 2021

Signed-off-by: Yang Wu y.wu4515@gmail.com

Description

VTGR logs can be pretty hard to find the right one for a given shard. Often the time, we need know the host name and then grab logs from it.

This PR prefix all the VTGR logs with shard=ks/shard so that it is easier to search.

Related Issue(s)

^

Checklist

  • Should this PR be backported?
  • Tests were added or are not required
  • Documentation was added or is not required

Deployment Notes

Signed-off-by: Yang Wu <y.wu4515@gmail.com>
@5antelope 5antelope added Type: Enhancement Logical improvement (somewhere between a bug and feature) Component: Cluster management labels Sep 23, 2021
Copy link
Member

@deepthi deepthi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine to me.
@aquarapid @sougou any concerns about this?

@5antelope
Copy link
Member Author

I need to fix the stackfram a bit :)

Signed-off-by: Yang Wu <y.wu4515@gmail.com>
@5antelope
Copy link
Member Author

I think this is ready for review, thanks

Copy link
Contributor

@aquarapid aquarapid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@5antelope
Copy link
Member Author

@aquarapid do you happen to have the permission to land this PR? would like to land it for the v12 release early next week. thanks!

@5antelope
Copy link
Member Author

gentle nudge, thanks!

@deepthi deepthi merged commit 93c811b into vitessio:main Oct 7, 2021
@deepthi
Copy link
Member

deepthi commented Oct 7, 2021

If you really need this in v12 we can accept a PR on the release-12.0 branch (since this was approved several days ago but not merged in time).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Cluster management Type: Enhancement Logical improvement (somewhere between a bug and feature)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants