1. Modify
/usr/local/sphinx/etc/sphinx-distributed.conf
on the primary server (192.168.1.1) and add a new index definition as shown:index master { type = distributed # Local index to be searched local = items # Remote agent (index) to be searched agent = 192.168.1.2:9312:items-2 }
2. Modify the configuration files on both 192.168.1.1 and 192.168.1.2 servers, and add the searchd section as shown:
searchd { log = /usr/local/sphinx/var/log/searchd-distributed.log query_log = /usr/local/sphinx/var/log/query-distributed.log max_children = 30 pid_file = /usr/local/sphinx/var/log/searchd-distributed.pid }
3. Start the
searchd
daemon on the primary server (make sure to stop any previous instance):$ /usrl/local/sphinx/bin/searchd -c /usr/local/sphinx/etc/sphinx-distributed.conf
4. Start the
searchd
daemon on the second server (make sure to stop any previous instance):$ /usrl/local/sphinx/bin/searchd -c /usr/local/sphinx/etc/sphinx-distributed...
Sphinx Search Beginner's Guide
By :
Sphinx Search Beginner's Guide
By:
Overview of this book
Table of Contents (15 chapters)
Sphinx Search
Credits
About the Author
Acknowledgement
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
Setting Up Sphinx
Getting Started
Indexing
Searching
Feed Search
Property Search
Sphinx Configuration
Customer Reviews