Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CosmosDB Mongo API Throughput Management #4309

Closed
rgherta opened this issue Sep 12, 2019 · 3 comments
Closed

CosmosDB Mongo API Throughput Management #4309

rgherta opened this issue Sep 12, 2019 · 3 comments

Comments

@rgherta
Copy link

rgherta commented Sep 12, 2019

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

Hello

It would be great if we could manage throughput at database and collection level as it is done now using the APIs and Azure CLI.

New or Affected Resource(s)

  • azurerm_cosmosdb_mongo_database
  • azurerm_cosmosdb_mongo_collection

Potential Terraform Configuration

resource "azurerm_cosmosdb_mongo_database" "example" {
  name                = "tfex-cosmos-mongo-db"
  resource_group_name = "${data.azurerm_cosmosdb_account.example.resource_group_name}"
  account_name        = "${data.azurerm_cosmosdb_account.example.name}"
  throughput    = 400   ##add this
}
resource "azurerm_cosmosdb_mongo_collection" "example" {
  name                = "tfex-cosmos-mongo-db"
  resource_group_name = "${data.azurerm_cosmosdb_account.example.resource_group_name}"
  account_name        = "${data.azurerm_cosmosdb_account.example.name}"
  database_name       = "${azurerm_cosmosdb_mongo_database.example.name}"
  throughput    = 400   ##add this
  shard_key           = "uniqueKey"

}

References

@tombuildsstuff
Copy link
Contributor

hi @rgherta

Thanks for opening this issue :)

Taking a look through this appears to be a duplicate of #3623 - rather than having multiple issues open tracking the same thing I'm going to close this issue in favour of that one; would you mind subscribing to #3623 for updates?

Thanks!

@rgherta
Copy link
Author

rgherta commented Sep 12, 2019

Hi @tombuildsstuff it's not quite the same provider resource. I am refering to Mongo API of CosmosDB.

The issue mentioned refers to the SQL resource and only for database level, no mention of colleciton level throughput(which is also impossible to provision atm)

Since the entire CosmosDB service uses different providers resources, for tracking purposes I would let this separate, but as long as we have progress on this issue and we keep in mind it's different resources, I have no objection.

@ghost
Copy link

ghost commented Mar 29, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!

@ghost ghost locked and limited conversation to collaborators Mar 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants