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.

Time-Series Database Requirements

94 pointsby eaxitectabout 10 years ago

14 comments

damian2000about 10 years ago
Anyone heard of Operational Data Historians? Like OSISoft&#x27;s PI, Honeywell&#x27;s PHD, GE&#x27;s Proficy. They&#x27;re expensive suites of software that have optimal real-time ability, plus historical access. They usually work in process control&#x2F;operations of factories or manufacturing plants. Each item being measured is called a tag.<p>Just thought I&#x27;d throw this out there since its a specialised area that not many people know about. I&#x27;ve done some work with them in terms of writing adaptors to a time series data visualisation product.<p><a href="http://en.wikipedia.org/wiki/Operational_historian" rel="nofollow">http:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Operational_historian</a><p><a href="http://en.wikipedia.org/wiki/OSIsoft" rel="nofollow">http:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;OSIsoft</a><p><a href="https://www.honeywellprocess.com/en-US/training/programs/advanced-applications/Pages/uniformance-phd.aspx" rel="nofollow">https:&#x2F;&#x2F;www.honeywellprocess.com&#x2F;en-US&#x2F;training&#x2F;programs&#x2F;adv...</a><p><a href="http://www.geautomation.com/products/proficy-historian" rel="nofollow">http:&#x2F;&#x2F;www.geautomation.com&#x2F;products&#x2F;proficy-historian</a><p>On the topic of Historians vs Relational Databases, theres a blog post here about it ...<p><a href="https://osipi.wordpress.com/2010/07/05/relational-database-vs-process-historian-for-process-data-use-both/" rel="nofollow">https:&#x2F;&#x2F;osipi.wordpress.com&#x2F;2010&#x2F;07&#x2F;05&#x2F;relational-database-v...</a><p>... admittedly this is by the developer OSISoft so it may be biased, but their points seem valid. Especially the swinging door algorithm reference and the fact they are far more efficient in storage.
评论 #9174508 未加载
digitalzombieabout 10 years ago
Cassandra seems like a good fit.<p>Writes are faster than read, it&#x27;s an AP, and you shouldn&#x27;t really update frequently it unless you want tombstone hell. There&#x27;s also TTL too.<p>Is there any cons of using Cassandra as a Time Series Database? I&#x27;d like to hear it.<p>The biggest thing for Cassandra is you should know your queries before hand before you data model.
评论 #9168578 未加载
评论 #9170418 未加载
评论 #9168560 未加载
obstinateabout 10 years ago
Multi-dimensionality optional&#x2F;drawback? Strongly disagree.<p>This may be my experience as a Googler talking, but I also somewhat disagree with the notion that the data can&#x27;t fit in memory. I operate a X0,000 task service, and our monitoring data could fit into memory in a large server, if need be.<p>Of course, we don&#x27;t keep per-task data permanently, that would be prohibitive at a 5s monitoring interval like the one we use, even if it were put on disk. Instead, we accomplish what I described by aggregating away some dimensions, mostly task number, and then holding the aggregated series in memory, for fast queries. There are some nuances, particularly around having foresight over the cases where you <i>do</i> want to see individual tasks.<p>But suffice it to say that this person&#x27;s experience does not match mine in terms of what I need from a TSDB. Perhaps his ops background comes from a different set of needs than mine, but if you&#x27;re building a TSDB for many customers, I wouldn&#x27;t take this list as gospel.
评论 #9170565 未加载
k1w1about 10 years ago
I built exactly the database that you are describing here. Unfortunately it is not open source. However it is no secret that we used sqlite for the storage. Inserts and queries in sqlite are fast, even for databases with billions of rows. Deletes are very, very slow, so we created a new sqlite database for each week, and simply deleted an entire database file when the retention period expired. Sqlite is ACID, supports all of the complex queries that could be imagined and is easy to embed into the overall engine code base. We use aggregate tables to more efficiently display common aggregations of the data (e.g. graph metric over the last day, or average metric over the last date). The aggregates were updated as data was inserted, so that real-time views were always available.
评论 #9169367 未加载
thrownaway2424about 10 years ago
&quot;Reads need to be fast, even though they are rare. There are generally two approaches to dealing with this. The first is to write efficiently, so the data isn’t read-optimized per-series on disk, and deploy massive amounts of compute power in parallel for reads, scanning through all the data linearly. The second is to pay a penalty on writes, so the data is tightly packed by series and optimized for sequential reads of a series.&quot;<p>As the little girl says in the GIF: why don&#x27;t we have both? Write to a write-optimized store of limited size that requires full access during reads, and re-write that into a read-optimized format hourly or daily. Because it&#x27;s limited in size, you won&#x27;t care that the most recent data isn&#x27;t very efficient for reading, or isn&#x27;t particularly compact.
manigandhamabout 10 years ago
Recently came across Prometheus (<a href="http://prometheus.io" rel="nofollow">http:&#x2F;&#x2F;prometheus.io</a>)<p>There&#x27;s also OpenTSDB (<a href="http://opentsdb.net" rel="nofollow">http:&#x2F;&#x2F;opentsdb.net</a>) that&#x27;s been around for a while.
评论 #9168577 未加载
rodionosabout 10 years ago
I&#x27;m one of the developers behind Axibase Time-Series Database which runs on top of HBase. ATSD is two years into development and has a built-in rule engine, forecasting,and visualization: <a href="http://axibase.com/products/axibase-time-series-database/visualization/" rel="nofollow">http:&#x2F;&#x2F;axibase.com&#x2F;products&#x2F;axibase-time-series-database&#x2F;vis...</a>. The rule engine allows you to write expressions such as abs(forecast_deviation(avg())) &gt; 2.0 to trigger url&#x2F;email&#x2F;command actions if sliding window average is outside of 2.0 sigmas from Holt-Winters&#x2F;ARIMA forecast.<p>The license is commercial and there&#x27;s a free CE version which can be scaled vertically without any throughput constraints. Tags are supported for series as well as for entities and metrics to avoid storing long-term metadata such as location, type, category etc. along with data itself.<p>I wouldn&#x27;t be surprised if functional differences between TSDBs and historians will disappear in just a few years. Right now the historians are good at compressing repetitive data at source and on disk which makes sense given their heritage in archiving data from SCADA systems.
welderabout 10 years ago
This sounds like a job for <a href="http://www.aerospike.com/" rel="nofollow">http:&#x2F;&#x2F;www.aerospike.com&#x2F;</a>
评论 #9171113 未加载
评论 #9171671 未加载
Rapzidabout 10 years ago
I would actually be very interested in hearing more about this MySQL implementation.
评论 #9169003 未加载
nimishabout 10 years ago
Druid is quite a good one
评论 #9169403 未加载
aaa667about 10 years ago
Would be keen to know what people think about: <a href="https://github.com/ambiata/ivory" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;ambiata&#x2F;ivory</a>
sethevabout 10 years ago
I&#x27;m kind of curious about the no &quot;tagging&quot; point. Won&#x27;t there always be some data that doesn&#x27;t fit the [timestamp double] format?
评论 #9169030 未加载
doodlebuggingabout 10 years ago
This might not be what he&#x27;s looking for but it is one way to manage huge amounts of data:<p>[HDF5](<a href="http://www.hdfgroup.org/" rel="nofollow">http:&#x2F;&#x2F;www.hdfgroup.org&#x2F;</a>)
评论 #9168966 未加载
hartrorabout 10 years ago
This smells like a job for Apache Kafka [1], I&#x27;ve yet to use it personally but its feature set appears to hit the mark though it lacks SQL. The application described sounds like it uses something similar to event sourcing [2] which people have used Kafka for successfully. If you&#x27;re not familiar with Kafka there is a very good interview with Jun Rao [3] on se radio.<p>[1] <a href="http://kafka.apache.org/" rel="nofollow">http:&#x2F;&#x2F;kafka.apache.org&#x2F;</a><p>[2] <a href="http://martinfowler.com/eaaDev/EventSourcing.html" rel="nofollow">http:&#x2F;&#x2F;martinfowler.com&#x2F;eaaDev&#x2F;EventSourcing.html</a><p>[3] <a href="http://www.se-radio.net/2015/02/episode-219-apache-kafka-with-jun-rao/" rel="nofollow">http:&#x2F;&#x2F;www.se-radio.net&#x2F;2015&#x2F;02&#x2F;episode-219-apache-kafka-wit...</a>
评论 #9168221 未加载
评论 #9168110 未加载