vm.args 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. # Licensed under the Apache License, Version 2.0 (the "License"); you may not
  2. # use this file except in compliance with the License. You may obtain a copy of
  3. # the License at
  4. #
  5. # http://www.apache.org/licenses/LICENSE-2.0
  6. #
  7. # Unless required by applicable law or agreed to in writing, software
  8. # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  9. # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  10. # License for the specific language governing permissions and limitations under
  11. # the License.
  12. # Each node in the system must have a unique name. These are specified through
  13. # the Erlang -name flag, which takes the form:
  14. #
  15. # -name nodename@<FQDN>
  16. #
  17. # or
  18. #
  19. # -name nodename@<IP-ADDRESS>
  20. #
  21. # CouchDB recommends the following values for this flag:
  22. #
  23. # 1. If this is a single node, not in a cluster, use:
  24. # -name couchdb@127.0.0.1
  25. #
  26. # 2. If DNS is configured for this host, use the FQDN, such as:
  27. # -name couchdb@my.host.domain.com
  28. #
  29. # 3. If DNS isn't configured for this host, use IP addresses only, such as:
  30. # -name couchdb@192.168.0.1
  31. #
  32. # Do not rely on tricks with /etc/hosts or libresolv to handle anything
  33. # other than the above 3 approaches correctly. They will not work reliably.
  34. #
  35. # Multiple CouchDBs running on the same machine can use couchdb1@, couchdb2@,
  36. # etc.
  37. -name couchdb@127.0.0.1
  38. # All nodes must share the same magic cookie for distributed Erlang to work.
  39. # Comment out this line if you synchronized the cookies by other means (using
  40. # the ~/.erlang.cookie file, for example).
  41. -setcookie monster
  42. # Tell kernel and SASL not to log anything
  43. -kernel error_logger silent
  44. -sasl sasl_error_logger false
  45. # Use kernel poll functionality if supported by emulator
  46. +K true
  47. # Start a pool of asynchronous IO threads
  48. +A 16
  49. # Comment this line out to enable the interactive Erlang shell on startup
  50. +Bd -noinput
  51. # Force use of the smp scheduler, fixes #1296
  52. -smp enable
  53. # Set maximum SSL session lifetime to reap terminated replication readers
  54. -ssl session_lifetime 300
  55. ## TLS Distribution
  56. ## Use TLS for connections between Erlang cluster members.
  57. ## http://erlang.org/doc/apps/ssl/ssl_distribution.html
  58. ##
  59. ## Generate Cert(PEM) File
  60. ## This is just an example command to generate a certfile (PEM).
  61. ## This is not an endorsement of specific expiration limits, key sizes, or algorithms.
  62. ## $ openssl req -newkey rsa:2048 -new -nodes -x509 -days 3650 -keyout key.pem -out cert.pem
  63. ## $ cat key.pem cert.pem > dev/erlserver.pem && rm key.pem cert.pem
  64. ##
  65. ## Generate a Config File (couch_ssl_dist.conf)
  66. ## [{server,
  67. ## [{certfile, "</path/to/erlserver.pem>"},
  68. ## {secure_renegotiate, true}]},
  69. ## {client,
  70. ## [{secure_renegotiate, true}]}].
  71. ##
  72. ## CouchDB recommends the following values for no_tls flag:
  73. ## 1. Use TCP only, set to true, such as:
  74. ## -couch_dist no_tls true
  75. ## 2. Use TLS only, set to false, such as:
  76. ## -couch_dist no_tls false
  77. ## 3. Specify which node to use TCP, such as:
  78. ## -couch_dist no_tls \"*@127.0.0.1\"
  79. ##
  80. ## To ensure search works, make sure to set 'no_tls' option for the clouseau node.
  81. ## By default that would be "clouseau@127.0.0.1".
  82. ## Don't forget to override the paths to point to your certificate(s) and key(s)!
  83. ##
  84. #-proto_dist couch
  85. #-couch_dist no_tls \"clouseau@127.0.0.1\"
  86. #-ssl_dist_optfile <path/to/couch_ssl_dist.conf>
  87. # Set a well-known cluster port
  88. -kernel inet_dist_listen_min 9100
  89. -kernel inet_dist_listen_max 9100