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

[fiware-stackoverflow] ECONNRESET when opening a large number of connection in small time period

    Details

      Description

      Created question in FIWARE Q/A platform on 27-05-2018 at 16:05
      Please, ANSWER this question AT https://stackoverflow.com/questions/50553119/econnreset-when-opening-a-large-number-of-connection-in-small-time-period

      Question:
      ECONNRESET when opening a large number of connection in small time period

      Description:
      I have situation where i want to create large number of entities on orion. I am using docker version of orion and mongo with this docker-compose.

      version: "3"
      services:
      mongo:
      image: mongo:3.4
      volumes:

      • /data/docker-mongo/db:/data/db
      • /data/docker-mongo/log/mongodb.log:/var/log/mongodb/mongod.log
        command: --nojournal
        orion:
        image: fiware/orion
        volumes:
      • /data/docker-mongo/log/contextBroker.log:/tmp/contextBroker.log
        links:
      • mongo
        ports:
      • "1026:1026"
        command: -dbhost mongo

      Now problems happens when i want to upload 2000 entities ( opening new connection for each, i know it can be done different but for now this is request), i successfully create no more than 600 (or less never exact number) of them rest fail to create with error:

      "error":

      { "errno": "ECONNRESET", "code": "ECONNRESET", "syscall": "read" }

      ,

      So i assume this issue has something to do with maxConnections, reqPoolSize etc settings in Orion. But in docker i failed to locate Orion config file, i have no way of knowing when i type commands like contextBroker -maxConnections 123456 that setting is being accepted by Orion and docker container.

      Also log of Orion is empty, and i cannot determined what is causing this issue when Orion is running on docker.

      So main questions:

      • Can Orion running on docker be used in same manner as Orion running on VM (are there some fallbacks)
      • And how do i check this problem when Orion is running in docker, because i read a lot of docs/issues but no luck ( or i missed something).

      If u have some advice/soultion it would really help.
      Thanks

        Activity

        Hide
        backlogmanager Backlog Manager added a comment -

        2018-05-27 18:05|CREATED monitor | # answers= 0, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2018-05-27 18:05|CREATED monitor | # answers= 0, accepted answer= False
        Hide
        backlogmanager Backlog Manager added a comment -

        2018-05-28 15:05|UPDATED status: transition Answer| # answers= 1, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2018-05-28 15:05|UPDATED status: transition Answer| # answers= 1, accepted answer= False

          People

          • Assignee:
            jmcantera Jose Manuel Cantera
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: