61b9d53108ebcb813aaf8e0b764d11028e8bfbab
redis\345\223\250\345\205\265\346\250\241\345\274\217\345\234\272\346\231\257\346\265\213\350\257\225.md
| ... | ... | @@ -290,9 +290,18 @@ panic: dial tcp 192.168.184.122:6380: connectex: No connection could be made bec |
| 290 | 290 | |
| 291 | 291 | ### 业务异常 |
| 292 | 292 | |
| 293 | -跑了大概一天,没有发现redisson连接异常的日志。 |
|
| 293 | +跑了大概一天,没有发现redisson连接异常的日志,slowlog也较正常 |
|
| 294 | + |
|
| 295 | +[[http://iidp.chinasie.com:9999/iidpminio/redis-sentinel/slowlog-config.png]] |
|
| 296 | + |
|
| 297 | +[[http://iidp.chinasie.com:9999/iidpminio/redis-sentinel/slowlog.png]] |
|
| 298 | + |
|
| 299 | +[[http://iidp.chinasie.com:9999/iidpminio/redis-sentinel/slowlog-hscan.png]] |
|
| 294 | 300 | |
| 295 | 301 | ### 场景1:主从切换 |
| 302 | + |
|
| 303 | +todo |
|
| 304 | + |
|
| 296 | 305 | 步骤: |
| 297 | 306 | 哨兵Redis停止master节点,模拟主从切换。 |
| 298 | 307 | 之后更新APP,查看元模型能否被消费。 |
| ... | ... | @@ -301,7 +310,8 @@ panic: dial tcp 192.168.184.122:6380: connectex: No connection could be made bec |
| 301 | 310 | 检查slowlog是否有超过200ms的执行命令 |
| 302 | 311 | |
| 303 | 312 | |
| 304 | -### 场景2:初次安装 |
|
| 313 | +### 场景2:初次安装 |
|
| 314 | + |
|
| 305 | 315 | **步骤**: |
| 306 | 316 | 清空Redis中 final_meta* 下的内容,重启所有后端容器,检查元模型能否被正常消费 |
| 307 | 317 | **验证结果**: |
| ... | ... | @@ -309,6 +319,7 @@ panic: dial tcp 192.168.184.122:6380: connectex: No connection could be made bec |
| 309 | 319 | 检查slowlog是否有超过200ms的执行命令 |
| 310 | 320 | |
| 311 | 321 | **实际验证结果**: |
| 322 | + |
|
| 312 | 323 | 能够正常消费,没有发现消费延迟的情况。 |
| 313 | 324 | |
| 314 | 325 | 消费topic详情如下: |
| ... | ... | @@ -325,6 +336,8 @@ panic: dial tcp 192.168.184.122:6380: connectex: No connection could be made bec |
| 325 | 336 | |
| 326 | 337 | ``` |
| 327 | 338 | |
| 339 | +[[http://iidp.chinasie.com:9999/iidpminio/redis-sentinel/xread-finalmodel-topic-install.png]] |
|
| 340 | + |
|
| 328 | 341 | ### 场景3:安装、更新、卸载 |
| 329 | 342 | **步骤**: |
| 330 | 343 | 测试正常的安装、更新、卸载在哨兵模式下的效果 |
| ... | ... | @@ -357,7 +370,11 @@ panic: dial tcp 192.168.184.122:6380: connectex: No connection could be made bec |
| 357 | 370 | 2025/08/13 16:02:14 收到消息 ID=1755072133153-0, 内容=map[key:test_eam_maintenance_document,TestTest,TestUser,TestDataSource,test_eam_maintenance_other_expenses,TestTest1,TestTest2,TestRole,test_order_ref,test_order,MetaPropertyVm,TestOrderOrg,test_eam_maintenance_information,test_eam_fault_maintenance_order,test_eam_maintenance_item,test_eam_maintenance_working_hours,UserVm,MetaAppVm,test_data_auth,base_importexportexcel,TestRule,TestOrg,test_data_auth_vo,test_eam_maintenance_task source:bb0ab662-2b19-4b9b-9ffe-0d8b5e9d9223 type:remove] |
| 358 | 371 | |
| 359 | 372 | ``` |
| 360 | -更新后消费详情如下: |
|
| 373 | +[[http://iidp.chinasie.com:9999/iidpminio/redis-sentinel/xread-finalmodel-topic-uninstall.png]] |
|
| 374 | + |
|
| 375 | +[[http://iidp.chinasie.com:9999/iidpminio/redis-sentinel/xread-globaldata.png]] |
|
| 376 | + |
|
| 377 | +更新后消费详情如下,可以发现更新跟安装类似,都是通过重启pod来重新计算终态并发布终态消息。 |
|
| 361 | 378 | |
| 362 | 379 | ```bash |
| 363 | 380 | |
| ... | ... | @@ -374,6 +391,9 @@ panic: dial tcp 192.168.184.122:6380: connectex: No connection could be made bec |
| 374 | 391 | ``` |
| 375 | 392 | |
| 376 | 393 | ### 场景4:模拟大量卸载安装 |
| 394 | + |
|
| 395 | +todo |
|
| 396 | + |
|
| 377 | 397 | **步骤**: |
| 378 | 398 | 用脚本进行一晚的安装卸载APP,测试是否有问题 |
| 379 | 399 | **验证方式**: |
| ... | ... | @@ -381,6 +401,9 @@ panic: dial tcp 192.168.184.122:6380: connectex: No connection could be made bec |
| 381 | 401 | 检查slowlog是否有超过200ms的执行命令 |
| 382 | 402 | |
| 383 | 403 | ### 场景5:模拟长时间运行 |
| 404 | + |
|
| 405 | +持续进行中 |
|
| 406 | + |
|
| 384 | 407 | **步骤**: |
| 385 | 408 | 不停止Redis和后端,测试运行一星期的效果 |
| 386 | 409 | **验证方式**: |