ADC

Configure a priority queuing policy

To configure a priority queuing policy, you can use either the configuration utility or the command line.

Note: For more information about using the command line, see “ Command Reference.”

Configure a priority queuing policy by using the CLI

At the command prompt, type the following command to configure a priority queuing policy and verify the configuration:

add pq policy <policyName> -rule <expression> -priority <positive_integer> [-weight <positive_integer>] [-qDepth <positive_integer> | -polqDepth <positive_integer>]

Example:

> add pq policy pol_cgibin -rule "URL == '/cgi-bin/'" -priority 1
 Done
> show pq policy pol_cgibin
1)      Policy: pol_cgibin      Rule: URL == '/cgi-bin/'        Priority: 1     Weight: 10
        Hits: 0
 Done
<!--NeedCopy-->

Configure a priority queuing policy by using the GUI

  1. Navigate to Security > Protection Features > Priority Queuing.

  2. In the details pane, do one of the following:

    • To create a new policy, click Add.
    • To modify an existing policy, select the policy, and then click Open.
  3. If you are creating a new policy, in the Create PQ Policy dialog box, in the Name text box, type a name for your new policy.

    The name can consist of from one to 127 letters, numbers and the hyphen and underscore symbol.

    If you are modifying an existing policy, skip this step. You cannot change the name of an existing policy.

  4. In the Rule text box, either enter the policy expression directly, or click New to create a policy expression. If you click New, perform the following steps:

    1. In the Create Expression dialog box, click Add.

    2. In the Add Expression dialog box, leave Expression Type set to General, and in the Flow Type drop-down list, select a Flow Type. Your choices are REQ (for requests) and RES (for responses).

    3. In the Protocol drop-down list, select a protocol. If you selected REQ in the previous step, your choices are HTTP (Web-based connections), SSL (secure Web connections), TCP and IP. If you selected RES in the previous step, your choices are HTTP, TCP and IP.

    4. In the Qualifier drop-down list, select a qualifier.

      Your choices depend upon your selections in the previous step. Common choices are HTTP VERSION (the version of the HTTP connection), HTTP HEADER (the specified HTTP header), TCP SOURCEPORT/ DESTPORT (the source or destination port of a TCP connection), and IP SOURCEIP/DESTIP (the source or destination IP of the connection).

      If you choose HTTP HEADER, the Header text box appears beneath the original row of text boxes. You fill in the name of the HTTP header you want.

      For a complete description of the available choices, see “Policies and Expressions.”

    5. In the Operator drop-down list, select an operator.

      For a complete description of the available choices, see “Policies and Expressions.”

    6. In the Value text box, type the value you want to test for.

      This may be a text string or a number, depending upon the context. For a complete description of values appropriate to the specific context, see “Policies and Expressions.”

    7. Click OK. The expression is added in the Expression text box.

    8. Click Create. The expression appears in the Rule text box.

  5. In the Priority and Weight text boxes, type numeric values, for example, 1 and 30. For more information about Priority and Weight, see “Set up weighted queuing.”

  6. Enter a numeric value for either Queue Depth or Policy Queue Depth, for example 234, and click Create.

    • Queue Depth Defines the total number of waiting clients or requests on the virtual server to which the policy is bound.
    • Policy Queue Depth Defines the total number of waiting clients or requests belonging to the policy.

    The policy is created and appears in the Priority Queuing page.

    Note: To create additional priority queuing policies, repeat the procedure in the preceding section, and click Close after you finish.

Configure a priority queuing policy