Hey, I’m working on reducing the latency between the server and the registered device by adjusting the polling interval .
My goal is to have the device check the server more frequently for updates to ensure a more responsive UI. Right now it takes a couple of minutes to dispatch scripts on the device.
From configure hook, I can see we don’t have this option. I have tried config app in landscape snap, by decreasing the exchange interval
# skipping registration because the device is already registered
sudo landscape-client.config --exchange-interval=10 --skip-registration --silent
Despite these changes, I haven’t seen the improvement I was hoping for.
Has anyone dealt with a similar issue or have suggestions on how to further reduce this latency? Any advice or alternative approaches would be greatly appreciated.
I haven’t played with these settings as I’m not too concerned with responsiveness, but it depends on what you are trying to achieve.
For example, if you are trying to see snap updates more rapidly you may want to look at the snap_monitor_interval setting. Or package_monitor_interval.
Those settings are in seconds though so I would be cautious of turning them down too low as the client may stuggle.
My concern was mostly about running scripts, there is some latency between when we dispatch the script and when the Broker places it on the device and runs it.
I was wondering if you guys have a parameter to tune this.
You could try ping_interval which is how often the client checks for messages. Then I think if a script is pending it will be classed as an urgent exchange so you could reduce urgent_exchange_interval.
Those are the only settings for the interaction between server and client but are not tested for anything too rapid fire.
Awesome, reducing all of these three variables seems to make the client a lot more responsive Not sure which variable does what xD but ok.
Is it possible to do a feature request to support these variables in the configure script of landscape-client so we can set defaults for them for our devices?