Configuration
On this page

This page is for version 1.0. Read the current version.

Configuration

This page is for the developer who sets up an environment or deploys the store's configuration. It lists every setting the Arlanix modules read. The settings of a feed itself, such as its schedule, channel, taxonomy locale or default Google category, are in the feed form, not here; see the manual.

Settings

Each is set once for the whole installation, under Stores → Configuration → Arlanix.

Path Default Admin field What it does
arlanix_feed/schedule/run_history_days 30 Feeds → Building and delivery → Keep run history for (days) How long the arlanix_feed_clean_runs job keeps runs. 0 keeps every run. Each feed's last run is always kept, because the grid reads it.
arlanix_logging/log/level debug Logging → Log → Log level The least severe messages written to var/log/arlanix.log; see Log level.
arlanix_feed/schedule/stuck_after 30 Developer → Feeds → Stopped responding after (minutes) Minutes a run may go without reporting progress before it is marked Stopped responding, once its process has ended. At least 5; a lower value counts as 5.
arlanix_feed_sftp/transfer/connect_timeout 10 Developer → SFTP delivery → Connection timeout (seconds) Seconds an SFTP delivery may take to reach the server, agree the keys and log in.
arlanix_feed_sftp/transfer/response_timeout 30 Developer → SFTP delivery → Response timeout (seconds) Seconds an SFTP server may take to answer any one request once logged in.
arlanix_feed_sftp/transfer/minimum_speed 50 Developer → SFTP delivery → Minimum upload speed (KB/s) KB a second an SFTP upload must average. A file is given its size at this speed, and at least a minute.
arlanix_feed_google_merchant/api/connect_timeout 5 Developer → Google Merchant Center API → Connection timeout (seconds) Seconds a Merchant API call may take to reach Google.
arlanix_feed_google_merchant/api/request_timeout 20 Developer → Google Merchant Center API → Request timeout (seconds) Seconds Google may take to answer one Merchant API call.

The Developer section is shown only to admin roles given Stores → Settings → Configuration → Arlanix Developer Settings under System → Permissions → User Roles → Role Resources. A role with all resources sees it too.

What the SFTP and Merchant API limits do when they are hit is on their own pages: see When the server is slow or down and When Google refuses the account, or does not answer.

The Feeds section, group Building and delivery: Keep run history for (days) at 30

Set a value from the command line

Every setting can be set with bin/magento config:set as well. For example, to give slow SFTP servers more time:

bin/magento config:set arlanix_feed_sftp/transfer/minimum_speed 20

With --lock-env, the value is written to app/etc/env.php rather than the database and fixed for that environment: the admin shows it, with the field and its Use system value checkbox greyed out.

Log level

The modules log to var/log/arlanix.log. The store sets the level under Stores → Configuration → Arlanix → Logging (see Log level in the manual); it is debug, everything, until changed. The support bundle reports the level, where it is set, and the size and last write of the file.

The level is one of debug, info, notice, warning, error, critical, alert or emergency. An unknown value counts as debug, so a typo never silences the log. To fix the level for an environment, run config:set --lock-env, as Set a value from the command line shows.

What the cron jobs write to the log, and what each line means, is in The log.

Notifications

The feed has no notification setting. With arlanix/module-notification installed and enabled, which the feed only suggests, it declares its events in etc/arlanix_notification_events.xml and sends them through the event arlanix_notification_emit, and the store's rules choose what goes where: see Get told when a feed fails. Without it, nothing is sent and nothing is counted.

Event Code Sent when
Feed failed feed_failed A delivery fails, is refused as empty or is marked stuck, and the delivery before it did not end the same way; then, with _severity info, the first delivery that works.
Products left out feed_products_left_out A delivery that works counts more of the feed's products left out in arlanix_feed_product_issue (left_out 1; a product sent with warnings is there with 0) than the count kept as told, by at least 50, or 1% of the products the feed's conditions take in arlanix_feed_product_match when that is more, or a tenth of them when that is less.
Products refused by the channel feed_products_refused The same for the feed's rows in arlanix_feed_channel_item that the channel refused.

Every event has feed.id (a list of the feeds), feed.identifier, feed.type, feed.channel, feed.store_id and feed.store. Feed failed adds feed.state (problem or recovered), feed.problem (failed, refused or stuck, and on a recovery the one it recovers from), feed.summary and feed.reason. The other two add products.left_out or products.refused, products.new and products.summary.

A delivery keeps the count told in its run's meta under notified (left_out and refused), which the support bundle's run history shows: the count it told, the one before it when the count grew by less, so that slow growth adds up, or the lower count it fell to. products.new is the growth over the count kept before. A failed delivery carries the count before it, so what grew during an outage is told by the delivery that ends it. A delivery after one that counted nothing, such as the first after Arlanix Notifications is installed, only takes the count.

After a change to the XML, run bin/magento cache:clean config.