-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
out_s3: daemon coroutine for uploads
S3 is complicated, uploads happen potentially after a timeout. And the plugin is not concurrent safe at all. But we need to use async IO because sync IO stack is not stable. Solution: Daemon coroutine. A single flush coroutine, the first, will never yield and instead will become a daemon thread that handles all uploads with async IO. I'd like to thank Matthew Fala for his work on the design of this solution. Signed-off-by: Wesley Pettit <[email protected]>
- Loading branch information
1 parent
4c189fc
commit b311a0d
Showing
2 changed files
with
42 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters