Giter VIP home page Giter VIP logo

Comments (32)

alphaonex86 avatar alphaonex86 commented on June 28, 2024

Can you increase the max connected client to 32Bits?
Cheer,

from stratum-mining-proxy.

slush0 avatar slush0 commented on June 28, 2024

Do you have more than 250 clients connected to Stratum proxy?

from stratum-mining-proxy.

alphaonex86 avatar alphaonex86 commented on June 28, 2024

In reallity more than 20000 try use my proxy just now, I target 100 000 into few months.

from stratum-mining-proxy.

slush0 avatar slush0 commented on June 28, 2024

Current limit is ~250 connections, but raising this limit is very high in my TODO. I'll keep you updated.

from stratum-mining-proxy.

slush0 avatar slush0 commented on June 28, 2024

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.

alphaonex86 avatar alphaonex86 commented on June 28, 2024

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.

slush0 avatar slush0 commented on June 28, 2024

Yes, it should be enough.

from stratum-mining-proxy.

alphaonex86 avatar alphaonex86 commented on June 28, 2024

I have do multiple server instance (200 server) to have a quick and better fix, seam be correct?

from stratum-mining-proxy.

slush0 avatar slush0 commented on June 28, 2024

Yes, you can run multiple instances of mining proxy, for example behind haproxy.

from stratum-mining-proxy.

alphaonex86 avatar alphaonex86 commented on June 28, 2024

Yes but it's http proxy with load balancing, no stratum proxy.

from stratum-mining-proxy.

slush0 avatar slush0 commented on June 28, 2024

haproxy is TCP proxy as well, I'm using it for balancing on the pool.

from stratum-mining-proxy.

alphaonex86 avatar alphaonex86 commented on June 28, 2024

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.

slush0 avatar slush0 commented on June 28, 2024

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.

alphaonex86 avatar alphaonex86 commented on June 28, 2024

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.

alphaonex86 avatar alphaonex86 commented on June 28, 2024

https://github.com/invl/stratum-mining-proxy
It's a good start I think to have 32Bits, no?

from stratum-mining-proxy.

soundasleep avatar soundasleep commented on June 28, 2024

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.

markudevelop avatar markudevelop commented on June 28, 2024

Got an update on this one? I got the same issue?

from stratum-mining-proxy.

alphaonex86 avatar alphaonex86 commented on June 28, 2024

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.

markudevelop avatar markudevelop commented on June 28, 2024

@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.

alphaonex86 avatar alphaonex86 commented on June 28, 2024

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.

haoyixin avatar haoyixin commented on June 28, 2024

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.

haoyixin avatar haoyixin commented on June 28, 2024

As GIL working,one instance only works on one core,so many instances will work more effectively.

from stratum-mining-proxy.

propostaff avatar propostaff commented on June 28, 2024

Any news about increase maximum connection to strtum proxy?

from stratum-mining-proxy.

sterion75 avatar sterion75 commented on June 28, 2024

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.

slush0 avatar slush0 commented on June 28, 2024

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.

sterion75 avatar sterion75 commented on June 28, 2024

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.

sterion75 avatar sterion75 commented on June 28, 2024

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.

slush0 avatar slush0 commented on June 28, 2024

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.

stephenc01 avatar stephenc01 commented on June 28, 2024

I use haproxy infront of multiple instances of the stratum proxy to support high loads

from stratum-mining-proxy.

slush0 avatar slush0 commented on June 28, 2024

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.

sterion75 avatar sterion75 commented on June 28, 2024

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.

alphaonex86 avatar alphaonex86 commented on June 28, 2024

@slush0: Same bug here with and without haproxy.

from stratum-mining-proxy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.