sphinx分布式配置
来源:互联网 发布:地址匹配算法 编辑:程序博客网 时间:2024/05/21 17:49
参考:http://www.sphinxsearch.org/archives/80
http://blog.csdn.net/e421083458/article/details/23621159
单机配置请参考
搭建coreseek(sphinx+mmseg3)详细安装配置+php之sphinx扩展安装+php调用示例
分布式配置很简单,只需要将局域网内的机器连接即可。
vi /usr/local/coreseek/etc/csft.conf
- index dist
- {
- type = distributed
- agent = 127.0.0.1:9313:index_3307_0
- agent = 127.0.0.1:9313:index_3307_0_delta
- agent = 127.0.0.1:9314:index_3307_1
- agent = 127.0.0.1:9314:index_3307_1_delta
- agent = 127.0.0.1:9316:index_3308_0
- agent = 127.0.0.1:9316:index_3308_0_delta
- agent = 127.0.0.1:9317:index_3308_1
- agent = 127.0.0.1:9317:index_3308_1_delta
- agent = 127.0.0.1:9319:index_3309_0
- agent = 127.0.0.1:9319:index_3309_0_delta
- agent = 127.0.0.1:9320:index_3309_1
- agent = 127.0.0.1:9320:index_3309_1_delta
- agent_query_timeout = 100000
- }
- indexer
- {
- mem_limit = 1024M
- }
- searchd
- {
- listen = 9312
- read_timeout = 5
- max_children = 30
- max_matches = 6000
- seamless_rotate = 1
- preopen_indexes = 1
- unlink_old = 1
- compat_sphinxql_magics=0
- query_log_format = sphinxql
- pid_file = /usr/local/coreseek/var/log/searchd_mysql.pid
- log = /usr/local/coreseek/var/log/searchd_mysql.log
- query_log = /usr/local/coreseek/var/log/query_mysql.log
- #workers = threads
- dist_threads = 6
- }
index dist{ type = distributed agent = 127.0.0.1:9313:index_3307_0 agent = 127.0.0.1:9313:index_3307_0_delta agent = 127.0.0.1:9314:index_3307_1 agent = 127.0.0.1:9314:index_3307_1_delta agent = 127.0.0.1:9316:index_3308_0 agent = 127.0.0.1:9316:index_3308_0_delta agent = 127.0.0.1:9317:index_3308_1 agent = 127.0.0.1:9317:index_3308_1_delta agent = 127.0.0.1:9319:index_3309_0 agent = 127.0.0.1:9319:index_3309_0_delta agent = 127.0.0.1:9320:index_3309_1 agent = 127.0.0.1:9320:index_3309_1_delta agent_query_timeout = 100000}indexer{ mem_limit = 1024M}searchd{ listen = 9312 read_timeout = 5 max_children = 30 max_matches = 6000 seamless_rotate = 1 preopen_indexes = 1 unlink_old = 1 compat_sphinxql_magics=0 query_log_format = sphinxql pid_file = /usr/local/coreseek/var/log/searchd_mysql.pid log = /usr/local/coreseek/var/log/searchd_mysql.log query_log = /usr/local/coreseek/var/log/query_mysql.log #workers = threads dist_threads = 6}
共6台机器的索引及增量,共12项。
然后启动进程。
- /usr/local/coreseek/bin/searchd -c /usr/local/coreseek/etc/csft.conf
/usr/local/coreseek/bin/searchd -c /usr/local/coreseek/etc/csft.conf
最后记得加入到开机命令中:
vi /etc/rc.local
0 0
- sphinx分布式配置
- sphinx分布式配置
- sphinx分布式配置
- sphinx分布式配置
- sphinx分布式配置+中文分词
- sphinx分布式
- 实时的分布式sphinx索引配置及使用方法总结
- 配置sphinx
- 配置sphinx
- Sphinx配置
- sphinx配置
- sphinx 配置
- Sphinx 配置
- Sphinx配置
- sphinx分布式索引简介
- Sphinx多线程分布式搜索
- sphinx分布式索引简介
- Sphinx多线程分布式搜索
- ECSHOP商品页加入购物车弹出层仿淘宝效果
- SEO优化之——html页面相关总结
- Java 时间日期使用 详细整理 --音
- 学习记录-Qt读取条码扫描枪
- android中页面的跳转成功,但是页面上的布局丢失问题
- sphinx分布式配置
- 搭建php运行服务器 win8.1系统安装iis+php5.3+mysql+ZendGuardLoader说明
- 51nod1042 0到9的数量(数位dp)
- scanf()函数简介
- 微信开发系列(五)_消息,事件的处理
- A - Again Twenty Five!【思维题】
- Compare Version Numbers-两个数字类型版本大小
- ios微信登录
- MySQL错误代码大全