0.0
No commit activity in last 3 years
No release in over 3 years
Sphinx index propagtion (currently via the filesystem)
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

= 0.2.1
= 0.9.8
>= 1.2.9
>= 0

Runtime

>= 0.6.2
>= 0.8.7
>= 0.6.6
 Project Readme

pyramid_scheme¶ ↑

Index propagation for sphinx to eliminate redundant indexing. Run indexing once on an index server and have index clients retrieve the required files.

Use this if you have a distributed system for your application servers where each one requires a dedicated searchd process locally.

Supports ThinkingSphinx and Ultrasphinx

Filesystem Configuration¶ ↑

Toss this in an initalizer like config/initializers/pyramid_scheme.rb

PyramidScheme.configure do |config|
  config.client_source_path = '/some/client/source'
  config.client_destination_path = '/some/client/destination'
  config.server_source_path = '/some/server/source'
  config.server_destination_path = '/some/server/destination'
end

In your Rakefile, require ‘pyramid_scheme/tasks’ after your thinking sphinx or ultrasphinx require statement

Your client source and server destination paths should point to the same storage path for the transfer to behave the way you want it to.

The server must run an index via rake pyramid_scheme:index for files to be placed properly for the client to pick up. A lock file will be created in the server destination directory

The client must run an index via rake pyramid_scheme:retrieve_index - upon retrieval, will send a sighup to your searchd process to rotate the indexes

Note on Patches/Pull Requests¶ ↑

  • Fork the project.

  • Make your feature addition or bug fix.

  • Add tests for it. This is important so I don’t break it in a future version unintentionally.

  • Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)

  • Send me a pull request. Bonus points for topic branches.

Copyright © 2010 Dan Pickett. See LICENSE for details.