Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

azure cosmosdb very expensive [closed]

Can someone explain how I can configure Azure cosmosDB to not be so expensive? 30€ for 3 days?? It's a small test environment with very few users.

In the backend, I only see that it will cost some cents ...

Here is my Cost overview: Cost Overview

I have around 18 collections but all are only kbits big. It the backend database for the js cms : http://keystonejs.com/

Example scaling for one collection in azure: exampleScaling

like image 514
aumanjoa Avatar asked May 26 '17 15:05

aumanjoa


People also ask

Why is Cosmos DB expensive?

Cosmos DB is a PaaS, so there are no upfront costs for infrastructure. There are only subscriptions you pay for Azure and things like that. But it's a PaaS, so it's a subscription service.

How expensive is Cosmos DB?

It charges $0.250 per GB \month.

Is Azure Cosmos free?

Azure Cosmos DB is a part of Azure free account. Specifically for Azure Cosmos DB, this free account offers 25-GB storage and 400 RU/s of provisioned throughput for the entire year. Try Azure Cosmos DB for free: Azure Cosmos DB offers a time-limited experience by using try Azure Cosmos DB for free accounts.

Is Cosmos DB fast?

Azure Cosmos DB is a fast, flexible distributed database that scales seamlessly with guaranteed latency and throughput levels. You don't have to make major architecture changes or write complex code to scale your database with Azure Cosmos DB. Scaling up and down is as easy as making a single API call.


1 Answers

You created 18 collections, meaning you have 18 billable database constructs. And with the lowest-cost collection starting at roughly 20 Euro per month (about 5 Euro per 100 RU per month, minimum 400 RU), the math works out: You basically created an environment with 400*18=7200 RU. Perhaps just use fewer collections to reduce your cost footprint (note: collections have no rules around documents being homogeneous). You could use a single collection, since you have such a low amount of data.

EDIT FEB 2018 - note: with database-level RUs (a feature added a few months after the OPs question was posted), the cost model would be very different. 18 collections would be able to share an 1800RU database-level allocation (the minimum is 400RU, up to 4 collections, then 100RU per additional collection). With database-level RU, the cost of an 18-collection configuration would start at 25% of the original cost, based on 400RU per collection.

like image 86
David Makogon Avatar answered Oct 05 '22 05:10

David Makogon