-
Notifications
You must be signed in to change notification settings - Fork 0
home
Before you start:
DrQueueIPython is currently only Python 2 compatible!
Binary packages like _pyzmq_ will be installed. You need everything installed to use this. e.g.:
~$ sudo apt-get install build-essential python2.7-dev
see also: https://ssl.drqueue.org/redmine/projects/drqueueipython/wiki/SetupAndConfiguration
The project https://github.com/jedie/BootDrQueue creates a easy to use bootstrap file:
- Bootstrap under Linux: https://github.com/jedie/BootDrQueue#boot-under-linux
- Bootstrap under Windows: https://github.com/jedie/BootDrQueue#boot-under-windows
Create a virtualenv and install DrQueueIPython from github (PyPi Package is outdated, see: https://github.com/kaazoo/DrQueueIPython/issues/3 ):
~$ virtualenv -p python2 ~/DrQueue_env ~$ cd DrQueue_env/ ~/DrQueue_env$ source bin/activate (DrQueue_env)~/DrQueue_env$ pip install --upgrade pip (DrQueue_env)~/DrQueue_env$ pip install -e git+https://github.com/kaazoo/DrQueueIPython.git#egg=DrQueueIPython
~$ sudo apt-get install mongodb
(only on master / storage server)
e.g.:
~$ cd DrQueue_env/ ~/DrQueue_env$ source bin/activate (DrQueue_env)~/DrQueue_env$ cd src/drqueueipython/ ~/DrQueue_env/src/drqueueipython$ python setup.py create_drqueue_dirs --owner=${USER} --group=${USER} --basepath=${HOME}/drqueue
https://github.com/jedie/DrQueueHelperFiles contains some helper baash/batch files for linux and windows.
Download as zip: https://github.com/jedie/DrQueueHelperFiles/archive/master.zip
- on Linux: Extract all /linux/*.sh files to ~/DrQueue_env/
- on Windows: Extract all /windows/*.cmd files to %APPDATA%\DrQueue_env\
Check/edit the settings file:
- on Linux: ~/DrQueue_env/set_settings
- on Windows: %APPDATA%\DrQueue_env\set_settings.cmd
Create the work dirs by starting:
- on Linux: ~/DrQueue_env/DrQueue_CreateDrQueueWorkDirs.sh
- on Windows: %APPDATA%\DrQueue_env\DrQueue_CreateDrQueueWorkDirs.cmd
Start master on Linux with:
- ~/DrQueue_env/DrQueue_start_master.sh
Start slave on Windows with:
- %APPDATA%\DrQueue_env\DrQueue_start_slave.cmd