kasykcqd - start a Kasyk caching query server
kasykcqd [options] configfile
The 'kasykcqd' executable reads the specified Kasyk caching query server configuration XML and starts listening for search queries on the indicated location. Instead of performing queries itself, the 'kasykcqd' executable uses one or more "providers" that handle query requests for it. A provider can either be a "true" Kasyk server (kasykd) (that can either be running locally or can be running on a remote host), another Kasyk caching query server (kasykcqd) running on a remote host (which is in fact indistinguishable from a Kasyk server (kasykd)) or a locally running Kasyk searcher (kasyk) that act as an "ad hoc" server for a specific (local) index.
Which providers provide what to the Kasyk caching query server 'kasykcqd', is determined by the contents of the Kasyk caching query server configuration XML in the specified configuration file. Only some aspects of the configuration can be overriden by options: some of these must be specified if there is no appropiate setting available in the configuration file.
Like the Kasyk server (kasykd) executable, the 'kasykcqd' executable will continue to run until it is told to stop, either by killing the process, or by using the --shutdown option.
Unlike the Kasyk server (kasykd) executable, the Kasyk caching query server 'kasykcqd' keeps the result of queries (Kasyk hitlist XML) in memory until more recent queries cause them to be removed, or until the Kasyk caching query server is restarted. This makes paging operations, where the same query is posted over and over again, but where the "window" of interesting hits is moved (e.g. first time 1..10, second time 11..20, third time 21..30, etc. etc.), very efficient as the query does not actually has to be redone, but instead is extracted from the Kasyk hitlist XML that is stored in memory by the Kasyk caching query server.
The only parameter is not optional. It indicates the name of the configuration file that contains the Kasyk caching query server configuration XML.
Unlike the Kasyk searcher (kasyk) executable, no direct queries are possible to 'kasykcqd'. It is however possible to use the Kasyk searcher (kasyk) executable to perform queries on the Kasyk caching query server. In that sense, 'kasykcqd' is indistinguishable from Kasyk server (kasykd) to the outside world.
No messages are sent to standard output (STDOUT) or standard error output (STDERR) if the caching query server has started without any problems. If there are any problems, they are sent to the message log file (if any directly or indirectly specified) and to standard error output.
If there are no error messages, startup was successful. To be sure of success, call 'kasykcqd" again with the same configuration file using the --server option.
$ kasykcqd configfile <ENTER> $
Start serving query requests according to the configuration in "configfile" on whatever host and port are specified in the Kasyk caching query server configuration XML.
$ kasykcqd --location=myserver.domain.com:3334 configfile <ENTER> $
Start serving query requests according to the configuration in "configfile" on host "myserver.domain.com" and port "3334". Ignore any settings for host in the Kasyk caching query server configuration XML.
$ kasykcqd -L 3334 configfile <ENTER> $ kasykcqd -s configfile <ENTER> <kasyk:server xmlns:kasyk="http://www.kasyk.org/1.0" location="127.0.0.1:3334" pid="29604"/> $
Start serving query requests for the configuration file "configfile" on host "localhost" (127.0.0.1) and port "3334". Ignore any settings for host in the Kasyk caching query server configuration XML. Show the resulting Kasyk server info XML.
$ kasykcqd --shutdown configfile <ENTER> $
Shut the server down that is running for the configuration file "configfile".
The 'kasykcqd' executable creates a server info file containing Kasyk server info XML in the same directory as the specified configuration file. The 'kasykcqd' executable (running with any additional --user and --group option settings) must therefore be able to create the necessary file in the same directory as where the configuration file is residing. The server info file is automatically removed when the server is shut down.
Kasyk home, Kasyk caching query server configuration XML, Kasyk server info XML, Kasyk query XML, Kasyk hitlist XML, Kasyk initializer (kasyknew), Kasyk indexer (kasykindex), Kasyk searcher (kasyk), Kasyk server (kasykd).
See http://www.kasyk.nl/program/kasykcqd.html for the most up-to-date version of this information.
See http://www.kasyk.nl/bugs/kasykcqd.html for the most up-to-date information about known bugs for 'kasykcqd'.
Exit status is normally 0. Exit status 1 indicates a problem of some sort with an error message sent to STDERR and any active logfile.
Copyright © 2003 Dijkmat BV
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Kasyk Program Information: Kasyk version 1.0.0, generated on Tue Nov 25 12:09:47 2003.