Where to put code to artificially slow down min.io requests? #11672
-
Hi all, To troubleshoot these issues I would like to use min.io in my development enviroment and make it answer incoming requests equally slowly. Where in the source code would be a good location to put in some artificial delays? Sorry for this highly unconventional request ;-) Regards and thank you for min.io, |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
You should do this outside MinIO that use
|
Beta Was this translation helpful? Give feedback.
-
Sorry, forgot to mention that the whole development environment I was talking about is running on Windows (in a virtual Machine). Thanks anyway, I will try to figure something out! |
Beta Was this translation helpful? Give feedback.
-
I have put in a "time.Sleep(1*time.Second)" in GetObjectHandler and PutObjectHandler in cmd/object-handlers.go. Seems to do the (admittedly, crude) job for the time being :-) |
Beta Was this translation helpful? Give feedback.
You should do this outside MinIO that use
tc
to do traffic control