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
During a series of tests we realised that we have a problem with notifications generated by subscriptions. In particular, not all changes correctly received by orion and made to the entities monitored by the subscriptions generate notifications to the downstream systems.
To identify the problem, the test environment was reduced to
orion-ld (both versions 1.5.1 and 1.6.0)
mongodb (both versions 3.3 and 4.4)
a fake http server that receives notifications
Load tests from github/fiware
The services run on the same machine using Docker containers.
During the test, 100 entities are created, a single subscription for all of them, and 5 updates with an interval of 1s. The test is run for both LD and V2. In both cases, a significant number of notifications are not sent to the fake server.
Analysing the logs with debug and trace enabled, we found that notifications are not sent when this condition occurs:
By enabling the -experimental flag on the same configuration, no notifications are lost on the LD side, but obviously the problem persists on the V2 side, which does not benefit from the flag changes.
Another test was done using fiware/orion instead of orion-ld and the V2 side showed no problems.
The issue appears even with relatively small numbers, such as 20 records submitted and 14 notified to the fake server ( this means 6 losts ), which makes us think there is something wrong with us that we cannot identify.
We need both parts, the V2 and the LD, this issue is pushing us to split services with the two different services, kind of an overkill solution.
During the test, 100 entities are created, a single subscription for all of them, and 5 updates with an interval of 1s.
the fake http server should receive all the changes.
Pushing a json file using the Apache benchmarking tool ( "ab" ) , using a sequential approach everything works fine.
Using concurrent ingestion ( i.e. 20 input with 10 requests in a time ) I observe only ( more or less ) 14 records notified to the fake server.
Other tests were done with other tools ( even with https://github.com/FIWARE/load-tests )
Does anyone know what the problem could be or how to fix it?
The text was updated successfully, but these errors were encountered:
I have the same problem. I'm using orion-ld:1.6.0 and mongodb:4.4.
In my case there is an IoT Agent UL that creates/updates entities on orion-ld context. It send about 70 calls in once to orion.
The orion-ld context is updated successfully and I see all the 70 entities created/updated, but the related entity type subscription sends to an external service not all the notification. For example sometimes I've got 57 subscriptions sent, 37, 48, etc... (it's random).
Try setting throttling to -1.
In NGSIv2 that means it is ignored.
In NGSI-LD throttling is ignored if it is zero or less.
Sorry about the inconsistency here between the two APIs
During a series of tests we realised that we have a problem with notifications generated by subscriptions. In particular, not all changes correctly received by orion and made to the entities monitored by the subscriptions generate notifications to the downstream systems.
To identify the problem, the test environment was reduced to
The services run on the same machine using Docker containers.
During the test, 100 entities are created, a single subscription for all of them, and 5 updates with an interval of 1s. The test is run for both LD and V2. In both cases, a significant number of notifications are not sent to the fake server.
Analysing the logs with debug and trace enabled, we found that notifications are not sent when this condition occurs:
throttling is set to 0.
By enabling the -experimental flag on the same configuration, no notifications are lost on the LD side, but obviously the problem persists on the V2 side, which does not benefit from the flag changes.
Another test was done using fiware/orion instead of orion-ld and the V2 side showed no problems.
The issue appears even with relatively small numbers, such as 20 records submitted and 14 notified to the fake server ( this means 6 losts ), which makes us think there is something wrong with us that we cannot identify.
We need both parts, the V2 and the LD, this issue is pushing us to split services with the two different services, kind of an overkill solution.
During the test, 100 entities are created, a single subscription for all of them, and 5 updates with an interval of 1s.
the fake http server should receive all the changes.
Pushing a json file using the Apache benchmarking tool ( "ab" ) , using a sequential approach everything works fine.
Using concurrent ingestion ( i.e. 20 input with 10 requests in a time ) I observe only ( more or less ) 14 records notified to the fake server.
Other tests were done with other tools ( even with https://github.com/FIWARE/load-tests )
Does anyone know what the problem could be or how to fix it?
The text was updated successfully, but these errors were encountered: