This will take some more extensive testing to ensure stability and functionality. I am fully available to help with the testing.
Setup:
Flash 2 nodes with the pull request dependencies, and at least one node with the regular nightly build.
record the memory usage of commotion-service-manager (CSM) upon boot.
Set the default app lifetime on the nodes to 1 hour (in the apps portal settings page).
Add 5-10 unique applications on each node (including the node(s) without CSM), meanwhile monitoring for any crashes of CSM or unusually high memory usage.
Expected results:
CSM should not crash (check with ps |grep commotion-service-manager)
CSM should not use abnormally large amounts of memory or lead to node crashes. (check with top)
Apps added to a node with CSM should appear almost instantly on the other node with CSM.
Apps on nodes with CSM should not show up on nodes without CSM, and vice versa.
Apps should properly expire after one hour, both on the node they were added on, as well as nodes that picked up their announcements.
Expired apps should no longer appear in /etc/config/applications, and their Avahi service file should have been removed from /etc/avahi/services.
Running kill -s USR1 $(pgrep commotion-service-manager) should result in a ;-delimited dump of service announcements in the file /tmp/local-services.out.
includes https://github.com/opentechinstitute/luci-commotion-apps/pull/42 NOTE: This requires luci-commotion-apps:usability to be merged into luci-commotion-apps:master before merging NOTE: This will also require a change to commotion-openwrt config
This will take some more extensive testing to ensure stability and functionality. I am fully available to help with the testing.
Setup:
Expected results:
ps |grep commotion-service-manager
)top
)/etc/config/applications
, and their Avahi service file should have been removed from/etc/avahi/services
.kill -s USR1 $(pgrep commotion-service-manager)
should result in a;
-delimited dump of service announcements in the file/tmp/local-services.out
.