[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [leshan-dev] Leshan demo in Docker
|
On Thu, 2017-01-19 at 16:19 +0200, Hiroshi Doyu wrote:
> Hi Kai,
>
>
> On 01/19/2017 03:41 PM, Hudalla Kai (INST/ESY1) wrote:
> > Hi Hiroshi,
> >
> > you have created some pretty clever scripts and I like the use of Docker
> > Compose
> > to fire up the servers :-)
>
> Thanks :)
>
> > IMHO you will very soon run into memory problems when scaling out the number
> > of
> > devices since every single one of them will consume a separate JVM's worth of
> > heap. I guess a better approach would be to create a dedicated "test driver"
> > that
> > can simulate multiple (dozens?, hundreds?) devices from within a single
> > process
> > (JVM).
>
> Yes, you get the quite good point.
>
> I'm planning to deploy this on Cloud environment(Azure) with many VMs in
> Docker Swarm(2.0) mode. As you pointed out, still the duplication of
> JVMs would be some unnecessary overhead. To workaround, probably I could
> use:
>
> (0) more VMs
> (1) more smaller LWM2M client instead of leshan demo client
I think this is the way to go. You should start multiple clients in a single JVM
binding to different ports.
> (2) A single container populates multiple leshan demo clients so that
> JVM can be shared with them, right? But this spwans multiple
> processes.
> (3) Your "test driver"? Can you explain a little bit more?
As I wrote above, the idea is to run multiple (100s - 10000s) clients in a single
JVM. For that it would probably make sense to use a very simple CoAP client and
use pre-defined messages for running the tests. Maybe there is no need for a
"full-fledged" client like leshan in this case.
>
> I'm targetting from ~1,000 to ~100,000 clients to be populated
> eventually. Probably we'll hit the limit of Leshan servers, then we'll
> try Leshan cluster servers for this measurement.
>
> Any comment would be really apprecaied.
> _______________________________________________
> leshan-dev mailing list
> leshan-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from
> this list, visit
> https://dev.eclipse.org/mailman/listinfo/leshan-dev