Commit Graph

71 Commits

Author SHA1 Message Date
Michael Klishin eec000708b
Bump default VM atom table size to 5M
See #895 for background and reasoning.

Fixes #895.
2016-07-28 15:38:48 +03:00
Karl Nilsson b36f790445 use the default_bind bind type 2016-07-14 12:35:03 +01:00
Karl Nilsson c93d5366e9 Set scheduler bindings in rabbitmq-env.bat for windows
rename SCHEDULING to SCHEDULER in line with erlang documentation
2016-07-14 11:19:17 +01:00
Diana Corbacho 179873dc29 Renaming 2016-07-13 11:03:50 +01:00
Diana Corbacho d956c5cb97 Tune scheduling bind flags for Erlang VM 2016-07-04 15:31:11 +01:00
Alexey Lebedeff 4dd4fd61f4 Allow caching HiPE-compilation results
That way HiPE compilation can be performed during package installation
and will not waste time during every startup.

rabbit_hipe is refactored to support both modes of compilation - during
every server startup or separately with caching in the filesystem.
2016-05-20 17:39:28 +03:00
Daniil Fedotov 811b0d9772 Override CONF_ENV_FILE with RABBITMQ_CONF_ENV_FILE 2016-04-05 14:26:40 +01:00
Chris Bandy dc970adcd9 Use basic regular expressions for sed portability 2016-02-15 22:43:09 -08:00
Michael Klishin 0aced26f96 Use -r with sed on Linux, fixes #592
We previously did the same change in #273 (PR: #275),
but the file in which it was done was removed in 231e90cacf.

Note that #592 recommends using `-r` unconditionally but that option
is not recognised by sed which ships with OS X.
2016-02-01 01:08:50 +03:00
Jean-Sébastien Pédron fdb1eb485c rabbitmq-env: Revert "Use Erlang to determine local hostname"
After further investigation, the problem was not an inconsistency
between hostname(1) and Erlang, but a `/etc/rabbitmq/rabbitmq-env.conf`
in Travis CI's host having `NODENAME=rabbit@localhost`. See #402.

The real problem is therefore the testsuite which should ignore
`/etc/rabbitmq/rabbitmq-env.conf`.

The Windows side of the change is kept because it fixes a real issue.

References #402.
2015-11-04 11:25:33 +01:00
Jean-Sébastien Pédron 1fb451090a rabbitmq-env{,.bat}: Use Erlang to determine local hostname
This helps when Erlang and hostname(1) or  %COMPUTERNAME% return different
value. This happened on Travis CI and some Windows hosts so far.
2015-11-03 19:13:55 +01:00
Jean-Sébastien Pédron 72dcf7c5b4 rabbitmq-env: Ensure RABBITMQ_HOME is an absolute path
This helps rabbitmq-plugins when it queries rabbitmqctl to get the
various plugins path variables.
2015-10-30 12:33:26 +01:00
Jean-Sébastien Pédron 561333bd0e rabbitmq-plugins: Don't query rabbitmqctl if env vars are explicitly set
So if RABBITMQ_PLUGINS_DIR is explicitely set in the environment, do not
run rabbitmqctl. Likewise for RABBITMQ_ENABLED_PLUGINS_FILE.

This prevents rabbitmq-plugins from taking configuration from a running
unrelated node, when it is started from `make run-broker`. The make
command will still fail later but for the correct reason: there is
already a node conflicting with the one we want to start.

Without this, `make run-broker` would abort with the following error:
    Error: {cannot_write_enabled_plugins_file,
               "./sbin/../etc/rabbitmq/enabled_plugins",enoent}
