Sample Header Ad - 728x90

How to check mongodb time series collection shard distribution

0 votes
1 answer
145 views
[direct: mongos] test> db.weather.getShardDistribution() MongoshInvalidInputError: [SHAPI-10001] Collection weather is not sharded we are getting this error and how to check the sharded collection data distribution for time series collection. Please share the details with query output if any one have already working on sharded time series collection. Below is the command i used to create time series sharded collection sh.shardCollection( “test.weather”, { “uid”: 1 }, { timeseries: { timeField: “et”, metaField: “uid” ,granularity: “hours” } })
Asked by santhosha MS
Jan 16, 2024, 08:39 AM
Last activity: Jul 20, 2025, 07:00 PM