solr replication原理探究
来源:互联网 发布:杭州市大数据局 编辑:程序博客网 时间:2024/05/27 09:45
【转载至http://sbp810050504.blog.51cto.com/2799422/1423199】
1. Replication的配置
2. replication的工作原理
2.1 slave端的运行过程
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
private
void
startExecutorService() {
Runnable task =
new
Runnable() {
@Override
public
void
run() {
if
(pollDisabled.get()) {
LOG.info(
"Poll disabled"
);
return
;
}
try
{
executorStartTime = System.currentTimeMillis();
replicationHandler.doFetch(
null
,
false
);
}
catch
(Exception e) {
LOG.error(
"Exception in fetching index"
, e);
}
}
};
executorService = Executors.newSingleThreadScheduledExecutor(
new
DefaultSolrThreadFactory(
"snapPuller"
));
long
initialDelay = pollInterval - (System.currentTimeMillis() % pollInterval);
executorService.scheduleAtFixedRate(task, initialDelay, pollInterval, TimeUnit.MILLISECONDS);
LOG.info(
"Poll Scheduled at an interval of "
+ pollInterval +
"ms"
);
}
2.2 master端的运行过程
0 0
- solr replication原理探究
- solr replication原理探究
- Solr Replication (Wiki)
- Solr Replication 使用
- Solr Replication命令
- Replication原理
- Solr索引复制(Index Replication)
- hbase replication 原理
- Group Replication的原理
- Solr原理
- Solr集群Replication配置与实践
- Solr之集群Replication配置与实践
- Solr集群Replication配置与实践
- 【Solr】——Search On Lucene Replication
- Solr集群Replication配置与实践
- 【mysql】replication原理及实现
- mysql Replication 原理分析 [转]
- 浅析MySQL Replication(复制)原理
- Can't create more than max_prepared_stmt_count statements
- ssh注解配置
- 关于C++里面的函数中,按值传递与按引用传递的区别
- 【问题解决】ava.lang.NoSuchMethodError: antlr.collections.AST.getLine()
- Android 异步消息处理机制 让你深入理解 Looper、Handler、Message三者关系
- solr replication原理探究
- OJ 1997: C语言实验——分割整数
- 百度地图开发(一)
- 谭浩强魔方阵看不明白的同学看这里
- 图片压缩
- JNA方式调用dll动态库
- mongodb更新数据
- ZOJ 2334 可并堆<斜堆>
- 基于 base64_encode的加密算法