Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
386 views
in Technique[技术] by (71.8m points)

azure cosmosdb - How to reconfigure a Cosmos database to have shared container throughput

I have a database with several containers which have their own configured throughput. There is a new Cosmos DB feature which allows all containers within a database to share throughput. I can create a new database which has this feature enabled, however I cannot seem to change my existing database to leverage this feature. Is there a way to enable this feature on an existing database, or do I have to create a new database and migrate all containers to it?

question from:https://stackoverflow.com/questions/65651285/how-to-reconfigure-a-cosmos-database-to-have-shared-container-throughput

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

You have to create a new database. Changing the existing database is not supported:

A container with provisioned throughput cannot be converted to shared database container. Conversely a shared database container cannot be converted to have a dedicated throughput.

Set throughput on a database and a container


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...