Pages:
Author

Topic: pushpool - open source pool software - page 6. (Read 120205 times)

kjj
legendary
Activity: 1302
Merit: 1026
June 13, 2011, 06:13:00 PM
Run bitcoind on each server, alongside pushpoold. 
newbie
Activity: 59
Merit: 0
June 13, 2011, 06:06:50 PM
what is the best way to scale pushpool and make it distributed. 

for example, multiple pushpools and multiple bitcoind?  multiple pushpools and one bitcoind?  other? 

if for example we wanted one server in EU, one in USA and the users to share the work and the pool acts like one big pool with common accounts / workers database.
newbie
Activity: 28
Merit: 0
June 10, 2011, 10:27:05 PM
Pushpool on gentoo won't compile, make log below:

http://paste.pocoo.org/show/404358/

damn, remove --as-needed, run make clean && make, let it fail copy the line that says gcc and take out the ,-O1 -W1, part. the commas were breaking the command. is this gentoo's make's fault or some other script that is breaking?


gcc  -g -O2 -pthread -Wl,-O1 -Wl,-rdynamic -L/usr/lib64/mysql -lmysqlclient -L/usr/lib64 -lz -lcrypt -lnsl -lm -L/usr/lib64/ -lssl -lcrypto  -o pushpoold hist.o htab.o anet.o config.o msg.o server.o util.o db-sqlite.o db-mysql.o db-postgresql.o -lcurl -lssl -lcrypto -lrt -lssl -lcrypto -ldl -lz -lz -levent -lpthread -ljansson -lcrypto -lz -lmemcached

becomes
 gcc  -g -O2 -pthread -Wl -rdynamic -L/usr/lib64/mysql -lmysqlclient -L/usr/lib64 -lz -lcrypt -lnsl -lm -L/usr/lib64/ -lssl -lcrypto  -o pushpoold hist.o htab.o anet.o config.o msg.o server.o util.o db-sqlite.o db-mysql.o db-postgresql.o -lcurl -lssl -lcrypto -lrt -lssl -lcrypto -ldl -lz -lz -levent -lpthread -ljansson -lcrypto -lz -lmemcached

testing it now.
legendary
Activity: 1372
Merit: 1008
1davout
June 08, 2011, 12:43:06 PM
You said "Finally a usable bitcoin pool" Seems that may not be the case.
The intended audience are developers, and it's perfectly usable for developers Smiley
full member
Activity: 126
Merit: 100
June 08, 2011, 12:17:30 PM
I'm having a hard time figuring out why my bitcoind+pushpoold setup is resulting in about 5-6% stale/duplicated.
Any ideas - anyone?!
You said "Finally a usable bitcoin pool" Seems that may not be the case.
sr. member
Activity: 403
Merit: 250
June 08, 2011, 12:12:32 PM
I'm having a hard time figuring out why my bitcoind+pushpoold setup is resulting in about 5-6% stale/duplicated.
Any ideas - anyone?!
sr. member
Activity: 291
Merit: 250
June 08, 2011, 12:07:39 PM
Right now I have my own IBM xSeries 346 with 8 gig ram and dual Xeon 3.8's running on a raid 5  with 6 scsi ultra 320's (15k RPM) array that has almost 750 gig available storage.  I have it colocated in a nice datacenter and have 13 IP's available for use on it.  It is connected to the network by 2 100meg circuits, which I have nic bonding setup for.

I am running Centos 5.6 on it right now, and I also run DirectAdmin on it and host about 38 sites on the machine. I currently have almost no load on the box with these accounts.  I also have 1.5 TB of transfer free in my SLA with the datacenter.

I am wanting to start a semi private pool for me and a few friends and possibly some more folks later on. I have been looking at pushpool for the backend, and a good friend of mine is a damn good php and sql programmer by trade.  He has agreed to do the webfrontend and DB side of things.  Is there any documentation on setting up pushpool on Centos 5.6 that I can read up on to learn about it?  
newbie
Activity: 27
Merit: 0
June 08, 2011, 12:25:53 AM
Yeah....manually clearing all dependencies is the issue. Oh well...seems I´m just going to install Ubuntu on a second partition.
legendary
Activity: 1372
Merit: 1008
1davout
June 07, 2011, 07:11:41 AM
What a strange thing to say...
Who says you can´t run anything serious on Windows?
You can successfully run serious stuff on windows, but if you try to run open source software that was built on and runs on linux you're on your own, nobody wants to deal with the CLR... Do you hear a lot from the Mono project ? I don't Smiley

