10 ms·
AWS does exactly the same. > The AWS Management Console and backend systems will NOT implement the leap second. Instead, we will spread the one extra second ov
by oittaa 4y ago
AWS does exactly the same.
> The AWS Management Console and backend systems will NOT implement the leap second. Instead, we will spread the one extra second over a 24-hour period surrounding the leap second by making each second slightly longer.
https://aws.amazon.com/blogs/aws/look-before-you-leap-the-coming-leap-second-and-aws/ https://aws.amazon.com/blogs/aws/look-before-you-leap-the-co...
- ncmncm 4y agoI.e., be out of sync all day long with literally everybody except Google.
- zsims 4y agoAt that point, how much of the internet is that?
- ncmncm 4y agoAlmost everybody. AWS and Google would like to think the internet is just them, but they are a tiny little bit of it.
- nvr219 4y agoNo, you don't understand, Amazon and Google will be right, and everyone else will be out of sync with THEM.
- Gigachad 4y agoWhat is the consequence of being a fraction of a second out of sync?
- londons_explore 4y agoAlgorithms that involve 'i did this thing at this time, everyone else should wait for that time to have passed before continuing to ensure correct ordering' (ie. Many database systems) will dramatically slow down. Systems that use atomic clocks might have been able to do 10,000 transactions per second will suddenly only be able to do 2 transactions per second if they contain a node that doesn't use the same smearing.
- zeroimpl 4y agoSeems a weird way to write an algorithm. Easier to rely on database locking and/or the obvious fact that if you have received some data telling you about an event having happened, then it has happened… Curious if there are any real reports where this caused issues?
- ncmncm 4y agoIf you have not heard of problems with time in distributed systems everywhere, maybe read up instead of guessing? There are literally thousands of papers on the topic, more every year. It is not considered solved.
- zeroimpl 4y agoBut where are the reports/blog posts from the thousands of companies using these algorithms that ran into performance problems the last few times cloud providers used time smearing? I’ve done some searching and can’t find any, which suggests this is mostly a theoretical issue. Yes I could come up with an algorithm where this is a problem, but in most cases I’d favor a solution that doesn’t depend on separate systems having clocks perfectly in sync.
- zmgsabst 4y agoOkay, how many suggest relying on a perfectly synchronized clock versus how many suggest designs which account for slightly desynchronized clocks?
- nemothekid 4y agoIf you have a distributed system that requires strict time synchronization why do you care if Google’s time is wrong? Surely if you need that level of synchronization you have your own implementation with gps clocks. If you don’t, then you already have to deal with standard drift with ntp anyways so Googles time smear is the least of your problems
- ncmncm 4y ago
- nemothekid 4y agoI’m really struggling to understand the problem - what does out of sync here mean - especially when you are talking about a max 500ms. ntp clock drift can already be as bad as 500ms and if you need something tighter, then you may have already gone the gps route. Either way I can’t imagine anyone building a system that has less than a 500ms tolerance for any arbitrary computer on the internet. At the very least special relativity is going to be one the first road blocks you face in trying to get perfect universal time sync
- remus 4y ago> I’m really struggling to understand the problem - what does out of sync here mean - especially when you are talking about a max 500ms. From a purely academic perspective, it means from noon preceding a leap second to noon after the leap second there's a difference between UTC and what google (and anyone else who does smears) reports as the time. If you really hated yourself and were trying to use timestamps from conflicting sources to order transactions in a database, for example, this could mess up the order of your transactions which could have all sorts of fun consequences.