[LEDE-DEV] [OpenWrt] rpcd-mod-nosql - prpl funding proposal
Luka Perkov
luka.perkov at sartura.hr
Fri Nov 11 05:34:54 PST 2016
On Thu, Nov 10, 2016 at 11:34:48AM +0100, Luka Perkov wrote:
> can you define the session namespace and how this existing feature can
> be used?
The team has looked in into it and the session object from rpcd providing
get and set support looks like a good start, but I don't see it
fulfilling the use cases like we mentioned in the document, where data
is not associated with any user login or session. For example, in the
proposal we mention system-level data storage like DSL statistics or
connected device histories.
The way I see with the session object would be to attach all such data
to the unauthenticated 00000000000000000000000000000000 session, but
this way there's no access control, so that's not convenient for more
sensitive data.
Also, we would like to put some additional control level such as, allow
to be a maximum of 100 entries in one "key" and flush out the oldest
entries one when new entries are pushed. That way the rpcd-mod-nosql
would handle part of the logic and we can avoid doing that in scripts or
daemons.
This is both a community and industry feature. For example in LuCI when
you login to the statistics page it starts showing data from that moment.
With this it can have back-end to pull the date from the database and
show graphs for the last X seconds right away.
Luka
More information about the Lede-dev
mailing list