weaveworks / scope

Monitoring, visualisation & management for Docker & Kubernetes
https://www.weave.works/oss/scope/
Apache License 2.0
5.87k stars 713 forks source link

Dynamically adjust probe->app (or probe->probe) relationships #692

Open 2opremio opened 8 years ago

2opremio commented 8 years ago

In the ECS AMI, when using Scope in Standalone Mode, Scope is launched providing the IPs of the current members of the Autoscaling group to which the Container Instance belongs so that probes forward reports to all apps.

As I understand it (and unless the integration with Weave Net helps here) Scope won’t gracefully handle scaling up (down) the AutoScaling group. For instance:

Quoting @peterbourgon :

At the moment, there is only 1 way to dynamically update the set of apps that a probe is publishing to. And that is by specifying a [Weave] DNS name as the publish target. In that case, the probe will regularly resolve the name to IPs, and update its internal state accordingly.

It is not difficult to add some code to the probe, to allow other methods of dynamically updating the set of publish targets. But that code does not exist now. To the best of my knowledge.

2opremio commented 8 years ago

Further reference: https://groups.google.com/a/weave.works/d/msg/weave-users/VJ6fYfbmNlA/4h-CyV9cDAAJ

tomwilkie commented 8 years ago

Strangely, I was discussing this with @rade recently, the idea being we could use weave's newly refactored mesh library to propagate cluster membership info.

On Saturday, 21 November 2015, Alfonso Acosta notifications@github.com wrote:

Further reference: https://groups.google.com/a/weave.works/d/msg/weave-users/VJ6fYfbmNlA/4h-CyV9cDAAJ

— Reply to this email directly or view it on GitHub https://github.com/weaveworks/scope/issues/692#issuecomment-158464359.

2opremio commented 8 years ago

After https://github.com/weaveworks/integrations/pull/79 , this is not a problem anymore when running Scope in ECS (using the Weaveworks AMI).