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

grpc-js: Limit the number of retained channelz trace events #1943

Conversation

murgatroid99
Copy link
Member

This limits the number of trace events that can be retained at any one time per channel/subchannel/server, in an attempt to limit the total memory usage and hopefully fix #1941.

channelz.proto has the following comment on the num_events_logged field of the ChannelTrace message:

Number of events ever logged in this tracing object. This can differ from events.size() because events can be overwritten or garbage collected by implementations.

I am interpreting this as permission to discard old events when the implementation decides it is necessary.

@murgatroid99
Copy link
Member Author

The Linux Tests appear to be failing because of a couple of flakes in the compatibility test with the native library, specifically on the native library side. I don't think that's a problem for grpc-js.

@murgatroid99 murgatroid99 changed the base branch from master to @grpc/grpc-js@1.4.x October 18, 2021 20:35
@murgatroid99 murgatroid99 merged commit 356f937 into grpc:@grpc/grpc-js@1.4.x Oct 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

grpc-js 1.4.1 - Channelz tracing uses unbounded memory which causes OOM
3 participants