juju commands managing units should support adding/removing more than one unit at a time

Bug #809599 reported by Jim Baker
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
pyjuju
Fix Released
Wishlist
Jim Baker

Bug Description

Seeing blogs with info like the following suggests that add-unit should take an optional parameter (maybe -n and --num-units, there may be better options) to describe the number of units to add:

juju add-unit hadoop-slave
juju add-unit hadoop-slave
juju add-unit hadoop-slave
juju add-unit hadoop-slave

Tags: api

Related branches

Revision history for this message
Clint Byrum (clint-fewbar) wrote : Re: [Bug 809599] [NEW] ensemble add-unit should support adding more than one unit at a time

Excerpts from Jim Baker's message of Tue Jul 12 22:16:30 UTC 2011:
> Public bug reported:
>
> Seeing blogs with info like the following suggests that add-unit should
> take an optional parameter (maybe -n and --num-units, there may be
> better options) to describe the number of units to add:
>
> ensemble add-unit hadoop-slave
> ensemble add-unit hadoop-slave
> ensemble add-unit hadoop-slave
> ensemble add-unit hadoop-slave

I'd like it to go even further and also have the idea of sizing services:

ensemble deploy formula-bar srv-foo --size 5

or resizing:

ensemble resize-service srv-foo #

Where it will tell me

srv-foo has 5 units
Desired size is 3
Terminated units:
  srv-foo/8
    machine: 12: { dns_name: ec2-xxxxxxx }
  srv-foo/9
    machine: 17: { dns_name: ec2-xxxxxxx }

Or if expanding:

srv-foo has 3 units
Desired size is 5:
Allocating existing machines:
  machine: 19 { dns_name: ec2-xxxxxxx}
Provisioning 1 new machine(s)

It should probably default to confirming this without a --yes/-y flag
to avoid destroying data in something like Cassandra or Mongo.

Maybe this belongs in a separate feature request but I think its related.

Changed in ensemble:
status: New → Confirmed
importance: Undecided → Wishlist
Jim Baker (jimbaker)
Changed in juju:
milestone: none → florence
assignee: nobody → Jim Baker (jimbaker)
status: Confirmed → In Progress
summary: - ensemble add-unit should support adding more than one unit at a time
+ juju commands managing units should support adding/removing more than
+ one unit at a time
description: updated
description: updated
Revision history for this message
Jim Baker (jimbaker) wrote :

Sizing services sounds like a great idea, but it feels like something much larger than simply adding/removing units, so that should be split out into a separate bug IMHO.

Revision history for this message
Jim Baker (jimbaker) wrote :
tags: added: api
Jim Baker (jimbaker)
Changed in juju:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.