+

Search Tips   |   Advanced Search

Intelligent Management: rules for ODR routing policy administrative tasks

  1. Overview
  2. addRoutingRule
  3. changeRoutingDefaultRulesAction
  4. changeRoutingRuleAction
  5. changeRoutingRuleExpression
  6. changeRoutingRulePriority
  7. createRoutingRules
  8. listRoutingRules
  9. removeRoutingRule


Overview

Use the following rules to configure routing policies on the ODR proxy server.


addRoutingRule

Add a routing policy rule.

If we have an existing application edition with a defined multi-cluster routing policy, and we install a new edition, create a new multi-cluster routing policy for the new edition.

-protocol Name of the protocol to associate with a rule. (String, required)
-priority Positive integer value representing the priority of a rule. Zero is the highest priority. (String, required)
-expression Rule expression. Expression must be enclosed in double quotes. (String, required)
-actionType Type of action to associate with a rule. (String, required)

localResource Local resource (file) to use for this routing rule.
permit Permit routing to servers not in a maintenance mode.
redirect Redirect the request to the URL specified by the redirectURL option.
reject Reject routing with return code specified by the errorcode option.
permitsticky Permit routing to servers not in maintenance mode and perform active affinity; that is, affinity is always preserved even when not requested by the application.
permitMM Permit routing only to servers in maintenance mode.
permitstickyMM Permit routing only to servers in maintenance mode and perform active affinity.
permit SIP Rules. Permit routing to servers not in maintenance mode.
reject SIP Rules. Reject routing with return code specified by the errorcode option.

-odrname Name of the ODR to which the routing policy work class applies. Required only if we modify an ODR or a web server.
-webservername Name of the web server to which the routing policy work class applies.
-nodename Name of the node on which the ODR or web server resides. Required only if we modify an ODR or a web server.
-clustername Name of the cluster to which the rule applies. Required only if we modify an ODR cluster.
-dcname Name of the dynamic cluster to which the rule applies. Required only if we modify an ODR cluster.
-multiclusterAction Method to route requests if multiple routing location clusters are matched. The -multiclusterAction parameter applies to any of the permit actionTypes, and is required only if actionType is equal to permit, permitsticky, permitMM, or permitstickyMM.

Failover Find the first cluster with an available server and load balance across that cluster. The order of a dynamically generated list of clusters is undefined.
WRR Weighted Round Robin load balance. For UDP retransmission, maintain affinity.
WLOR Weighted least outstanding request.

The recommendation is to use the WLOR value instead of the WRR value.bprac

The following list contains the possible values for SIP rules:

Failover Find the first cluster with an available server and load balance across that cluster. The order of a dynamically generated list of clusters is undefined.
WRR Weighted Round Robin load balance. For UDP retransmission, maintain affinity.
Error If there are multiple clusters, to select from it throws an error. it expects one and only one cluster.

-routingLocations List of target locations to route requests. Required only if actionType is equal to any of the permit actionType.

Each operand in the list follows one of three formats, and can contain a wildcard * value, which matches any value:

  • cluster=cellName/clusterName
  • server=cellName/nodeName/serverName
  • module=cellName/applicationName/applicationVersion/moduleName

With SIP routing rules only, we can alternatively define target clusters through a rule expression. The valid operators are AND, OR, NOT and parenthetical grouping. Format according to the following list:

  • cluster=cellName/clusterName
  • server=cellName/nodeName/serverName
  • module=cellName/applicationName/applicationVersion/moduleName
  • server maintenance mode=true or false
  • node maintenance mode=true or false
  • protocol=PROTO_VALUE:

      PROTO_SIP = sip
      SIP over TCP
      PROTO_SIPS = sips
      SIP over SSL and TCP
      PROTO_SIPU = sipu
      SIP over UDP
      PROTO_SIPX = sipx
      SIP over XMEM

For applications that have no applicationVersion value, leave the applicationVersion value blank: module=cellName/application//moduleName.

-errorcode Integer error code to reject request. Required only if actionType is equal to reject.
-localResource This option can be used in association with the actionType parameter. If we use the -localResource option with the actionType parameter, also specify the localResourcePath parameter. The localResourcePath parameter indicates the absolute or relative path to the profile root.

Batch mode example usage

Failover of all applications in a cell to a generic server cluster that points to another cell:

The following example creates a multi-cluster routing policy for a new application edition:

Interactive mode example usage


changeRoutingDefaultRulesAction

Change the routing policy default action for a rule.

-protocol Name of the protocol to associate with a rule. (String, required)
-actionType Type of action to associate with a rule. (String, required)

Associate with HTTP rules:

localResource Local resource (file) to use for this routing rule.
permit Permit routing to servers not in a maintenance mode.
redirect Redirect the request to the URL specified by the redirectURL option.
reject Reject routing with return code specified by the errorcode option.
permitsticky Permit routing to servers not in maintenance mode and perform active affinity; that is, affinity is always preserved even when not requested by the application.
permitMM Permit routing only to servers in maintenance mode.
permitstickyMM Permit routing only to servers in maintenance mode and perform active affinity.

Associate with SIP rules:

permit Permit routing to servers not in maintenance mode.
reject Reject routing with return code specified by the errorcode option.

-odrname Name of the ODR to which the routing policy work class applies. Required only if we modify an ODR or a web server.
-webservername Name of the web server to which the routing policy work class applies.
-nodename Name of the node on which the ODR or web server resides. Required only if we modify an ODR or a web server.
-clustername Name of the cluster to which the rule applies. Required only if we modify an ODR cluster.
-dcname Name of the dynamic cluster to which the rule applies. Required only if we modify an ODR cluster.
-multiclusterAction Method to route requests if multiple routing location clusters are matched. The -multiclusterAction parameter applies to any of the permit action types, and is required only if actionType is equal to permit, permitsticky, permitMM, or permitstickyMM.

Failover Find the first cluster with an available server and load balance across that cluster. The order of a dynamically generated list of clusters is undefined.
WRR Weighted Round Robin load balance. For UDP retransmission, maintain affinity.
WLOR Weighted least outstanding request. The recommendation is to use the WLOR value instead of the WRR value.bprac

The following list contains the possible values for SIP rules:

Failover Find the first cluster with an available server and load balance across that cluster. The order of a dynamically generated list of clusters is undefined.
WRR Weighted Round Robin load balance. For UDP retransmission, maintain affinity.
Error If there are multiple clusters, to select from it throws an error. it expects one and only one cluster.

-routingLocations List of target locations to route requests. Required only if actionType is equal to any of the permit action types.

Each operand in the list follows one of three formats, and can contain a wildcard * value, which matches any value:

  • cluster=cellName/clusterName
  • server=cellName/nodeName/serverName
  • module=cellName/applicationName/applicationVersion/moduleName

With SIP routing rules only, we can alternatively define target clusters through a rule expression. The valid operators are AND, OR, NOT and parenthetical grouping. Format according to the following list:

  • cluster=cellName/clusterName
  • server=cellName/nodeName/serverName
  • module=cellName/applicationName/applicationVersion/moduleName
  • server maintenance mode=true or false
  • node maintenance mode=true or false

  • protocol=PROTO_VALUE:

      PROTO_SIP = sip
      SIP over TCP
      PROTO_SIPS = sips
      SIP over SSL and TCP
      PROTO_SIPU = sipu
      SIP over UDP
      PROTO_SIPX = sipx
      SIP over XMEM

For applications that have no applicationVersion value, leave the applicationVersion value blank: module=cellName/application//moduleName.

-errorcode Integer error code to reject request. Required only if actionType is equal to reject.
-localResource This option can be used in association with the actionType parameter. If we use the -localResource option with the actionType parameter, also specify the localResourcePath parameter. The localResourcePath parameter indicates the absolute or relative path to the profile root.

Batch mode example usage

Interactive mode example usage


changeRoutingRuleAction

Change a routing policy action for a rule.

Batch mode example usage

Interactive mode example usage


changeRoutingRuleExpression

Change a routing policy rule expression.

Batch mode example usage

Interactive mode example usage


changeRoutingRulePriority

Change a routing policy rule priority.

Batch mode example usage

Interactive mode example usage


createRoutingRules

Create a routing policy rule list.

Batch mode example usage

Interactive mode example usage


listRoutingRules

List the routing policy rules.

Batch mode example usage

Interactive mode example usage


removeRoutingRule

remove a routing policy rule.

Batch mode example usage

Interactive mode example usage


Related:

  • Routing policy action types
  • Overview of request flow prioritization
  • Configure the ODR for multi-cluster failover and load balancing routing
  • Configure ODRs
  • Create a static cluster of ODRs
  • Intelligent Management: SIP operands
  • Intelligent Management: HTTP operands
  • Intelligent Management: rules for ODR service policy administrative tasks