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

Allow Fleet to schedule with Conflicts against units not scheduled with fleet or that are not certain machine id's #1226

@hookenz

Description

@hookenz

I have some machines with some unit files placed into /etc/systemd/system.
These machines have physical drives attached and unit files to mount file systems and start databases.
Although these machines are part of the CoreOS cluster and can run other things, some units I wouldn't want to schedule there.

Unfortunately, suppose I have a unit /etc/systemd/system/mysql.service and then schedule another unit with fleet and place Conflicts=mysql.service, it causes the scheduler to hang when trying to schedule the unit.

Also, fleet only has the ability to work with glob patters in Go which seem to be very limited.
It would seem natural to me to be able to specify things like:

MachineOf = ! machineA

But I understand that doesn't make sense for the way MachineOf works. Because the inverse of ! machineA would be every other machine in the cluster. I suppose if you are only scheduling a single unit then this would make sense.

Another option would be to have Conflicts= take a machine id as well.

Are there any planned improvements in the pipeline around this area?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions