Stratehm / stratum-proxy

Java implementation of a stratum->stratum/HTTPGetwork proxy with a Web GUI and some pool switching strategies (PriorityFailover, WeightedRoundRobin). Simple to install and configure.
GNU General Public License v3.0
198 stars 118 forks source link

multiple instances #31

Closed SoonCoin closed 9 years ago

SoonCoin commented 9 years ago

Is there a way to open multiple instances of the proxy? i mean i want 1 running on sha at port 12345 and 1 for scrypt at 22345 i tried to run is with dif configs but giving errors trying to start 2nd 1.

Stratehm commented 9 years ago

You have to modify several parameters to run several instances on the same host. stratumListenPort, getworkListenPort and apiListenPort have to be different for all instances. If you do not need some of these ports, you can disable them with respectively disableLogAppend, disableStratum and disableGetwork.

You also have to specify a databaseDirectory for all instances.

You should also set logDirectory (even if not mandatory).