This is an automated email from the ASF dual-hosted git repository.

vatamane pushed a commit to branch bump-proc-limit
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 9eb50e7705f572b34b7c07a66937ab4eca97a041
Author: Nick Vatamaniuc <[email protected]>
AuthorDate: Tue May 20 12:13:30 2025 -0400

    Bump process limit to 1M
    
    In Erlang < 27, it defaulted to `131072` and that's too easy to hit with 
medium
    and larger clusters these days. In Erlang >= 27 the deafult was bumped to 
1M so
    set it at that default in vm.args with a note to help users configure it, 
and
    know when it may need to be increased.
    
    Issue: https://github.com/apache/couchdb/issues/5544
---
 rel/overlay/etc/vm.args | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/rel/overlay/etc/vm.args b/rel/overlay/etc/vm.args
index d762c33bf..8573034df 100644
--- a/rel/overlay/etc/vm.args
+++ b/rel/overlay/etc/vm.args
@@ -57,6 +57,17 @@
 #
 -kernel prevent_overlapping_partitions false
 
+# Set Erlang process limit. If not set in Erlang 27 and greater versions it
+# defaults to 1048576. In Erlang versions less than 27 it defaulted to 131072.
+# When a cluster reaches this limit it will emit "Too many processes" error in
+# the log. That could be a time to bump it up. The actual value set will be a
+# larger power of 2 number. To check the actual limit call
+# `erlang:system_info(process_limit).` in remsh.
+#
+# For additional info see
+#   https://www.erlang.org/doc/apps/erts/erl_cmd.html#emulator-flags
++P 1048576
+
 # Increase the pool of dirty IO schedulers from 10 to 16
 # Dirty IO schedulers are used for file IO.
 +SDio 16

Reply via email to