bump takeover receive timeout to five minutes

Summary: Temporary fix to bump the takeover timeout to five minutes

Reviewed By: simpkins

Differential Revision: D7660642

fbshipit-source-id: 5b3a0347aa1443e395e9461d33459c62ffce5b2d
This commit is contained in:
Chad Austin 2018-04-18 11:46:04 -07:00 committed by Facebook Github Bot
parent 75b32848c6
commit 1f256dd26e

View File

@ -21,6 +21,15 @@ using apache::thrift::CompactSerializer;
using folly::IOBuf;
using std::string;
/**
* Five minutes is a high default value. This could be lowered back to one
* minute after takeover no longer does O(loaded) expensive save operations.
*/
DEFINE_int32(
takeoverReceiveTimeout,
300,
"Timeout for receiving takeover data from old process in seconds");
namespace facebook {
namespace eden {
@ -46,7 +55,7 @@ TakeoverData takeoverMounts(
})
.then([&socket] {
// Wait for the takeover data response
auto timeout = std::chrono::seconds(60);
auto timeout = std::chrono::seconds(FLAGS_takeoverReceiveTimeout);
return socket.receive(timeout);
})
.then([&expectedMessage](UnixSocket::Message&& msg) {