Refresh in-memory bucket policy cache every 5 minutes (#6007)

This commit is contained in:
Krishna Srinivas
2018-06-06 12:52:56 -07:00
committed by Dee Koder
parent 6a53dd1701
commit 113570b514
3 changed files with 72 additions and 26 deletions
+2
View File
@@ -72,6 +72,8 @@ const (
globalMultipartExpiry = time.Hour * 24 * 14 // 2 weeks.
// Cleanup interval when the stale multipart cleanup is initiated.
globalMultipartCleanupInterval = time.Hour * 24 // 24 hrs.
// Refresh interval to update in-memory bucket policy cache.
globalRefreshBucketPolicyInterval = 5 * time.Minute
// Limit of location constraint XML for unauthenticted PUT bucket operations.
maxLocationConstraintSize = 3 * humanize.MiByte