Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-22761

Investigate mongodb benchmark perf regression since directories are in mongo

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 9.2
    • Fix Version/s: 9.3
    • Component/s: Core MongoDB, Directory

      Description

      Since 17w26, the benchmarks results are pretty bad on MongoDB.

      After some investigations, we're pretty sure this is related to introduction of MongoDB directories in the platform.

      We have errors like this during the benchmark:

      2017-07-11 14:32:14,494 ERROR [Nuxeo-Work-default-3] [org.nuxeo.ecm.core.work.WorkManagerImpl] Uncaught error on thread Nuxeo-Work-default-3
      com.mongodb.MongoSocketOpenException: Exception opening socket
          at com.mongodb.connection.SocketStream.open(SocketStream.java:63)
          at com.mongodb.connection.InternalStreamConnection.open(InternalStreamConnection.java:115)
          at com.mongodb.connection.UsageTrackingInternalConnection.open(UsageTrackingInternalConnection.java:49)
          at com.mongodb.connection.DefaultConnectionPool$PooledConnection.open(DefaultConnectionPool.java:384)
          at com.mongodb.connection.DefaultConnectionPool.get(DefaultConnectionPool.java:101)
          at com.mongodb.connection.DefaultConnectionPool.get(DefaultConnectionPool.java:87)
          at com.mongodb.connection.DefaultServer.getConnection(DefaultServer.java:86)
          at com.mongodb.binding.ClusterBinding$ClusterBindingConnectionSource.getConnection(ClusterBinding.java:86)
          at com.mongodb.operation.OperationHelper.withConnectionSource(OperationHelper.java:239)
          at com.mongodb.operation.OperationHelper.withConnection(OperationHelper.java:214)
          at com.mongodb.operation.FindOperation.execute(FindOperation.java:483)
          at com.mongodb.operation.FindOperation.execute(FindOperation.java:80)
          at com.mongodb.Mongo.execute(Mongo.java:818)
          at com.mongodb.Mongo$2.execute(Mongo.java:805)
          at com.mongodb.OperationIterable.iterator(OperationIterable.java:47)
          at com.mongodb.FindIterableImpl.iterator(FindIterableImpl.java:143)
          at org.nuxeo.directory.mongodb.MongoDBSession.query(MongoDBSession.java:227)
          at org.nuxeo.directory.mongodb.MongoDBSession.query(MongoDBSession.java:206)
      Caused by: java.net.ConnectException: Cannot assign requested address
          at java.net.PlainSocketImpl.socketConnect(Native Method)
          at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
          at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
          at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
          at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
          at java.net.Socket.connect(Socket.java:589)
          at com.mongodb.connection.SocketStreamHelper.initialize(SocketStreamHelper.java:50)
          at com.mongodb.connection.SocketStream.open(SocketStream.java:58)
          ... 73 more
      

      Investigate and try to fix performance regression.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day
                  1d