zheng-hao / ga-bitbot

Automatically exported from code.google.com/p/ga-bitbot
GNU General Public License v3.0
0 stars 0 forks source link

Redis does not seem to be used? #51

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

I'm trying to get the bit to work with redis, but it doesn't seem to be doing 
anything with it. I've got the redis module compiled for both normal python 
(which is needed for bcbookie) and pypy, I've tested that it worked by adding 
something in there and reading it out again. I can see with redis-cli that my 
clients are connected, but they do not seem to be doing anything:

redis 127.0.0.1:6379> client list
addr=127.0.0.1:40656 fd=8 age=3017 idle=0 flags=N db=0 sub=0 psub=0 multi=-1 
qbuf=0 qbuf-free=32768 obl=0 oll=0 omem=0 events=r cmd=client
addr=127.0.0.1:41343 fd=6 age=1551 idle=550 flags=N db=0 sub=0 psub=0 multi=-1 
qbuf=0 qbuf-free=0 obl=0 oll=0 omem=0 events=r cmd=expire
addr=127.0.0.1:41353 fd=7 age=1543 idle=1543 flags=N db=0 sub=0 psub=0 multi=-1 
qbuf=0 qbuf-free=0 obl=0 oll=0 omem=0 events=r cmd=get
addr=127.0.0.1:41375 fd=9 age=1530 idle=1529 flags=N db=0 sub=0 psub=0 multi=-1 
qbuf=0 qbuf-free=0 obl=0 oll=0 omem=0 events=r cmd=get
addr=127.0.0.1:41442 fd=12 age=1493 idle=1493 flags=N db=0 sub=0 psub=0 
multi=-1 qbuf=0 qbuf-free=0 obl=0 oll=0 omem=0 events=r cmd=get
addr=127.0.0.1:41466 fd=13 age=1480 idle=1479 flags=N db=0 sub=0 psub=0 
multi=-1 qbuf=0 qbuf-free=0 obl=0 oll=0 omem=0 events=r cmd=get
addr=127.0.0.1:41499 fd=14 age=1460 idle=1459 flags=N db=0 sub=0 psub=0 
multi=-1 qbuf=0 qbuf-free=0 obl=0 oll=0 omem=0 events=r cmd=get
addr=127.0.0.1:41550 fd=15 age=1430 idle=1430 flags=N db=0 sub=0 psub=0 
multi=-1 qbuf=0 qbuf-free=0 obl=0 oll=0 omem=0 events=r cmd=get
addr=127.0.0.1:41581 fd=16 age=1414 idle=1414 flags=N db=0 sub=0 psub=0 
multi=-1 qbuf=0 qbuf-free=0 obl=0 oll=0 omem=0 events=r cmd=get
addr=127.0.0.1:41606 fd=17 age=1398 idle=1397 flags=N db=0 sub=0 psub=0 
multi=-1 qbuf=0 qbuf-free=0 obl=0 oll=0 omem=0 events=r cmd=get
addr=127.0.0.1:41690 fd=18 age=1361 idle=1361 flags=N db=0 sub=0 psub=0 
multi=-1 qbuf=0 qbuf-free=0 obl=0 oll=0 omem=0 events=r cmd=get
addr=127.0.0.1:43459 fd=11 age=190 idle=190 flags=N db=0 sub=0 psub=0 multi=-1 
qbuf=0 qbuf-free=0 obl=0 oll=0 omem=0 events=r cmd=get
addr=127.0.0.1:43607 fd=10 age=86 idle=85 flags=N db=0 sub=0 psub=0 multi=-1 
qbuf=0 qbuf-free=0 obl=0 oll=0 omem=0 events=r cmd=get

They just idle around... Is there anything I should be doing to activate this?

Original issue reported on code.google.com by tim.st...@gmail.com on 12 Feb 2013 at 9:01

GoogleCodeExporter commented 8 years ago
When starting the system with gal.py, redis is only used to cache the input 
data and market classification data. So set/get/expire calls only happen at the 
start of each gts.py launch when the fitness function is initialized. You can 
verify with the redis-cli command: keys "*"

When using the start-all.sh script to start the system, bid_maker.py and the 
node server are also launched which make additional use of the redis server. In 
this case, bid_maker stores the results of the tested genes (best of the 
current quartile) and the node server provides the web interface to pull that 
data and chart it.

bid_maker is switching over from caching a html chart to caching just the data. 
Currently, it's caching both.  

Original comment by brian.mo...@gmail.com on 12 Feb 2013 at 1:29

GoogleCodeExporter commented 8 years ago

Original comment by brian.mo...@gmail.com on 6 Mar 2013 at 1:59