Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [leshan-dev] Shared Redis instance
  • From: "Kraus Achim (IOB/PAD-DDA-HU)" <Achim.Kraus@xxxxxxxx>
  • Date: Thu, 24 Mar 2022 10:54:40 +0000
  • Accept-language: de-DE, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 139.15.153.200) smtp.rcpttodomain=eclipse.org smtp.mailfrom=bosch.io; dmarc=pass (p=reject sp=none pct=100) action=none header.from=bosch.io; dkim=none (message not signed); arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=M2S6G3pTuKkCRQy+OP3/Tvo4It2aSVTpex/NayfyzdY=; b=DVF/PfgIQwmCf4JZjIyv5vbNh5wz3BFQl+nY+jwlNu7poklLdqM5wXPjVJRnfsUKSGKeXqQtL4nizB9dYPiHJBybwizxQ6mNu3WOE9+IR6UIK+YS6VGtx/I5/lnffZktadQaY5sR/XvfBndMYALRrY/eHXFNXy+v7k0b4O5GROLcq0TyVKZgKL+zzVYNtqmwn8JMB8yIH9LwSXZ7zrtj1LvkEhtymeuI/tuOIjHuPRkCdFJ0XKue6DKdpAxvkGPJ18spmDEy7M+970/SJbscLgNS3ivdNBxDFcH7TtEumle2OFznR52GyduiiBSDtMOsYYPgAVQ5JnXPCUYBmJbGGw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SUQZUVCDpZ/ZYmJe8EVbMldpvtv8N+waqLhABLSimV5deKFlWLWG8kyR+luQdW+YYfEASO5W3yvCj01MVxTSlvyqPUnqAKxAKcgeMltHTw8mvKdRhOGIEIGFLpKsCKxchVJLxnaquaf1fapr/yYrqLZEKyYB7jXgVBQkon3dx76QNuq/2UplYl1vc/o+TM4YEjfJ0+ta2iQ59TGNvRi2i++exGkBqXBlVGh84s4ArybngUXPLiNb98JodRyQisGPo/PDcfjsOHG8CPjw7BGDTgdJ/LbKSKAyFOFsmAunksibV7f9oHxgcgcikYa6RFTzYeQ85jlXjOKbcmzMevXK2g==
  • Delivered-to: leshan-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/leshan-dev/>
  • List-help: <mailto:leshan-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/leshan-dev>, <mailto:leshan-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/leshan-dev>, <mailto:leshan-dev-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AQHYPvgoPuG0EJcBckODDkkyCkWN0azOQIuwgAAIi4CAABGigA==
  • Thread-topic: [leshan-dev] Shared Redis instance

Hi Eva,

> I would indeed like to persist the lwm2m registrations and observations across application / server restarts.

> I've only found information about the graceful restart combined with DTLS, so I guess that's not the solution for me, or did I miss something there?

Your right, I only implemented it in Californium for the DTLS layer.

The point of asking back is, that is sometimes not about what is currently implemented
and if that could be used also for other ideas.
It's sometimes also, what's important for users and what they want to do.

So, if "graceful restart" is the topic, I would recommend you open an issue in Leshan and you will see,
if others want this as well and what the leshan team can do for that.  

Mit freundlichen Grüßen / Best regards

 Achim Kraus

Bosch IoT Hub - Product Area IoT Platform (IOC/PAP-HU)
Bosch.IO GmbH | Postfach 30 02 40 | 70442 Stuttgart | GERMANY | www.bosch.io
Besucheradresse: Grönerstraße 5/1 | 71636 Ludwigsburg

Sitz: Berlin, Registergericht: Amtsgericht Charlottenburg; HRB 148411 B
Aufsichtsratsvorsitzender: Stefan Koss; Geschäftsführung: Dr. Andreas Nauerz, Yvonne Reckling 



-----Original Message-----
From: leshan-dev <leshan-dev-bounces@xxxxxxxxxxx> On Behalf Of Eva Rott
Sent: Donnerstag, 24. März 2022 11:43
To: leshan-dev@xxxxxxxxxxx
Subject: Re: [leshan-dev] Shared Redis instance

Hi,

thanks for the quick response.

 > Let me ask back, why do you want to use redis at all?
 > To persist some state? The DTLS session? The lwm2m data (registrations and observe-requests)?

I would indeed like to persist the lwm2m registrations and observations across application / server restarts.

 > (Maybe you looking more for something as a "graceful restart".) I've only found information about the graceful restart combined with DTLS, so I guess that's not the solution for me, or did I miss something there?

Best regards
Eva



