docker - PostgreSQL Horizontal scaling for "database per customer" cloud service -


i'm looking best way serve thousands of postgresql databases application tier. each database used specific customer.
goals are:
1. serve databases on minimal hardware (reduce cost)
2. support horizontal scaling (so can add more servers more customers join).
3. move databases between servers load balance setup.
4. able bill based on resource consumption.

my thoughts were:
1. run each customer database in dedicated postgresql server running inside docker
2. run single cluster serving multiple databases , use database scaling options.

i'll appreciate if people can share other alternatives or experience 1 of above.
or in other words, best way achieve above.


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -