1
0
mirror of https://github.com/minio/docs.git synced 2025-07-28 19:42:10 +03:00
Files
Daryl White ca23b065b2 Correcting mc-conf errors (#1061)
Corrects errors from `mc-conf` references not noticed until after
merging #1028 .

No issue to track it.
2023-11-03 14:13:08 -04:00

8.2 KiB

AMQP Notification Settings

minio

Table of Contents

This page documents settings for configuring an AMQP service as a target for Bucket Notifications <minio-bucket-notifications>. See minio-bucket-notifications-publish-amqp for a tutorial on using these settings.

Multiple AMQP Targets

You can specify multiple AMQP service endpoints by appending a unique identifier _ID for each set of related AMQP settings to the top level key.

Examples

For example, the following commands set two distinct AMQP service endpoints as PRIMARY and SECONDARY respectively:

Environment Variables

set MINIO_NOTIFY_AMQP_ENABLE_PRIMARY="on"
set MINIO_NOTIFY_AMQP_URL_PRIMARY="amqp://user:password@amqp-endpoint.example.net:5672"

set MINIO_NOTIFY_AMQP_ENABLE_SECONDARY="on"
set MINIO_NOTIFY_AMQP_URL_SECONDARY="amqp://user:password@amqp-endpoint.example.net:5672"

For example, MINIO_NOTIFY_AMQP_ENABLE_PRIMARY <MINIO_NOTIFY_AMQP_ENABLE> indicates the environment variable is associated to an AMQP service endpoint with ID of PRIMARY.

Configuration Settings

mc admin config set notify_amqp:primary \ 
   url="user:password@amqp://amqp-endpoint.example.net:5672" [ARGUMENT=VALUE ...]

mc admin config set notify_amqp:secondary \
   url="user:password@amqp://amqp-endpoint.example.net:5672" [ARGUMENT=VALUE ...]

Notice that for configuration settings, the unique identifier appends to amqp only, not to each individual argument.

Settings

Enable

Environment Variable

MINIO_NOTIFY_AMQP_ENABLE

Requires specifying MINIO_NOTIFY_AMQP_URL if set to on.

Specify on to enable publishing bucket notifications to an AMQP endpoint.

Defaults to off.

Configuration Setting

notify_amqp

The top-level configuration key for defining an AMQP service endpoint for use with MinIO bucket notifications <minio-bucket-notifications>.

Use mc admin config set to set or update an AMQP service endpoint. The ~notify_amqp.url argument is required for each target. Specify additional optional arguments as a whitespace (" ")-delimited list.

mc admin config set notify_amqp \ 
  url="amqp://user:password@endpoint:port" \
  [ARGUMENT="VALUE"] ... 

URL

Required

Environment Variable

MINIO_NOTIFY_AMQP_URL

Configuration Setting

notify_amqp url

Specify the AMQP server endpoint to which MinIO publishes bucket events. For example, amqp://myuser:mypassword@localhost:5672.

Exchange

Optional

Environment Variable

MINIO_NOTIFY_AMQP_EXCHANGE

Configuration Setting

notify_amqp exchange

Specify the name of the AMQP exchange to use.

Exchange Type

Optional

Environment Variable

MINIO_NOTIFY_AMQP_EXCHANGE_TYPE

Configuration Setting

notify_amqp exchange_type

Specify the type of the AMQP exchange.

Routing Key

Optional

Environment Variable

MINIO_NOTIFY_AMQP_ROUTING_KEY

Configuration Setting

notify_amqp routing_key

Specify the routing key for publishing events.

Mandatory

Optional

Environment Variable

MINIO_NOTIFY_AMQP_MANDATORY

Configuration Setting

notify_amqp mandatory

Specify off to ignore undelivered messages errors. Defaults to on.

Durable

Optional

Environment Variable

MINIO_NOTIFY_AMQP_DURABLE

Configuration Setting

notify_amqp durable

Specify on to persist the message queue across broker restarts. Defaults to off.

No Wait

Optional

Environment Variable

MINIO_NOTIFY_AMQP_NO_WAIT

Configuration Setting

notify_amqp no_wait

Specify on to enable non-blocking message delivery. Defaults to off.

Internal

Optional

Environment Variable

MINIO_NOTIFY_AMQP_INTERNAL

Configuration Setting

notify_amqp internal

Specify on to use the exchange only if it is bound to other exchanges. See the RabbitMQ documentation on Exchange to Exchange Bindings for more information on AMQP exchange binding.

Auto Deleted

Optional

Environment Variable

MINIO_NOTIFY_AMQP_AUTO_DELETED

Configuration Setting

notify_amqp auto_deleted

Specify on to automatically delete the message queue if there are no consumers. Defaults to off.

Delivery Mode

Optional

Environment Variable

MINIO_NOTIFY_AMQP_DELIVERY_MODE

Configuration Setting

notify_amqp delivery_mode

Specify 1 for set the delivery mode to non-persistent queue.

Specify 2 to set the delivery mode to persistent queue.

Queue Directory

Optional

Environment Variable

MINIO_NOTIFY_AMQP_QUEUE_DIR

Configuration Setting

notify_amqp queue_dir

Specify the directory path to enable MinIO's persistent event store for undelivered messages, such as /opt/minio/events.

MinIO stores undelivered events in the specified store while the AMQP service is offline and replays the stored events when connectivity resumes.

Queue Limit

Optional

Environment Variable

MINIO_NOTIFY_AMQP_QUEUE_LIMIT

Configuration Setting

notify_amqp queue_limit

Specify the maximum limit for undelivered messages. Defaults to 100000.

Comment

Optional

Environment Variable

MINIO_NOTIFY_AMQP_COMMENT

Configuration Setting

notify_amqp comment

Specify a comment for the AMQP configuration.