注:
(1)zcbus-7.6-9-20210801.tar.gz之后版本支持Redis数据库密码验证订阅
(2)如果设置了密码,则数据库配置密码部分输入相应密码;如果没有设置密码,则密码设置为空,程序不会执行auth校验密码命令,不会影响数据订阅
校验逻辑(后台程序+web):
有密码->校验ip+端口+密码
无密码->校验ip+端口


(3)需要配置applybykeys,配置键值:

否则,不配置applybykeys,会报错:

[LV0] 2021-08-01 12:48:35: LOAD THD[1] loading FULL message 0, table[ZFL.TEST_KH] topic[37370.zfl.test_kh.s.2] offset[2]...
error at file[msg_load_db.c] line[803], ZCBUS-120: redis must set apply_by_keys, use by key
error at file[msg_load_db.c] line[2206], ZCBUS-120: redis must set apply_by_keys, use by key
[ERR] LOAD THD[1], ZCBUS-120: redis must set apply_by_keys, use by key
[ERR] LOAD THD[1] msg_load, ZCBUS-120: redis must set apply_by_keys, use by key, retry 1...

(4)update操作会转成delete+insert(delete+set):

(5)redis特殊字符处理(zcbus-7.6-9-20210802.tar.gz)

(6)key中添加了用户名和表名,用#号隔开(zcbus-7.6-9-20210802.tar.gz)

文档更新时间: 2023-06-30 22:30   作者:阿力