Detect whether a shard is a primary when creating Engine