Now, I have a server to accept media stream and record to mp4 files, and upload to s3, when the concurrency level is high, I found that it is the s3 uploading which cost the most cpu, and when I monitored the IO, I also found that the cpu cost changed along with the IO out to s3, and the IO(out) rate is not stable.
so I am wondering that is there exit some method that I can use to control the upload speed to s3? For example, when this second the IO rate is too much high, then I make it slow down, so it can divide the total files among every second. And I an also wondering that if it is workable to decline the cpu cost.
I wish someone can help me out, thanks and forgive me for my poor English.