# CN pool collapse a few hours every day

**URL:** <https://community.ntppool.org/t/cn-pool-collapse-a-few-hours-every-day/3225>\
**Category:** Server operators\
**Created:** [February 5, 2024, 11:33am UTC](https://community.ntppool.org/t/cn-pool-collapse-a-few-hours-every-day/3225 "2024-02-05T11:33:23Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![lilydjwg](https://sea2.discourse-cdn.com/flex016/user_avatar/community.ntppool.org/lilydjwg/32/1256_2.png) [@lilydjwg](https://community.ntppool.org/u/lilydjwg)\
**Post date:** [February 11, 2024, 10:12am UTC](https://community.ntppool.org/t/cn-pool-collapse-a-few-hours-every-day/3225/21 "2024-02-11T10:12:10Z")

</div>

OK. So at least some servers in the cn pool are disabled / deleted by their owners. That’s very bad indeed.

> [@PoolMUC](#):
>
> So I still think that beyond adding monitors in the China zone to counter to some degree at least the high reliance on a few big servers, broadening the server base by dissolving the regional zones would likely be the only lasting fix to the issue. And is anyhow being considered because it will be beneficial also in other zones.

Yes, as long as the server operators are fine with this. Ideally all servers could be put in a giant pool, and each server could communicate if / how it is overloaded. The pool could then combine the load and distance factors to give out an optimal solution.

Maybe there is a much simpler solution: just delete all overloaded servers in the cn pool, and ask people to reconfigure their clients to e.g. the `cn.ntp.org.cn` pool.

---

<div class="post-metadata">

**Author:** ![PoolMUC](https://sea2.discourse-cdn.com/flex016/user_avatar/community.ntppool.org/poolmuc/32/1473_2.png) [@PoolMUC](https://community.ntppool.org/u/PoolMUC)\
**Post date:** [February 11, 2024, 10:28am UTC](https://community.ntppool.org/t/cn-pool-collapse-a-few-hours-every-day/3225/22 "2024-02-11T10:28:39Z")

</div>

> [@lilydjwg](#):
>
> all servers could be put in a giant pool

This already exists, it’s the global zone [pool.ntp.org](http://pool.ntp.org).

> [@lilydjwg](#):
>
> each server could communicate if / how it is overloaded

Such aspects are being discussed, and as that is somewhat tricky, I suspect this might be one reason why it is taking so long to come up with a well-rounded concept how it could practically work, and implement it.

> [@lilydjwg](#):
>
> The pool could then combine the load and distance factors to give out an optimal solution.

That is what the global zone, or even the continent zones, are supposed to do already today, to some degree. I.e., no direct load feedback from individual servers as that would not be easy to realize, but it is at least considering network topology.

> [@lilydjwg](#):
>
> just delete all overloaded servers in the cn pool

In a way, that is what the monitors are doing automatically (and what they are supposed to do, though due to the complexity of factors to consider, it doesn’t always work optimally). But that would lead to the complete breakdown of the zone. And this is already kind of happening, with server operators being the ones to contemplate (such as in the case that triggered this thread) or decide to remove their servers from the pool (which may in turn trigger further operators to contemplate/take that step). Hence the chicken and egg problem I was referring to earlier.

> [@lilydjwg](#):
>
> ask people to reconfigure their clients to e.g. the `cn.ntp.org.cn` pool

Sure, that is what other people are promoting, and what is also hinted at on the pool pages: If you know a good server “near you”, there are good reasons you might want to use that one rather than the pool. And especially manufacturers of large numbers of devices, or operators of large networks, are encouraged to run their own servers, and then have their devices use those.  
But to some degree/depending on circumstances, I feel that is throwing out the baby with the bathwater. Simply configuring clients to use the global pool instead of any regional pool would be another option to get around the issues with specific regional pools. With the isues to some extent being inherent to the concept of the regional pools.  
Which is one reason why @ask is contemplating to functionally replace them by an entirely geolocation-based mechanism (and while it has the “geo” in its name referring again to actual geography, I would expect/hope for that to rather mean “network geography”).

---

<div class="post-metadata">

**Author:** ![Coelacanthus](https://sea2.discourse-cdn.com/flex016/user_avatar/community.ntppool.org/coelacanthus/32/1595_2.png) [@Coelacanthus](https://community.ntppool.org/u/Coelacanthus)\
**Post date:** [February 11, 2024, 11:06am UTC](https://community.ntppool.org/t/cn-pool-collapse-a-few-hours-every-day/3225/23 "2024-02-11T11:06:09Z")

</div>

> [@PoolMUC](#):
>
> Ok, that is a big difference to other zones, which do not rely on a few big servers, but where there are hundreds of small servers as well which have no issue operating in the pool without getting overloaded. This reliance on a few big servers, and the instability it causes if one of them temporarily drops out for whatever reason, suggest that that situation is not a healthy one.

Here are a few reasons why:

1. China’s laws and operators stipulate that home networks cannot be used for public services, so if we want to set up an NTP server in mainland China, we have to buy either a VPS or a commercial network.
2. Because of our policy of subsidizing home network rates with commercial network rates, commercial network rates are extremely high.
3. So it is basically impractical for an individual to buy a commercial network.
4. And if you buy a VPS, the traffic/bandwidth costs are extremely high.

---

<div class="post-metadata">

**Author:** ![PoolMUC](https://sea2.discourse-cdn.com/flex016/user_avatar/community.ntppool.org/poolmuc/32/1473_2.png) [@PoolMUC](https://community.ntppool.org/u/PoolMUC)\
**Post date:** [February 11, 2024, 11:15am UTC](https://community.ntppool.org/t/cn-pool-collapse-a-few-hours-every-day/3225/24 "2024-02-11T11:15:46Z")

</div>

@Coelacanthus, thanks for those insights, sheds some light on the background. At the same time, that doesn’t make the technical problem go away. Having more users use the global zone instead of regional zones may help by spreading the load to a larger server population. Or, if there are known, good local servers, use those directly instead of the pool.  
The pool was conceived when there were just a few public servers, and because those then got overloaded. So the point, and technical realization of the pool, are geared towards more automatically spreading the load over a large server population, rather than having a few well-known servers hammered. And it will work suboptimally, but actually also be superfluous, if only a small number of servers are available in a region, but those have enough capacity to absorb the entire load generated in a region.

---

<div class="post-metadata">

**Author:** ![HAHAHAHA](https://sea2.discourse-cdn.com/flex016/user_avatar/community.ntppool.org/hahahaha/32/2475_2.png) [@HAHAHAHA](https://community.ntppool.org/u/HAHAHAHA)\
**Post date:** [February 11, 2024, 11:20am UTC](https://community.ntppool.org/t/cn-pool-collapse-a-few-hours-every-day/3225/25 "2024-02-11T11:20:45Z")

</div>

Why can’t we just abandon country pools and use the global pool instead?

---

<div class="post-metadata">

**Author:** ![PoolMUC](https://sea2.discourse-cdn.com/flex016/user_avatar/community.ntppool.org/poolmuc/32/1473_2.png) [@PoolMUC](https://community.ntppool.org/u/PoolMUC)\
**Post date:** [February 11, 2024, 11:25am UTC](https://community.ntppool.org/t/cn-pool-collapse-a-few-hours-every-day/3225/26 "2024-02-11T11:25:02Z")

</div>

Provocative question: What’s keeping you (and others) from using the global zone, and is anything/anyone forcing you to use the country zones?  
The view in this forum generally seems to be to recommend use of the global zone, and discourage use of the regional zones. The challenge is one of spreading the word. (Obviously, the pool pages in some languages still promoting use of continent or even country zones is part of the problem.)  
And work on transparently making this happen on the infrastructure side is being planned, but it is not as easy as it might sound to just replace/remap the regional zones to the global one.

---

<div class="post-metadata">

**Author:** ![HAHAHAHA](https://sea2.discourse-cdn.com/flex016/user_avatar/community.ntppool.org/hahahaha/32/2475_2.png) [@HAHAHAHA](https://community.ntppool.org/u/HAHAHAHA)\
**Post date:** [February 11, 2024, 11:29am UTC](https://community.ntppool.org/t/cn-pool-collapse-a-few-hours-every-day/3225/27 "2024-02-11T11:29:22Z")

</div>

Same though.  
You raised some very valid points - need to promote the use of global pool, just put the global pool address on the website; put some colorful reminders on the website to make sure all visitors will see how the pool prefers to be used.

---

<div class="post-metadata">

**Author:** ![PoolMUC](https://sea2.discourse-cdn.com/flex016/user_avatar/community.ntppool.org/poolmuc/32/1473_2.png) [@PoolMUC](https://community.ntppool.org/u/PoolMUC)\
**Post date:** [February 11, 2024, 11:36am UTC](https://community.ntppool.org/t/cn-pool-collapse-a-few-hours-every-day/3225/28 "2024-02-11T11:36:14Z")

</div>

The website source is [available publicly](https://github.com/abh/ntppool), and proposals can be raised there. Challenge on that side is to get them actually deployed, see, e.g., the long-standing attempt to recommend use of the `pool` directive instead of the `server` directive.

---

<div class="post-metadata">

**Author:** ![Coelacanthus](https://sea2.discourse-cdn.com/flex016/user_avatar/community.ntppool.org/coelacanthus/32/1595_2.png) [@Coelacanthus](https://community.ntppool.org/u/Coelacanthus)\
**Post date:** [February 11, 2024, 11:36am UTC](https://community.ntppool.org/t/cn-pool-collapse-a-few-hours-every-day/3225/29 "2024-02-11T11:36:43Z")

</div>

> [@PoolMUC](#):
>
> but it is not as easy as it might sound to just replace/remap the regional zones to the global one.

I think it’s easy, just add a batch of CNAME RR from all countries or region subdomains to the global zone. According to the DNS standard, all clients will use global zone when they try to use region zone.

---

<div class="post-metadata">

**Author:** ![HAHAHAHA](https://sea2.discourse-cdn.com/flex016/user_avatar/community.ntppool.org/hahahaha/32/2475_2.png) [@HAHAHAHA](https://community.ntppool.org/u/HAHAHAHA)\
**Post date:** [February 11, 2024, 11:38am UTC](https://community.ntppool.org/t/cn-pool-collapse-a-few-hours-every-day/3225/30 "2024-02-11T11:38:31Z")

</div>

> [@PoolMUC](#):
>
> I think it’s easy, just add a batch of CNAME RR from all countries or region subdomains to the global zone. According to the DNS standard, all clients will use global zone when they try to use region zone.

This sounds like a good idea actually!

---

<div class="post-metadata">

**Author:** ![PoolMUC](https://sea2.discourse-cdn.com/flex016/user_avatar/community.ntppool.org/poolmuc/32/1473_2.png) [@PoolMUC](https://community.ntppool.org/u/PoolMUC)\
**Post date:** [February 11, 2024, 11:43am UTC](https://community.ntppool.org/t/cn-pool-collapse-a-few-hours-every-day/3225/31 "2024-02-11T11:43:38Z")

</div>

> [@Coelacanthus](#):
>
> just add a batch of CNAME RR from all countries or region subdomains to the global zone

If it were a static zone, that would be true. But the zones are dynamically generated by the pool infrastructure as servers come and go, or are reconfigured. So that code would need to be adapted to take that into account.  
Also, some other technical and non-technical questions need to be considered as well. E.g., as mentioned, other zones have smaller servers operating without issue because of a “good” client to server ratio in those zones. It needs to be managed carefully not to overload them, as could likely happen if the load of some larger zones is _suddenly_ hitting the wider population with the flip of a switch. A more _gradual approach_ is needed, e.g., by more and more people over time switching to the global zone. Or the infrastructure having a mechanism to slowly ramp up the share of traffic distributed outside the originating zone over time.

---

<div class="post-metadata">

**Author:** ![Coelacanthus](https://sea2.discourse-cdn.com/flex016/user_avatar/community.ntppool.org/coelacanthus/32/1595_2.png) [@Coelacanthus](https://community.ntppool.org/u/Coelacanthus)\
**Post date:** [February 11, 2024, 11:47am UTC](https://community.ntppool.org/t/cn-pool-collapse-a-few-hours-every-day/3225/32 "2024-02-11T11:47:23Z")

</div>

> [@PoolMUC](#):
>
> Also, some other technical and non-technical questions need to be considered first. E.g., as mentioned, other zones have smaller servers operating without issue because of a “good” client to server ratio in those zones. It needs to be managed carefully not to overload them, as could likely happen if the load of some larger zones is _suddenly_ hitting the wider population with the flip of a switch. A more _gradual approach_ is needed, e.g., by more and more people over time switching to the global zone. Or the infrastructure having a mechanism to slowly ramp up the share of traffic distributed outside the originating zone over time.

For this, I think it’s a good beginning to allow server owner modify the zones of their servers in Management Panel.

---

<div class="post-metadata">

**Author:** ![PoolMUC](https://sea2.discourse-cdn.com/flex016/user_avatar/community.ntppool.org/poolmuc/32/1473_2.png) [@PoolMUC](https://community.ntppool.org/u/PoolMUC)\
**Post date:** [February 11, 2024, 11:51am UTC](https://community.ntppool.org/t/cn-pool-collapse-a-few-hours-every-day/3225/33 "2024-02-11T11:51:45Z")

</div>

> [@Coelacanthus](#):
>
> I think it’s a good beginning to allow server owner modify the zones of their servers in Management Panel

Sure, I’d welcome such a change, too. But given the bottleneck in getting things implemented, if it is a question of what to get done first if not everything can be done at the same time, I’d rather have what looks more like a thorough fix implemented first, rather than what seems more of a temporary patch (though that is still relevant later even if the “fix” is done first).  
At this point, I’d concur to be happy if _anything_ could be done, and if the “fix” is “too big” to get done anytime in the “near” future (and “too big” referring to any number of issues, be it conceptual topics being too complex to be resolved soon, be it the amount of code changes that would be needed in one go, or anything else), I’d be happy to see the “temporary patch” done instead first.  
I think I have an appreciation on a _qualitative_ level of the potential challenges that come with any change in the system, but I am far away from claiming any sufficient understanding for a _quantitative_ assessment of efforts and impact on prioritization, and fully defer to @ask for that.

---

<div class="post-metadata">

**Author:** ![Coelacanthus](https://sea2.discourse-cdn.com/flex016/user_avatar/community.ntppool.org/coelacanthus/32/1595_2.png) [@Coelacanthus](https://community.ntppool.org/u/Coelacanthus)\
**Post date:** [February 11, 2024, 11:54am UTC](https://community.ntppool.org/t/cn-pool-collapse-a-few-hours-every-day/3225/34 "2024-02-11T11:54:32Z")

</div>

> [@PoolMUC](#):
>
> Also, some other technical and non-technical questions need to be considered first. E.g., as mentioned, other zones have smaller servers operating without issue because of a “good” client to server ratio in those zones. It needs to be managed carefully not to overload them, as could likely happen if the load of some larger zones is _suddenly_ hitting the wider population with the flip of a switch. A more _gradual approach_ is needed, e.g., by more and more people over time switching to the global zone. Or the infrastructure having a mechanism to slowly ramp up the share of traffic distributed outside the originating zone over time.

And @ask has some plans on it.

> [@Fill zero-server pools with CNAME](https://community.ntppool.org/t/fill-zero-server-pools-with-cname/132/7):
>
> The DNS system makes logs (and metrics) for how many DNS queries it gets from each country. Obviously that doesn’t quite correspond to NTP queries, but it should be a good proxy. My plan is to calculate for each country with less than X servers (or X “net speed capacity”) how far off it is the median/average/some reasonable comparison country and then supplement with servers either from the global zone or that have explicitly joined some other “extra global” zone. (If we use the global zone I’l…

---

<div class="post-metadata">

**Author:** ![PoolMUC](https://sea2.discourse-cdn.com/flex016/user_avatar/community.ntppool.org/poolmuc/32/1473_2.png) [@PoolMUC](https://community.ntppool.org/u/PoolMUC)\
**Post date:** [February 11, 2024, 12:02pm UTC](https://community.ntppool.org/t/cn-pool-collapse-a-few-hours-every-day/3225/35 "2024-02-11T12:02:27Z")

</div>

> [@Coelacanthus](#):
>
> And @ask has some plans on it.

Yes, those are what I keep referring to as technical solution, and there are different aspects being discussed in various other threads over time since then, but it is unclear to me as to where we stand with those plans as of today.

---

<div class="post-metadata">

**Author:** ![allenZ](https://sea2.discourse-cdn.com/flex016/user_avatar/community.ntppool.org/allenz/32/1258_2.png) [@allenZ](https://community.ntppool.org/u/allenZ)\
**Post date:** [February 11, 2024, 1:05pm UTC](https://community.ntppool.org/t/cn-pool-collapse-a-few-hours-every-day/3225/36 "2024-02-11T13:05:18Z")

</div>

When the pool provides `<region code>.pool.ntp.org` domains, users naturally intend to use one that matches their regions. Only those with some insights on how NTP and the NTP pool works may think differ. So for majority of users that having “configuring a NTP server” in their minds, using their regional pool is a de facto standard, and then many tutorials and documentations are saying so.

Clearly there’s not much we can do to change what domain users chose, not to mention most clients are not configured by the end users, but by product vendors.

I agree that using the global pool for all regions is a good approach, and that could/should be easily implemented on the DNS layer: just CNAME all regional zones to the global one.

ps, I’m the one added some far away servers to pool recently and been refused to add them to the CN zone due to physical distance, I’d be more than happy to see a feature allowing server operators to set zones of their servers in the manage panel.

---

<div class="post-metadata">

**Author:** ![PoolMUC](https://sea2.discourse-cdn.com/flex016/user_avatar/community.ntppool.org/poolmuc/32/1473_2.png) [@PoolMUC](https://community.ntppool.org/u/PoolMUC)\
**Post date:** [February 11, 2024, 1:40pm UTC](https://community.ntppool.org/t/cn-pool-collapse-a-few-hours-every-day/3225/37 "2024-02-11T13:40:32Z")

</div>

> [@HAHAHAHA](#):
>
> need to promote the use of global pool

Another thing coming to mind in this context: For now, it should also be promoted to use the zones prefixed with “2.”, as only those have IPv6 servers in them. Those are often underutilized as compared to the IPv4 servers, so using the “2.” zones also helps offload a bit of traffic from the IPv4 servers. (See various other threads in this forum for background discussion on that topic.)

---

<div class="post-metadata">

**Author:** ![HAHAHAHA](https://sea2.discourse-cdn.com/flex016/user_avatar/community.ntppool.org/hahahaha/32/2475_2.png) [@HAHAHAHA](https://community.ntppool.org/u/HAHAHAHA)\
**Post date:** [February 11, 2024, 1:52pm UTC](https://community.ntppool.org/t/cn-pool-collapse-a-few-hours-every-day/3225/38 "2024-02-11T13:52:42Z")

</div>

In fact, I don’t know whether it’s necessary to have 0/1/2/3 in front of the global pool. Why not just [pool.ntp.org](http://pool.ntp.org) and have both Ipv6 and Ipv4 enabled for it?

---

<div class="post-metadata">

**Author:** ![HAHAHAHA](https://sea2.discourse-cdn.com/flex016/user_avatar/community.ntppool.org/hahahaha/32/2475_2.png) [@HAHAHAHA](https://community.ntppool.org/u/HAHAHAHA)\
**Post date:** [February 11, 2024, 1:54pm UTC](https://community.ntppool.org/t/cn-pool-collapse-a-few-hours-every-day/3225/39 "2024-02-11T13:54:52Z")

</div>

If regional pools are eliminated, user cannot use them so [pool.ntp.org](http://pool.ntp.org) will be the default.

---

<div class="post-metadata">

**Author:** ![PoolMUC](https://sea2.discourse-cdn.com/flex016/user_avatar/community.ntppool.org/poolmuc/32/1473_2.png) [@PoolMUC](https://community.ntppool.org/u/PoolMUC)\
**Post date:** [February 11, 2024, 1:58pm UTC](https://community.ntppool.org/t/cn-pool-collapse-a-few-hours-every-day/3225/40 "2024-02-11T13:58:05Z")

</div>

> [@HAHAHAHA](#):
>
> Why not just [pool.ntp.org](http://pool.ntp.org) and have both Ipv6 and Ipv4 enabled for it?

> [@PoolMUC](#):
>
> See various other threads in this forum for background discussion on that topic.

There is a [separate thread](https://community.ntppool.org/t/the-time-has-come-we-must-enable-ipv6-entirely/1968/) on that that is ongoing, besides various older ones.

[Previous page](https://community.ntppool.org/t/cn-pool-collapse-a-few-hours-every-day/3225.md?page=1)

[Next page](https://community.ntppool.org/t/cn-pool-collapse-a-few-hours-every-day/3225.md?page=3)
