TheDMSGroup / mautic-eb

Mautic + Elastic Beanstalk = Scalable marketing automation
https://www.mautic.org
GNU General Public License v3.0
105 stars 27 forks source link

Mautic's settings different between nodes #80

Closed zero-one-devteam closed 5 years ago

zero-one-devteam commented 5 years ago

Description:

When changing a parameter in Mautic's setting that isn't defined in parameters_local.php it won't be "synced" between cluster nodes. Shouldn't all settings been shared via EFS volume between the nodes?

Mautic-Version: 2.15.0 PHP: 7.2

Steps to reproduce:

  1. Change a Mautic setting (e.g. CORS or MessageQueue)
  2. Setting is only changed on current cluster node.
heathdutton commented 5 years ago

The local.php file is in the EFS mount and therefore shared between nodes. parameters_local.php is for settings that override those settings via env variables.

heathdutton commented 5 years ago

This happens here: https://github.com/TheDMSGroup/mautic-eb/blob/dev/.ebextensions/60_io.config#L72-L73

Note, because of opcache settings, a setting change like this can take up to 5 minutes to percolate globally across all nodes.

zero-one-devteam commented 5 years ago

Ah, good to know, thanks for pointing that out.