Comments (32)
Can you increase the max connected client to 32Bits?
Cheer,
from stratum-mining-proxy.
Do you have more than 250 clients connected to Stratum proxy?
from stratum-mining-proxy.
In reallity more than 20000 try use my proxy just now, I target 100 000 into few months.
from stratum-mining-proxy.
Current limit is ~250 connections, but raising this limit is very high in my TODO. I'll keep you updated.
from stratum-mining-proxy.
Btw this is limitation of Stratum sub-connections, you can try to run miners on getwork protocol until I fix it.
from stratum-mining-proxy.
Have you more details for that's? --fix-protocol + http://X.X.X.X:8332 ?
I'm very low to bandwith (less than 1% of my server bandwith)
from stratum-mining-proxy.
Yes, it should be enough.
from stratum-mining-proxy.
I have do multiple server instance (200 server) to have a quick and better fix, seam be correct?
from stratum-mining-proxy.
Yes, you can run multiple instances of mining proxy, for example behind haproxy.
from stratum-mining-proxy.
Yes but it's http proxy with load balancing, no stratum proxy.
from stratum-mining-proxy.
haproxy is TCP proxy as well, I'm using it for balancing on the pool.
from stratum-mining-proxy.
I can use haproxy as front end, and cascade of stratum proxy (255 stratum proxy connected on one stratum proxy connected on my worker?)
With cgminer 2.11.3 as client, I try know if I need enable:
--no-midstate
--real-target
It's not very clear.
from stratum-mining-proxy.
no-midstate and real-target are used only for getwork. If you connects cgminer to stratum proxy with stratum protocol, you don't need to worry about this.
from stratum-mining-proxy.
With casade for stratum proxy, it not work.
When do you think it's solved?
I lost 6x of my income...
from stratum-mining-proxy.
https://github.com/invl/stratum-mining-proxy
It's a good start I think to have 32Bits, no?
from stratum-mining-proxy.
This is occuring right now for me on the WeMineLTC modified proxy. I'm only using three clients on a LAN (the proxy is providing getwork to give-me-ltc stratum), it's occuring when I connect to stratum port. Connecting to getwork port works fine. There aren't that many active ports (netstat displays 5 on :getwork, 0 on :stratum).
from stratum-mining-proxy.
Got an update on this one? I got the same issue?
from stratum-mining-proxy.
slush0: haproxy loop (connect, disconnect) each second to ping the tcp server.
That's reveal a bug with your stratum proxy: more and more shares is rejected, after a 24, near 90% is rejected (mostly bellow difficulty) until I restart the server.
from stratum-mining-proxy.
@alphaonex86 hey had any luck fixing this? Using the invl stratum proxy it should be around up to 65k workers for stratum but I get issues after 2k peers not sure if it's server fault or script. Did you get something working?
from stratum-mining-proxy.
Same, after 1k of peers I have issue and I need restart by cron each 6h... but the code seam ok. In my case other service (apache, lighttpd) have 20k peers without problem (sysctl linux tuned).
from stratum-mining-proxy.
i have arranged it by haproxy for more then 40 instances of stratum proxy for loadbalance,it could hold more then 10000 clients on a server with 2 cores and 2GB memory.
from stratum-mining-proxy.
As GIL working,one instance only works on one core,so many instances will work more effectively.
from stratum-mining-proxy.
Any news about increase maximum connection to strtum proxy?
from stratum-mining-proxy.
I'm getting this issue on the latest proxy even though it's supposed to handle more then 250. I have less than 250 miners but it seems stale connections might not be removed maybe?
from stratum-mining-proxy.
sterion75: Proxy prints number of currently connected peers to console. Can you please provide such log, so I can identify the problem? In my laboratory tests proxy succesfully handled hundreds of live stratum connections.
from stratum-mining-proxy.
It only does that when the proxy first starts. It normally will say around 112. I don't see it mention amount of connections at any other point? Am I able to log this some how?
from stratum-mining-proxy.
changed 1 times
2014-01-24 16:22:02,960 INFO stats stats.print_stats # 3 peers connected, state
changed 1 times
2014-01-24 16:22:02,960 ERROR protocol protocol.process_failure # [Failure insta
nce: Traceback: <type 'exceptions.Exception'>: Extranonce slots are full, please
disconnect some miners!
stratum\services.pyo:81:call
twisted\internet\defer.pyo:134:maybeDeferred
stratum\services.pyo:78:_run
twisted\internet\defer.pyo:1187:unwindGenerator
--- ---
twisted\internet\defer.pyo:1045:_inlineCallbacks
mining_libs\stratum_listener.pyo:138:subscribe
mining_libs\stratum_listener.pyo:108:_get_unused_tail
]
None
2014-01-24 16:22:02,976 ERROR protocol protocol.process_failure # [Failure insta
nce: Traceback: <type 'exceptions.Exception'>: Extranonce slots are full, please
disconnect some miners!
stratum\services.pyo:81:call
twisted\internet\defer.pyo:134:maybeDeferred
stratum\services.pyo:78:_run
twisted\internet\defer.pyo:1187:unwindGenerator
--- ---
twisted\internet\defer.pyo:1045:_inlineCallbacks
mining_libs\stratum_listener.pyo:138:subscribe
mining_libs\stratum_listener.pyo:108:_get_unused_tail
]
None
2014-01-24 16:22:02,976 ERROR protocol protocol.process_failure # [Failure insta
nce: Traceback: <type 'exceptions.Exception'>: Extranonce slots are full, please
disconnect some miners!
stratum\services.pyo:81:call
twisted\internet\defer.pyo:134:maybeDeferred
stratum\services.pyo:78:_run
twisted\internet\defer.pyo:1187:unwindGenerator
--- ---
twisted\internet\defer.pyo:1045:_inlineCallbacks
mining_libs\stratum_listener.pyo:138:subscribe
mining_libs\stratum_listener.pyo:108:_get_unused_tail
]
None
2014-01-24 16:22:02,976 INFO stats stats.print_stats # 4 peers connected, state
changed 1 times
2014-01-24 16:22:02,976 INFO stats stats.print_stats # 3 peers connected, state
changed 1 times
2014-01-24 16:22:02,976 ERROR protocol protocol.process_failure # [Failure insta
nce: Traceback: <type 'exceptions.Exception'>: Extranonce slots are full, please
disconnect some miners!
stratum\services.pyo:81:call
twisted\internet\defer.pyo:134:maybeDeferred
stratum\services.pyo:78:_run
twisted\internet\defer.pyo:1187:unwindGenerator
--- ---
twisted\internet\defer.pyo:1045:_inlineCallbacks
mining_libs\stratum_listener.pyo:138:subscribe
mining_libs\stratum_listener.pyo:108:_get_unused_tail
]
None
2014-01-24 16:22:02,990 INFO stats stats.print_stats # 2 peers connected, state
changed 1 times
2014-01-24 16:22:02,990 ERROR protocol protocol.process_failure # [Failure insta
nce: Traceback: <type 'exceptions.Exception'>: Extranonce slots are full, please
disconnect some miners!
stratum\services.pyo:81:call
twisted\internet\defer.pyo:134:maybeDeferred
stratum\services.pyo:78:_run
twisted\internet\defer.pyo:1187:unwindGenerator
--- ---
twisted\internet\defer.pyo:1045:_inlineCallbacks
mining_libs\stratum_listener.pyo:138:subscribe
mining_libs\stratum_listener.pyo:108:_get_unused_tail
]
None
2014-01-24 16:22:02,990 ERROR protocol protocol.process_failure # [Failure insta
nce: Traceback: <type 'exceptions.Exception'>: Extranonce slots are full, please
disconnect some miners!
stratum\services.pyo:81:call
twisted\internet\defer.pyo:134:maybeDeferred
stratum\services.pyo:78:_run
twisted\internet\defer.pyo:1187:unwindGenerator
--- ---
twisted\internet\defer.pyo:1045:_inlineCallbacks
mining_libs\stratum_listener.pyo:138:subscribe
mining_libs\stratum_listener.pyo:108:_get_unused_tail
]
None
2014-01-24 16:22:03,006 INFO stats stats.print_stats # 1 peers connected, state
changed 1 times
2014-01-24 16:22:03,006 INFO stats stats.print_stats # 2 peers connected, state
changed 1 times
2014-01-24 16:22:03,023 ERROR protocol protocol.process_failure # [Failure insta
nce: Traceback: <type 'exceptions.Exception'>: Extranonce slots are full, please
disconnect some miners!
stratum\services.pyo:81:call
twisted\internet\defer.pyo:134:maybeDeferred
stratum\services.pyo:78:_run
twisted\internet\defer.pyo:1187:unwindGenerator
--- ---
twisted\internet\defer.pyo:1045:_inlineCallbacks
mining_libs\stratum_listener.pyo:138:subscribe
mining_libs\stratum_listener.pyo:108:_get_unused_tail
]
None
2014-01-24 16:22:03,038 ERROR protocol protocol.process_failure # [Failure insta
nce: Traceback: <type 'exceptions.Exception'>: Extranonce slots are full, please
disconnect some miners!
stratum\services.pyo:81:call
twisted\internet\defer.pyo:134:maybeDeferred
stratum\services.pyo:78:_run
twisted\internet\defer.pyo:1187:unwindGenerator
--- ---
twisted\internet\defer.pyo:1045:_inlineCallbacks
mining_libs\stratum_listener.pyo:138:subscribe
mining_libs\stratum_listener.pyo:108:_get_unused_tail
]
None
2014-01-24 16:22:03,038 INFO stats stats.print_stats # 1 peers connected, state
changed 1 times
2014-01-24 16:22:03,131 INFO stats stats.print_stats # 2 peers connected, state
changed 1 times
2014-01-24 16:22:03,147 ERROR protocol protocol.process_failure # [Failure insta
nce: Traceback: <type 'exceptions.Exception'>: Extranonce slots are full, please
disconnect some miners!
stratum\services.pyo:81:call
twisted\internet\defer.pyo:134:maybeDeferred
stratum\services.pyo:78:_run
twisted\internet\defer.pyo:1187:unwindGenerator
--- ---
twisted\internet\defer.pyo:1045:_inlineCallbacks
mining_libs\stratum_listener.pyo:138:subscribe
mining_libs\stratum_listener.pyo:108:_get_unused_tail
]
None
2014-01-24 16:22:03,147 ERROR protocol protocol.process_failure # [Failure insta
nce: Traceback: <type 'exceptions.Exception'>: Extranonce slots are full, please
disconnect some miners!
stratum\services.pyo:81:call
twisted\internet\defer.pyo:134:maybeDeferred
stratum\services.pyo:78:_run
twisted\internet\defer.pyo:1187:unwindGenerator
--- ---
twisted\internet\defer.pyo:1045:_inlineCallbacks
mining_libs\stratum_listener.pyo:138:subscribe
mining_libs\stratum_listener.pyo:108:_get_unused_tail
]
None
2014-01-24 16:22:03,147 INFO stats stats.print_stats # 1 peers connected, state
changed 1 times
2014-01-24 16:22:03,194 INFO stats stats.print_stats # 2 peers connected, state
changed 1 times
2014-01-24 16:22:03,210 ERROR protocol protocol.process_failure # [Failure insta
nce: Traceback: <type 'exceptions.Exception'>: Extranonce slots are full, please
disconnect some miners!
stratum\services.pyo:81:call
twisted\internet\defer.pyo:134:maybeDeferred
stratum\services.pyo:78:_run
twisted\internet\defer.pyo:1187:unwindGenerator
--- ---
twisted\internet\defer.pyo:1045:_inlineCallbacks
mining_libs\stratum_listener.pyo:138:subscribe
mining_libs\stratum_listener.pyo:108:_get_unused_tail
]
None
2014-01-24 16:22:03,210 ERROR protocol protocol.process_failure # [Failure insta
nce: Traceback: <type 'exceptions.Exception'>: Extranonce slots are full, please
disconnect some miners!
stratum\services.pyo:81:call
twisted\internet\defer.pyo:134:maybeDeferred
stratum\services.pyo:78:_run
twisted\internet\defer.pyo:1187:unwindGenerator
--- ---
twisted\internet\defer.pyo:1045:_inlineCallbacks
mining_libs\stratum_listener.pyo:138:subscribe
mining_libs\stratum_listener.pyo:108:_get_unused_tail
]
None
2014-01-24 16:22:03,210 INFO stats stats.print_stats # 1 peers connected, state
changed 1 times
2014-01-24 16:22:03,302 INFO stats stats.print_stats # 2 peers connected, state
changed 1 times
2014-01-24 16:22:03,319 ERROR protocol protocol.process_failure # [Failure insta
nce: Traceback: <type 'exceptions.Exception'>: Extranonce slots are full, please
disconnect some miners!
stratum\services.pyo:81:call
twisted\internet\defer.pyo:134:maybeDeferred
stratum\services.pyo:78:_run
twisted\internet\defer.pyo:1187:unwindGenerator
--- ---
twisted\internet\defer.pyo:1045:_inlineCallbacks
mining_libs\stratum_listener.pyo:138:subscribe
mining_libs\stratum_listener.pyo:108:_get_unused_tail
]
None
2014-01-24 16:22:03,319 ERROR protocol protocol.process_failure # [Failure insta
nce: Traceback: <type 'exceptions.Exception'>: Extranonce slots are full, please
disconnect some miners!
stratum\services.pyo:81:call
twisted\internet\defer.pyo:134:maybeDeferred
stratum\services.pyo:78:_run
twisted\internet\defer.pyo:1187:unwindGenerator
--- ---
twisted\internet\defer.pyo:1045:_inlineCallbacks
mining_libs\stratum_listener.pyo:138:subscribe
mining_libs\stratum_listener.pyo:108:_get_unused_tail
]
None
2014-01-24 16:22:03,335 INFO stats stats.print_stats # 1 peers connected, state
changed 1 times
2014-01-24 16:22:03,490 INFO stats stats.print_stats # 2 peers connected, state
changed 1 times
2014-01-24 16:22:03,506 ERROR protocol protocol.process_failure # [Failure insta
nce: Traceback: <type 'exceptions.Exception'>: Extranonce slots are full, please
disconnect some miners!
stratum\services.pyo:81:call
twisted\internet\defer.pyo:134:maybeDeferred
stratum\services.pyo:78:_run
twisted\internet\defer.pyo:1187:unwindGenerator
--- ---
twisted\internet\defer.pyo:1045:_inlineCallbacks
mining_libs\stratum_listener.pyo:138:subscribe
mining_libs\stratum_listener.pyo:108:_get_unused_tail
]
None
2014-01-24 16:22:03,522 INFO stats stats.print_stats # 3 peers connected, state
changed 1 times
2014-01-24 16:22:03,522 ERROR protocol protocol.process_failure # [Failure insta
nce: Traceback: <type 'exceptions.Exception'>: Extranonce slots are full, please
disconnect some miners!
stratum\services.pyo:81:call
twisted\internet\defer.pyo:134:maybeDeferred
stratum\services.pyo:78:_run
twisted\internet\defer.pyo:1187:unwindGenerator
--- ---
twisted\internet\defer.pyo:1045:_inlineCallbacks
mining_libs\stratum_listener.pyo:138:subscribe
mining_libs\stratum_listener.pyo:108:_get_unused_tail
]
None
2014-01-24 16:22:03,522 INFO stats stats.print_stats # 2 peers connected, state
changed 1 times
2014-01-24 16:22:03,522 ERROR protocol protocol.process_failure # [Failure insta
nce: Traceback: <type 'exceptions.Exception'>: Extranonce slots are full, please
disconnect some miners!
stratum\services.pyo:81:call
twisted\internet\defer.pyo:134:maybeDeferred
stratum\services.pyo:78:_run
twisted\internet\defer.pyo:1187:unwindGenerator
--- ---
twisted\internet\defer.pyo:1045:_inlineCallbacks
mining_libs\stratum_listener.pyo:138:subscribe
mining_libs\stratum_listener.pyo:108:_get_unused_tail
]
None
2014-01-24 16:22:03,536 ERROR protocol protocol.process_failure # [Failure insta
nce: Traceback: <type 'exceptions.Exception'>: Extranonce slots are full, please
disconnect some miners!
stratum\services.pyo:81:call
twisted\internet\defer.pyo:134:maybeDeferred
stratum\services.pyo:78:_run
twisted\internet\defer.pyo:1187:unwindGenerator
--- ---
twisted\internet\defer.pyo:1045:_inlineCallbacks
mining_libs\stratum_listener.pyo:138:subscribe
mining_libs\stratum_listener.pyo:108:_get_unused_tail
]
None
2014-01-24 16:22:03,536 INFO stats stats.print_stats # 1 peers connected, state
changed 1 times
2014-01-24 16:22:03,584 INFO stats stats.print_stats # 2 peers connected, state
changed 1 times
2014-01-24 16:22:03,599 ERROR protocol protocol.process_failure # [Failure insta
nce: Traceback: <type 'exceptions.Exception'>: Extranonce slots are full, please
disconnect some miners!
stratum\services.pyo:81:call
twisted\internet\defer.pyo:134:maybeDeferred
stratum\services.pyo:78:_run
twisted\internet\defer.pyo:1187:unwindGenerator
--- ---
twisted\internet\defer.pyo:1045:_inlineCallbacks
mining_libs\stratum_listener.pyo:138:subscribe
mining_libs\stratum_listener.pyo:108:_get_unused_tail
]
None
2014-01-24 16:22:03,599 ERROR protocol protocol.process_failure # [Failure insta
nce: Traceback: <type 'exceptions.Exception'>: Extranonce slots are full, please
disconnect some miners!
stratum\services.pyo:81:call
twisted\internet\defer.pyo:134:maybeDeferred
stratum\services.pyo:78:_run
twisted\internet\defer.pyo:1187:unwindGenerator
--- ---
twisted\internet\defer.pyo:1045:_inlineCallbacks
mining_libs\stratum_listener.pyo:138:subscribe
mining_libs\stratum_listener.pyo:108:_get_unused_tail
]
None
2014-01-24 16:22:03,599 INFO stats stats.print_stats # 1 peers connected, state
changed 1 times
from stratum-mining-proxy.
Hm, proxy thinks there're only two peers connected, so this really looks like a bug. I'm reading the code again and again and I don't see any edge case when this should appear...
Output of modabekov's command would be useful to see how many connections are real...
from stratum-mining-proxy.
I use haproxy infront of multiple instances of the stratum proxy to support high loads
from stratum-mining-proxy.
Yes, haproxy works nicely, but looks that @sterion75 hit some weird bug in proxy and I'd like to know what's wrong there.
from stratum-mining-proxy.
I have a hunch it happens when the upstream pool we are connecting to is busy. As the pool has been quiet the last week or two the problem hasn't been occuring but it has occured on other pools when they have been busy. I know exactly how many miners are using the proxy as it is behind a firewall and only the machines I have set up use it :)
from stratum-mining-proxy.
@slush0: Same bug here with and without haproxy.
from stratum-mining-proxy.
Related Issues (20)
- no_midstate
- Does anyone know if this software still works? HOT 1
- share rejected (Upstream not connected)
- Weird text/characters on console output HOT 3
- Couldn't listen on lowdiff.ltcrabbit.com:3333: HOT 1
- Can not build it in OSX HOT 4
- Mointor Usage ? HOT 3
- support for ZCash
- RuntimeError: maximum recursion depth exceeded HOT 2
- INFO proxy client_service.handle_event # New job 99999999 for prevhash 99999999, clean_jobs=False
- Can't communicate with cgminer-4.10 HOT 1
- Error comnuication with nicehash HOT 1
- ERROR FOR sphinx , how to do ?
- Errors building image from provided Dockerfile HOT 5
- installation problem on ubuntu HOT 8
- ImportError: No module named stratum HOT 2
- reliance on twisted results in inability to install stratum-mining proxy HOT 1
- NON-SSL link in Distribute setup using PIP package
- wiki
- install setup.py on windows 10 x64
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stratum-mining-proxy.