Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9085727
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T21:18:51+00:00 2026-06-16T21:18:51+00:00

I successfully basic configure my replica set, but i noticed slow read performance. I

  • 0

I successfully basic configure my replica set, but i noticed slow read performance. I have 2 mongo servers and 1 arbiter in my replica set. All are running on Centos 6.3 minimal setup (just database).

I also have single mongo instance on another Windows server 2012.

Before i build my replica set, my web server was on same OS as Mongo (that windows instance). Performance was fine, results was like

C# .NET 4.5 (IIS and Mongo on same VM) Read 2000 rows : ~250ms at AvgObj 2600 bytes

Now with my replica set i have very slow read performance. When my web server access replica set, i`m getting result like

C# .NET 4.5 (separated, IIS and Mongo on Centos Replica) Read 2000 rows : ~2500ms at AvgObj 2600 bytes

I tried to read from my single Mongo instant from remote IIS and result is like

C# .NET 4.5 (separated, IIS and Single Mongo on Windows) Read 2000 rows : ~600ms at AvgObj 2600 bytes

All servers are running in single physical machine with Hyper-V core server.

Im using latest C# MongoDB Driver 1.7 version. From what i tested in command shell, on all mongo servers my query is executed in 10ms.

Can anyone give me suggestions why my replica set on separated Centos servers have slow read performance? is it network, drivers or what else?

My C# config is

            var server1 = new MongoServerAddress("1.0.0.1"); //primary
            var server2 = new MongoServerAddress("1.0.0.2"); /secundary
            var servers = new List<MongoServerAddress> {server1, server2};

            var safe = new MongoClientSettings
                {

                    Servers = servers,
                    ReplicaSetName = "rs0",
                    ConnectionMode = ConnectionMode.ReplicaSet,
                    WriteConcern = new WriteConcern
                        {
                            Journal = false,
                            W = 1
                        },
                    ReadPreference = new ReadPreference
                        {
                            ReadPreferenceMode = ReadPreferenceMode.PrimaryPreferred
                        }
                };
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T21:18:52+00:00Added an answer on June 16, 2026 at 9:18 pm

    For best performance on Hyper V, make sure you are using the regular Network Adaptors (non-legacy), and that you install Integration Services inside of the guest operating system.

    For CentOS 6.x, you can install the Integration Services from here:
    http://www.microsoft.com/en-us/download/details.aspx?id=34603

    If you find that your VM was using a legacy network adapter, note that when you add a new adapter you’ll have to reconfigure the networking inside of the guest (CentOS) operating system.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I successfully installed and set it up searchlogic for basic (keyword) searching. I have
I have used nHibernate in my latest project and successfully mapped all the basic
I've got the basic idea covered (I think), but can't seem to successfully post
I've followed the tutorial here: http://book.cakephp.org/view/1286/Sending-a-basic-message , which I have successfully used before with
I've successfully used the AccountManagement code to retrieve basic AD information but it's only
I have prepared a basic contact form in Django. The data gets saved successfully.
i have set up a basic client and a basic server using java sockets.
Probably a basic question but I have the following code: ListItem l = radiolist.Items.FindByValue(mediaTypeID.ToString());
I successfully configured Glassfish to work with JDBCrealm using Basic Auth. But it's not
I'm building an alarm application. I have successfully implemented basic alarm functions. Calendar calendar

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.