I am running 4 concurrent Requests. Each request is inserting 100000 documents and each document is 5KB size. The database name and collection name are different for each request so that write lock is per Request.
I am running this on MongoDB 3.4 on centos 6.5. I disabled Journal option . The java client that loads data is running bulkwrites with a batch of 1000 documents.
I tried both single server and with 3 shards . With standalone single server, each request completes in around 20-25 secs. With 3 shards configuration, Each request takes around 50 to 60 secs. I wonder why it takes considerable time to insert documents.