I managed to install a full Ruby on Rails stack on windows, but god that was painful at some times, especially when you need some special extension that automagically gets compiled on linux but not on windows...
newbie
Activity: 27
Merit: 0
June 07, 2011, 06:42:49 AM

No. Even if you could compile it, you don't even want to THINK about running anything serious like this on Windows.

What a strange thing to say...
Who says you can´t run anything serious on Windows?
newbie
Activity: 27
Merit: 0
June 07, 2011, 06:39:29 AM
No, but I have a webserver running on windows.
legendary
Activity: 1372
Merit: 1008
1davout
June 07, 2011, 04:57:57 AM
Is it possibly to compile this for windows? I got visual studio but how would I go about all those dependencies?
Why, do you want to run it on your windows mobile phone ? Cheesy
hero member
Activity: 588
Merit: 500
June 07, 2011, 04:46:11 AM
Has anyone been able to get pushpool working on an CentOS system?

Yes. Are you having a specific issue?

Is it possibly to compile this for windows? I got visual studio but how would I go about all those dependencies?

No. Even if you could compile it, you don't even want to THINK about running anything serious like this on Windows.
newbie
Activity: 27
Merit: 0
June 07, 2011, 04:28:10 AM
Is it possibly to compile this for windows? I got visual studio but how would I go about all those dependencies?
hero member
Activity: 854
Merit: 1000
June 07, 2011, 02:21:18 AM
Has anyone been able to get pushpool working on an CentOS system?
sr. member
Activity: 403
Merit: 250
June 02, 2011, 09:22:24 PM
Going through his posts as we speak, could you point me in any more specific direction?
Only thing i can thinks of is amount of opened files (ulimit -n)
member
Activity: 98
Merit: 13
June 02, 2011, 09:06:29 PM
See comments in the other thread by BTCguild pool operator (elethuria(sp??)).
sr. member
Activity: 403
Merit: 250
June 02, 2011, 09:03:52 PM
I'm also seeing shitload of TIME_WAIT connections between the upstream and pushpoold:

