iotagent-ul
iotagent-ul copied to clipboard
How to increase performance of iotagent-ul?
Dear all,
I test performance of iotagent-ul. I install iotagent-ul on a server (VM 16 core CPU, 16 GB RAM) and mongodb on other server (VM 16 core CPU, 16 GB RAM). However performance ~80 tps (for create service and devices). How to increase performance iotagent-ul?
Thanks all!
What about data sending performance? (data sending request would be much higher than service/devices creation in a real case, so they are more important from a performance point of view).
Thanks fgalan, I have config logLevel: 'ERROR', and modify code of iotagent-ul to use multi thread (=core CPU). Performance of iotagent-ul is:
- Create device: 220 tps
- Update data: 280 tps (data sending request)
- Get device: 850 tps My system have 10 million devices. Data sending request >= 50000 tps. How to increase performance of iotagent-ul?
My system have 10 million devices. Data sending request >= 50000 tps. How to increase performance of iotagent-ul?
I'm afraid IoT Agent has not been tested in such extreme performance scenarios, but since IoTAgents are mostly stateless and your scenario is using such big numbers, I suggest you try dividing the load between multiple inexpensive servers (using clusters for both MongoDB and the IoTAgents). Fine-tunning the code and configuration may help in increasing the performance by a factor of 2 or 3, but not 200, so you will need to change the hardware architecture (and identify what is your bottleneck, as, with 50000tps it could quite probably be the network, or some related SO parameters).
Thank dmoranj advised.