如何扩展使用 Zend_Search_Lucene 的 Zend Framework 应用程序

发布于 2024-12-13 18:25:48 字数 330 浏览 8 评论 0原文

我最近向生产环境发布了一个 ZF 应用程序,但我遇到了一些麻烦,因为该应用程序在负载均衡器后面的三个不同实例中运行。

这三个应用程序实例通过 NFS 共享相同的 lucene 索引。我刚刚意识到 Zend 框架文档

我应该如何部署我的应用程序?

I've recently released an ZF app to production environment, and I'm getting some troubles because this app is running in three different instances behind a load balancer.

These three app instances are sharing the same lucene indexes through NFS. I've just realized NFS is discouraged by Zend Framework documentation.

How should I deploy my app?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

千纸鹤 2024-12-20 18:25:48

好吧,如果您仅使用索引进行搜索,最简单的解决方案是复制索引并为每个应用程序提供自己的副本以进行查询。

如果您的应用程序正在编辑索引,那么您将面临更难解决的问题。除了 Zend Lucene 之外,您很可能必须选择不同的搜索/索引方法。您可以改用 Java Lucene,尽管我不知道是否有 PHP API。

我不知道你还能做什么。我希望有人能想出一个巧妙的解决方案。听起来是一个有趣的问题。

Well, the easiest solution to this, if you're using the index ONLY to search, would be to copy the index and give each app its own copy to query.

If your app IS editing the index then you have a harder problem to solve. You'll more than likely have to choose a different search/index method besides Zend Lucene. You could use the Java Lucene instead, although I don't know if there's a PHP API for it.

I'm at a loss at what else you could do. I hope someone comes up with a crafty solution to this. Sounds like an interesting problem.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文