Skip to content

Commit 972471d

Browse files
AlnisMmeta-codesync[bot]
authored andcommitted
add slab rebalance timeout setting
Summary: Enabling slab release timeouts again and setting it to 10 minutes initially. Will gradually reduce it. Also added a setting to ucache, so ucache can disable/modify with a config change. Reviewed By: rlyerly Differential Revision: D90136674 fbshipit-source-id: da144ddd72a71da8eee12b81bcf46568f68424ca
1 parent ba36b17 commit 972471d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cachelib/allocator/CacheAllocatorConfig.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ class CacheAllocatorConfig {
603603

604604
// the amount of time to wait for a slab to be released before giving up
605605
// and aborting the release. 0 means we will wait forever
606-
std::chrono::milliseconds slabRebalanceTimeout{std::chrono::milliseconds(0)};
606+
std::chrono::milliseconds slabRebalanceTimeout{std::chrono::minutes(10)};
607607

608608
// If refcount is larger than this threshold, we will use shared_ptr
609609
// for handles in IOBuf chains.

0 commit comments

Comments
 (0)