diff --git a/AdminGuide.md b/AdminGuide.md
index dae69b3..4bb9975 100644
--- a/AdminGuide.md
+++ b/AdminGuide.md
@@ -131,7 +131,7 @@ drwxr-xr-x 2 jianghang jianghang 48 2013-03-19 15:03 logs
| canal.instance.global.spring.xml |
全局的spring配置方式的组件文件 |
-classpath:spring/memory-instance.xml (spring目录相对于canal.conf.dir) |
+classpath:spring/file-instance.xml (spring目录相对于canal.conf.dir) |
canal.instance.example.mode canal.instance.example.lazy canal.instance.example.spring.xml ..... |
@@ -174,6 +174,16 @@ drwxr-xr-x 2 jianghang jianghang 48 2013-03-19 15:03 logs
1000 |
+| canal.file.data.dir |
+canal持久化数据到file上的目录 |
+../conf (默认和instance.properties为同一目录,方便运维和备份) |
+
+
+| canal.file.flush.period |
+canal持久化数据到file上的更新频率,单位毫秒 |
+1000 |
+
+
| canal.instance.memory.batch.mode |
canal内存store中数据缓存模式 1. ITEMSIZE : 根据buffer.size进行限制,只限制记录的数量 2. MEMSIZE : 根据buffer.size * buffer.memunit的大小,限制缓存记录的大小 |
MEMSIZE |
@@ -357,6 +367,7 @@ mysql 数据解析关注的表,Perl正则表达式.
目前默认支持的instance.xml有以下几种:
- spring/memory-instance.xml
+- spring/file-instance.xml
- spring/default-instance.xml
- spring/group-instance.xml
@@ -370,6 +381,7 @@ mysql 数据解析关注的表,Perl正则表达式.
memory (memory-instance.xml中使用)
zookeeper
mixed
+file (file-instance.xml中使用,集合了file+memory模式,先写内存,定时刷新数据到本地file上)
period (default-instance.xml中使用,集合了zookeeper+memory模式,先写内存,定时刷新数据到zookeeper上)
-------------------
@@ -378,6 +390,11 @@ mysql 数据解析关注的表,Perl正则表达式.
特点:速度最快,依赖最少(不需要zookeeper)
场景:一般应用在quickstart,或者是出现问题后,进行数据分析的场景,不应该将其应用于生产环境
+file-instance.xml介绍:
+ 所有的组件(parser , sink , store)都选择了基于file持久化模式,注意,不支持HA机制.
+ 特点:支持单机持久化
+ 场景:生产环境,无HA需求,简单可用.
+
default-instance.xml介绍:
所有的组件(parser , sink , store)都选择了持久化模式,目前持久化的方式主要是写入zookeeper,保证数据集群共享.
特点:支持HA