Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [leshan-dev] Regarding current Boostrap Server's implementation clustering capabilities

Hello Simon,

Thanks a lot for your reply - really appreciate it!

Pedro

On Wed, May 17, 2017 at 1:33 PM, Simon Bernard <contact@xxxxxxxxxxxxxxx> wrote:

Hi,

   About scalability, if you talk about leshan-bsserver-demo, you're right. This is just a demo and does not aim to scale.

   Leshan just provides libraries which help people to develop their own Lightweight M2M server and client. So the idea is to create your own bootstrap server using Leshan. You can inspire yourself looking at the bsserver-demo code (LeshanBootstrapServerDemo).
   If you want to horizontally scale you should implements your own stores (BootstrapStore, BootstrapSecurityStore), up to you to choose the right technology to share your data.

   About activating only secure endpoint, currently there is no API for that. But you can create your own BootstrapSessionManager and refuse all identity which is not secure.

HTH

Simon


Le 02/05/2017 à 15:29, Pedro Diogo a écrit :
Hello everybody! 

I've successfully managed to bootstrap my devices via CoAPs, using this great tip https://dev.eclipse.org/mhonarc/lists/leshan-dev/msg00803.html, but I now need to validate how I would be able to scale this component horizontally, much like the LwM2M Server would (https://github.com/eclipse/leshan/wiki/Cluster). 

AFAIK, there is no way to scale out the Bootstrap server as it relies on a single .json and all state resides in memory only.I  don't think that simply having more than 1 Bootstrap server behind a Load Balancer with sticky session capabilities would suffice, even if  both server s were actually reading/writting to the same common .json file. Because of the state issue, both servers would need to share state. Am I right?

Also related, if I do opt to do bootstrapping over CoAPs exclusively, how do I tell the LwM2M Server to start the CoAPs endpoint only? I was trying to achieve this by using the provided demo .jar only, for now. 

Thank you all in advance!

Regards,
Pedro


_______________________________________________
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


_______________________________________________
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



Back to the top