跳转到主要内容

AMQP消息的归档、索引和搜索。

项目描述

请注意:我们不再积极支持此包。如果您仍然需要它,请给我们留言,我们可以转交存储库或以付费方式为您提供支持。

此包是gocept.amqprun的附加应用程序,提供以下三个功能

  • 归档 将队列消息写入文件系统

  • 索引 使用ElasticSearch对这些消息进行索引

  • 搜索 使用HTML/JavaScript GUI搜索消息

安装

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;
    }
}

开发

源代码可在Mercurial仓库中找到,网址为 https://bitbucket.org/gocept/gocept.amqparchive

请将您发现的任何错误报告到 https://bitbucket.org/gocept/gocept.amqparchive/issues

变更日志

1.3.0.post1 (2018-11-27)

  • 修复PyPI页面渲染问题。

1.3.0 (2018-09-19)

  • 将Selenium-1测试适配到Webdriver。

  • 更新到当前的bootstrap.py。

  • 提高与Python 3的向前兼容性。

  • 目前强制使用pyes < 0.17。

1.2.7 (2015-01-28)

  • 更新到当前的bootstrap.py。

  • 将仓库迁移到bitbucket.org

1.2.6 (2014-02-17)

  • 更新到ElasticSearch 1.0 API。

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正文转换为嵌套字典,以便ElasticSearch可以分别索引字段。

1.1.0 (2011-08-23)

  • 添加命令行脚本reindex_directory

1.0.0 (2011-08-22)

  • 首次发布。

项目详情


下载文件

下载适合您平台的文件。如果您不确定选择哪个,请了解有关安装包的更多信息。

源代码分发

gocept.amqparchive-1.3.0.post1.tar.gz (140.2 kB 查看哈希值)

上传时间 源代码

由以下机构支持

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF 赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误记录 StatusPage StatusPage 状态页面