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

我也来吐槽腾讯云了

  •  
  •   feather12315 · Aug 29, 2016 · 8223 views
    This topic created in 3717 days ago, the information mentioned may be changed or developed.
    /data # scp -r xaa core@宿主机的公网 IP :~/
    xaa    44%   13MB 118.8KB/s 128.0KB/s   02:22 ETA
    xaa    45%   14MB 113.3KB/s  64.0KB/s   02:29 ETA
    

    core OS ,从容器内 scp 到本地主机,速度就这么点。。。。一元学生机。。。 我在想,加入按照流量计费的话,这种 scp 是不是也要计费?

    广东的网络也太差了, USTC 的源都用不了。。。

    37 replies  •  2016-09-02 15:28:13 +08:00
    just1
    just1
    Aug 29, 2016 via Android
    1
    1m 带宽不就这速度吗。 scp 也算上传,肯定计费啊
    feather12315
    feather12315
    OP
    Aug 29, 2016
    2
    @just1 core OS 从宿主机容器 scp 到宿主机~
    just1
    just1
    Aug 29, 2016 via Android
    3
    @feather12315 噢噢,尴尬了,,以为是到本地
    yexm0
    yexm0
    Aug 29, 2016 via Android
    4
    发工单问问吧。
    feather12315
    feather12315
    OP
    Aug 29, 2016
    5
    @yexm0 问了,估计没有效果。我的猜想:`ifconfig` 并不显示公网 ip ,是不是 公网 ip 在宿主机上,通过类似 `iptables -t nat` 之类的手段把流量转发到 VPS 上。
    leofml
    leofml
    Aug 29, 2016
    6
    换成 容器网关 IP 试试呢? 用公网 IP 肯定是会走公网流量的
    fds
    fds
    Aug 29, 2016
    7
    为啥不用内网 IP
    feather12315
    feather12315
    OP
    Aug 29, 2016
    8
    @leofml 他们也是这么回答的,我现在都有点怀疑自己的知识了。难道是我自己错了吗?假如公网 IP 与 内网 IP 在一个网卡上,根据 iptables 所给的图

    !()[https://www.frozentux.net/iptables-tutorial/images/tables_traverse.jpg]

    这个数据包在第二次路由之后是应该被转发向本机的,并不被传输到网络上。
    feather12315
    feather12315
    OP
    Aug 29, 2016
    9
    @fds 因为我用了 二级域名 ...
    feather12315
    feather12315
    OP
    Aug 29, 2016
    10
    @fds 内网 IP 的话,速度是很快的
    ilay1678
    ilay1678
    Aug 29, 2016 via Android
    11
    1m 带宽上行就这个速度吧
    feather12315
    feather12315
    OP
    Aug 29, 2016
    12
    @ifwangs =_=。这样说吧,现在的问题是:
    ![]( https://www.frozentux.net/iptables-tutorial/images/tables_traverse.jpg)
    这个图说的是,发往本机的包并不通过网络(本机 IP ,包含环回地址与 内网 /公网 IP ),这样理解正确吗?
    feather12315
    feather12315
    OP
    Aug 29, 2016
    13
    @yexm0
    @just1
    @leofml
    @fds
    @ifwangs

    腾讯云工程师 : 2016-08-29 20:44:41
    您好,腾讯云服务器的 IP 是分内网 IP 和外网 IP 的,内网 IP 是绑定在网卡上,外网 IP 是在外网网关上。
    内网 IP 和外网 IP 是属于映射关系。
    相关公告信息(第 1 点和第 3 点): https://www.qcloud.com/doc/product/213/499
    如果您需要通过网卡传数据,您需要使用的 IP 是您的服务器内网 IP 而不是外网 IP 。如果使用外网 IP 传数据是需要算流量的。
    请问您这边还有其他问题吗?

    这是最后的回复。。。。我已经无话可说。。。
    sola97
    sola97
    Aug 29, 2016
    14
    虽然没看懂,提醒一下学生机改按流量计费后就不能用代金券了
    vibbow
    vibbow
    Aug 29, 2016 via Android
    15
    因为公网 ip 并不是绑定在你本机的啊
    pncltp
    pncltp
    Aug 29, 2016 via iPhone
    16
    你写公网 ip ,他怎么可能走内网?
    RobertYang
    RobertYang
    Aug 29, 2016 via Android
    17
    楼主 用的外网 IP 吧
    wzxjohn
    wzxjohn
    Aug 29, 2016
    18
    @feather12315 这并不是无话可说,而是你自己不了解这个架构。目前很多云环境机器上都只有内网 IP 没有外网 IP ,是很正常的,并非只有腾讯这么做。基于此,我认为楼主没有了解清楚相关情况就想当然的用外网 IP 来进行内网通信,速度当然不合理了。。。
    wintercoder
    wintercoder
    Aug 29, 2016
    19
    学生机改成流量计费,就是 40+块续费,没办法用学生卷( 65-64 )
    just1
    just1
    Aug 29, 2016 via Android
    20
    @sola97
    @wintercoder 可以,你多加点硬盘就好。。或者高配
    prondtoo
    prondtoo
    Aug 30, 2016 via Android
    21
    局域网 QQ 传文件,有时候跑外网 IP 有时候跑内网流量。打洞失败才跑的外网吧。
    至于 SCP OVER TCP 22....用外网 ip 理所当然走外网?可以这样理解不?
    feather12315
    feather12315
    OP
    Aug 30, 2016 via Android
    22
    @wzxjohn 对。我是第一次使用这种架构。刚使用的时候就很奇怪,一直猜测是这原因,现在终于证实了。但是,并不明白这样的架构会有什么好处。
    我为啥实用外网 IP ?因为我绑定了域名…
    feather12315
    feather12315
    OP
    Aug 30, 2016 via Android
    23
    @prondtoo 额,并不是这样。可以点一下我发的那图连接。注意一下俩个 route decision 。
    feather12315
    feather12315
    OP
    Aug 30, 2016 via Android
    24
    @wintercoder …买了半个多月,几乎一半时间在 docker build ,这 CPU 、带宽用得很充实😂
    just1
    just1
    Aug 30, 2016 via Android
    25
    @feather12315 只算上传吧, build 难到不是下载吗
    XiaoxiaoPu
    XiaoxiaoPu
    Aug 30, 2016 via iPad❤️1
    26
    @feather12315 aws 也是这种架构。这种叫浮动 IP(floating IP),好处就是公网 IP 随意地和主机绑定解绑,还可以绑定到负载均衡设备上,十分灵活。
    feather12315
    feather12315
    OP
    Aug 30, 2016 via Android
    27
    @just1 只算下载的
    honmaple
    honmaple
    Aug 30, 2016
    28
    吐槽学生优惠卷只能手动领取
    anyforever
    anyforever
    Aug 30, 2016
    29
    ovear
    ovear
    Aug 30, 2016
    30
    这个跟 iptables 一点关系都没有呀。。。你本地的网卡地址都不是你的公网 ip 。。当然要过一遍网关。。过了网关就限速的。
    okletswin
    okletswin
    Aug 30, 2016❤️1
    31
    首先, 绝大部分情况下, 你只需要用内网 IP 通讯
    另外, 从容器到宿主机的拷贝, 用 docker cp 是最好的
    pppcloud
    pppcloud
    Aug 30, 2016
    32
    PPPcloud 云发来贺电!好踏马绕口
    feather12315
    feather12315
    OP
    Aug 30, 2016 via Android
    33
    @okletswin thanks ,学到一个命令😂
    terrydb5
    terrydb5
    Aug 31, 2016
    34
    @pppcloud 跟你打听一下, pppcloud 的价格咋做到那么便宜的啊?是以后一直都是这个价格吗?
    pppcloud
    pppcloud
    Sep 1, 2016
    35
    @terrydb5 公开讨论不好吧! 基本不会变动,如果提高价格应该只会是后续增加一些服务吧! 我只是想让大家知道国内还有一家虽然做的不是大家很认可,但还在默默奋斗的云计算公司!!!好了,广告打完了 XD !
    terrydb5
    terrydb5
    Sep 2, 2016
    36
    @pppcloud 你们网站上的那个服务器性能评测好像有些数据不太对, AWS 的价格应该没那么贵吧。
    pppcloud
    pppcloud
    Sep 2, 2016
    37
    @terrydb5 这个价格在变动嘛,市场价格又不是一直不变!
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   5136 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 158ms · UTC 07:15 · PVG 15:15 · LAX 23:15 · JFK 02:15
    ♥ Do have faith in what you're doing.