Cosmos DB Mongo Optimize cost reads writes

Migrate mongodb 1 Reputation point
2020-08-20T10:49:33.303+00:00

Hi, I migrated from mongo db into cosmos db and I have a trouble with cost.

Detail information as below:

  • StorageSize 300GB
  • Collections 200
  • Object 1500M
  • DataSize 1100GB
  • Indexes 400
  • IndexSize 60GB

I started migrate db one week ago and tested service by myself, with a few request by manual. However, estimate cost show that I spent more than 15000$.
Because query run very slow, so I set 150k RU per second. This is main reason for out of budget to migrate DB.

I found one url about using reads connection. Currently, my service written by php, in source code, I didn't separate read-write connection. Could you give me some advice for this problem? We need to configure read-write connection or not?
https://learn.microsoft.com/en-us/azure/cosmos-db/optimize-cost-reads-writes

And this price for service is too expensive for only migrate data progress. For migrate data from old mongo db into cosmos like this which number of RU I could set for my database, just for I could run my service as normally with only one user. to scale, I will calculate it later.

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,496 questions
{count} votes