Recommended Services
› Amazon Web Services
› LeanCloud
› New Relic
› ClearDB
Themyth
V2EX  ›  云计算

有支持负载外部公网 ip 的在线负载均衡服务吗?

  •  
  •   Themyth · Jan 11, 2021 · 4469 views
    This topic created in 2124 days ago, the information mentioned may be changed or developed.
    有没有可以填写别的地方公网 ip 作为后端服务器的在线负载均衡服务呢?
    看了下阿里和腾讯的,都是只能选择自己 ECS 的 ip 的。。。
    我知道公网环境延迟大,但是我可以接受这种延迟。
    就是不知道有没有提供这种服务的?
    如果购买一台 ecs 做转发的话,4 层的负载均衡,有办法在最终目的服务器获得用户真实 ip 吗?
    7 层是可以的,4 层目前还没发现有能获取真实 ip 的方法。。
    18 replies  •  2021-08-19 11:34:33 +08:00
    coderxy
    coderxy
    Jan 11, 2021
    1
    LVS 不行?
    encro
    encro
    Jan 11, 2021
    2
    nginx 直接设置可以的,
    设置 forword ip
    Themyth
    Themyth
    OP
    Jan 11, 2021
    3
    @coderxy 我是说在线的负载均衡服务。。。不是自己架设。

    @encro 那个是 7 层的。。。
    firebroo
    firebroo
    Jan 11, 2021
    4
    4 层 haproxy 可以,搜 haproxy clientip
    walkersz
    walkersz
    Jan 11, 2021
    5
    1 、 阿里云、腾讯云 的负载均衡是可以分配弹性 IP (非用户服务器 IP )的
    2 、腾讯云有一个全球应用加速的服务,可以承载 4 层协议,文档( https://cloud.tencent.com/document/product/608/17849 )
    3 、需要服务器内核加载一个 TOA 的模块,具体在 2 中的文档中有
    walkersz
    walkersz
    Jan 11, 2021
    6
    4 楼说的 haproxy 可以自己搭建,或者搜搜是否有提供 haproxy 代理服务的
    vanlink
    vanlink
    Jan 11, 2021
    7
    还可以在 tcp option 中加入自定义字段
    WaldenHorizon
    WaldenHorizon
    Jan 11, 2021
    8
    dns 轮询解析呢
    YouLMAO
    YouLMAO
    Jan 11, 2021 via Android
    9
    gslb,20m QPS
    yfwl
    yfwl
    Jan 11, 2021
    10
    你直接在 DNS 里负载均衡不就行了?
    rrfeng
    rrfeng
    Jan 11, 2021
    11
    抗 D 服务都是这种,你随便找个。

    四层发现的话要么支持 PROXY PROTOCOL,要么用 TCP options 传( lb+rs 同时 hack )
    Themyth
    Themyth
    OP
    Jan 11, 2021
    12
    @firebroo 谢谢 看到了 haproxy 貌似可以 不过我想找大厂的,不想自己搭。

    @walkersz 弹性 ip 后端必须是他们自己家的 ecs 才行……你说的第二种挺有意思的,像是 lvs-fullnat?先谢谢啦,我要好看看。
    @walkersz 好的 我搜搜……
    @vanlink 这个让我搜搜看。。。
    @YouLMAO 这个是哪个公司提供的服务呢?
    @rrfeng 让我来搜搜 谢谢!
    opengps
    opengps
    Jan 11, 2021
    13
    自己买个公网机器搭建吧,4 层的 lvs 很强大,ip 直接就是真实的
    Ballmer
    Ballmer
    Jan 11, 2021
    14
    https://cn.aliyun.com/product/slb 这个就是吧,应用和非应用级的负载均衡

    /t/742021 你看看这里有券能省钱不
    hongzai118
    hongzai118
    Jan 12, 2021
    15
    阿里 华为全网最低折扣 欢迎比价 招同行代理 只做量不赚钱 有兴趣联系 gome3000
    niubee1
    niubee1
    Jan 12, 2021
    16
    DNS 负载均衡?
    lamesbond
    lamesbond
    Jan 12, 2021
    17
    阿里的负载均衡默认 nat 模式,没法看到源 IP
    hahahahahahahah
    hahahahahahahah
    Aug 19, 2021 via iPhone
    18
    你最后解决了吗,四层转发用什么看的真实 IP
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4916 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 64ms · UTC 07:05 · PVG 15:05 · LAX 23:05 · JFK 02:05
    ♥ Do have faith in what you're doing.