fix #286. Make numbers of open shards configurable