Settings

Theme

Ask HN: Would you want a distributed Postgres that runs on Spot Instances?

8 points by alexirobbins 5 years ago · 7 comments · 1 min read

Reader

At my startup Tamber (https://tamber.com) we have had to deliver very high database I/O without breaking the bank. Our solution provides two main features:

1. Database workers run on AWS Spot Instances for cheap, scalable clusters.

2. Pseudo-masterless architecture where clients read/write directly to the workers for true horizontal scaling + low latency (implemented in Golang).

In order to pull this off, we have also developed:

  - automatic worker replacement with backfill through Kafka
  - spot instance price and stability prediction for optimal instance selection and pre-emptive replacement
  - connection pooling w/ pgbouncer
  - zero downtime cluster scaling (adding/removing workers, rebalancing table-shards - things Citus only includes in their Enterprise fork).
We would love to develop an Open Source service that others can use and contribute to if there is interest. Would love to answer any questions!
blackpanda 5 years ago

My Guess is that 99% of the companies do not need such a solution. But 1% does. And if you target them, you have a business. Unfortunately that 1% does not frequent here (I guess).

Chyzwar 5 years ago

Why this is better than Cassandra/ScyllaDB/CouchDB/Dynamo ? Data is partitioned and joins are not possible ?

ddorian43 5 years ago

Maybe you can build something on top of YugabyteDB since it adds sharding/replication on top of PostgreSQL.

amirathi 5 years ago

(for regular workloads) cost of maintaining such a DB >> cost of RDS

It's a very interesting problem from a technical standpoint nonetheless.

tcbasche 5 years ago

Wouldn’t it be cheaper and easier to just use a serverless option like AWS Aurora?

arthurcolle 5 years ago

Sounds pricy! So probably not

johnghanks 5 years ago

no

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection