elasticsearch-index-rotator:安全轮换Elasticsearch索引,而无需停机给最终用户

时间:2021-04-27 13:38:43
【文件属性】:
文件名称:elasticsearch-index-rotator:安全轮换Elasticsearch索引,而无需停机给最终用户
文件大小:74KB
文件格式:ZIP
更新时间:2021-04-27 13:38:43
elasticsearch strategy rotator downtime PHP Elasticsearch索引旋转器 一个使您能够安全地轮转索引而无需停机的最终用户的库。 我为什么要用这个? 在许多情况下,Elasticsearch用作临时数据存储,用于获取结构化或关系数据并使其快速搜索该数据。 通常,这是通过计划的作业来实现的,该作业从永久性数据存储区(例如MySQL或Postgres)读取数据并将其转换为Elasticsearch索引。 在许多情况下,重建索引需要一个干净的表,以便重建整个索引。 在不中断最终用户搜索该索引的情况下,您如何做到这一点? 答案是旋转指数。 在此,当第一次删除索引时,用户的搜索会完全中断,而在重建索引时,只能部分使用。 重建索引时,用户获得的数据不完整。 在这里,用户的搜索永远不会中断,因为我们构建了一个新索引,并且在建立/设置新索引之后,我们更改了要由客户端进行搜索的索引。 安装 composer require zumba/
【文件预览】:
elasticsearch-index-rotator-master
----src()
--------ConfigurationIndex.php(2KB)
--------Exception()
--------Common()
--------Strategy()
--------IndexRotator.php(7KB)
----.travis.yml(991B)
----LICENSE.md(1KB)
----phpunit.xml(608B)
----README.md(5KB)
----docs()
--------rotation.png(36KB)
--------disruption.png(25KB)
----tests()
--------IndexRotatorTest.php(4KB)
--------Strategy()
----.gitignore(22B)
----composer.json(753B)

网友评论