Skip to content

Define the eBPF network sampling strategy#102

Merged
mrproliu merged 3 commits intoapache:masterfrom
mrproliu:network-profiling-sampling
Nov 17, 2022
Merged

Define the eBPF network sampling strategy#102
mrproliu merged 3 commits intoapache:masterfrom
mrproliu:network-profiling-sampling

Conversation

@mrproliu
Copy link
Contributor

Now we have the network profiling based on eBPF technology, then we can capture all the request and response data.
Therefore, we can add some sampling policies to match the time we can upload them to the backend.

@mrproliu mrproliu requested a review from wu-sheng November 16, 2022 12:04
@wu-sheng
Copy link
Member

I did some polish to the protocols. But I didn't test it locally. Please review and recheck.
I am making the settings easier to understand.

Comment on lines +52 to +58
# the minimal request duration to activate the network data(HTTP request/response raw data) sampling.
# Collecting requests without minimal request duration
minDuration: Int
# Collecting requests when the response code is 400-499
when4xx: Boolean!
# Collecting requests when the response code is 500-599
when5xx: Boolean!
Copy link
Member

Choose a reason for hiding this comment

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

minDuration condition could work when when5xx or when4xx matched. If neither of them is set, minDuration works on its own.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If the when5xx is matched, but the duration of the response is small than minDuration, should be sampling?

Copy link
Member

Choose a reason for hiding this comment

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

No, we should not.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, let me verify the format. Once the format verifies success, I think it could be merged.

@mrproliu mrproliu merged commit 34937ef into apache:master Nov 17, 2022
@mrproliu mrproliu deleted the network-profiling-sampling branch November 17, 2022 01:29
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.

2 participants