mononoke: decrease getfiles buffer

Summary:
Looks like we shouldn't have raised in the first place. Big getfiles buffer
causes OOMs on the servers. Also memory profiling shows that quite often most
of the Mononoke server's memory is used for serving remotefilelog requests.

Reviewed By: purplefox

Differential Revision: D9601990

fbshipit-source-id: 356a65d0749b064486436fb737bd5a47b3beecfa
This commit is contained in:
Stanislau Hlebik 2018-08-31 01:30:27 -07:00 committed by Facebook Github Bot
parent 4021018efc
commit 904e4ee900

View File

@ -681,7 +681,7 @@ impl HgCommands for RepoClient {
info!(logger, "getfiles");
let this = self.clone();
let getfiles_buffer_size = 10000; // TODO(stash): make it configurable
let getfiles_buffer_size = 100; // TODO(stash): make it configurable
params
.map(move |(node, path)| {
let args = format!("node: {}, path: {}", node, path);