stratum-proxy icon indicating copy to clipboard operation
stratum-proxy copied to clipboard

How to diasable automatic pool switching ?

Open albabosh opened this issue 7 years ago • 4 comments

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

albabosh avatar Aug 10 '17 12:08 albabosh

Can you post your config?

BaalMcKloud avatar Aug 11 '17 08:08 BaalMcKloud

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

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

albabosh avatar Aug 14 '17 12:08 albabosh

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.

nukepower avatar Aug 14 '17 13:08 nukepower

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

Noguffay avatar Jan 19 '19 20:01 Noguffay