sphinx –rotate机制详解
来源:互联网 发布:单片机isp接口 编辑:程序博客网 时间:2024/05/21 22:36
今日,发现sphinx出现 sphinx.new.sp*诸多文件。出现这样的情况是因为 searchd没有加载新索引文件。遂Google之,到sphinx官网论坛后得知rotate的机制后方解决! sphinx的searchd在启动时会创建一个 .spl 锁文件,并在关闭时会删除它。在indexer创建索引时如果发现有 .spl文件,则不会创建新索引,因为这时已经标志sphinx正在运行中,除非使用 –rotate。 roate运行机制 ->indexer完成索引 综上:解决问题的办法是: 关闭searchd :killall -9 searchd
->发送SIGHUP 给searchd(同时在终端输出索引已经完成)
->searchd接到中断信号->等待所有子进程退出
->重命名 当前索引为旧索引为 .old
->重命名 .new 索引文件作为当前索引
->尝试加载当前索引文件->如果加载失败,searchd会把.old文件回滚为当前文件,并把刚建立的新索引重命名为 .new
->加载成的话:完成无缝衔接
重启 searchd :searchd -c ../sphinx.conf
- sphinx –rotate机制详解
- sphinx –rotate机制详解
- sphinx –rotate机制详解
- sphinx索引文件的无缝切换(rotate机制)
- sphinx配置文件详解
- sphinx配置文件详解
- Sphinx配置文件详解
- sphinx配置文件详解
- Sphinx匹配模式详解
- Sphinx配置文件详解
- rotate/rotate_copy详解
- Collections Rotate详解
- sphinx服务器安装及配置详解 安装PHP sphinx扩展
- sphinx+scws 全文检索使用之 sphinx配置文件详解
- sphinx
- sphinx
- sphinx
- sphinx
- IEEE 754 的浮点数格式标准(一)
- test
- Uva 10106 Product(use java)
- JS睡眠函数
- rtsp 交互流程
- sphinx –rotate机制详解
- vc C2085 not in formal parameter list
- Apache Thrift学习小记
- asterisk chan_sip.c代码分析 分享
- 室内家具及墙体的常用尺寸
- 【转】玩转Google开源C++单元测试框架Google Test系列(gtest)之三 - 事件机制
- jquery formValidator 分组验证
- 一个简单的并口驱动
- ADO连接数据库字符串大全