You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OrionLD gets stuck on startup when the number of orion databases in mongodb is bigger than the mongo connection pool. No error is provided and the last log message is the following:
time=Friday 08 Nov 09:11:24 2024.098Z | lvl=INFO | corr=N/A | trans=N/A | from=N/A | srv=N/A | subsrv=N/A | comp=Orion | op=MongoGlobal.cpp[238]:mongoInit | msg=Connected to mongo at mongo-db:orion as user 'mongo'
Details
Setup
Using the following docker compose configuration (docker-compose.yml):
curl --location --request GET 'http://localhost:1026/version' -v
The result is curl: (56) Recv failure
Solution
Increasing ORIONLD_MONGO_POOL_SIZE solves the problem, which means that ORIONLD_MONGO_POOL_SIZE must be greater than the number of orion databases (tenants) in mongoDB. I have noted that this includes all databases starting with "orion", and excludes the rest.
Notes
Althoug I provide a script that rapidly creates the tenants, the error was detected in an SAAS environment where the tenants were created through many months.
The text was updated successfully, but these errors were encountered:
ok, interesting. You found a cornercase nobody has seen so far.
I'll try to make time to fix this problem asap, just, all next week I'm away for a European project meeting (aerOS).
I'll get something done there during the talks, I just can't promise anything ...
The week after I'm "free".
Description
OrionLD gets stuck on startup when the number of orion databases in mongodb is bigger than the mongo connection pool. No error is provided and the last log message is the following:
Details
Setup
Using the following docker compose configuration (docker-compose.yml):
And the following tenant creation script (named as create_tenants.sh) that creates as many tenants as given in the first command line parameter:
used Docker Compose version is v2.29.7
Replication
First make sure that the environment is completely new:
Then start the services:
Then run the before mentioned script, which to create more tenants than the size of the mongo connection pool (11):
The script should give no error messages. Finally, restart orion-ld
Checking orion-ld logs, the restart logs look like:
If I try to get the version:
curl --location --request GET 'http://localhost:1026/version' -v
The result is curl: (56) Recv failure
Solution
Increasing ORIONLD_MONGO_POOL_SIZE solves the problem, which means that ORIONLD_MONGO_POOL_SIZE must be greater than the number of orion databases (tenants) in mongoDB. I have noted that this includes all databases starting with "orion", and excludes the rest.
Notes
Althoug I provide a script that rapidly creates the tenants, the error was detected in an SAAS environment where the tenants were created through many months.
The text was updated successfully, but these errors were encountered: