@@ -45,21 +45,34 @@ $TYPEDFIELDS
45
45
cache_ttl_secs:: Culonglong
46
46
" The time-to-idle in seconds for entries in the client cache"
47
47
cache_tti_secs:: Culonglong
48
+ " Put requests with a size in bytes greater than this will use multipart operations"
49
+ multipart_put_threshold:: Culonglong
50
+ " Get requests with a size in bytes greater than this will use multipart operations"
51
+ multipart_get_threshold:: Culonglong
52
+ " The size in bytes for each part of multipart get operations"
53
+ multipart_get_part_size:: Culonglong
54
+
48
55
end
49
56
50
57
function Base. show (io:: IO , config:: StaticConfig )
51
58
print (io, " StaticConfig(" ),
52
59
print (io, " n_threads=" , Int (config. n_threads), " ," )
53
60
print (io, " cache_capacity=" , Int (config. cache_capacity), " ," )
54
61
print (io, " cache_ttl_secs=" , Int (config. cache_ttl_secs), " ," )
55
- print (io, " cache_tti_secs=" , Int (config. cache_tti_secs), " )" )
62
+ print (io, " cache_tti_secs=" , Int (config. cache_tti_secs), " ," )
63
+ print (io, " multipart_put_threshold=" , Int (config. multipart_put_threshold), " ," )
64
+ print (io, " multipart_get_threshold=" , Int (config. multipart_get_threshold), " ," )
65
+ print (io, " multipart_get_part_size=" , Int (config. multipart_get_part_size), " )" )
56
66
end
57
67
58
68
const DEFAULT_CONFIG = StaticConfig (
59
69
n_threads= 0 ,
60
70
cache_capacity= 20 ,
61
71
cache_ttl_secs= 30 * 60 ,
62
- cache_tti_secs= 5 * 60
72
+ cache_tti_secs= 5 * 60 ,
73
+ multipart_put_threshold= 10 * 1024 * 1024 ,
74
+ multipart_get_threshold= 8 * 1024 * 1024 ,
75
+ multipart_get_part_size= 8 * 1024 * 1024
63
76
)
64
77
65
78
const _OBJECT_STORE_STARTED = Ref (false )
0 commit comments