The functionality described in this article is available in the meshIQ Platform versions 11.1.1 and later.
For a quick overview of what's new or changed, visit the meshIQ Highlights page for a version-by-version breakdown.
Jump to Section:
Version 11.2 and Earlier
Version 12.x and Later
Version 11.2 and Earlier
You can use RabbitMQ policies to set optional arguments for queues and exchanges or to set up the Federation Plugin.
To create a policy, do the following:
- Click
on a policy viewlet.
- Enter the Policy Name.
- In the Pattern field, enter a regular expression pattern to help match queues to this policy by queue name.
- In the Apply To field, indicate the object that the policy applies to (queues or exchanges).
- Enter a Priority to determine the relative likelihood of this policy being applied.
- Click OK to save the policy.
Name | Description |
Pattern | Regular expression pattern used to match queues to this policy by name. |
Apply to | queues or exchanges |
Priority | If multiple policies match a queue's name, the priority determines which policy should be applied to a queue. |
Definitions tab
Policy definitions are appended to queues for the purpose of adding optional arguments. Use the fields provided to enter the argument and its value. Then select its data type from the list.
______________________________________________________________________________________________________________
Version 12.x and Later
You can use RabbitMQ policies to set optional arguments for queues and exchanges or to set up the Federation Plugin.
Create a Policy
To create a Policy:
- Click the Add Policy
button in the Policy viewlet. The Select Object Path window opens.
- Specify the object path for the new Policy, then click Select path.
- The RabbitMQ Policy Create Window opens.
- In General tab, enter the Policy Name.
- In the Pattern field, enter a regular expression pattern to help match queues to this policy by queue name.
- In the Apply To field, indicate the object that the policy applies to (queues or exchanges).
- Enter a Priority to determine the relative likelihood of this policy being applied.
- Click Ok to create the Policy immediately. Alternatively, click Schedule to create it at a later time (see Scheduling for details).
Name | Description |
Pattern | Regular expression pattern used to match queues to this policy by name. |
Apply to | queues or exchanges |
Priority | If multiple policies match a queue's name, the priority determines which policy should be applied to a queue. |
Definitions tab
Policy definitions are appended to queues for the purpose of adding optional arguments.
Click Definitions Description to learn how each argument behaves.
- Click the file button to view the list of available arguments.
- To see the description of a specific argument, click the Info
button next to it.
- Select an argument, provide a value and data type, and then click the
button to add it.
- Repeat this process to add more arguments as needed.
Definitions Description
Definition | Key name | Description |
Dead Letter Exchange | dead-letter-exchange | Specifies an exchange where dead-lettered messages are routed. |
Dead Letter Routing Key | dead-letter-routing-key | Sets the routing key used for dead-lettered messages. |
Message TTL | message-ttl | Sets the time-to-live for messages before they expire. |
HA Mode | ha-mode | Configures high availability (HA) mode for queues (e.g., mirrored queues). |
HA Params | ha-params | Sets parameters related to high availability configuration. |
HA Sync Mode | ha-sync-mode | Defines how queue replicas synchronize (automatic or manual sync). |
HA Mirror Promotion On Shutdown | ha-promote-on-shutdown | Controls whether a mirror should be promoted when a node shuts down. |
HA Mirror Promotion On Failure | ha-promote-on-failure | Controls whether a mirror should be promoted when a node fails. |
Lazy Mode | queue-mode | Stores messages on disk instead of memory to reduce RAM usage. |
Version | queue-version | Specifies the version of the policy. |
Master Locator | queue-master-locator | Defines how RabbitMQ chooses the master node in a cluster. |
Delivery Limit | delivery-limit | Sets a limit on how many times a message can be delivered. |
Dead Letter Strategy | dead-letter-strategy | Defines custom strategies for handling dead-lettered messages. |
Leader Locator | queue-leader-locator | Determines leadership behavior for quorum queues. |
Max Age | max-age | Limits the maximum lifetime of a message in the queue. |
Max Segment Size In Bytes | stream-max-segment-size-bytes | Sets the maximum segment file size for queues (applies to streams). |
Alternate Exchange | alternate-exchange | Specifies a backup exchange for unroutable messages. |
Upstream Set | federation-upstream-set | Lists upstream nodes used for federation links. |
Federation Upstream | federation-upstream | Specifies settings for federated upstream exchanges or queues. |