Hi @anil.joshi ,
We are using PXB in docker container , xtrabackup version 8.0.33-28 based on MySQL server 8.0.33 Linux (x86_64) (revision id: b3a3c3dd) .
We are running this command:
xtrabackup --user=user --password=password --host=host --port=3306 --backup --strict --slave-info --safe-slave-backup --safe-slave-backup-timeout=300 --check-privileges=1 --ftwrl-wait-timeout=100 --ftwrl-wait-query-type=all --kill-long-queries-timeout=50 --target-dir=/backups/up1 --parallel=8 --lock-ddl --no-lock 2>/backup.log
select @@global.interactive_timeout;
31536000
SELECT @@global.wait_timeout;
28800
We are running the command on Replica.
The amount of table we get when PXB runs "
SELECT T2.PATH, T2.NAME, T1.SPACE_TYPE FROM INFORMATION_SCHEMA.INNODB_TABLESPACES T1 JOIN INFORMATION_SCHEMA.INNODB_TABLESPACES_BRIEF T2 USING (SPACE) WHERE T1.SPACE_TYPE = ‘Single’ && T1.ROW_FORMAT != 'Undo’UNION SELECT T2.PATH, SUBSTRING_INDEX(SUBSTRING_INDEX(T2.PATH, ‘/’, -1), ‘.’, 1) NAME, T1.SPACE_TYPE FROM INFORMATION_SCHEMA .INNODB_TABLESPACES T1 JOIN INFORMATION_SCHEMA .INNODB_TABLESPACES_BRIEF T2 USING (SPACE) WHERE T1.SPACE_TYPE = ‘General’ && T1.ROW_FORMAT != ‘Undo’
"
is over 1.2 million rows
show variables like ‘%open_files_limit%’; == 1,048,576
show full processlist;
±------±-----------------±----------------±---------±--------±------±-----------------------±----------------------+
| Id | User | Host | db | Command | Time | State | Info |
±------±-----------------±----------------±---------±--------±------±-----------------------±----------------------+
| 5 | event_scheduler | localhost | NULL | Daemon | 81986 | Waiting on empty queue | NULL |
| 152 | root | localhost | appwrite | Sleep | 81605 | | NULL |
| 16181 | root | localhost | appwrite | Sleep | 41825 | | NULL |
| 27711 | root | localhost | appwrite | Sleep | 26284 | | NULL |
| 46418 | appwrite_backups | 10.0.8.23:37360 | NULL | Sleep | 1496 | | NULL |
| 47039 | root | localhost | appwrite | Query | 0 | init | show full processlist |
±------±-----------------±----------------±---------±--------±------±-----------------------±----------------------+
6 rows in set (0.00 sec)
2023-11-22T18:19:49.371305-00:00 0 [Note] [MY-011825] [Xtrabackup] recognized client arguments: --user=user --password=* --host=host --port=3306 --backup=1 --strict=1 --slave-info=1 --safe-slave-backup=1 --safe-slave-backup-timeout=300 --check-privileges=1 --target-dir=/backups/back1 --parallel=8 --lock-ddl=1
xtrabackup version 8.0.33-28 based on MySQL server 8.0.33 Linux (x86_64) (revision id: b3a3c3dd)
2023-11-22T18:19:49.375085-00:00 0 [Note] [MY-011825] [Xtrabackup] perl binary not found. Skipping the version check
2023-11-22T18:19:49.375149-00:00 0 [Note] [MY-011825] [Xtrabackup] Connecting to MySQL server host: host, user: user, password: set, port: 3306, socket: not set
2023-11-22T18:19:49.389427-00:00 0 [Note] [MY-011825] [Xtrabackup] Using server version 8.0.33
2023-11-22T18:19:52.094618-00:00 0 [Note] [MY-011825] [Xtrabackup] Slave open temp tables: 0
2023-11-22T18:19:52.098375-00:00 0 [Note] [MY-011825] [Xtrabackup] Slave is safe to backup.
2023-11-22T18:19:52.098628-00:00 0 [Note] [MY-011825] [Xtrabackup] Executing LOCK INSTANCE FOR BACKUP …
2023-11-22T18:19:52.101945-00:00 0 [Note] [MY-011825] [Xtrabackup] uses posix_fadvise().
2023-11-22T18:19:52.101994-00:00 0 [Note] [MY-011825] [Xtrabackup] cd to /var/lib/mysql/
2023-11-22T18:19:52.102011-00:00 0 [Note] [MY-011825] [Xtrabackup] open files limit requested 0, set to 1048576
2023-11-22T18:20:07.147226-00:00 0 [Note] [MY-011825] [Xtrabackup] using the following InnoDB configuration:
2023-11-22T18:20:07.147314-00:00 0 [Note] [MY-011825] [Xtrabackup] innodb_data_home_dir = .
2023-11-22T18:20:07.147326-00:00 0 [Note] [MY-011825] [Xtrabackup] innodb_data_file_path = ibdata1:12M:autoextend
2023-11-22T18:20:07.148161-00:00 0 [Note] [MY-011825] [Xtrabackup] innodb_log_group_home_dir = ./
2023-11-22T18:20:07.148227-00:00 0 [Note] [MY-011825] [Xtrabackup] innodb_log_files_in_group = 2
2023-11-22T18:20:07.148255-00:00 0 [Note] [MY-011825] [Xtrabackup] innodb_log_file_size = 50331648
2023-11-22T18:20:07.152628-00:00 0 [Note] [MY-011825] [Xtrabackup] inititialize_service_handles suceeded
2023-11-22T18:20:09.566487-00:00 0 [Note] [MY-011825] [Xtrabackup] Connecting to MySQL server host: host, user: user, password: set, port: 3306, socket: not set
2023-11-22T18:20:09.572851-00:00 0 [Note] [MY-011825] [Xtrabackup] Redo Log Archiving is not set up.
2023-11-22T18:20:09.669006-00:00 1 [Note] [MY-011825] [Xtrabackup] >> log scanned up to (46995286792)
2023-11-22T18:20:10.669296-00:00 1 [Note] [MY-011825] [Xtrabackup] >> log scanned up to (46995286792)
2023-11-22T18:20:11.669657-00:00 1 [Note] [MY-011825] [Xtrabackup] >> log scanned up to (46995286792)
2023-11-22T18:20:12.670072-00:00 1 [Note] [MY-011825] [Xtrabackup] >> log scanned up to (46995286792)
2023-11-22T18:20:13.670504-00:00 1 [Note] [MY-011825] [Xtrabackup] >> log scanned up to (46995286792)
2023-11-22T18:20:14.670922-00:00 1 [Note] [MY-011825] [Xtrabackup] >> log scanned up to (46995286792)
2023-11-22T18:20:15.671272-00:00 1 [Note] [MY-011825] [Xtrabackup] >> log scanned up to (46995286792)
2023-11-22T18:20:16.671629-00:00 1 [Note] [MY-011825] [Xtrabackup] >> log scanned up to (46995286792)
2023-11-22T18:20:17.671966-00:00 1 [Note] [MY-011825] [Xtrabackup] >> log scanned up to (46995286792)
2023-11-22T18:20:18.672304-00:00 1 [Note] [MY-011825] [Xtrabackup] >> log scanned up to (46995286792)
…
tail -n 10 backup.log
2023-11-22T18:50:33.208651-00:00 14 [Note] [MY-011825] [Xtrabackup] Copying mysql/general_log_213.sdi to /backups/db_fra1_self_hosted_0_2/v1/christy2/mysql/general_log_213.sdi
2023-11-22T18:50:33.208678-00:00 10 [Note] [MY-011825] [Xtrabackup] Copying mysql/general_log.CSV to /backups/db_fra1_self_hosted_0_2/v1/christy2/mysql/general_log.CSV
2023-11-22T18:50:33.208726-00:00 10 [Note] [MY-011825] [Xtrabackup] Done: Copying mysql/general_log.CSV to /backups/db_fra1_self_hosted_0_2/v1/christy2/mysql/general_log.CSV
2023-11-22T18:50:33.209795-00:00 15 [Note] [MY-011825] [Xtrabackup] Done: Copying mysql/general_log.CSM to /backups/db_fra1_self_hosted_0_2/v1/christy2/mysql/general_log.CSM
2023-11-22T18:50:33.209803-00:00 14 [Note] [MY-011825] [Xtrabackup] Done: Copying mysql/general_log_213.sdi to /backups/db_fra1_self_hosted_0_2/v1/christy2/mysql/general_log_213.sdi
2023-11-22T18:50:33.209805-00:00 16 [Note] [MY-011825] [Xtrabackup] Done: Copying mysql/slow_log_214.sdi to /backups/db_fra1_self_hosted_0_2/v1/christy2/mysql/slow_log_214.sdi
2023-11-22T18:50:33.247351-00:00 0 [Note] [MY-011825] [Xtrabackup] Finished backing up non-InnoDB tables and files
2023-11-22T18:50:33.247490-00:00 0 [Note] [MY-011825] [Xtrabackup] Executing FLUSH NO_WRITE_TO_BINLOG BINARY LOGS
xtrabackup: Unknown error 1158
2023-11-22T18:50:33.250430-00:00 0 [ERROR] [MY-011825] [Xtrabackup] failed to execute query ‘FLUSH NO_WRITE_TO_BINLOG BINARY LOGS’ : 2013 (HY000) Lost connection to MySQL server during query