fanliang11 / surging

Surging is a micro-service engine that provides a lightweight, high-performance, modular RPC request pipeline. support Event-based Asynchronous Pattern and reactive programming ,The service engine supports http, TCP, WS,Grpc, Thrift,Mqtt, UDP, and DNS protocols. It uses ZooKeeper and Consul as a registry, and integrates it. Hash, random, polling, Fair Polling as a load balancing algorithm, built-in service governance to ensure reliable RPC communication, the engine contains Diagnostic, link tracking for protocol and middleware calls, and integration SkyWalking Distributed APM
MIT License
3.24k stars 923 forks source link

单服务热加载问题 #400

Closed lipengfei12334 closed 4 years ago

lipengfei12334 commented 4 years ago

在k8s中 发布单个服务 如何不重启网关 和整个服务体系 让服务自动加载完成热部署

fanliang11 commented 4 years ago

服务引擎有consul 和 zookeeper 两种注册中心,前者是心跳更新服务路由到本地,后者是通过watcher 机制更新,而请求过的服务才会触发心跳, 心跳也会间隔一段时间进行同步更新到本地。你可以通过配置文件配置全量心跳更新或者修改间隔时间,这些配置会影响单机的注册中心性能,你需要进行配置或者部署多个注册中心

lipengfei12334 commented 4 years ago

这是目前配置的 单服务器热加载无法处理

fanliang11 commented 4 years ago

热加载,创建动态代理有点问题,暂时还没找到解决方案