File tree Expand file tree Collapse file tree 2 files changed +30
-9
lines changed Expand file tree Collapse file tree 2 files changed +30
-9
lines changed Original file line number Diff line number Diff line change 11parameters :
22 monolog.channel_handlers :
3- # Log to stderr by default.
4- default : ['stream']
3+ default :
4+ handlers :
5+ - name : ' stream'
6+ formatter : ' json'
7+ processors :
8+ - ' message_placeholder'
9+ - ' request_uri'
10+ - ' referer'
11+ - ' current_user'
12+ - ' ip'
13+ - ' filter_backtrace'
514
615services :
16+ # Defines a 'stream' channel handler used above.
17+ # Log to stderr by default.
18+ # The minimum (also default) logging level is 100 (DEBUG), we set it here explicitly for better visibility.
719 monolog.handler.stream :
820 class : Monolog\Handler\StreamHandler
9- # The minimum logging level DEBUG = 100
10- arguments : ['php://stderr', 100]
21+ arguments : [ 'php://stderr', 100 ]
22+ # Override monolog's 'filter_backtrace' processor to remove some redundant data (thus reduce data ingest)
23+ # Remove the 'link' from context data as it makes sense only in Drupal's admin UI.
24+ monolog.processor.filter_backtrace :
25+ class : Drupal\monolog\Logger\Processor\ContextKeyFilterProcessor
26+ arguments : [ [ 'backtrace', 'link' ] ]
27+ shared : false
Original file line number Diff line number Diff line change 371371{ {- end } }
372372
373373{ {- define " drupal.data-pull-command" } }
374- set -e
375-
374+ set -e
375+
376376{ { include " drupal.import-reference-files" . } }
377377
378378{ { include " drupal.wait-for-db-command" . } }
570570{{- define "drupal.backup-command.dump-database" -}}
571571 set -e
572572
573+ # Add initial delay to allow mariadb to fully initialize
574+ echo "Waiting 30 seconds for database to fully initialize..."
575+ sleep 30
576+
573577 # Generate the id of the backup.
574578 BACKUP_ID=`date +%Y-%m-%d-%H-%M-%S`
575579 BACKUP_LOCATION="/backups/$BACKUP_ID"
585589
586590 # Take a database dump.
587591 echo "Starting database backup."
588- /usr/bin/mysqldump -u $DB_USER --password=$DB_PASS -h $DB_HOST --skip-lock-tables --single-transaction --quick $IGNORE_TABLES $DB_NAME > /tmp/db.sql
589- /usr/bin/mysqldump -u $DB_USER --password=$DB_PASS -h $DB_HOST --skip-lock-tables --single-transaction --quick --force --no-data $DB_NAME $IGNORED_TABLES >> /tmp/db.sql
592+ /usr/bin/mysqldump -u $DB_USER --password=$DB_PASS -h $DB_HOST --skip-lock-tables --single-transaction --max_allowed_packet=1G -- quick $IGNORE_TABLES $DB_NAME > /tmp/db.sql
593+ /usr/bin/mysqldump -u $DB_USER --password=$DB_PASS -h $DB_HOST --skip-lock-tables --single-transaction --max_allowed_packet=1G -- quick --force --no-data $DB_NAME $IGNORED_TABLES >> /tmp/db.sql
590594 echo "Database backup complete."
591595{{- end }}
592596
667671 done
668672
669673 echo "Importing database dump for validation"
670- mysql -u $DB_USER -p$DB_PASS $DB_NAME -h $DB_HOST --protocol=tcp < /tmp/db.sql
674+ mysql -u $DB_USER -p$DB_PASS $DB_NAME -h $DB_HOST --protocol=tcp --max_allowed_packet=1G < /tmp/db.sql
671675 drush status --fields=bootstrap
672676
673677{{- end }}
You can’t perform that action at this time.
0 commit comments