-
Notifications
You must be signed in to change notification settings - Fork 115
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
[output] ability to natively convert nighthawk output to fortio output #179
[output] ability to natively convert nighthawk output to fortio output #179
Conversation
Signed-off-by: Rudraksh Pareek <[email protected]>
Signed-off-by: Rudraksh Pareek <[email protected]>
Signed-off-by: Rudraksh Pareek <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm
Naive question probably .. but I wonder: why not wrap the nighthawk_transform binary to piggy back on this functionality being maintained at 0 cost? |
Yes @oschaaf, that is a much feasible solution. In fact, this is what we're doing right now. The results are transformed using the binary shipped in Meshery server's image. However, both the Nighthawk binaries are pretty big in size (600 MB) and also need shared libraries. As we're trying to reduce meshery server's image size (1.7 GB rn) and also move to a lightweight base image, we probably need to get these out. The nighthawk_service would be soon running in a different container and this PR is an attempt to help out with transformation. |
@DelusionalOptimist is this PR good to merge? |
@oschaaf since you're here and I'm not much sure if any thoughts have been put on this in the past, do you know why the nighthawk binaries published here are much bigger than the ones that are shipped in nighthawk-dev image? There seems to be a significant difference. |
It is a bit of a guess, but over at envoyproxy/nighthawk there's https://github.com/envoyproxy/nighthawk/blob/main/.bazelrc and https://github.com/envoyproxy/nighthawk/blob/main/.bazelversion. |
Signed-off-by: Rudraksh Pareek [email protected]
Description
This PR fixes #
Notes for Reviewers
This PR:
nighthawk_output_transform
Why do we need this?
Unlike
nighthawk_client
(CLI)nighthawk_service
(gRPC service) doesn't offer output transformation to other formats. See envoyproxy/nighthawk#152The histogram that is constructed for performance tests is (at least for now) based on fortio's json output so we need the ability to transform.
The code here uses the same logic and the output structure that is implemented by the
nighthawk_output_transformer
Signed commits