walklown

Results 26 comments of walklown

可直接使用 ReplicationConnectionProxy 多主多从策略,将同区域MySQL实例配置为SOURCE,其他区域MySQL实例配置为REPLICA),配置方式如下: `jdbc:mysql:replication://root:root123456@(host=localhost,port=3309,type=SOURCE),root:root123456@(host=localhost,port=3310,type=SOURCE),root:root123456@(host=localhost,port=3311,type=REPLICA),root:root123456@(host=localhost,port=3312,type=REPLICA)/my_schema?ha.loadBalanceStrategy=random` 参考代码:com.mysql.cj.conf.ConnectionUrlParser 配置效果: ![image](https://github.com/mercyblitz/java-training-camp/assets/22697462/3712dd47-006c-4f23-9cd5-b67abef2f9e0) 优点:无入侵,完全使用MySQL驱动原生实现和配置;可在实现多区域多活、同区域优先的前提下,支持LoadBalance策略。 缺点:功能仅限于多区域多活、同区域优先,如果需要指定区域优先级等定制策略,还是需要自定义扩展。

1-basic/dubbo-samples-spring-boot: 1)、Bump jdk to 17, supplement the missing part of '[PR 1057](https://github.com/apache/dubbo-samples/pull/1057)'. 2)、Bump apache parent to 31, follow 'apache/dubbo'. https://github.com/apache/dubbo-samples/pull/1065

服务端核心代码: 1、整合 ZoneAttachmentPreRegistrationHandler,实现区域信息注册到eureka。([代码链接](https://github.com/walklown/daily-code/blob/master/springboot-demo/springboot-demo-cloud-server/src/main/java/com/walklown/attempt/server/zone/ZoneAttachmentDiscoveryPostProcessor.java)) 2、提供 HTTP Interface 服务端([代码链接](https://github.com/walklown/daily-code/blob/master/springboot-demo/springboot-demo-cloud-server/src/main/java/com/walklown/attempt/server/zone/IMyHttpService.java)) 客户端核心代码: 1、提供 microspere 项目中的 ZonePreferenceLoadBalancerClientConfiguration 的完善版本([代码链接](https://github.com/walklown/daily-code/blob/master/springboot-demo/springboot-demo-cloud-client/src/main/java/com/walklown/attempt/zone/HttpClientConfiguration.java)) 2、将1的代码手动注册到LoadBalancerClientFactory([代码链接](https://github.com/walklown/daily-code/blob/master/springboot-demo/springboot-demo-cloud-client/src/main/java/com/walklown/attempt/client/zone/MyHttpClientConfiguration.java)) 3、通过 RestTemplate 实现 HTTP Interface 客户端([代码链接](https://github.com/walklown/daily-code/blob/master/springboot-demo/springboot-demo-cloud-client/src/main/java/com/walklown/attempt/client/zone/ConsumerService.java)) 遗留问题: 一:暂未实现 HTTP Interface 客户端的自动装载。 二:microsphere.availability.zone 与 microsphere.availability.zone.enabled 属性共存,在 yml...

![image](https://github.com/mercyblitz/java-training-camp/assets/22697462/7a1896bf-5ac9-4301-abb7-df9302f5762d) ![image](https://github.com/mercyblitz/java-training-camp/assets/22697462/3fdd7d37-5d65-4e56-9ac3-9afec9bf34d5)

```log Oct 20, 2023 @ 17:40:51.333 learn | 2023-10-20 17:40:51,325 | INFO | c.z.l.s.a.LogPrinter - hehehe1697794851325 Oct 20, 2023 @ 17:40:51.235 learn | 2023-10-20 17:40:51,225 | INFO | c.z.l.s.a.LogPrinter -...

3主3从6节点: `root@docker-desktop:/data# redis-cli -p 6300 127.0.0.1:6300> 127.0.0.1:6300> 127.0.0.1:6300> cluster info cluster_state:ok cluster_slots_assigned:16384 cluster_slots_ok:16384 cluster_slots_pfail:0 cluster_slots_fail:0 cluster_known_nodes:6 cluster_size:3 cluster_current_epoch:6 cluster_my_epoch:1 cluster_stats_messages_ping_sent:187 cluster_stats_messages_pong_sent:190 cluster_stats_messages_sent:377 cluster_stats_messages_ping_received:185 cluster_stats_messages_pong_received:187 cluster_stats_messages_meet_received:5 cluster_stats_messages_received:377 total_cluster_links_buffer_limit_exceeded:0` 指令测试(需要 redis-cli -c...

The check item 'dubbo-samples-test-13787' failed because the tests attribute in 'case-configuration.yml' was set incorrectly. Waitting for fix.

> please resolve conflicts Resolved ~

@CrazyHZM Hello, 2 weeks have passed, is there have any new suggestions?