kasykd - start a Kasyk server for a Kasyk index
kasykd [options] indexdir
The 'kasykd' executable reads the configuration of the indicated index directory and starts listening for search queries on the indicated location. The 'kasykd' is the work horse of the Kasyk search engine core. It is a high performance threaded application when compiled on systems that allow so. Most of the configuration information is read from the Kasyk configuration XML that is used when the index is created with Kasyk initializer (kasyknew), or later updated with Kasyk configuration handler (kasykconfig). Several options override settings from the configuration: some of these must be specified if there is no appropiate setting available in the configuration.
The 'kasykd' executable will continue to run until it is told to stop, either by killing the process, or by using the --shutdown option.
The only parameter is not optional. It indicates which Kasyk index should be served. This is a "local" directory that was previously created with Kasyk initializer (kasyknew) and later filled with Kasyk indexer (kasykindex).
Unlike the Kasyk searcher (kasyk) executable, no direct queries are possible to 'kasykd'. It is however possible to use the Kasyk searcher (kasyk) executable to perform queries on the Kasyk index that is served with 'kasykd'.
No messages are sent to standard output (STDOUT) or standard error output (STDERR) if the 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. To be 100% sure ofi success, call 'kasykd" again using the --server option.
Specify the server ID to be associated with this instance of a Kasyk server running on the same Kasyk index. It should be specified in conjunction with the --server, --restart and --shutdown options if neccesary.
The server ID is only needed when multiple Kasyk servers are serving from the same index directory, e.g. when the index is NFS-mounted and different physical servers are used to share the load with a Kasyk caching query server (kasykcqd). This is only necessary in high load situations where load balancing becomes important.
Queries should always conform to Kasyk query XML. The resulting hitlist will always conform to Kasyk hitlist XML. Any Kasyk index must have been created with Kasyk initializer (kasyknew) previously and must have had documents indexed into it with Kasyk indexer (kasykindex).
$ kasykd localindex <ENTER> $
Start serving query requests for Kasyk index "localindex" on whatever host and port are specified in the Kasyk configuration XML.
$ kasykd --location=myserver.domain.com:3333 localindex <ENTER> $
Start serving query requests for Kasyk index "localindex" on host "myserver.domain.com" and port "3333". Ignore any settings for host in the Kasyk configuration XML. Assume the default server ID (because there is no --id specified).
$ kasykd -L 3333 localindex <ENTER> $ kasykd -s localindex <ENTER> <kasyk:server xmlns:kasyk="http://www.kasyk.org/1.0" location="127.0.0.1:3333" pid="29601"/> $
Start serving query requests for Kasyk index "localindex" on host "localhost" (127.0.0.1) and port "3333". Ignore any settings for host in the Kasyk configuration XML. Show the resulting Kasyk server info XML.
$ kasykd --shutdown localindex <ENTER>
Shut the server down that is running for Kasyk index "localindex". Assume that the server was started without specifying a server ID with --id.
Kasyk home, Kasyk configuration XML, Kasyk server info XML, Kasyk query XML, Kasyk hitlist XML, Kasyk initializer (kasyknew), Kasyk indexer (kasykindex), Kasyk searcher (kasyk), Kasyk caching query server (kasykcqd).
See http://www.kasyk.nl/program/kasykd.html for the most up-to-date version of this information.
See http://www.kasyk.nl/bugs/kasykd.html for the most up-to-date information about known bugs for 'kasykd'.
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.