PMET-public / mdm

3 stars 1 forks source link

should cron be enabled or not? #2

Open keithbentrup opened 4 years ago

keithbentrup commented 4 years ago

according to https://github.com/magento/magento-cloud-docker/issues/139 it's bad for performance but ...

  1. downsides of not having consumers run
  2. are consumers run spaced out or has that not been patched and causing the perf hit?
  3. already have alt way to run crun as menu item

this is what --with-cron add

diff docker-compose.yml.old docker-compose.yml
116a117,139
>   cron:
>     hostname: cron.master
>     image: 'magento/magento-cloud-docker-php:7.4-cli-1.2'
>     extends: generic
>     command: run-cron
>     environment:
>       CRONTAB: '* * * * * root cd /app && /usr/local/bin/php bin/magento cron:run >> /app/var/log/cron.log'
>     volumes:
>       - 'magento:/app:ro,delegated'
>       - 'magento-vendor:/app/vendor:ro,delegated'
>       - 'magento-generated:/app/generated:ro,delegated'
>       - 'magento-var:/app/var:rw,delegated'
>       - 'magento-app-etc:/app/app/etc:rw,delegated'
>       - 'magento-pub-media:/app/pub/media:rw,delegated'
>       - 'magento-pub-static:/app/pub/static:rw,delegated'
>       - 'docker-mnt:/mnt:rw,delegated'
>     depends_on:
>       db:
>         condition: service_started
>       redis:
>         condition: service_started
>       elasticsearch:
>         condition: service_started
keithbentrup commented 4 years ago

also need to confirm cron working if decide to have on by default