-
Notifications
You must be signed in to change notification settings - Fork 408
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scaling Leshan v2.x to 10,000 Clients, General Performance Query. #1406
Comments
Hi, Just to be sure I get you :
It's hard to me to know if you will be able to simulate 10.000 clients but I can list you known limitation : 1.) You are talking of LWM2M v1.0 clients, so you should read : #1244 You can also look at this POC : https://github.com/sbernard31/benchmark-clients HTH |
Thanks, 1). Both 1.0 and 1.1 are supported by the server so either version could be used in our context. 2). We don't plan to develop anything at the moment, we really just want to use the demo to simulate 10,000 devices and test the IoT platform we are using. Long Term we may develop our own frontend / API, if limitations require us to do so. |
It's hard to me to imagine that just running 10.000 leshan-client-demo on same machine will fit your need because :
But if with inputs I give you previously, you even think this could work. I think you should just test it. If you don't plan to develop anything this will be quickly tested. Let us know about your result 🙏 |
To complement what Simon already said, The overall Leshan server performance is excellent; the limitation often comes from the security-store backend you use. It needs to be fast to keep the DTLS handshake quick. Scaling the Leshan server to 10k on a single machine with active/passive failover is usually something not complicated. For +100k, you need to start looking at clustering your server setup. |
Hello All, |
@allaismail I'm not sure this is totally related to this issue. Anyway, some inputs about leshan in a cluster :
You could also have a look at this californium resources (but I didn't know so much about it) : |
thank you very much; this will help me to start !! |
Should we close this issue ? |
Question
Hello Leshan Developers,
I would like to use Leshan in a development environment to simulate around 10,000 LwM2M clients.
All of these clients will be connected to an external (load-balanced) LwM2M Server (on an IoT Platform).
These clients will need to update resources as though they are real devices in the field (i.e. produce simulated measurements).
The hardware simulating these clients is fairly powerful (think enterprise server: 10g NIC, lots of RAM: etc.)
I would like to create a minimal viable product. As this isn't to be used in production, I was hoping to use the included Test Server and integrated API. (I understand the pitfalls outlined here: #789 (comment) )
Before I embark on this project, I wanted understand if this was viable using Leshan and the best way to simulate a large number of LwM2M 1.0 Devices. I was worried scaling may be an issue. Ideally I want to minimize development of my own LwM2M server and get something operational fairly quickly:
Goals:
I would appreciate any feedback based on this plan and any pitfalls, you would expect to see,
Regards
The text was updated successfully, but these errors were encountered: