Skip to content

Random pick in host list #52

@GoogleCodeExporter

Description

@GoogleCodeExporter
Hello,

It could be great if pdsh were able to sends its request to the hosts in a 
random order.

For example, with the following command:
  pdsh --random -w 10.1.1.[1-254],10.1.2.[1-254],10.1.3.[1-254] "hostname"
each pdsh thread would pick an item in this host list in a random order. E.g.:
 10.1.1.34
 10.1.2.263
 10.1.1.186
 10.1.3.150
 ...


Why? Case: nodes are packed in cooling racks by they ip address (one rack hosts 
all the 10.1.1.0 machines, another rack hosts all the 10.1.2.0 machines ...). 
So, picking randomly the hosts will distribute the "poweroff" calls among the 
racks and make less steep the ramp down of electrical power consumption.

Cheers,

Vincent

Original issue reported on code.google.com by vincent....@b12-consulting.com on 21 Aug 2012 at 3:17

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions