{"repo":"zumba/elasticsearch-index-rotator","free":true,"listed":false,"github":"https://github.com/zumba/elasticsearch-index-rotator","clone":"git clone https://github.com/zumba/elasticsearch-index-rotator.git","description":"Safely rotate Elasticsearch indexes with no downtime to end users.","language":"PHP","stars":15,"topics":["elasticsearch","rotator","downtime","strategy"],"license":null,"category":"data-pipelines","readme_excerpt":"Elasticsearch Index Rotator A library to enable you to safely rotate indexes with no downtime to end users. Why would I use this? In many situations, Elasticsearch is used as an ephemeral datastore used to take structured or relational data and make it fast to search on that data. Often this is achieved via scheduled jobs that read data from a permanent datastore (such as MySQL or Postgres) and translate it into an Elasticsearch index. In many cases, rebuilding an index requires a clean slate so that the entire index is rebuilt. How do you do this without interrupting end users searching on that index? The answer is a rotating index. Here the user's search is fully disrupted when the index is first removed, and only partially available while the index is being rebuilt. While the index is being rebuilt, users get incomplete data. Here the user's search is never disrupted because we construct a new index and after it is built/settled, we change the what index to search by the client. Installation Elasticsearch Index Rotator supports multiple versions of ElasticSearch server and uses the official elasticsearch library for execute the commands. On your application, make sure you include this package as well and specify the version supported by your Elasticsearch server. See the library documentation for the versions. Usage Example Search Example Build All together Using Strategies You can now customize the strategy of getting/setting the primary index. By default, the Configurati","default_branch":null,"files":null,"tree":[],"storefront":"/r/zumba","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/zumba/elasticsearch-index-rotator/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}