Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It is not possible to run several instances of spearmint simultaneously. #85

Open
jogonba2 opened this issue Nov 17, 2016 · 1 comment

Comments

@jogonba2
Copy link

jogonba2 commented Nov 17, 2016

I'm trying to run several instances of spearmint in parallel at the same pc and only one of them work, the others are blocked showing "Using database at localhost".

¿Is there any method for execute spearmint in this way?. Thanks.

@saleha1wer
Copy link

You can do it if you specify a different port (for every run you need) in spearmint/utils/database/mongodb.py:

self.client = pymongo.MongoClient(database_address, port= 13786) // change 13786 to a different TCP port for every instance you want to run

Make sure you set the same port when you start the mongdb instance:

mongod --port 13786 --fork --logpath <path/to/logfile\> --dbpath <path/to/dbfolder\>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants