A scheduler for zombies.
npm install --save @zombiec0rn/zombie-scheduler
require('@zombiec0rn/zombie-scheduler').spread(znodes, zservices)
// => {
// add: [...],
// keep: [...],
// remove: [...]
// }
Spread will spread out your services as much as possible - new services go on least busy node.
Comping soon.
The unify function used internally to align services. This causes all sorts of havoc since it modifies the passed service configs prior to diff. A better approach would be to have a strict schema for services passed to this module, and perhaps provide the unify
functionality as a separate module? To get around this currently, consider using the fingerprint
functionaly of zombie-service-diff.
- Remove the need for
unify
- Exposing the
unify
function
- Bumped zombie-service-diff to next major with
fingerprint
support
- Initial release 🎉
enjoy.