TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Running a database on EC2? Your clock could be slowing you down

178 pointsby drobover 6 years ago

8 comments

scarface74over 6 years ago
Why would you run your own Postgres instance on EC2 within AWS? That kind of defeats the purpose of paying for AWS. Why not use Postgres RDS or Aurora?<p>It makes some sense with Sql Server and Oracle in a few cases because of licensing but hosting your own Postgres instance on AWS is the worse of both worlds -- you&#x27;re paying more than with a cheaper VPS and you have to do all of the maintenance yourself and not taking advantage of all of things that AWS provides -- point in time restores, easy cross region read replicas, faster disk io (Aurora), etc.
评论 #18043439 未加载
评论 #18042848 未加载
评论 #18042861 未加载
评论 #18042835 未加载
评论 #18043292 未加载
评论 #18043300 未加载
评论 #18045392 未加载
评论 #18043057 未加载
评论 #18042844 未加载
评论 #18042913 未加载
评论 #18042988 未加载
评论 #18043115 未加载
评论 #18042873 未加载
评论 #18042814 未加载
评论 #18042979 未加载
评论 #18042895 未加载
评论 #18044948 未加载
评论 #18043415 未加载
评论 #18043341 未加载
评论 #18042922 未加载
评论 #18045529 未加载
评论 #18043188 未加载
AbacusAvengerover 6 years ago
This is exactly why I wrote the &quot;clockperf&quot; tool during the time I was working at AWS: <a href="https:&#x2F;&#x2F;github.com&#x2F;tycho&#x2F;clockperf" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;tycho&#x2F;clockperf</a><p>At the time, we were trying to benchmark disk I&#x2F;O for new platforms, but we found that things were underperforming compared to the specifications for the hardware. We figured out that fio was reading the clock before&#x2F;after each I&#x2F;O (which isn&#x27;t really necessary unless you really care about latency measurement) and just by reading the clock we were rate limiting our I&#x2F;O throughput. By switching to &quot;clocksource=tsc&quot; in our fio config, we managed to get the performance behavior we expected.
评论 #18045471 未加载
wallstprogover 6 years ago
Nice article!<p>If you&#x27;re interested in clocks on Linux, you might also find this article useful (shameless plug): <a href="http:&#x2F;&#x2F;btorpey.github.io&#x2F;blog&#x2F;2014&#x2F;02&#x2F;18&#x2F;clock-sources-in-linux&#x2F;" rel="nofollow">http:&#x2F;&#x2F;btorpey.github.io&#x2F;blog&#x2F;2014&#x2F;02&#x2F;18&#x2F;clock-sources-in-li...</a>
评论 #18042783 未加载
misiti3780over 6 years ago
here is a link that doesnt have the ssl problem: <a href="http:&#x2F;&#x2F;archive.is&#x2F;7zVmu#selection-1533.0-1536.0" rel="nofollow">http:&#x2F;&#x2F;archive.is&#x2F;7zVmu#selection-1533.0-1536.0</a>
评论 #18042774 未加载
评论 #18042729 未加载
aarongolliverover 6 years ago
an older discussion of this: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=13813079" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=13813079</a>
评论 #18043372 未加载
Johnny555over 6 years ago
<i>And, EC2 does not live migrate VMs across physical hosts. I couldn’t find anything explicit from AWS on this, but it’s something that Google is happy to point out.</i><p>Is it a good idea for a production database to depend on a feature not being used when the vendor hasn&#x27;t said that they don&#x27;t or won&#x27;t use it? They may very well live-migrate when convenient, but just don&#x27;t expose that functionality to customers since they don&#x27;t want customers demanding it.
评论 #18045218 未加载
tofflosover 6 years ago
Is AWS NVMe still ephemeral and how do you deal with it? What happens if a machine, or several, reboots?
评论 #18044420 未加载
评论 #18043338 未加载
评论 #18043332 未加载
abraham_lincolnover 6 years ago
We set our server 4 hours ahead!