-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
system-operational-cache: system daemon that provides cache of operational information #65
Comments
Only allow caching operational info of Goldstone native models? Another idea is to add We could improve lib/core.py to have a generic caching mechanism to avoid ad-hoc caching implementation in each daemon. Then we could also improve lib/connector/sysrepo.py to provide user-friendly caching support. # check if the model of the XPATH has `rpc get-operational-cache`,
# if it has, use it with the given acceptable-cache-age. if it doesn't have, just query operational datastore
conn.get_operational("/goldstone-interfaces:interfaces", acceptable_cache_age=60)
Handling this might become easier because now the cache query will be handled inside the daemon that handles the actual operational information. @noguchiko WDYT? |
It sounds good for now.
We should handle XPath::Abbreviated Syntax to do it. I think it's the main reason for the difficulty.
It's useful even if we choose which option. We have three options:
I believe ad-hoc implementations should be avoided. Two remains:
We need further consideration. |
What is the expected usage of this? |
Even if we don't supprt the syntax for now, I think we should design the architecture to be able to support it. So, I think the implementation of the subtree data retrieval should be highly cohesive. ( |
Moved the discussion from #63 (comment)
Considering adding
system-operational-cache
to serve the following YANG model.system-operational-cache
provides an operational info-caching mechanism for all internal components.intended use:
north-snmp
: periodically fetches operational information by querying Goldstone YANG models.system-telemetry
: periodically fetches operational information of the subscribed XPATHConsideration points: (copied from #63 (comment))
get-operational-cache
may be called recursively. Can the framework handle it?system-telemetry
-get-operational-cache
->xlate-oc
-get-operational-cache
->south-tai
set-operational-cache
RPC and users call it to save retrieved operational states in the cache./openconfig-platform:components
is cached, cached data is returned for request with/openconfig-platform:components/component/name
The text was updated successfully, but these errors were encountered: