Rewrite autoscaling and enable easier configuration of worker selection and autoscaling behaviour

This is also a test file

On Mon, Nov 24, 2014 at 4:30 PM, Charles Allen <notifications@github.com>
wrote:

> In
> indexing-service/src/test/java/io/druid/indexing/overlord/autoscaling/EC2AutoScalerTest.java:
>
> > @@ -74,11 +71,7 @@ public void setUp() throws Exception
> >          .withImageId(AMI_ID)
> >          .withPrivateIpAddress(IP);
> >
> > -    strategy = new EC2AutoScalingStrategy(
> > -        amazonEC2Client,
> > -        new SimpleResourceManagementConfig().setWorkerPort(8080).setWorkerVersion(""),
> > -        DSuppliers.of(workerSetupData)
> > -    );
> > +    managementConfig = new SimpleResourceManagementConfig().setWorkerPort(8080).setWorkerVersion("");
>
> Oh wait, this is for EC2 (worker gets whole instance) only. Nvmnd.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/metamx/druid/pull/879/files#r20834657>.
>