npm-wharf / mcgonagall

Transfigures toml cluster and service specifications into working Kubernetes cluster specifcations
ISC License
9 stars 1 forks source link

Dependencies instead of ordinals #1

Open joeledwards opened 6 years ago

joeledwards commented 6 years ago

Ordinals remind me of how services start order was managed in older UNIX systems. Keeping with the concept of init systems, newer versions (upstart and systemd) have moved to the concept of dependency declarations so that the startup order is declarative, decreasing the mental load of manually managing init ordinals.

I think switching to something similar for mcgonagall would be beneficial. Being able to organize microservices as small groups of interdependent services could further simplify the management of complex specs.

joeledwards commented 6 years ago

Ordinals (order fields) should be able to coexist with dependencies. We should enforce that relative offset between all declared order fields are maintained at a minimum, and dependencies cause all subsequent ordinals to increment.