You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Chris Stockton (JIRA)" <ji...@apache.org> on 2010/07/29 01:22:17 UTC
[jira] Created: (COUCHDB-839) Couchdb startup script should support
a erl startup options flag
Couchdb startup script should support a erl startup options flag
----------------------------------------------------------------
Key: COUCHDB-839
URL: https://issues.apache.org/jira/browse/COUCHDB-839
Project: CouchDB
Issue Type: Improvement
Components: Build System
Affects Versions: 0.11.1
Environment: Linux, cent-os, any
Reporter: Chris Stockton
Priority: Minor
It seems that the couchdb script does not support any options to pass to the erlang vm. Would be nice to allow a options flag and document on the wiki that it exists. It is important because large-scale deployments of couchdb need to pass some limits on to erlang. For example, I am using a -O option of: -O "+P 65536 -env ERL_MAX_ETS_TABLES 60000 -env ERL_MAX_PORTS 60000"
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (COUCHDB-839) [PATCH] Couchdb startup script should
support a erl startup options flag
Posted by "Chris Stockton (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-839?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chris Stockton updated COUCHDB-839:
-----------------------------------
Summary: [PATCH] Couchdb startup script should support a erl startup options flag (was: Couchdb startup script should support a erl startup options flag)
> [PATCH] Couchdb startup script should support a erl startup options flag
> ------------------------------------------------------------------------
>
> Key: COUCHDB-839
> URL: https://issues.apache.org/jira/browse/COUCHDB-839
> Project: CouchDB
> Issue Type: Improvement
> Components: Build System
> Affects Versions: 0.11.1
> Environment: Linux, cent-os, any
> Reporter: Chris Stockton
> Priority: Minor
> Attachments: couchdb.tpl.in.patch
>
>
> It seems that the couchdb script does not support any options to pass to the erlang vm. Would be nice to allow a options flag and document on the wiki that it exists. It is important because large-scale deployments of couchdb need to pass some limits on to erlang. For example, I am using a -O option of: -O "+P 65536 -env ERL_MAX_ETS_TABLES 60000 -env ERL_MAX_PORTS 60000"
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (COUCHDB-839) [PATCH] Couchdb startup script
should support a erl startup options flag
Posted by "Randall Leeds (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-839?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12893424#action_12893424 ]
Randall Leeds commented on COUCHDB-839:
---------------------------------------
I've brought this up a couple of times and it was shot down for the following reason.
On a system that utilizes /etc/defaults/couchdb or similar you can export ERL_FLAGS or ERL_AFLAGS environment there. Similarly, you can export ERL_MAX_PORTS or ERL_MAX_ETS_TABLES directly rather than pass them as flags.
On a less straightforwardly supported init setup it's on you to create your own wrapper script to do this.
> [PATCH] Couchdb startup script should support a erl startup options flag
> ------------------------------------------------------------------------
>
> Key: COUCHDB-839
> URL: https://issues.apache.org/jira/browse/COUCHDB-839
> Project: CouchDB
> Issue Type: Improvement
> Components: Build System
> Affects Versions: 0.11.1
> Environment: Linux, cent-os, any
> Reporter: Chris Stockton
> Priority: Minor
> Attachments: couchdb.tpl.in.patch
>
>
> It seems that the couchdb script does not support any options to pass to the erlang vm. Would be nice to allow a options flag and document on the wiki that it exists. It is important because large-scale deployments of couchdb need to pass some limits on to erlang. For example, I am using a -O option of: -O "+P 65536 -env ERL_MAX_ETS_TABLES 60000 -env ERL_MAX_PORTS 60000"
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (COUCHDB-839) Couchdb startup script should support
a erl startup options flag
Posted by "Chris Stockton (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-839?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chris Stockton updated COUCHDB-839:
-----------------------------------
Attachment: couchdb.tpl.in.patch
Here is a simple patch demonstrating the inclusion of a -O option. Note due to limitations of the current use of getopt (spaces) for simplicity I swapped it out with getopts. This shouldn't be a issue as browsing around I already see other bash/sh idioms that would cause issues for csh'ish systems.
-Chris
> Couchdb startup script should support a erl startup options flag
> ----------------------------------------------------------------
>
> Key: COUCHDB-839
> URL: https://issues.apache.org/jira/browse/COUCHDB-839
> Project: CouchDB
> Issue Type: Improvement
> Components: Build System
> Affects Versions: 0.11.1
> Environment: Linux, cent-os, any
> Reporter: Chris Stockton
> Priority: Minor
> Attachments: couchdb.tpl.in.patch
>
>
> It seems that the couchdb script does not support any options to pass to the erlang vm. Would be nice to allow a options flag and document on the wiki that it exists. It is important because large-scale deployments of couchdb need to pass some limits on to erlang. For example, I am using a -O option of: -O "+P 65536 -env ERL_MAX_ETS_TABLES 60000 -env ERL_MAX_PORTS 60000"
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (COUCHDB-839) [PATCH] Couchdb startup script
should support a erl startup options flag
Posted by "Randall Leeds (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-839?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12894638#action_12894638 ]
Randall Leeds commented on COUCHDB-839:
---------------------------------------
Actually, Chris, all the flags can be set via exports.
See `man erl` and look for ENVIRONMENT VARIABLES at the bottom.
ERL_AFLAGS or ERL_ZFLAGS are what you want.
> [PATCH] Couchdb startup script should support a erl startup options flag
> ------------------------------------------------------------------------
>
> Key: COUCHDB-839
> URL: https://issues.apache.org/jira/browse/COUCHDB-839
> Project: CouchDB
> Issue Type: Improvement
> Components: Build System
> Affects Versions: 0.11.1
> Environment: Linux, cent-os, any
> Reporter: Chris Stockton
> Priority: Minor
> Attachments: couchdb.tpl.in.patch
>
>
> It seems that the couchdb script does not support any options to pass to the erlang vm. Would be nice to allow a options flag and document on the wiki that it exists. It is important because large-scale deployments of couchdb need to pass some limits on to erlang. For example, I am using a -O option of: -O "+P 65536 -env ERL_MAX_ETS_TABLES 60000 -env ERL_MAX_PORTS 60000"
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (COUCHDB-839) [PATCH] Couchdb startup script
should support a erl startup options flag
Posted by "Chris Stockton (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-839?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12894644#action_12894644 ]
Chris Stockton commented on COUCHDB-839:
----------------------------------------
Thank you much Randall, whenever I tried those with +P with a interactive shell, it wouldn't actually modify the process limit. I will try some more to see if I can figure this out since you verified it should be possible likely a user error.
> [PATCH] Couchdb startup script should support a erl startup options flag
> ------------------------------------------------------------------------
>
> Key: COUCHDB-839
> URL: https://issues.apache.org/jira/browse/COUCHDB-839
> Project: CouchDB
> Issue Type: Improvement
> Components: Build System
> Affects Versions: 0.11.1
> Environment: Linux, cent-os, any
> Reporter: Chris Stockton
> Priority: Minor
> Attachments: couchdb.tpl.in.patch
>
>
> It seems that the couchdb script does not support any options to pass to the erlang vm. Would be nice to allow a options flag and document on the wiki that it exists. It is important because large-scale deployments of couchdb need to pass some limits on to erlang. For example, I am using a -O option of: -O "+P 65536 -env ERL_MAX_ETS_TABLES 60000 -env ERL_MAX_PORTS 60000"
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (COUCHDB-839) [PATCH] Couchdb startup script should
support a erl startup options flag
Posted by "Noah Slater (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-839?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Noah Slater closed COUCHDB-839.
-------------------------------
Resolution: Won't Fix
Thanks for the patch, but environment variables are the way to go.
I would accept a patch to improve the documentation about how to use environment variables.
> [PATCH] Couchdb startup script should support a erl startup options flag
> ------------------------------------------------------------------------
>
> Key: COUCHDB-839
> URL: https://issues.apache.org/jira/browse/COUCHDB-839
> Project: CouchDB
> Issue Type: Improvement
> Components: Build System
> Affects Versions: 0.11.1
> Environment: Linux, cent-os, any
> Reporter: Chris Stockton
> Priority: Minor
> Attachments: couchdb.tpl.in.patch
>
>
> It seems that the couchdb script does not support any options to pass to the erlang vm. Would be nice to allow a options flag and document on the wiki that it exists. It is important because large-scale deployments of couchdb need to pass some limits on to erlang. For example, I am using a -O option of: -O "+P 65536 -env ERL_MAX_ETS_TABLES 60000 -env ERL_MAX_PORTS 60000"
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (COUCHDB-839) [PATCH] Couchdb startup script should
support a erl startup options flag
Posted by "Chris Stockton (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-839?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chris Stockton closed COUCHDB-839.
----------------------------------
Resolution: Not A Problem
Re-Closing.
> [PATCH] Couchdb startup script should support a erl startup options flag
> ------------------------------------------------------------------------
>
> Key: COUCHDB-839
> URL: https://issues.apache.org/jira/browse/COUCHDB-839
> Project: CouchDB
> Issue Type: Improvement
> Components: Build System
> Affects Versions: 0.11.1
> Environment: Linux, cent-os, any
> Reporter: Chris Stockton
> Priority: Minor
> Attachments: couchdb.tpl.in.patch
>
>
> It seems that the couchdb script does not support any options to pass to the erlang vm. Would be nice to allow a options flag and document on the wiki that it exists. It is important because large-scale deployments of couchdb need to pass some limits on to erlang. For example, I am using a -O option of: -O "+P 65536 -env ERL_MAX_ETS_TABLES 60000 -env ERL_MAX_PORTS 60000"
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Reopened: (COUCHDB-839) [PATCH] Couchdb startup script
should support a erl startup options flag
Posted by "Chris Stockton (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-839?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chris Stockton reopened COUCHDB-839:
------------------------------------
Hello,
I believe you would be very correct that those two specific flags may be passed through exports. Certain other arguments may also be influenced by switches. (+Bd I.E.). However, it should be understood before closing this that the emulator supports many other flags some of which for certain systems and setups may require flags outside the afore-mentioned. Such as +P, or for some setups defining the CPU topology may be desired. I am unaware of how to get these results without this (or similar) modification or scrapping the couchdb script all together.
-Chris
> [PATCH] Couchdb startup script should support a erl startup options flag
> ------------------------------------------------------------------------
>
> Key: COUCHDB-839
> URL: https://issues.apache.org/jira/browse/COUCHDB-839
> Project: CouchDB
> Issue Type: Improvement
> Components: Build System
> Affects Versions: 0.11.1
> Environment: Linux, cent-os, any
> Reporter: Chris Stockton
> Priority: Minor
> Attachments: couchdb.tpl.in.patch
>
>
> It seems that the couchdb script does not support any options to pass to the erlang vm. Would be nice to allow a options flag and document on the wiki that it exists. It is important because large-scale deployments of couchdb need to pass some limits on to erlang. For example, I am using a -O option of: -O "+P 65536 -env ERL_MAX_ETS_TABLES 60000 -env ERL_MAX_PORTS 60000"
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.