Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-1615

c# driver (2.2.3)- what is the connection pool size and how can i configure it.

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 2.2.3
    • Component/s: API
    • Environment:
      windows application running with the c# driver 2.2.3 with MongoDB 3.2 server running on linux
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      c# driver (2.2.3)- what is the connection pool size and how can i configure it.
      this question comes because we are working async with mongodb and performs many read and write operations and from time to time we get several timeouts.
      A timeout occured after 30000ms selecting a server using CompositeServerSelector{ Selectors = ReadPreferenceServerSelector{ ReadPreference =

      { Mode = Primary, TagSets = [] }

      }, LatencyLimitingServerSelector

      { AllowedLatencyRange = 00:00:00.0150000 }

      }. Client view of cluster state is { ClusterId : "1", ConnectionMode : "Automatic", Type : "Unknown", State : "Disconnected", Servers : [{ ServerId: "

      { ClusterId : 1, EndPoint : "50.50.50.50:27017" }

      ", EndPoint: "50.50.50.50:27017", State: "Disconnected", Type: "Unknown", HeartbeatException: "MongoDB.Driver.MongoConnectionException: An exception occurred while opening a connection to the server. ---> System.Runtime.InteropServices.SEHException: External component has thrown an exception. at MongoDB.Driver.Core.WireProtocol.CommandWireProtocol`1.<ExecuteAsync>d_11.MoveNext() at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine) at MongoDB.Driver.Core.WireProtocol.CommandWireProtocol`1.ExecuteAsync(IConnection connection, CancellationToken cancellationToken) at MongoDB.Driver.Core.Connections.ConnectionInitializer.<InitializeConnectionAsync>d1.MoveNext() — End of stack trace from previous location where exception was thrown — at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult() at MongoDB.Driver.Core.Connections.BinaryConnection.<OpenHelperAsync>d47.MoveNext() — End of inner exception stack trace — at MongoDB.Driver.Core.Connections.BinaryConnection.<OpenHelperAsync>d47.MoveNext() — End of stack trace from previous location where exception was thrown — at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at MongoDB.Driver.Core.Servers.ClusterableServer.<HeartbeatAsync>d_42.MoveNext()" }] }.

            Assignee:
            Unassigned Unassigned
            Reporter:
            avi74 avi inbar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: