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

增加对多网卡的支持 #409

Open ligg opened 3 years ago

ligg commented 3 years ago

在surging配置文件里增加了"PreferredNetworks": ""配置节 添加ip前缀即可使系统获取ip的时候只获取该前缀下的ip 单网卡的可以空着

fanliang11 commented 3 years ago

k you pull request, this pr cannot be merged into the master branch, because the test environment generally uses the IP address, the production environment is set to 0.0.0.0, and multi-network cards need to set the default route for 0.0.0.0 to take effect. 谢谢pull request, 这个PR不能合并到master 分支上,因 测试环境一般使用IP地址,生产环境设置为0.0.0.0,而多网卡需要设置默认路由,0.0.0.0才能生效。

ligg commented 3 years ago

不同的ip段分别有不同的工作场景,我希望微服务只工作于某一特定ip段