You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The refresh-policy-routes systemd timer unit, which appears to trigger the refresh-policy-routes systemd service unit (which itself runs /usr/bin/setup-policy-routes), runs around once every 2 minutes, which adds up to a lot of noisy repeated log messages in journald, making it harder to scan the logs and find our important system and application log messages.
systemd itself emits many messages due to the starting and ending of various services (including itself), and the setup-policy-routes script also emits debug logs that are mostly unnecessary. Here's what shows up in our logs every 2 minutes:
Starting refresh-policy-routes@ens5.service - Set up policy routes for ens5...
Got IMDSv2 token from http://169.254.169.254/latest
Starting configuration for ens5
/lib/systemd/systemd-networkd-wait-online ens5
[get_meta] Querying IMDS for mac
Configuring ens5 as primary
Using existing cfgfile /run/systemd/network/70-ens5.network
[get_meta] Querying IMDS for network/interfaces/macs/XX:XX:XX:XX:XX:XX/local-ipv4s
refresh-policy-routes@ens5.service: Deactivated successfully.
Finished refresh-policy-routes@ens5.service - Set up policy routes for ens5.
refresh-policy-routes@ens5.service: Consumed 31ms CPU time, received 1.5K IP traffic, sent 1.3K IP traffic.
I can think of a few possible solutions, not sure if applicable:
Run the script/program as a long running systemd service, instead of invoking repeatedly on a timer, to stop the repeated messages from systemd itself about the lifecycle of the service.
Only emit warning/error messages from the script, not debug/info messages, by default.
In the meantime, is it safe to disable this service? I'm not sure what it does and I couldn't find any documentation/references online or a description in the script itself, and I haven't had time to dive deep into the code yet.
The text was updated successfully, but these errors were encountered:
@nmeyerhans I still get many logs in journald. Should I open a new issue or could you reopen this issue? I need additional IPv4 addresses, so I cannot disable refresh-policy-routes.
My current workaround is reducing the systemd log level and hijacking the logger command:
The
refresh-policy-routes
systemd timer unit, which appears to trigger therefresh-policy-routes
systemd service unit (which itself runs/usr/bin/setup-policy-routes
), runs around once every 2 minutes, which adds up to a lot of noisy repeated log messages in journald, making it harder to scan the logs and find our important system and application log messages.systemd itself emits many messages due to the starting and ending of various services (including itself), and the
setup-policy-routes
script also emits debug logs that are mostly unnecessary. Here's what shows up in our logs every 2 minutes:I can think of a few possible solutions, not sure if applicable:
In the meantime, is it safe to disable this service? I'm not sure what it does and I couldn't find any documentation/references online or a description in the script itself, and I haven't had time to dive deep into the code yet.
The text was updated successfully, but these errors were encountered: