Bitcoin Forum
June 23, 2021, 06:58:15 AM *
News: Latest Bitcoin Core release: 0.21.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 [21]  All
  Print  
Author Topic: CKPOOL - Open source pool/proxy/passthrough/redirector/library in c for Linux  (Read 123388 times)
riverdip
Jr. Member
*
Offline Offline

Activity: 183
Merit: 1


View Profile
July 23, 2019, 06:42:44 PM
 #401

About ckproxy

Ckproxy uses the same core code as ckpool and acts as a proxy with a simple switch (-p). It acts as a stratum-to-stratum proxy, or stratum-through-stratum proxy in passthrough mode (see below).

It is most useful to regular miners who wish to consolidate their mining hardware into one connection for minimal upstream/downstream bandwidth in standalone mode (with the additional -A switch). Ckproxy uses multiple modes to maintain as many miners as possible communicating with the upstream pool. It works by splitting up nonce2 sizes if the upstream pool's nonce2 is large enough and then it recruits extra upstream connections as needed to allow the number of downstream miners to scale indefinitely.

Ckproxy can be started in "userproxy" mode which monitors login names of miners attaching that don't match the master proxy username and recruits new upstream connections with each unique username, proxying all workers of the same username to the unique upstream proxy connections.

It can be configured to run with a database as per an actual pool entirely, thus acting like a child pool for a parent pool elsewhere, or simply for miners who wish full logging of every detail of their mining operation.

It can also act as a unique stratum-through-stratum passthrough mode which absolutely requires a ckpool as the parent pool with the -P switch. In this mode it does not decrease the bandwidth talking to the upstream pool but minimises the number of open connections instead, but requires extremely low resources to run. This mode is most useful for pools wishing to isolate their main pool instance from the outside world and set up multiple VPSs as a kind of front end proxy/firewall to the outside world. This also removes any realistic limit on the number of open connections since each passthrough instance could easily handle 10k connections, consolidating each into just 1 connection to the upstream pool.

In addition to the passthrough mode, there is a more advanced "node" mode which connects as a passthrough, but needs a local bitcoind connection of its own. It monitors all traffic and shares between the pool and miners, being able to display local hashrates and will submit any blocks found to the local bitcoind in addition to sending the shares to the upstream pool, circumventing the delay of block submission that would otherwise happen with remote nodes.

Finally ckproxy can be started in "redirector" mode which acts as a regular passthrough, but monitors share responses from the upstream pool, and once a valid share is recognised from the upstream pool it will redirect miners that support redirection (all cgminer based clients do) to the URL of your choice. Should the miners not support redirection, such as rental services, ckredirector will continue to act as an ordinary passthrough.


ckproxy -p runs fine !


what could the best option to see the proxy status in nice web UI ?

oh btc
1624431495
Hero Member
*
Offline Offline

Posts: 1624431495

View Profile Personal Message (Offline)

Ignore
1624431495
Reply with quote  #2

1624431495
Report to moderator
1624431495
Hero Member
*
Offline Offline

Posts: 1624431495

View Profile Personal Message (Offline)

Ignore
1624431495
Reply with quote  #2

1624431495
Report to moderator
1624431495
Hero Member
*
Offline Offline

Posts: 1624431495

View Profile Personal Message (Offline)

Ignore
1624431495
Reply with quote  #2

1624431495
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1624431495
Hero Member
*
Offline Offline

Posts: 1624431495

View Profile Personal Message (Offline)

Ignore
1624431495
Reply with quote  #2

1624431495
Report to moderator
1624431495
Hero Member
*
Offline Offline

Posts: 1624431495

View Profile Personal Message (Offline)

Ignore
1624431495
Reply with quote  #2

1624431495
Report to moderator
1624431495
Hero Member
*
Offline Offline

Posts: 1624431495

View Profile Personal Message (Offline)

Ignore
1624431495
Reply with quote  #2

1624431495
Report to moderator
-ck
Legendary
*
Offline Offline

Activity: 3360
Merit: 1354


Ruu \o/


View Profile WWW
July 23, 2019, 09:34:46 PM
 #402

ckproxy -p runs fine !


what could the best option to see the proxy status in nice web UI ?
No such thing exists. You'd have to build your own, sorry.

Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel
2% Fee Solo mining at solo.ckpool.org
-ck
riverdip
Jr. Member
*
Offline Offline

Activity: 183
Merit: 1


View Profile
July 24, 2019, 03:52:38 AM
 #403

ckproxy -p runs fine !


what could the best option to see the proxy status in nice web UI ?
No such thing exists. You'd have to build your own, sorry.

yes i did it from logs, but are you aware killing ckpool is dropped most of time ?


ckpool -k

doesn't kill the process, i tried various other combinations too

oh btc
-ck
Legendary
*
Offline Offline

Activity: 3360
Merit: 1354


Ruu \o/


View Profile WWW
July 24, 2019, 03:56:55 AM
 #404

yes i did it from logs, but are you aware killing ckpool is dropped most of time ?


ckpool -k

doesn't kill the process, i tried various other combinations too
Buggy proxy code. Never got around to fixing it. Lost any interest thanks to other events.

Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel
2% Fee Solo mining at solo.ckpool.org
-ck
-ck
Legendary
*
Offline Offline

Activity: 3360
Merit: 1354


Ruu \o/


View Profile WWW
August 07, 2019, 08:31:09 AM
 #405

Locking this thread as well I'm afraid. The era where this software mattered is over, and I've lost interest in supporting it any further.

Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel
2% Fee Solo mining at solo.ckpool.org
-ck
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 [21]  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!