by xroot » Fri Jan 14, 2011 4:26 pm
Hi,
The answer that the pokertracker was designed to work with local database puzzles me a little.
One would think that pokertracker and database communicate over TCP/IP and expect them to work over loopback and over network with at least similar performance.
I am interested in this because
I am experiencing a similar problem with poker tracker and a remote postgres database hosted on a linux VPS - it's _very_ slow.
The hands are importing at the speed of 1.6-2.0 hands per second to the remote database, while local import is almost instantaneous.
When I start a new table it takes a few minutes (since I finished playing the first hand @ that table) before the poker tracker menu icon appears on the table.
The network bandwidth measures at 2+ Mbps up/down on both ends and latency is 40 ms at most.
The linux VPS shows 99.9% CPU idle while import is going.
DNS and TCP/IP in general are both in check on both ends.
I moved the database because my laptop would start crawling when 20 tabling to the point of being unusable.
I wonder if you have time to perform the following test:
create a local listening port on your machine running pokertracker that's tunneled to the remote VPS' postgres listening port.
I.e. for pockertracker it will look like the postgres listening port is on localhost.
You can use a putty ssh client (free) and do something like this:
create a local listening port ( say localhost:5555), which is tunneled to your the vps host also running ssh and connecting this to postgres on port 5432.
You seem technical and there are numerous articles on the internet on how to do that (search: putty ssh tunneling).
Then change your pokertracker config to point to port 5555 on localhost instead of 5432.
In the end it will look like this:
pokertracker -- localhost:5555 -- ssh tunnel -- 5555:vps_host:5432 -- postgres
You can go further and replace the local listening port to 5432 so that pokertracker has no way of suspecting anything.
It will look local to pokertracker and i wonder if it makes the difference.