an environment variable on the host system prior to starting or restarting the AIStor Server. Refer to your operating system’s documentation for how to define an environment variable.
If you define both an environment variable and the similar configuration setting, AIStor uses the environment variable value.
Some settings have only an environment variable or a configuration setting, but not both.
Each configuration setting controls fundamental AIStor behavior and functionality. Test configuration changes in a lower environment, such as DEV or QA, before applying to production.
You can specify multiple targets by appending a unique identifier _ID for each set of related settings.
With these settings, MINIO_NOTIFY_MYSQL_ENABLE_PRIMARY indicates the environment variable is associated to a MySQL service endpoint with ID of PRIMARY.
You can specify multiple targets by appending a unique identifier :ID to the configuration key.
mc admin config set notify_mysql:primary \ dsn_string="username:password@tcp(mysql.example.com:3306)/miniodb"table="minioevents"\ format="namespace"\ [ARGUMENT=VALUE ...]mc admin config set notify_mysql:secondary \ dsn_string="username:password@tcp(mysql.example.com:3306)/miniodb"table="minioevents"\ format="namespace"\ [ARGUMENT=VALUE ...]
Changed in version RELEASE.2023-05-27T05-56-19Z: AIStor checks the health of the specified URL (if it is resolvable and reachable) prior to adding the target. AIStor adds offline targets without blocking.
Specify the format of event data written to the MySQL service endpoint. AIStor supports the following values:
namespace
For each bucket event, AIStor creates a JSON document with the bucket and object name from the event as the document ID and the actual event as part of the document body. Additional updates to that object modify the existing table entry for that object. Similarly, deleting the object also deletes the corresponding table entry.
access
For each bucket event, AIStor creates a JSON document with the event details and appends it to the table with a MySQL-generated random ID. Additional updates to an object result in new index entries, and existing entries remain unmodified.
Specify the directory path to enable MinIO’s persistent event store for undelivered messages, such as /opt/minio/events.
AIStor stores undelivered events in the specified store while the MySQL server/broker is offline and replays the stored events when connectivity resumes.