How to intercept chunk migration in mongoDB

62 Views Asked by At

I want to intercept chunk migration events of a particular (sharded) collection. The changeLogs collection (from the Config server database) is not capped and we can't define a tailable cursor over it. One solution could be to copy the events of interest from the changelog collection into a capped one and query it with a tailable cursor. I would like to know if there is a better way to do this.

0

There are 0 best solutions below