I have an endpoint POST /upload
that uploads file into my storage.
The response time is dependent on the file size (the bigger file, the longer it takes to respond with 200
).
How should I set a Service Level Objective (SLO) with this endpoint?
Any suggestion?
Asked
Active
Viewed 55 times
0

NyamNyam
- 320
- 1
- 3
- 13
1 Answers
0
I would suggest looking at it at a higher level first. Usually, you measure response time from the server where it mostly depends on the server-side. Whereas uploading files to storage mostly depends on the client (network bandwidth). So it depends if you want to measure client performance upload speed or not.
But if you still want to measure performance SLO I'd suggest measuring performance against specific size. Say if you know for example average is 500kb and 90% is 1Mb then measure performance up to 1Mb of files.

Vitaliy
- 416
- 6
- 9
-
Thanks for the recommendation. Let’s say I have an SLO: 99.9% of the 1MB file upload operation should take no more than 100ms for the past 30 days. How do I ensure that for file size more than 1MB, it won’t consume too much error budget and break my SLO? Do I still need to track the performance metrics for file size more than 1MB? – NyamNyam Jul 14 '22 at 03:05