How to decrease the latency of my site, even testing via ping using the CDN Cloude Flare ?
I am using the mochahost server and there my ping from here on my notebook to mochahost is giving me almost 10ms. See.
ping mochahost.com
PING mochahost.com (104.20.31.20): 56 data bytes
64 bytes from 104.20.31.20: icmp_seq=0 ttl=56 time=12.685 ms
64 bytes from 104.20.31.20: icmp_seq=1 ttl=56 time=9.665 ms
But, when I try do the same ping from the same local notebook and from the same internet connection as shown before to my site that is hosted ther on mochahost my latency is not so good.
ping cratirador.com
PING cratirador.com (50.31.134.11): 56 data bytes
64 bytes from 50.31.134.11: icmp_seq=0 ttl=51 time=155.268 ms
64 bytes from 50.31.134.11: icmp_seq=1 ttl=51 time=157.084 ms
How can I configure my CDN so that I can reach my latency target ? Between 10ms until 35ms.
I see the same latency for both domains ~= 34ms mochahost.com could have Pro+ plan and that could change PoP availability.
Where are you located?
ping6 mochahost.com
16 bytes from 2606:4700:10::6814:1e14, icmp_seq=0 hlim=57 time=34.559 ms
16 bytes from 2606:4700:10::6814:1e14, icmp_seq=1 hlim=57 time=34.116 ms
ping6 cratirador.com
16 bytes from 2606:4700:30::6812:3d62, icmp_seq=0 hlim=57 time=34.693 ms
16 bytes from 2606:4700:30::6812:3d62, icmp_seq=1 hlim=57 time=35.086 ms
Rio de Janeiro, Brazil
Here they are ot the same latency. See
PING www.cratirador.com (104.18.61.98): 56 data bytes
64 bytes from 104.18.61.98: icmp_seq=0 ttl=55 time=131.827 ms
64 bytes from 104.18.61.98: icmp_seq=1 ttl=55 time=133.563 ms
64 bytes from 104.18.61.98: icmp_seq=2 ttl=55 time=136.137 ms
PING www.mochahost.com (104.20.30.20): 56 data bytes
64 bytes from 104.20.30.20: icmp_seq=0 ttl=56 time=10.503 ms
64 bytes from 104.20.30.20: icmp_seq=1 ttl=56 time=9.413 ms
64 bytes from 104.20.30.20: icmp_seq=2 ttl=56 time=12.006 ms
IP address reported in your ping of cratirador.com doesn’t seem to be Cloudflare IP, so you’re bypassing Cloudflare Proxy/DNS for that ping test it seems
Sorry!
I fixed it.
Here they are ot the same latency. See
PING www.cratirador.com (104.18.61.98): 56 data bytes
64 bytes from 104.18.61.98: icmp_seq=0 ttl=55 time=131.827 ms
64 bytes from 104.18.61.98: icmp_seq=1 ttl=55 time=133.563 ms
64 bytes from 104.18.61.98: icmp_seq=2 ttl=55 time=136.137 ms
PING www.mochahost.com (104.20.30.20): 56 data bytes
64 bytes from 104.20.30.20: icmp_seq=0 ttl=56 time=10.503 ms
64 bytes from 104.20.30.20: icmp_seq=1 ttl=56 time=9.413 ms
64 bytes from 104.20.30.20: icmp_seq=2 ttl=56 time=12.006 ms
I check a Pro plan domain and is serving from:
São Paulo, Brazil - (GRU)
It has to do with the plan you have with Cloudflare. Possible mochahost.com has Pro or Business.
It is getting better every day. Today, Cloudflare announced Peering Portal.
According to another thread (I’d have to dig for it), the POP limitations on lower plans has been lifted…for now. I haven’t tested this, but I expect Brazil should now route through the nearest datacenter.
It could be temporary, related to global traffic and peering. Several regions (Europe, New Zealand, North America) I see all the plans in PoPs very close to the client, but not in Brazil at the moment.