sphinx 分布式搜索出现warning:send() failed : 32: broken pipe,
来源:互联网 发布:windows snmpwalk 编辑:程序博客网 时间:2024/06/06 00:33
情况是这样的,我用的是debian系统,coreseek3.2,网站上有四个索引,之前用local设置四个索引,
所以搜索时按顺序搜索,有时会出现超时现象,但是用Query()函数还是能获得一部分结果。但是现在我用两个硬盘分别负载两个索引,分布式索引弄成
agent = localhost:9312:index1,index2
agent = localhost:9312:index3,index4
两种情况都有设置SetMaxQueryTime(2000),即两秒就超时返回。用的是python api
这样子设置后搜索简单的词时就返回正确结果,但是搜索比较复杂,超时的话
Query()会返回None,然后日志文件中记录warning:send() failed : 32: broken pipe,
----------------------------------------------------
解决方法:
经过分析和尝试,发现在分布式索引上面要重新设置agent_query_timeout(默认是3秒)
这个数值要大于SetMaxQueryTime(2000)的总和。
例如:如果有agent = localhost:9312:index1,index2,而且搜索时设置SetMaxQueryTime(2000),
那么在相当于在这台主机上面最大的搜索时间是4秒(2+2=4),那么在索引配置文件上面的
agent_query_timeout就要设置成大于4秒。这样就解决这个问题了。
0 0
- sphinx 分布式搜索出现warning:send() failed : 32: broken pipe,
- openmpi跨节点报错tcp_peer_send_blocking: send() to socket 9 failed: Broken pipe (32)
- 邮件发送失败( connection failed,Can't send command to SMTP host,Broken pipe)
- ssh--write failed broken pipe
- SSH write failed broken pipe
- 解决Linux搭建sftp出现Write failed:Broken pipe的问题
- Sphinx多线程分布式搜索
- Sphinx多线程分布式搜索
- [iphone][debug]putpkt: write failed: Broken pipe
- Failed sending reply to debugger: Broken pipe
- Linux下send函数 Broken pipe错误的解决方法
- Linux下send函数 Broken pipe错误的解决方法
- Linux下send函数 Broken pipe错误的解决方法
- Linux下send函数 Broken pipe错误的解决方法
- Linux Error: 32: Broken pipe
- error: [Errno 32] Broken pipe
- sphinx出现WARNING: rotating index 'delta': cur to old rename failed问题
- broken pipe
- 给出前序与中序 序列 重建二叉树
- C#处理写入TXT文件时的换行
- 平衡树
- Android Toolbar样式定制详解
- React学习
- sphinx 分布式搜索出现warning:send() failed : 32: broken pipe,
- 【Android 基础】利用Theme自定义Activity间的切换动画
- PES,TS,PS,RTP等流的打包格式解析之TS流
- lua截取中英文混合字符串
- KVO模式具体运用细节
- php命令行运行类中的方法
- UVA, 374 Big Mod
- Android Handler造成的内存泄漏的分析j
- 1018. Public Bike Management (30)