... which doesn't make any sense.
2015-10-30 12:21:44 +01:00
Jean-Sébastien Pédron 7a9c6b771e rabbitmqctl-env: Fix how we locate rabbit_common 2015-10-20 15:42:59 +02:00
Jean-Sébastien Pédron bb018b6adc Remove exec bit from non-executable scripts 2015-10-20 11:10:48 +02:00
Jean-Sébastien Pédron 1fff560708 Add plugins dir to ERL_LIBS even for non-dev environment 2015-10-20 11:10:48 +02:00
Jean-Sébastien Pédron bab7368ea3 rabbitmq-env: Fix vars for rabbitmq-plugins before setting ERL_LIBS 2015-10-20 11:10:48 +02:00
Jean-Sébastien Pédron b6ea6e9ef9 rabbitmq-env: Adjust RABBITMQ_*PLUGINS* if running from dev env 2015-10-20 11:10:48 +02:00
Jean-Sébastien Pédron 7b838f0d15 Use `plugins` as the dist directory directly 2015-10-20 11:10:48 +02:00
Jean-Sébastien Pédron 93d830ee5a rabbitmq-env: Use deps/rabbit_common in ERL_LIBS
... if there is no dist.

Also, export ERL_LIBS.
2015-10-20 11:10:48 +02:00
Jean-Sébastien Pédron b28fbfce63 Define ERL_LIBS when RabbitMQ runs from its source directory 2015-10-20 11:10:48 +02:00
Michael Klishin bd3cd13db7 Merge branch 'stable' 2015-07-07 22:05:32 +03:00
Daniil Fedotov 5c3c0e6f38 Fixes #179 2015-07-07 16:47:42 +03:00
Michael Klishin 0c9cd74784 Merge branch 'stable' 2015-07-02 13:58:43 +03:00
Michael Klishin 32b45d8dbc Initialise IO_THREAD_POOL_SIZE in rabbitmq-defaults 2015-07-02 04:31:24 +03:00
Michael Klishin c57ab10fd0 Merge branch 'stable' into rabbitmq-server-178 2015-07-02 03:58:56 +03:00
Michael Klishin 0187207525 Introduce RABBITMQ_BOOT_MODULE (for *nix for now) 2015-07-01 15:47:36 +03:00
Michael Klishin 8ac770285b Make it possible to override the +A VM flag with an env variable
For easier tweaking. References #178.
2015-06-03 20:06:59 +03:00
Michael Klishin 73f47630aa (c) year 2015-05-24 04:24:11 +03:00
Michael Klishin 7cb55202a0 (c) year 2015-05-24 04:19:23 +03:00
Jean-Sébastien Pédron 548446be0b Merge branch 'stable' 2015-04-22 20:05:03 +02:00
Jean-Sébastien Pédron 1edba4a248 rabbitmq-env: Ignore user's RABBITMQ_PID_FILE if set by init script
The user shouldn't override the init script's RABBITMQ_PID_FILE value,
otherwise the init script erroneously reports failures to start or stop
the service.

Now, rabbitmq-env logs a warning if RABBITMQ_PID_FILE is already defined
in the environment (ie. by the init script) and in rabbitmq-env.conf.

Fixes #127.
2015-04-22 19:17:28 +02:00
Jean-Sébastien Pédron 666fdb0af9 rabbitmq-env: Remove trailing slash from configurable paths
This fixes at least one problem with $RABBITMQ_PID_FILE which, by
default, is set to:
    RABBITMQ_PID_FILE=${RABBITMQ_MNESIA_DIR}.pid

In this case, if $RABBITMQ_MNESIA_DIR ends with a trailing slash, the
PID file is a hidden file placed in the Mnesia directory. This prevents
auto-clustering from working and this is tricky to understand why.

Fixes #118.
2015-04-21 10:59:55 +02:00
Jean-Sébastien Pédron ff08f21b15 Merge branch 'stable' 2015-04-21 10:57:31 +02:00
Jean-Sébastien Pédron 69b9bef23b rabbitmq-env: Use "$path" in rmq_realpath(), not "$dir"
... which does not exit.
2015-04-21 10:55:19 +02:00
Jean-Sébastien Pédron 009cc24f45 Merge branch 'stable' 2015-04-21 09:54:19 +02:00
Jean-Sébastien Pédron d12654a320 rabbitmq-env: Check the Mnesia directory is not used for other purposes
If this is the case, log a warning to stderr.

