Live data from Hacker News

Searching the web for under $1000/month

quickwit.io

41–50 of 153 posts

Re: Searching the web for under $1000/month

#41
post #37

Interesting although a 15 second response time on certain queries is not a very good user experience.

On the other hand, under 1.5 seconds on common / basic search terms is pretty good.

The poster was referring to the latency of the demo and is absolutely correct. The demo can reach 30s on some query. Half of it is due to fetch 180k document generation, and half of it is a single threaded python code that has nothing to do with our product :).

Re: Searching the web for under $1000/month

#42

It is a cool project. S3 can be cost efficient, but only if you don't touch data :) Their price calculation doesn't mention cost of S3 requests, which very quickly adds up and is often neglected. It costs $1 for 2.5M GET requests to S3. They have 180 shards, in a general case query seems to fetch all of them. Presumably they don't download full shard per request, but download an index + some relevant ranges. Lets say…

I tend to agree :). If we get 1 req/s, even for a dataset of that size, this is not as cost efficient.

For that kind of use case, I'd probably start using minio.

> Seems comparable to AWS ElasticSearch service costs: > - 3 nodes m5.2xlarge.elasticsearch = $1,200 > - 20TB EBS storage = $1,638

Don't forget S3 includes replication. Also EBS throughput (even with SSD) is not good at all. Also our memory footprint is tiny. This is necessary to make it run on two servers.

Finally, cpu-wise, our search engine is almost 2x faster than lucene.

If you don't believe us, try to replicate our demo on an elastic search :D.

Chatnoir.eu is the only other common crawl cluster we know of. It consists of 120 nodes.

Re: Searching the web for under $1000/month

#43
post #34

Earlier quoted context omitted.

Depending on the requirements https://www.hetzner.com/dedicated-rootserver/ax101/ May be an actually better fit Once they available again

Holy smokes. 8TB SSD + 128GB RAM + Ryzen 9 for 100 euro a month. Can you get anywhere close to this with AWS or even DO?

That's amazing pricing O_O (drooling)

Re: Searching the web for under $1000/month

#44

If you're going for low cost, you could do better: https://www.hetzner.com/dedicated-rootserver/dell/dx181/conf... Basic configuration in Finland 1 224,91 € 1.92 TB SATA SSD Datacenter Edition 4 95,20 € 320,11 € 320 Euro equals 385.90 United States Dollar

This is a complex misunderstanding... First, we are getting better throughput from S3 than I we were using a SATA SSD. (and slower than a NVMe SSD). This is a bit of a secret. Of course, single sequential throughput on S3 sucks. At the end of the day the data is stored on spining disk and we cannot do anything against the law physics. ... but we can concurrently read many disks using s3. Network is our only bottlenec…

"S3 costs include battle tested, multi-DC replication."

Sometimes we pay a bit too much for this multi-replication, battle tested stuff. It's not like the probability of loosing data is THAT huge. For the 4x extra cost you could easily take a backup every 24h.

"It means that we can host 100 different indices on S3, and use the same pool of search server to deal with the CPU-bound stuff"

You can do that with NFS.

It's amazing how much we are willing to pay for a bunch of computers in the cloud. Leasing a new car costs around $350/month. You could have three new cars at your disposal for the same price as this search implementation.

Re: Searching the web for under $1000/month

#45
post #21

Earlier quoted context omitted.

We really need to make this clear in our next blog post. This is not grep here. We are using the same datastructure that are used in Elasticsearch or google. We just adapted them to be object storage friendly. I would not call Object Storage dumb by any mean. They are a very powerful bottom-up abstraction. We do manage to get SSD-like throughput from them. The latency is the big issue. We had to redesign our search t…

Appreciate the response. I wasn't trying to say this is grep, I fully understand that this is an inverted index which is way more interesting to build on top of S3. I merely wanted to say that by using S3 within AWS you always have the fallback option of brute-force "grep" across your semi-structured "data lake" or whatever it's called thanks to the aggregate bandwidth and Athena.

Ah my bad! Yes, Humio (and Loki) are opting for this approach.

This does decouple compute and storage in a trivial manner. There is indeed a realm in which this brute force approach is the best approach.

We could probably make a 4D chart with QPS, data size, latency, and retention period and define regions where the elastic/SOLR approach, Humio, and quickwit are the most relevant.

Re: Searching the web for under $1000/month

#46

It is a cool project. S3 can be cost efficient, but only if you don't touch data :) Their price calculation doesn't mention cost of S3 requests, which very quickly adds up and is often neglected. It costs $1 for 2.5M GET requests to S3. They have 180 shards, in a general case query seems to fetch all of them. Presumably they don't download full shard per request, but download an index + some relevant ranges. Lets say…

I had the same feeling when reading the post. Their remark that they "estimated the cost" to be that low is in my experience a bad signal. Estimating costs on the cloud is really hard, there are so many (hidden) costs you may miss making it a lot more expensive.

Re: Searching the web for under $1000/month

#47

If you're going for low cost, you could do better: https://www.hetzner.com/dedicated-rootserver/dell/dx181/conf... Basic configuration in Finland 1 224,91 € 1.92 TB SATA SSD Datacenter Edition 4 95,20 € 320,11 € 320 Euro equals 385.90 United States Dollar

Depending on the requirements https://www.hetzner.com/dedicated-rootserver/ax101/ May be an actually better fit Once they available again

Why a Ryzen instead of an Epyc in a data center?

Re: Searching the web for under $1000/month

#48

If you're going for low cost, you could do better: https://www.hetzner.com/dedicated-rootserver/dell/dx181/conf... Basic configuration in Finland 1 224,91 € 1.92 TB SATA SSD Datacenter Edition 4 95,20 € 320,11 € 320 Euro equals 385.90 United States Dollar

I am really starting to feel that co-location will make a big comeback. It seems cloud costs are just becoming too high for the convenience they once offered. For small projects and scale probably makes a ton of sense, but at some point the costs to scale aren't worth the up front developer cost savings.

Re: Searching the web for under $1000/month

#49
Cool demo. Searching for phases like "there was a" and "and there is" take a really long time. I presume that since the words are common, the document IDs mapped to those individual tokens are too long as well, so intersections etc. take longer?

Re: Searching the web for under $1000/month

#50
post #34

Earlier quoted context omitted.

Depending on the requirements https://www.hetzner.com/dedicated-rootserver/ax101/ May be an actually better fit Once they available again

Holy smokes. 8TB SSD + 128GB RAM + Ryzen 9 for 100 euro a month. Can you get anywhere close to this with AWS or even DO?

The sad story is you can't get anywhere close to this even with rented dedicated servers. As a German I'm happy that we have Hetzner and I use their services extensively. However if I wanted to start deploying things in the US or Asia I'd be forced to go with something like OVH which, while still a lot cheaper than AWS, is still significantly more expensive than Hetzner.
Post reply on HN