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

@dongsupark dongsupark force-pushed the master branch 3 times, most recently from 20a3e96 to 3aaa1ab Compare November 10, 2016 15:24
@dongsupark dongsupark force-pushed the master branch 2 times, most recently from eb6872f to 365565e Compare November 24, 2016 15:35
@dongsupark dongsupark force-pushed the master branch 6 times, most recently from 39a99ba to 44591b0 Compare December 15, 2016 19:48
@dongsupark dongsupark force-pushed the master branch 3 times, most recently from 0132632 to 6974811 Compare February 8, 2017 10:21
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.

2 participants