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
200 stars 117 forks source link

How to diasable automatic pool switching ? #87

Open albabosh opened 7 years ago

albabosh commented 7 years ago

Is it possible to disable automatic pool switching and switch pools only manually ?

BaalMcKloud commented 7 years ago

Can you post your config?

albabosh commented 7 years ago

"poolSwitchingStrategy": "priorityFailover", "weightedRoundRobinRoundDuration": 60, It was left as in release.

I do not want failover, I just need an api to change pools

nukepower commented 7 years ago

as far i know you need it on priorityFailover to stop the switching as far as api goes http://your ip the proxy is on , port : 8888 some thing like this

http://192.168.1.205:8888/

API Details

An API is available. Methods parameters or result are in JSON. By default, the methods can be accessed at the URL http://hostIp:8888/proxy/.

The Content-Type of HTTP requests has to be application/json, else a 415 Unsupported Media Type error may be returned.

Here after is the API methods description:

Api Version: 1.0 APIs / Overview

API to manage the proxy POST /address/ban banIp

Ban the given ip address.

Noguffay commented 5 years ago

Set all other failover pools param: "isEnabled" to "isEnabled": false, or "delete" all other failover/roundrobin pool params