[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [leshan-dev] Shared Redis instance
|
Hi,
> 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.
That's good to know, improves the development experience a lot.
> 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.
I will keep that in mind.
Thanks for the help.
Best regards
Eva
On 24.03.22 11:54, Kraus Achim (IOB/PAD-DDA-HU) via leshan-dev wrote:
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&data=04%7C01%7Cachim.kraus%40bosch.io%7C1a96186d9ae249d
191c108da0d8312e3%7C0ae51e1907c84e4bbb6d648ee58410f4%7C0%7C0%7C6378371
54499546798%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMz
IiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=YhTIIUpRzWVdBZ348uN6
8cT4n7z3HeZYTP11VryIHIo%3D&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&data=04%7C01%7Cachim
.kraus%40bosch.io%7C1a96186d9ae249d191c108da0d8312e3%7C0ae51e1907c84e4
bbb6d648ee58410f4%7C0%7C0%7C637837154499546798%7CUnknown%7CTWFpbGZsb3d
8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C
3000&sdata=hHJoKmKk4TQAaohsLiRSa%2Bna2QNlMTaevXieQ9T%2Bvgw%3D&
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&data=04%7C01%7Cachim
.kraus%40bosch.io%7C1a96186d9ae249d191c108da0d8312e3%7C0ae51e1907c84e4
bbb6d648ee58410f4%7C0%7C0%7C637837154499546798%7CUnknown%7CTWFpbGZsb3d
8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C
3000&sdata=hHJoKmKk4TQAaohsLiRSa%2Bna2QNlMTaevXieQ9T%2Bvgw%3D&
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&data=04%7C01%7Cachim.kraus%40bosch.io%7C1a96186d9ae249d191c108da0d8312e3%7C0ae51e1907c84e4bbb6d648ee58410f4%7C0%7C0%7C637837154499546798%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=hHJoKmKk4TQAaohsLiRSa%2Bna2QNlMTaevXieQ9T%2Bvgw%3D&reserved=0
_______________________________________________
leshan-dev mailing list
leshan-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/leshan-dev