Here is an example with the plugins expansion directory:
    WARNING: RABBITMQ_PLUGINS_EXPAND_DIR is located inside RABBITMQ_MNESIA_DIR
             => Auto-clustering will not work ('cluster_nodes' in rabbitmq.config)

And with the log directory:
    WARNING: RABBITMQ_LOG_BASE is equal to RABBITMQ_MNESIA_DIR
             RABBITMQ_LOGS is located inside RABBITMQ_MNESIA_DIR
             RABBITMQ_SASL_LOGS is located inside RABBITMQ_MNESIA_DIR
             => Auto-clustering will not work ('cluster_nodes' in rabbitmq.config)

Fixes #120.
2015-04-21 09:51:43 +02:00
Jean-Sébastien Pédron dc6c9b0275 rabbitmq-env: Prevent multiple load of the script
This doesn't happen today but it could be the case in the future, now
that the init scripts are sourcing it too.

References #88.
2015-04-08 11:52:50 +02:00
Jean-Sébastien Pédron 797ee7fa07 Init scripts: Honor RABBITMQ_LOG_BASE for {startup,shutdown}_* location
Before this change, they were written to /var/log/rabbitmq, no matter
the value of RABBITMQ_LOG_BASE.

In rabbitmq-env, allow the caller to set RABBITMQ_SCRIPTS_DIR to the
directory where rabbitmq-env and rabbitmq-default are located.

In both Fedora and Debian rabbitmq-server.init and
rabbitmq-script-wrapper, load rabbitmq-env and use RABBITMQ_LOG_BASE.
The default value is /var/log/rabbitmq, so the default behaviour remains
the same.

In Debian's rabbitmq-script-wrapper version, use RABBITMQ_LOG_BASE
instead of the hard-coded /var/log/rabbitmq.

Fixes #88.
2015-04-03 17:27:40 +02:00
Jean-Sebastien Pedron 6e76906aa5 rabbitmq-env: Use "hostname -f", not "hostname --fqdn"
The latter is specific to net-tools' hostname(1), found on Linux
distributions.
2015-01-29 16:15:10 +01:00
Simon MacMullen 94c0fd22fb Don't halt execution if RABBITMQ_CTL_ERL_ARGS is set. 2014-11-26 16:45:25 +00:00
Simon MacMullen ff8aa6c424 Read the env file before figuring out USE_LONGNAME. 2014-10-22 11:26:18 +01:00
Simon MacMullen 1780ff7927 Add RABBITMQ_USE_LONGNAME. Based on a patch from Marcos Diez but with fixes for the new way rabbitmqctl starts distribution, refactoring of common stuff into rabbitmq-env, not trimming the hostname, etc. 2014-10-17 14:40:39 +01:00
Simon MacMullen 46bbaddcce Port script Mnesia dir changes from bug26192. Add rabbitmqctl force_boot. 2014-07-03 12:08:05 +01:00
Simon MacMullen 51080c0d3e More explanation. 2014-06-23 16:54:49 +01:00
Michael Klishin 28cfe22305 Don't use -e for a portion of rabbitmq-env that uses readlink
readlink exists with an error when its argument is not a symlink.
2014-06-23 18:41:59 +04:00
Simon MacMullen 0b6055adde Ensure we don't fail if that file is missing. 2014-06-09 14:34:53 +01:00
Simon MacMullen 96c2d78b32 Use '-e' for all shell scripts. 2014-06-09 13:53:57 +01:00
Simon MacMullen 2f6b97a5df Update copyright for 2014 2014-03-17 17:25:24 +00:00
Simon MacMullen cb7027982a s/VMware/GoPivotal/g 2013-07-01 10:49:14 +01:00