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

vatamane pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/couchdb.git


The following commit(s) were added to refs/heads/main by this push:
     new 1d17a0037 Bump process limit to 1M
1d17a0037 is described below

commit 1d17a00378268d5bac6d38c698c9e83357bba059
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 `262144` 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..b4167be7b 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 262144.
+# 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