-
Notifications
You must be signed in to change notification settings - Fork 324
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
gluon-mesh-babel: Reduce load in respondd #1799
Conversation
i just noticed that this PR contains parts that are not directly related to "reduce load", maybe you can split this apart and get parts merged faster and also reduce this PR's size? |
@t-8ch thank you for your review. Were all of your comments considered as intended? |
fdbd254
to
5edb435
Compare
unfortunately libjson-c 0.13 is not yet in relevant gluon versions for a while. only 0.13 includes json_object_deep_copy(). Because of this I introduced a fallback that should work with 0.12. Testing is in progress. |
aaf6935
to
811e295
Compare
672ca0e
to
e222c64
Compare
this needs a rebase now @christf |
* open babel socket in its own event loop, allowing to monitor instead of dump * keep state from monitor in json object, providing that to clients on network on demand * do not parse babel routes, instead use netlink to obtain nexthop babeld still does not support limiting the data on the socket by object. When that is merged, the load can be further reduced by limiting to neighbour changes with a small change.
This can be reverted after updating the package feed to something newer than 080ba31eec2ff4c165ce5a1bb9d434ddd91bdb6b from 2019-04-30 and should be in the upcoming openwrt release after 19.07
…abel After refactoring the respondd module to work with a separate thread, handle_neighbour() is different in those two programs. A common implemenation thus is impossible and the structure is removed.
…en unable to allocate memory for neighbour json We don't need a thread parsing babeld if there is not enough memory to store the results. Print an error message in this case andcontinue without neighbour information in respondd data
rebase is done. |
See christf/libbabelhelper#9 for current progress on libbabelhelper cleanup. |
@christf needs rebase? |
Closed because of #3105 |
This reduces the load by: