How to beta test P2P

From Seeks

Jump to: navigation, search

Since experimental version 0.3.4, Seeks implements a P2P collaborative filter. Basically this means that specifying a set of remote Seeks nodes, also called 'peers', one can benefit from what other users did on some other Seeks nodes, searching and selecting results.

Here are the steps to activate and beta test the P2P collaborative filter:

  • Download and compile version 0.3.4 (current).
  • edit file src/plugins/cf/cf-config so that the lines
cf-peer http://seeks-project.info/search_exp.php sn
cf-peer http://seeks-project.info/search.php sn

are not commented out. You can add more peers as needed, but they must run Seeks version 0.3.3 or above (0.3.4 required for nodes using the HTTP server plugin).

  • if you would like to make sure that the P2P is working, activate the logging, in src/config
debug 32

should not be commented out.

You're all set! Every query you type will grab results, recommendations and related queries from remote Seeks nodes.

If things are working fine you should see (with logging activated) lines similar to

May 05 22:25:45.616 7f97237fe700 Debug: fetching record 1645a6897e62417931f26bcbdf4687c9c026b626 from seeks-project.info/search_exp.php
May 05 22:25:45.616 7f9729b3e700 Debug: fetching record 1645a6897e62417931f26bcbdf4687c9c026b626 from seeks-project.info/search.php
May 05 22:25:45.618 7f972a33f700 Debug: : fetched 17 queries
May 05 22:25:45.797 7f97237fe700 Debug: seeks-project.info/search_exp.php: fetched 66 queries
May 05 22:25:45.805 7f9729b3e700 Debug: seeks-project.info/search.php: fetched 183 queries

Testing the new 'batch' P2P calls

These calls are much faster. They are the default since 0.3.5.

Setting up your Seeks node

Look into your cf-config file and make sure you're using the 'bsn' mode.

cf-peer http://seeks-project.info/search_exp.php bsn

Testing a remote Seeks node by hand

You can test a remote node by hand with a dedicated tool.

Go to src/plugins/udb_service/tests

./test_bqc "seeks project" http://www.seeks-project.info/search_exp.php ../../../

General usage is as follows

./test_bqc 
Usage: <query> <host URL> <seeks base dir>

Please report any node that you believe should work, and that doesn't.

Personal tools