Skip to content

Commit

Permalink
Document prerequisite installation more clearly
Browse files Browse the repository at this point in the history
Closes #343
  • Loading branch information
danielmitterdorfer committed Nov 7, 2017
1 parent 5841b0c commit 4f8aea5
Show file tree
Hide file tree
Showing 2 changed files with 88 additions and 16 deletions.
8 changes: 5 additions & 3 deletions docs/developing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ Prerequisites

Please ensure that the following packages are installed before installing Rally in development mode:

* Python 3.4 or better available as `python3` on the path (verify with: ``python3 --version`` which should print ``Python 3.4.0`` (or higher))
* Python 3.4 or better available as ``python3`` on the path (verify with: ``python3 --version``)
* ``pip3`` available on the path (verify with ``pip3 --version``)
* JDK
* JDK 8 or 9
* git 1.9 or better
* Gradle 3.3 or better

Rally does not support Windows and is only actively tested on Mac OS X and Linux.
Please check the :doc:`installation guide </install>` for detailed installation instructions for these packages.

Rally does not support Windows and is only actively tested on MacOS and Linux.

Installation Instructions for Development
-----------------------------------------
Expand Down
96 changes: 83 additions & 13 deletions docs/install.rst
Original file line number Diff line number Diff line change
@@ -1,28 +1,98 @@
Installation
------------
============

This is the detailed installation guide for Rally. If you are in a hurry you can check the :doc:`quickstart guide </quickstart>`.

Prerequisites
~~~~~~~~~~~~~
-------------

Before installing Rally, please ensure that the following packages are installed:
Rally does not support Windows and is only actively tested on MacOS and Linux. Before installing Rally, please ensure that the following packages are installed.

* Python 3.4 or better available as `python3` on the path (verify with: ``python3 --version`` which should print ``Python 3.4.0`` or higher)
* Python3 dev (for header files) (``python3-dev`` package)
* ``pip3`` available on the path (verify with ``pip3 --version``)
* git 1.9 or better
* JDK 8 or 9 on all machines where you want to launch Elasticsearch (if you use Rally just as a load generator, no JDK is required)
Python
~~~~~~

* Python 3.4 or better available as `python3` on the path. Verify with: ``python3 --version``.
* Python3 header files (included in the Python3 development package).
* ``pip3`` available on the path. Verify with ``pip3 --version``.

**Debian / Ubuntu**

::

sudo apt-get install gcc python3-pip python3-dev


**RHEL 6/ CentOS 6**

*Tested on CentOS release 6.9 (Final).*

.. note::

Depending on the concrete flavor and version of your distribution you may need to enable `EPEL <https://fedoraproject.org/wiki/EPEL>`_ before.

::

sudo yum install -y gcc python34.x86_64 python34-devel.x86_64 python34-setuptools.noarch
# installs pip as it is not available as an OS package
sudo python3 /usr/lib/python3.4/site-packages/easy_install.py pip


**RHEL 7 / CentOS 7**

*Tested on CentOS Linux release 7.4.1708 (Core).*

::

sudo yum install -y gcc python34.x86_64 python34-devel.x86_64 python34-pip.noarch

**Amazon Linux**

::

sudo yum install -y gcc python35-pip.noarch python35-devel.x86_64

**MacOS**

We recommend that you use `Homebrew <https://brew.sh/>`_::

brew install python3

git
~~~

``git 1.9`` or better is required. Verify with ``git --version``.

**Debian / Ubuntu**

::

sudo apt-get install git


**Red Hat / CentOS / Amazon Linux**

::

sudo yum install git

Rally does not support Windows and is only actively tested on Mac OS X and Linux.

.. note::

If you use RHEL, please ensure to install a recent version of git via the `Red Hat Software Collections <https://www.softwarecollections.org/en/scls/rhscl/git19/>`_.

**MacOS**

``git`` is already installed on MacOS.

JDK
~~~

A JDK is required on all machines where you want to launch Elasticsearch. If you use Rally just as a load generator, no JDK is required.

We recommend to use Oracle JDK but you are free to use OpenJDK as well. For details on how to install a JDK, please see your Linux distribution's documentation pages.

Installing Rally
~~~~~~~~~~~~~~~~
----------------

Simply install Rally with pip: ``pip3 install esrally``

Expand All @@ -33,7 +103,7 @@ Simply install Rally with pip: ``pip3 install esrally``
If you get errors during installation, it is probably due to the installation of ``psutil`` which we use to gather system metrics like CPU utilization. Please check the `installation instructions of psutil <https://github.com/giampaolo/psutil/blob/master/INSTALL.rst>`_ in this case. Keep in mind that Rally is based on Python 3 and you need to install the Python 3 header files instead of the Python 2 header files on Linux.

Non-sudo Install
~~~~~~~~~~~~~~~~
----------------

If you don't want to use ``sudo`` when installing Rally, installation is still possible but a little more involved:

Expand All @@ -43,7 +113,7 @@ If you don't want to use ``sudo`` when installing Rally, installation is still p
You can now either add ``~/.local/bin`` to your path or invoke Rally via ``~/.local/bin/esrally`` instead of just ``esrally``.

VirtualEnv Install
~~~~~~~~~~~~~~~~~~
------------------

You can also use Virtualenv to install Rally into an isolated Python environment without sudo.

Expand All @@ -55,6 +125,6 @@ Whenever you want to use Rally, run the activation script (step 2 above) first.


Next Steps
~~~~~~~~~~
----------

After you have installed, you need to configure it. Just run ``esrally configure`` or follow the :doc:`configuration help page </configuration>` for more guidance.

0 comments on commit 4f8aea5

Please sign in to comment.