存档、索引和搜索AMQP邮件。
gocept.amqparchive的Python项目详细描述
请注意:我们不再积极支持此包。如果您仍然需要,请给我们一张便条,我们可以转移存储库,也可以为您提供付费支持。
此包是gocept.amqprun的附加应用程序,它提供 三个功能:
- archive通过将消息写入文件系统将消息排队
- index那些使用ElasticSearch 的消息
- 搜索带有html/javascript gui的消息
Installation
gocept.amqparchive需要ElasticSearch服务器。设置存档 和索引部分,将类似的内容添加到您的gocept.amqprun 配置:
<eventlog>...</eventlog> <amqp-server>...</amqp-server> <worker> amount 2 component-configuration site.zcml </worker> <settings> gocept.amqparchive.elastic_hostname localhost:9200 </settings>
在site.zcml中:
<configure xmlns="http://namespaces.zope.org/zope" xmlns:amqp="http://namespaces.gocept.com/amqp"> <include package="gocept.amqprun" /> <include package="gocept.amqparchive" /> <amqp:writefiles routing_key="key.one key.two key.three" queue_name="archive" directory="/path/to/archive" pattern="{routing_key}/{date}/{msgid}-{unique}.xml" /> </configure>
html/javascript gui期望/elasticsearch代理到elasticsearch 服务器和/messages指向存档目录 (/path/to/archive在我们的示例中)。以下是nginx配置片段:
http { upstream elasticsearch { server localhost:9200; } server { listen localhost:8080; location /search/ { alias /path/to/gocept.amqparchive.egg/gocept/amqparchive/browser/; index index.html; } location /elasticsearch/ { proxy_pass http://elasticsearch/; } location /messages/ { alias /path/to/archive/; autoindex on; } }
Development
源代码可以在Mercurial存储库中找到 https://bitbucket.org/gocept/gocept.amqparchive
请报告您在 https://bitbucket.org/gocept/gocept.amqparchive/issues
Changelog
1.3.0.post1(2018-11-27)
- 修复pypi页面呈现。
1.3.0(2018-09-19)
- 使selenium-1测试适应webdriver。
- 更新至current bootstrap.py。
- 改进与Python3的前向兼容性。
- 现在强制执行pyes<;0.17。
1.2.7(2015-01-28)
- 更新为currentbootstrap.py。
- 将存储库移到bitbucket.org。
1.2.6(2014-02-17)
- 更新至ElasticSearch 1.0API。
1.2.5(2014-02-14)
- 允许配置多个ElasticSearch主机。
- 修复reindex_directory中的错误:我们需要索引与 基本目录,而不是完整的文件名。 当文件仍在收集时,并行开始重新索引。
1.2.4(2013-11-27)
- 将并行工作模式添加到reindex_directory。
- 处理无效的XML输入(10864)。
1.2.3(2012-04-18)
- 捕捉到ElasticSearch的连接错误,以便它们不会破坏正常 消息处理。由于此原因尚未索引的邮件仍然可以 稍后通过reindex_directory(9363)索引。
1.2.2(2012-03-29)
- 使amqp服务器可配置用于测试。
1.2.1(2012-02-22)
- 切换到plone.testing。
1.2.0(2011-08-23)
- 将XML体转换为嵌套的dict,以便ElasticSearch可以索引 各个字段。
1.1.0(2011-08-23)
- 添加命令行脚本reindex_directory。
1.0.0(2011-08-22)
- 第一次释放。