add mongodb support for hyperopt parallelization

This commit is contained in:
gcarq
2017-11-25 02:04:37 +01:00
parent 5bf583cba4
commit e27a6a7a91
6 changed files with 74 additions and 23 deletions

View File

@@ -0,0 +1,5 @@
#!/bin/bash
DB_NAME=freqtrade_hyperopt
hyperopt-mongo-worker --mongo=127.0.0.1:1234/${DB_NAME} --poll-interval=0.1

12
scripts/start-mongodb.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/bash -e
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
DB_PATH="${DIR}/../.mongodb"
mkdir -p ${DB_PATH}
mongod --dbpath ${DB_PATH} \
--bind_ip 127.0.0.1 \
--port 1234 \
--directoryperdb \
--journal \
--nohttpinterface