Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-5461

FIWARE.Question.Tech.Data.OrionContextBroker.Orion/MongoDBPerformanceOnAWS

    Details

      Description

      Created question in FIWARE Q/A platform on 03-12-2015 at 18:12
      Please, ANSWER this question AT http://stackoverflow.com/questions/34072714/fiware-orion-mongodb-performance-on-aws

      Question:
      FIWARE Orion/MongoDB Performance on AWS

      Description:
      I seem to be having real issues trying to get performance anywhere near that stated in the docs (~700 - 2000 tps with a VM of: 2 vCPUs 4GB RAM). I have tried on a local VM, a local machine and a few AWS VMs and I can't get anywhere close. - The maximum I have achieved is 80 tps on an AWS VM.

      I have tried changing the -dbPoolSize and the -reqPoolSize for orion and playing with ulimit to set it to that suggested by MongoDB - but everything I change doesn't seem to get me anywhere close.

      I have set indexes on the _id.id, _id.type and _id.servicePath as suggested in the docs - the latter of which gave me an increase from 40 tps to 80 tps.

      Are there any config options for Orion or Mongo that I should be setting away from the default which will get me any closer? Are there any other tips for performance? The link in the docs to the test scripts doesn't work so I haven't been able to see the examples.

      I have created my own test scripts using Node.js and I have tested update and queries using a variable amount of concurrent connections and between 1 and 2 load injectors.

      From looking at the output from "top" the load is with Mongo as it almost maxes out the CPU but adding more cores to the VM doesn't change the stats. The VM has 7.5GB or 15GB of RAM so mongo should be able to put all the data into memory for blazing fast performance?

      I have used mongostat to see that the connections from orion to mongo change with the -dbPoolSize option, but this doesn't yield any better performance.

      Any help you can provide would be much appreciated.

      I have tried using CentOS 6.5 and 6.7 with Orion 0.25 and 0.26 and MongoDB 2.6 with ~500,000 entities

        Activity

        Hide
        backlogmanager Backlog Manager added a comment -

        2015-12-03 21:05|CREATED monitor | # answers= 0, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2015-12-03 21:05|CREATED monitor | # answers= 0, accepted answer= False
        Hide
        fermin Fermín Galán added a comment -

        Waiting for user input (asked using SOF comments)

        Show
        fermin Fermín Galán added a comment - Waiting for user input (asked using SOF comments)
        Hide
        backlogmanager Backlog Manager added a comment -

        2015-12-11 18:05|UPDATED status: transition Answered| # answers= 1, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2015-12-11 18:05|UPDATED status: transition Answered| # answers= 1, accepted answer= False

          People

          • Assignee:
            fermin Fermín Galán
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: