1

HTTP(S) ロードバランサをセットアップし、Cloud CDN を有効にしました。これは、オーストラリア南東部にあるインスタンスを 1 つだけ含むインスタンス グループの前にあります。

CDN IP に接続すると、ユーザーは最も近い POP にルーティングされます。ただし、私が直面している課題は、キャッシュ ミスが発生した場合、CDN から VM に戻るパスにかなりの遅延があるように見え、それがユーザーに渡されて、目的が幾分損なわれることです。

VM からの ping の出力:

tristan@tabletop-web:~$ ping 35.227.XX.XX
PING 35.227.XX.XX (35.227.XX.XX) 56(84) bytes of data.
64 bytes from 35.227.XX.XX: icmp_seq=1 ttl=48 time=128 ms
64 bytes from 35.227.XX.XX: icmp_seq=2 ttl=48 time=128 ms
64 bytes from 35.227.XX.XX: icmp_seq=3 ttl=48 time=128 ms
64 bytes from 35.227.XX.XX: icmp_seq=4 ttl=48 time=128 ms
64 bytes from 35.227.XX.XX: icmp_seq=5 ttl=48 time=128 ms
64 bytes from 35.227.XX.XX: icmp_seq=6 ttl=48 time=128 ms
64 bytes from 35.227.XX.XX: icmp_seq=7 ttl=48 time=128 ms
^C
--- 35.227.XX.XX ping statistics ---
7 packets transmitted, 7 received, 0% packet loss, time 6006ms
rtt min/avg/max/mdev = 128.099/128.237/128.506/0.231 ms

同じ物理的な場所にある別の VM (別のプロバイダー) から接続する場合、VM と CDN 間の待機時間は 1 ミリ秒未満になると考えていました。

tristan@syd:~$ ping 35.227.XX.XX
PING 35.227.XX.XX(35.227.XX.XX) 56(84) bytes of data.
64 bytes from 35.227.XX.XX: icmp_seq=1 ttl=56 time=1.06 ms
64 bytes from 35.227.XX.XX: icmp_seq=2 ttl=56 time=1.06 ms
64 bytes from 35.227.XX.XX: icmp_seq=3 ttl=56 time=1.04 ms
64 bytes from 35.227.XX.XX: icmp_seq=4 ttl=56 time=1.04 ms
64 bytes from 35.227.XX.XX: icmp_seq=5 ttl=56 time=1.03 ms
64 bytes from 35.227.XX.XX: icmp_seq=6 ttl=56 time=1.08 ms
64 bytes from 35.227.XX.XX: icmp_seq=7 ttl=56 time=1.11 ms
64 bytes from 35.227.XX.XX: icmp_seq=8 ttl=56 time=1.05 ms

--- 35.227.XX.XX ping statistics ---
8 packets transmitted, 8 received, 0% packet loss, time 7006ms
rtt min/avg/max/mdev = 1.038/1.063/1.113/0.036 ms
tristan@syd:~$ 

誰かがこれを経験し、解決策を知っていますか?

乾杯

4

0 に答える 0