Closed mbovo closed 7 years ago
Super! I am trying it out now
I am not super comfortable merging all these things together, you made an amazing work and I am so sorry for all this delay:
https://github.com/gianarb/orbiter/pull/27
I created this PR, I am testing it :)
Hello @mbovo I think I got everything. I am not interested adding more logs at the moment. we can see how it goes. I am happy to have Debug logs that we can enable via cli option. At some point we can expose an entrypoint to patch it runtime. but it's not urgent at all.
Thanks for all your effort. If you have other concern please let me know. At the moment I will close this PR
I've added some features:
Polling (1s) swarm events, swarm zero-conf can reconfigure list of autoscalers when services are created/removed, no orbiter restart is required now
Cooldown period, avoid scaling if the new event is in time range specified (in seconds) using new label orbiter.cooldown.
HTTP Basi authentication on POST APIs configured using env vars ORBITER_AUTH_USER and ORBITER_AUTH_PASS
Refactoring API using version (new path is /v1/.... )
Avoid scaling when services is the last one (bugfix)
Avoid scaling up if services is scaled to zero (disabled service)
Avoid failing if no configuration nor services with label are found at startup (now is polling-driven)
Add docker file for build from source
Some more logs
Please let me know if you ave comments/question/insults :D Hope can be useful 👍