Quote
tcp        0      0 127.0.0.1:8332          127.0.0.1:14446         TIME_WAIT   -
tcp        0      0 127.0.0.1:8332          127.0.0.1:14412         TIME_WAIT   -
tcp        0      0 127.0.0.1:8332          127.0.0.1:14276         TIME_WAIT   -
tcp        0      0 127.0.0.1:8332          127.0.0.1:14233         TIME_WAIT   -
tcp        0      0 127.0.0.1:8332          127.0.0.1:15052         TIME_WAIT   -
tcp        0      0 127.0.0.1:8332          127.0.0.1:14314         TIME_WAIT   -
tcp        0      0 127.0.0.1:8332          127.0.0.1:14667         TIME_WAIT   -
tcp        0      0 127.0.0.1:8332          127.0.0.1:14726         TIME_WAIT   -
tcp        0      0 127.0.0.1:8332          127.0.0.1:14822         TIME_WAIT   -
tcp        0      0 127.0.0.1:8332          127.0.0.1:14548         TIME_WAIT   -
tcp        0      0 127.0.0.1:8332          127.0.0.1:14499         TIME_WAIT   -
tcp        0      0 127.0.0.1:8332          127.0.0.1:14335         TIME_WAIT   -
tcp        0      0 127.0.0.1:8332          127.0.0.1:14677         TIME_WAIT   -
tcp        0      0 127.0.0.1:8332          127.0.0.1:13976         TIME_WAIT   -
tcp        0      0 127.0.0.1:8332          127.0.0.1:14348         TIME_WAIT   -
tcp        0      0 127.0.0.1:8332          127.0.0.1:14320         TIME_WAIT   -
tcp        0      0 127.0.0.1:8332          127.0.0.1:14949         TIME_WAIT   -
tcp        0      0 127.0.0.1:8332          127.0.0.1:13990         TIME_WAIT   -
tcp        0      0 127.0.0.1:8332          127.0.0.1:14439         TIME_WAIT   -
tcp        0      0 127.0.0.1:8332          127.0.0.1:15063         TIME_WAIT   -
tcp        0      0 127.0.0.1:8332          127.0.0.1:14371         TIME_WAIT   -
tcp        0      0 127.0.0.1:8332          127.0.0.1:14618         TIME_WAIT   -
tcp        0      0 127.0.0.1:8332          127.0.0.1:13959         TIME_WAIT   -
tcp        0      0 127.0.0.1:8332          127.0.0.1:14995         TIME_WAIT   -
tcp        0      0 127.0.0.1:8332          127.0.0.1:14513         TIME_WAIT   -
tcp        0      0 127.0.0.1:8332          127.0.0.1:14593         TIME_WAIT   -
tcp        0      0 127.0.0.1:8332          127.0.0.1:14952         TIME_WAIT   -
tcp        0      0 127.0.0.1:8332          127.0.0.1:14322         TIME_WAIT   -
tcp        0      0 127.0.0.1:8332          127.0.0.1:14563         TIME_WAIT   -
tcp        0      0 127.0.0.1:8332          127.0.0.1:14355         TIME_WAIT   -
Quote
root@bitcoins:/usr/src/pushpool# netstat -anp | grep 8332 | wc -l
1508
sr. member
Activity: 403
Merit: 250
June 02, 2011, 08:57:26 PM
I'm personally having scalability issues (i think?) with Deb+pushpoold.

We're serving ~200 workers over at Bitcoins.lc, and I'm getting errors like this all the time.
Quote
[2011-06-03 03:55:36] thread 2: 97416096 hashes, 1618.00 khash/sec
[2011-06-03 03:55:36] JSON-RPC call failed: {
   "code": -2,
   "message": "upstream RPC error"
}
[2011-06-03 03:55:36] json_rpc_call failed, retry after 30 seconds
[2011-06-03 03:55:37] thread 3: 97416096 hashes, 1624.76 khash/sec

Why is "bitcoind" refusing to give out work sometimes?
Hosted on a 8 CPU VPS with lots of ram.

Any suggestions?
Bounty for solving this problem is a couple of BTC, easily.

EDIT: Also:
Quote
Jun  3 03:57:01 bitcoins pushpoold[9380]: HTTP request failed: couldn't connect to host
Jun  3 03:57:01 bitcoins pushpoold[9380]: HTTP request failed: couldn't connect to host
Jun  3 03:57:01 bitcoins pushpoold[9380]: HTTP request failed: couldn't connect to host
full member
Activity: 350
Merit: 100
June 02, 2011, 10:32:09 AM
I found this log:
Code:
% tail /tmp/request.log
[2011-06-02 13:48:43.821358] ::ffff:192.168.1.210 - "/"
[2011-06-02 13:49:13.826827] ::ffff:192.168.1.210 - "/"
[2011-06-02 13:49:43.833494] ::ffff:192.168.1.210 - "/"
[2011-06-02 13:50:13.838898] ::ffff:192.168.1.210 - "/"
[2011-06-02 13:50:43.844413] ::ffff:192.168.1.210 - "/"
[2011-06-02 13:51:13.851388] ::ffff:192.168.1.210 - "/"
[2011-06-02 13:51:43.856926] ::ffff:192.168.1.210 - "/"
[2011-06-02 14:07:14.385247] ::ffff:192.168.1.210 - "/"
[2011-06-02 14:07:31.446938] ::ffff:192.168.1.210 - "/"
[2011-06-02 15:16:10.756269] ::ffff:192.168.1.210 - "/"

memcached is running properly:
Code:
% rc.d restart memcached
:: Stopping memcached                                                                                                               [DONE]
:: Starting memcached                                                                                                               [DONE]

I also added to /etc/hosts.allow:
Code:
pushpoold: ALL
Pages:
Jump to: