Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

fleetd: allow users to turn off force flag for systemd.LinkUnitFiles() #1696

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dongsupark
Copy link
Contributor

So far systemd.LinkUnitFiles() has been called with the force option turned on. That was one of the reasons of performance issues.

Let's introduce an option systemd_link_unit_force, false by default. Users can set the option in fleetd.conf. That option will be passed directly to systemd.LinkUnitFiles().

/cc @hectorj2f
Fixes #1694

So far systemd.LinkUnitFiles() has been called with the force option
turned on. That was one of the reasons of performance issues.

Let's introduce an option systemd_link_unit_force, false by default.
Users can set the option in fleetd.conf.
That option will be passed directly to systemd.LinkUnitFiles().
@jonboulle
Copy link
Contributor

What's the actual reason for the bad performance?

@dongsupark
Copy link
Contributor Author

@jonboulle According to a report(#1393 (comment)), it's because systemctl link is being executed for each unit. I think the topic was also mentioned in the talk by @hectorj2f at the last CoreOS Fest.
BTW I suppose there could be other use cases where turning off the force option would be useful.

@jonboulle
Copy link
Contributor

@dongsupark ok, just seems like we could do better at communicating this to users? hinting at why they might want to use it for example

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants