# ActivityDistributionDefinitionType (Complex Type)

### Namespace: http://midpoint.evolveum.com/xml/ns/public/common/common-3

Describes how we are going to distribute the work that is to be done: how to divide it into work buckets, and how to distribute these buckets to worker tasks.

Item Summary
Name | Type | Multiplicity | Description
--- | --- | --- | ---
buckets | container BucketsDefinitionType | [0,1] | How to create and manage buckets.
workers | container WorkersDefinitionType | [0,1] | How to create and manage workers.
workerThreads | property int | [0,1] | TODO
subtask | container ActivitySubtaskDefinitionType | [0,1] | How is the activity executed in separate subtask(s).
subtasks | container ActivitySubtaskDefinitionType | [0,1] | How are the activities executed in separate subtask(s).
autoScaling | container AutoScalingDefinitionType | [0,1] | Whether and how is this activity work distribution auto-scaled.

- ### Items

  - #### buckets

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Display order:

    How to create and manage buckets.

  - #### workers

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Display order:

    How to create and manage workers.

  - #### workerThreads

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Display order:

    TODO

  - #### subtask

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Display order:

    How is the activity executed in separate subtask(s).

  - #### subtasks

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Display order:

    How are the activities executed in separate subtask(s). This is actually a shortcut for tailoring the sub-activities: it does not apply to the activity itself, but to its children. TODO reconsider.

  - #### autoScaling

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Display order:

    Whether and how is this activity work distribution auto-scaled.