News for hackers. Stuff that matters.
Re:Time Series Databases to Watch by 11thEarlOfMar on Saturday May 04, 2019 @09:58AM (#19826472)
We're planning to deploy ClickHouse from Yandex[0]. Would like to hear from anyone who has it in production already, and what is your experience with it.

[0] https://clickhouse.yandex/

Re:Time Series Databases to Watch by gaahrdner on Saturday May 04, 2019 @10:33AM (#19826683)
Cloudflare[0] uses ClickHouse extensively, might want to reach out to them.

[0]https://blog.cloudflare.com/http-analytics-for-6m-requests-p...

Re:Time Series Databases to Watch by 11thEarlOfMar on Saturday May 04, 2019 @11:05AM (#19826861)
TYVM
Re:Time Series Databases to Watch by tepidandroid on Saturday May 04, 2019 @03:07PM (#19828535)
I would love to use Clickhouse, if only it has some kind of Cassandra-esque node-to-node replication mechanism. I'm loathe to bring in something heavy like Zookeeper for that.

It would also be ideal if they could accelerate the data ingestion process somehow without the need to buffer chunks with yet another moving piece like Kafka.

I guess ideally, I'm looking for some kind of standalone HTAP system minus transactional guarantees.

Re:Time Series Databases to Watch by valyala on Tuesday May 14, 2019 @04:24PM (#19913534)
Clickhouse cluster can run without Zookeeper and without replication. Data durability may be provided by using durable storage such as Google Compute Engine disks [1].

Data ingestion process may be accelerated without resorting to Kafka - just insert data into Buffer table [2].

[1] https://cloud.google.com/compute/docs/disks/#pdspecs

[2] https://clickhouse.yandex/docs/en/operations/table_engines/b...

Re:Time Series Databases to Watch by MrBuddyCasino on Saturday May 04, 2019 @11:28AM (#19827033)
We‘re using it at Instana, its very fast, robust and scales linearly with node count. Make sure to batch inserts, it doesn’t like many small inserts.
Re:Time Series Databases to Watch by shaklee3 on Saturday May 04, 2019 @12:00PM (#19827245)
Any reason you choose clickhouse over druid or Pinot?
Re:Time Series Databases to Watch by mfrye0 on Saturday May 04, 2019 @12:14PM (#19827333)
I've evaluated Timescale, Clickhouse, Druid, and Pinot for our own use case.

Druid and Pinot have a lot of moving parts. If I remember correctly, Druid was something like 6-8 different nodes for different parts of the ingestion / querying processes. So it's going to be a lot of upfront and ongoing dev ops work.

Clickhouse is interesting because it seems to just "work". One thing to deploy and you just increase the number of nodes as you scale.

Re:Time Series Databases to Watch by shaklee3 on Saturday May 04, 2019 @07:05PM (#19829939)
To be fair to druid, those 6 are really just three types. They recommend deploying them in groups of 3 types:

http://druid.io/docs/latest/design/processes.html

Re:Time Series Databases to Watch by bsg75 on Saturday May 04, 2019 @01:58PM (#19828055)
Simplicity.

In our case, the simple deployment and management of Clickhouse is a key feature. It is masterless [1] with no namenodes or coordinators, so each machine looks the same, and there is only one process to manage.

If you rely on its replication mechanism for sharding, Zookeeper becomes necessary, but writing directly to nodes in an orderly fashion is also an option (as we are).

[1] This means nodes are not aware of what each other contain, so queries hit all nodes with some maybe having no work to do. Depending on your workload this may or may not be a concern.

Re:Time Series Databases to Watch by oddtodd on Wednesday May 15, 2019 @01:19PM (#19921622)
I'll second Simplicity and add in that ClickHouse is also faster on less hardware and more stable compared to our current Druid configuration.

My company currently uses Druid and has for a few years now, but I have been evaluating ClickHouse on the side as a possible replacement, and as a testament to its simplicity, I was able to stand it up and get in going as a PoC pretty quick/easily.

So far I have only found good things about ClickHouse, maybe the only ClickHouse downside has been the management of the cluster and data, but I haven't gotten too far into operationalizing ClickHouse to know how much those kind of items will cost.

Perhaps the other thing is the documentation, while reasonably good imo, still doesn't explain everything as well as I'd like. It was good enough, but I definitely had to experiment on a couple items to get them working as needed.

Re:Time Series Databases to Watch by tepidandroid on Saturday May 04, 2019 @03:14PM (#19828582)
This is interesting. In effect, you're doing your sharding client-side?

What do you plan to do if you need to add new nodes and/or you need to rebalance nodes due to concentrated data access patterns? How do you handle cross-node queries like joins?

Re:Time Series Databases to Watch by bsg75 on Saturday May 04, 2019 @03:41PM (#19828782)
> In effect, you're doing your sharding client-side?

Correct. Some ETL inserts to specific nodes when sharding is necessary, in other cases Kafka engine tables on a group of nodes subscribe to common topics, and we simply let the whole cluster participate in queries. This works just fine when table scans are acceptable.

Rebalancing is a missing option here, short of moving partitions manually. But in my specific use cases, I have not yet needed to rebalance across nodes.

Note using native Clickhouse replication is still an option if we need it. One cost to it is the extra work needed in the database cluster, so addressing it in an eariler layer works for us.

> How do you handle cross-node queries like joins?

If I understand your question, since we are using the Distributed view type across the cluster definition, a query on any node will receive data from the others as part of a join-less SELECT, and federate on the node with the client connection.

We are not doing any database-side JOINs currently. Plans are to augment data in ETL, or join data post-query (potentially Spark). Clickhouse dictionaries handle simple cases.

Re:Time Series Databases to Watch by tepidandroid on Saturday May 04, 2019 @03:49PM (#19828838)
Thanks for the details, this is very helpful.
Re:Time Series Databases to Watch by valyala on Tuesday May 14, 2019 @04:29PM (#19913583)
There is a chproxy [1] - a proxy that is able to balance inserts and selects across ClickHouse nodes / replicas. Then client applications shouldn't know anything about ClickHouse cluster topology - they just talk to chproxy.

[1] https://github.com/Vertamedia/chproxy

Re:Time Series Databases to Watch by hodgesrm on Sunday May 05, 2019 @02:41PM (#19834258)
There's a ClickHouse meetup 4 June in the Bay Area. Good place to find out more about ClickHouse. Google 'Clickhouse SF Meetup'.

Disclaimer: I'm an organizer.