On 24.03.22 10:18, Kraus Achim (IOB/PAD-DDA-HU) via leshan-dev wrote:
> Hi Eva,
> 
>> I have a question concerning the use of Redis. I have multiple Leshan servers with few clients registered on each and I'd like to use only one Redis instance for all of them.
> 
> Let me ask back, why do you want to use redis at all?
> To persist some state? The DTLS session? The lwm2m data (registrations and observe-requests)?
> 
> Usually redis was used in order to share that data among several nodes of a cluster.
> 
> If there is a different requirement or useful function, I guess you should address that more directly.
> (Maybe you looking more for something as a "graceful restart".)
>    
> Mit freundlichen Grüßen / Best regards
> 
>   Achim Kraus
> 
> Bosch IoT Hub - Product Area IoT Platform (IOC/PAP-HU) Bosch.IO GmbH | 
> Postfach 30 02 40 | 70442 Stuttgart | GERMANY | 
> https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.b
> osch.io%2F&amp;data=04%7C01%7Cachim.kraus%40bosch.io%7C1a96186d9ae249d
> 191c108da0d8312e3%7C0ae51e1907c84e4bbb6d648ee58410f4%7C0%7C0%7C6378371
> 54499546798%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMz
> IiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=YhTIIUpRzWVdBZ348uN6
> 8cT4n7z3HeZYTP11VryIHIo%3D&amp;reserved=0
> Besucheradresse: Grönerstraße 5/1 | 71636 Ludwigsburg
> 
> Sitz: Berlin, Registergericht: Amtsgericht Charlottenburg; HRB 148411 
> B
> Aufsichtsratsvorsitzender: Stefan Koss; Geschäftsführung: Dr. Andreas 
> Nauerz, Yvonne Reckling
> 
> 
> -----Original Message-----
> From: leshan-dev <leshan-dev-bounces@xxxxxxxxxxx> On Behalf Of Eva 
> Rott
> Sent: Mittwoch, 23. März 2022 21:53
> To: leshan-dev@xxxxxxxxxxx
> Subject: [leshan-dev] Shared Redis instance
> 
> Hi,
> 
> I have a question concerning the use of Redis. I have multiple Leshan servers with few clients registered on each and I'd like to use only one Redis instance for all of them.
> 
> Now I was wondering, how I could achieve that. For example, is it possible to add a prefix to the Redis keys? E.g. FIRST_APP:REG:EP, OTHER_APP:REG:EP.
> 
> The only other thing I've found so far is the database int value that can be specified when creating the JedisPool. This would be my fallback solution but I'd definitely prefer not having to keep track of the database IDs.
> 
> I've also thought about overriding/modifying the Redis key prefixes in the RedisRegistrationStore but since they are private I'm not really considering going toward that direction.
> 
> 
> Any help will be very much appreciated.
> 
> Thanks in advance.
> 
> Best regards
> Eva
> _______________________________________________
> leshan-dev mailing list
> leshan-dev@xxxxxxxxxxx
> To unsubscribe from this list, visit 
> https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.
> eclipse.org%2Fmailman%2Flistinfo%2Fleshan-dev&amp;data=04%7C01%7Cachim
> .kraus%40bosch.io%7C1a96186d9ae249d191c108da0d8312e3%7C0ae51e1907c84e4
> bbb6d648ee58410f4%7C0%7C0%7C637837154499546798%7CUnknown%7CTWFpbGZsb3d
> 8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C
> 3000&amp;sdata=hHJoKmKk4TQAaohsLiRSa%2Bna2QNlMTaevXieQ9T%2Bvgw%3D&amp;
> reserved=0 _______________________________________________
> leshan-dev mailing list
> leshan-dev@xxxxxxxxxxx
> To unsubscribe from this list, visit 
> https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.
> eclipse.org%2Fmailman%2Flistinfo%2Fleshan-dev&amp;data=04%7C01%7Cachim
> .kraus%40bosch.io%7C1a96186d9ae249d191c108da0d8312e3%7C0ae51e1907c84e4
> bbb6d648ee58410f4%7C0%7C0%7C637837154499546798%7CUnknown%7CTWFpbGZsb3d
> 8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C
> 3000&amp;sdata=hHJoKmKk4TQAaohsLiRSa%2Bna2QNlMTaevXieQ9T%2Bvgw%3D&amp;
> reserved=0
_______________________________________________
leshan-dev mailing list
leshan-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.eclipse.org%2Fmailman%2Flistinfo%2Fleshan-dev&amp;data=04%7C01%7Cachim.kraus%40bosch.io%7C1a96186d9ae249d191c108da0d8312e3%7C0ae51e1907c84e4bbb6d648ee58410f4%7C0%7C0%7C637837154499546798%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=hHJoKmKk4TQAaohsLiRSa%2Bna2QNlMTaevXieQ9T%2Bvgw%3D&amp;reserved=0

Back to the top