Re:How Discord Indexes Billions of Messages Using Elasticsearch
by notyourwork on Thursday March 16, 2017 @08:08PM
(#13890276)
> but is amazingly hard to do well - but incredibly rewarding.
Isn't this true of everything. The greater the reward the more effort required in most scenarios? I do agree, Elasticsearch can take some trial and error along with experimentation to get right!
Re:How Discord Indexes Billions of Messages Using Elasticsearch
by packetized on Thursday March 16, 2017 @08:32PM
(#13890384)
Yeah, that's nearly a tautology. I guess in this sense what I mean is that, there's a much deeper Trough of Disillusionment when it comes to learning how to properly configure & tune ES to your needs, as opposed to a lot of other tools I've used over the years. It's very easy to set up, but also very hard to get right, which I'd imagine causes some people to settle or give up.
Re:How Discord Indexes Billions of Messages Using Elasticsearch
by stickperson on Friday March 17, 2017 @12:18AM
(#13891452)
The small message results from only storing message, channel, and server ids as opposed to the entire message. How efficient is ES at storing the rest of the message data in the inverted index? No clue, but apparently pretty good.
Re:How Discord Indexes Billions of Messages Using Elasticsearch
by j_s on Friday March 17, 2017 @10:06AM
(#13894052)
Sounds like you need to start a freelance Elastic Search optimization business!
Re:How Discord Indexes Billions of Messages Using Elasticsearch
by searchfaster on Thursday March 16, 2017 @05:45PM
(#13889491)
Cool.. how many records per shard do you use for optimal performance ?
Re:How Discord Indexes Billions of Messages Using Elasticsearch
by packetized on Thursday March 16, 2017 @05:59PM
(#13889589)
In the cluster I previously built/worked on, somewhere between 4mil & 9mil records/shard - this also assumed 3 shards per index, with only one replica set (total of 6 shards).
edit: Put together a logging cluster consisting of 14 nodes, 12 data + 2 indexer/search API, with ~40TB of consumer-grade SSDs. Ran ~14k indices based on log type & timestamp, with a whole raft of custom field configuration to handle aggregations and different tokenizations. In sum, Elasticsearch looks easy to configure and tune but is amazingly hard to do well - but incredibly rewarding.