I've heard from others that long-polling causes more trouble than benefit. But yeah, ridiculous number of orphans. I'll give it a go and watch.
Actually it works pretty well - the problem we've got is the node-cryptonote-pool software has a significant bug with difficulty increases.
I'm running an internal pool which I was using to solo-mine yesterday with some amazon ec2 instances so I was having a play with various settings.
I posted this shell script in the MRO thread earlier - but its actually one I'm using to restart minerd when the difficulty bug strikes and I get "boooo" all the time..
#!/bin/bash
coin=QCN
pool=qcn.cryptity.com:7779
wallet=1234blahblah4321
minerpath="/home/ubuntu/minerd"
minerdcmd="minerd -a cryptonight -o $pool -u $wallet -p x -q"
maxboos=2
looptimer=15
while true; do
running=`ps -C minerd | grep minerd | wc -l`
maxnum=`cat /proc/cpuinfo | grep processor | wc -l`
# check minerd is running
if [ $running -lt 1 ]; then
echo `date +%H:%M:%S` - $0 - No minerd found: starting miner on $coin @ $pool
$minerpath/$minerdcmd 2>> $minerpath/minerd.log &
# sanity check to make sure no more than one is running
elif [ $running -gt 1 ]; then
echo `date +%H:%M:%S` - Too many minerd found: killing and restarting
killall minerd && sleep 5
$minerpath/$minerdcmd 2>> $minerpath/minerd.log &
fi
# check for boooo in the minerd output
boos=`grep 'boooo' minerd.log | wc -l`
#if there's fewer than allowed, just say so
if [ $boos -lt $maxboos ]; then
echo `date +%H:%M:%S` - Found $boos / $maxboos boos
sleep $looptimer
else
#otherwise, there's too many, so shoot the miner
rm minerd.log
echo `date +%H:%M:%S` - FOUND TOO MANY BOOS - $boos / $maxboos
#restart minerd
killall minerd && sleep 5
echo `date +%H:%M:%S` - Restarting miner on $coin @ $pool
$minerpath/$minerdcmd 2>> $minerpath/minerd.log &
fi
done;
It just checks to make sure minerd hasn't crashed, and otherwise watches for "booooo" in the output, at which point it restarts the miner.
Long-polling isn't new - and its well used by other currencies and cpuminer - the problem is the pool software is immature.. but long-polling saves a lot of the alternate-branch stuff.
QCN: 1Rz2t9dKzsKC6weRuxt7wESDWbx8BdHHJ7kFrYsVUc6E4kpMdzV5Yui8PGzwrF9kGu41RYky2wFN2CV
YTFjBKuHJ4eQv4EL
MRO: 4BJgMQLr4d3XwqxzZsQrmvXHF2RXXGWuJSDqhtyQUebA2zz4G4Xa32S4rp8UTMb9kh2cVPCwoGZfUMT
KvtFpBFN6AaU6kYR