Details
-
Type:
Monitor
-
Status: Closed
-
Priority:
Major
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: 2021
-
Component/s: FIWARE-TECH-HELP
-
Labels:
-
HD-Enabler:Orion
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
Field | Original Value | New Value |
---|---|---|
Component/s | FIWARE-TECH-HELP [ 10278 ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Assignee | Jose Manuel Cantera [ jmcantera ] |
Status | In Progress [ 3 ] | Answered [ 10104 ] |
Resolution | Done [ 10000 ] | |
Status | Answered [ 10104 ] | Closed [ 6 ] |
HD-Enabler | Orion [ 10875 ] | |
Description |
Created question in FIWARE Q/A platform on 27-05-2018 at 16:05 {color: red}Please, ANSWER this question AT{color} 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 |
Created question in FIWARE Q/A platform on 27-05-2018 at 16:05
{color: red}Please, ANSWER this question AT{color} 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 |
Fix Version/s | 2021 [ 12600 ] |
Transition | Time In Source Status | Execution Times | Last Executer | Last Execution Date | |||||
---|---|---|---|---|---|---|---|---|---|
|
21h | 1 | Backlog Manager | 28/May/18 3:05 PM | |||||
|
2h 42m | 1 | Jose Manuel Cantera | 28/May/18 5:48 PM | |||||
|
3d 23h 35m | 1 | Jose Manuel Cantera | 01/Jun/18 5:23 PM |
2018-05-27 18:05|CREATED monitor | # answers= 0, accepted answer= False