In order to determine how the requests will be forwarded in a distribution deployment, you must configure the distribution algorithm. The algorithm set determines how the data is partitioned and to which partition a request is sent. The possible distribution types are: numeric, lexico, or dnpattern.
To create the distribution algorithm, you must have a distribution workflow element. See Creating a Distribution Workflow Element.
Create a distribution algorithm using the dsconfig create-distribution-algorithm command. For example:
$ dsconfig -h localhost -p 4444 -D "cn=Directory Manager" -w password -X -n \ create-distribution-algorithm \ --element-name distrib-we \ --type numeric \ --set distribution-attribute:uid
The name of the workflow element is defined by element-name, in this example distrib-we. The distribution algorithm type must be set as numeric, lexico, or dnpattern. The different properties set depend on the algorithm. In this example, distribution-attribute must be set, as the algorithm type is numeric.