-
Notifications
You must be signed in to change notification settings - Fork 30
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
~25% of Requests are not captured by goreplay when compared with production #1247
Comments
Hi! Can you confirm that those requests are some heavey POST requests with big bodies? |
Hi @buger , Sample URL: Even if the number of characters in URL is higher, doesn't below parameter helps [if it helps, we already used this parameter]? Pls let us know if there is anything to note here |
Hi @buger , Found interesting finding related to missing requests at GOR: as a recap:
Example output by gor: ISSUE:
Example output by gor: biztype_data=&VALIDATION_GLID=192308361&APP_SCREEN_NAME=Search&options_start=0&options_end=9&AK=eyJ0eXAiOiJKV1QiLCJhbGciOiJzaGEyNTYifQ.eyJpc3MiOiJVU0VSIiwiYXVkIjoiNyo4KjYqMCozKiIsImV4cCI6MTcxMjgxOTE2MCwiaWF0IjoxNzEyNzMyNzYwLCJzdWIiOiIxOTIzMDgzNjEiLCJjZHQiOiIxMC0wNC0yMDI0In0.SRAa7UtNVodgTBzsis5MZP3Z-W5MHfCdBro3g6_SkMY&source=android.search&implicit_info_latlong=&token=imartenquiryprovider&APP_USER_ID=192308361&implicit_info_city_data=&APP_MODID=ANDROID&q=Fridge&modeId=android.search&APP_ACCURACY=316.5&prdsrc=1&APP_LATITUDE=20.379368&APP_LONGITUDE=77.63924&VALIDATION_USER_IP=49.15.249.104&app_version_no=13.2.7_13MAR24&VALIDATION_USERCONTACT=7083630534 Kindly go through this, would be of great help if you could pinpoint something here |
There is one more thing you can do, is to increase buffer on the OS level:
`sudo sysctl -w net.core.rmem_max=26214400`
Additionally set the following flag to goreplay (or bigger value):
--input-raw-buffer-size 10485760
One more thing you can do, is to record the traffic using tcpdump using
pcap `sudo tcpdump -i any -w capture.pcap port 50100` and later feed it to
goreplay like this:
gor --input-raw ./path-to-file.pcap:50100 --input-raw-engine pcap_file
--output-stdout
Thanks!
|
Thank you, will try them |
I'm facing similar issues.
The capture file is about 5MB:
The input file is 8MB and the pcap also reflects that:
When I try to replay the traffic from the pcap file I get the following output:
|
Hello all,
we have setup goreplay to redirect requests from production server to test server
On production, we have threshold of ~38 requests/sec
we found that ~25% of requests are not being captured by goreplay when compared with production
we have tried increasing buffer size to 10MB and 20MB respectively, still the issue persists
command we used:
sudo ./gor --input-raw :8983 --input-raw-bpf-filter "dst port 8983 and inbound" --input-raw-allow-incomplete --input-raw-buffer-size 20971520 --output-http="http://test-server-ip:8983"
Can someone please let us know the reason for this behaviour?
The text was updated successfully, but these errors were encountered: