Open aboodman opened 5 years ago
Note there are probably other modes where Noms is going to use even more file handles, like when talking to AWS. So it's hard to pick a good number. Maybe an alternate solution is to develop/test noms for a particular value and try to detect at startup and warn if not met.
Because
defaultMaxTables
in nbs is256
and the default open files on os x is also256
, we can easily hit this value and the failure is pretty cryptic. Simple example:A principled solution would be to somehow detect max open file handles and set it based on that, but this is going to be system dependent.
Maybe a simple solution would be to drop it back to 128, which was the original value. It doesn't seem to have been updated to 256 for a particularly specific reason. Or maybe 192 :-).
https://github.com/attic-labs/noms/pull/3489/files#diff-bf374388e9c55e661083dd4d2d0a1305R21