Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance Drop #6

Open
thewayiam opened this issue Jan 24, 2017 · 2 comments
Open

Performance Drop #6

thewayiam opened this issue Jan 24, 2017 · 2 comments

Comments

@thewayiam
Copy link
Contributor

domain vs ip 處理量差一倍,有可以調整的地方嗎?這台主機在新加坡

$ wrk -t12 -c100 -d 30 http://139.162.16.227
Running 30s test @ http://139.162.16.227
12 threads and 100 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 298.53ms 349.54ms 2.00s 85.48%
Req/Sec 21.44 16.72 90.00 73.47%
6125 requests in 30.09s, 119.27MB read
Socket errors: connect 0, read 63, write 0, timeout 227
Requests/sec: 203.55
Transfer/sec: 3.96MB

$ wrk -t12 -c100 -d 30 http://vote.ly.g0v.tw/
Running 30s test @ http://vote.ly.g0v.tw/
12 threads and 100 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 818.53ms 308.90ms 2.00s 79.08%
Req/Sec 10.39 7.23 50.00 66.58%
2822 requests in 30.08s, 55.87MB read
Socket errors: connect 0, read 0, write 0, timeout 140
Requests/sec: 93.83
Transfer/sec: 1.86MB

@poga
Copy link
Member

poga commented Jan 24, 2017

看起來 cloudflare 被導到 LA 去了所以 latency 很大?

139.162.16.227:

                                                                                                                                                                           Packets               Pings
 Host                                                                                                                                                                    Loss%   Snt   Last   Avg  Best  Wrst StDev
 1. h254.s98.ts.hinet.net                                                                                                                                                 0.0%   107   10.7  23.7   9.4 780.7  76.7
 2. tpe4-3301.hinet.net                                                                                                                                                   0.0%   107    9.9  17.9   9.5 120.6  18.4
 3. 220-128-11-250.HINET-IP.hinet.net                                                                                                                                    10.3%   107   36.4  20.3   9.8 130.8  20.1
 4. TPDT-3012.hinet.net                                                                                                                                                   0.0%   107   13.2  18.7  11.1 128.7  15.5
 5. r4044-s2.tp.hinet.net                                                                                                                                                 0.0%   107   11.7  16.7  10.4  96.9  13.5
 6. r12-hk.hinet.net                                                                                                                                                      0.0%   107   34.5  40.1  29.2 125.5  17.0
 7. r11-hk.hinet.net                                                                                                                                                      0.0%   107   34.7  41.8  32.8 165.4  21.6
 8. pacnet-hk-gw.hinet.net                                                                                                                                                0.0%   107   30.6  36.9  28.9 118.3  15.8
 9. ge-2-1-0-0.cr4.hkg3.10026.telstraglobal.net                                                                                                                           0.0%   107   33.8  40.7  32.3 167.7  18.7
10. te0-0-2-0.wr2.hkg0.10026.telstraglobal.net                                                                                                                            0.0%   107   34.8  42.0  34.8 104.7  13.1
11. te0-0-4-0.wr1.hkg0.10026.telstraglobal.net                                                                                                                            0.0%   107   69.0  72.1  63.7 135.4  14.0
12. te0-0-0-0.wr1.sin0.10026.telstraglobal.net                                                                                                                            0.0%   106   68.5  71.5  64.7 145.8  12.4
13. te0-0-4-0.wr2.sin0.10026.telstraglobal.net                                                                                                                            0.0%   106   65.0  71.7  63.1 161.2  15.5
14. xe0-2-0.gw1.sin2.pacnet.net                                                                                                                                           0.0%   106   65.6  73.2  65.2 195.4  17.9
15. gw2.sin1.sg.linode.com                                                                                                                                                0.0%   106   65.6  73.8  65.1 183.9  21.4
16. 139.162.0.6                                                                                                                                                           0.0%   106   69.6  75.7  67.7 177.1  17.8
17. li858-227.members.linode.com                                                                                                                                          0.0%   106   65.0  70.3  63.0 160.1  16.0

vote.ly.g0v.tw:

 Host                                                                                                                                                                    Loss%   Snt   Last   Avg  Best  Wrst StDev
 1. h254.s98.ts.hinet.net                                                                                                                                                 0.0%   128    9.7  22.3   9.4 746.4  66.6
 2. tpe4-3302.hinet.net                                                                                                                                                   0.0%   128   33.8  18.8   9.4 102.2  18.1
 3. 220-128-11-226.HINET-IP.hinet.net                                                                                                                                     0.0%   128   66.8  24.1   9.7 135.7  22.0
 4. pcpc-3201.hinet.net                                                                                                                                                   0.0%   128   30.4  23.3  10.1 123.1  18.4
 5. r4102-s2.tp.hinet.net                                                                                                                                                 0.0%   128   11.0  16.3   9.7  96.9  13.4
 6. r4002-s2.tp.hinet.net                                                                                                                                                 0.0%   128   11.8  19.3   9.8 115.2  17.7
 7. r12-la.us.hinet.net                                                                                                                                                   0.0%   127  149.3 155.5 147.3 323.6  21.6
 8. xe0-1-0.losangeles2.loa.seabone.net                                                                                                                                   0.0%   127  149.2 159.2 147.5 299.1  19.3
 9. cloudflare.losangeles2.loa.seabone.net                                                                                                                                0.0%   127  149.0 152.1 147.4 207.2   8.9
10. 104.28.18.78                                                                                                                                                          0.0%   127  164.9 169.2 164.6 216.2   8.8

http://vote.ly.g0v.tw/cdn-cgi/trace:


colo=LAX
spdy=off
http=http/1.1
loc=TW

@ronnywang
Copy link
Member

cloudflare 那邊應該預設要改成直接 CNAME 或是 A 到原 IP ,而不是用 Proxy 的方法
這邊可能先請村長 @clkao 先手動改一下 vote.ly.g0v.tw 直接 bypass 不要過 proxy

目前我只有開發到從 cloudflare 把設定 dump 出來到 github 這個階段
還沒有做好 github 的設定要更新到 cloudflare 去

ronnywang added a commit that referenced this issue Mar 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants