Comments you submit will be routed for moderation. If you have an account, please log in first.

Ticket #3909 (new enhancement)

Opened 8 years ago

Last modified 6 years ago

Support flexible "Job Weight" (>=N)

Reported by: jdsiiro Owned by: jdsiiro
Priority: normal Milestone:
Component: Hudson Version:
Keywords: Cc:


Currently, we can specify a single "Job Weight" so that a job consumes more than one executor on a slave. A useful extension to that would be a "+" notation, whereby a job could specify a minimum number of executors, but it would expand to consume all available executors on the given node.

For example, a job could specify a weight of "4+", meaning that it wants as many executors as possible, with a minimum of 4 executors. This would allow us to enable more efficient parallel builds, now that we have slaves with 4, 6, and 8 executors.


Change History

comment:1 Changed 8 years ago by jdsiiro

  • Summary changed from Support flexible "Job Weight" to Support flexible "Job Weight" (>=N)

comment:2 Changed 7 years ago by jdsiiro

Another nice feature set:

  • "4" : consume exactly 4 executors (current functionality)
  • "4+" : consume as many executors as possible, with a minimum of 4
  • "4*" : consume the entire node (i.e. *no* other jobs can be running), with a minimum of 4 executors
  • "+" and "*" are aliases for "1+" and "1*", respectively

comment:3 Changed 7 years ago by jdsiiro

Another requirement: the number of executors allocated to a job should be exposed through an "EXECUTOR_NUMBER" environment variable.

comment:4 Changed 6 years ago by jdsiiro

The exclusive ("*") notation may be able to use the same approach as the  Exclusive Label Plugin.


Add a comment

Modify Ticket

Change Properties
<Author field>
as new

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.