GreatSQL版本:8.0.32-26
导入文件大小:1.7G
导入时间:15:26 ~ 16:05
耗时:
配置:
- [client]
- socket = /data/soft/GreatSQL/mysql.sock
- default-character-set = utf8mb4
- [mysql]
- loose-skip-binary-as-hex
- prompt = "(\\D)[\\u@GreatSQL][\\d]>"
- no-auto-rehash
- default-character-set = utf8mb4
- [mysqld]
- user = mysql
- #port = 3306
- #server_id = 3306
- basedir = /usr/
- #datadir = /data/soft/GreatSQL
- #socket = /data/soft/GreatSQL/mysql.sock
- pid-file = mysql.pid
- character-set-server = utf8mb4
- collation-server = utf8mb4_0900_ai_ci
- init_connect = "SET NAMES utf8mb4 COLLATE utf8mb4_0900_ai_ci"
- skip-character-set-client-handshake
- skip_name_resolve = ON
- default_time_zone = "+8:00"
- bind_address = "0.0.0.0"
- secure_file_priv = /data/soft/GreatSQL
- # Performance
- lock_wait_timeout = 3600
- open_files_limit = 65535
- back_log = 1024
- max_connections = 1024
- max_connect_errors = 1000000
- table_open_cache = 2048
- table_definition_cache = 2048
- sort_buffer_size = 4M
- join_buffer_size = 4M
- read_buffer_size = 8M
- read_rnd_buffer_size = 4M
- bulk_insert_buffer_size = 64M
- thread_cache_size = 768
- interactive_timeout = 600
- wait_timeout = 600
- tmp_table_size = 96M
- max_heap_table_size = 96M
- max_allowed_packet = 64M
- net_buffer_shrink_interval = 180
- sql_generate_invisible_primary_key = ON
- loose-lock_ddl_polling_mode = ON
- loose-lock_ddl_polling_runtime = 200
- # Logs
- log_timestamps = SYSTEM
- log_error = mysqld.log
- log_error_verbosity = 3
- # 慢查询日志
- slow_query_log = ON
- log_slow_extra = ON
- slow_query_log_file = slow.log
- long_query_time = 0.01
- log_queries_not_using_indexes = ON
- log_throttle_queries_not_using_indexes = 60
- min_examined_row_limit = 100
- log_slow_admin_statements = ON
- log_slow_replica_statements = ON
- log_slow_verbosity = FULL
- # binlog
- log_bin = binlog
- binlog_format = ROW
- sync_binlog = 1
- binlog_cache_size = 4M
- max_binlog_cache_size = 6G
- max_binlog_size = 1G
- binlog_space_limit = 500G
- binlog_rows_query_log_events = ON
- binlog_expire_logs_seconds = 604800
- binlog_checksum = CRC32
- binlog_order_commits = OFF
- gtid_mode = ON
- enforce_gtid_consistency = ON
- # InnoDB
- innodb_buffer_pool_size = 8G
- innodb_buffer_pool_instances = 8
- innodb_data_file_path = ibdata1:12M:autoextend
- innodb_flush_log_at_trx_commit = 1
- innodb_log_buffer_size = 32M
- innodb_redo_log_capacity = 4G
- innodb_doublewrite_files = 2
- innodb_max_undo_log_size = 4G
- innodb_io_capacity = 4000
- innodb_io_capacity_max = 8000
- innodb_open_files = 65534
- innodb_flush_method = O_DIRECT
- innodb_lru_scan_depth = 4000
- innodb_lock_wait_timeout = 10
- innodb_rollback_on_timeout = ON
- innodb_print_all_deadlocks = ON
- innodb_online_alter_log_max_size = 4G
- innodb_print_ddl_logs = ON
- innodb_status_file = ON
- innodb_status_output = OFF
- innodb_status_output_locks = ON
- innodb_sort_buffer_size = 64M
- innodb_adaptive_hash_index = OFF
- innodb_numa_interleave = OFF
- innodb_spin_wait_delay = 20
- innodb_print_lock_wait_timeout_info = ON
- innodb_change_buffering = none
- kill_idle_transaction = 300
- innodb_data_file_async_purge = ON
- #innodb monitor settings
- #innodb_monitor_enable = "module_innodb,module_server,module_dml,module_ddl,module_trx,module_os,module_purge,module_log,module_lock,module_buffer,module_index,module_ibuf_system,module_buffer_page,module_adaptive_hash"
- #pfs settings
- performance_schema = 1
- #performance_schema_instrument = '%memory%=on'
- performance_schema_instrument = '%lock%=on'
- [mysqld@3306]
- datadir=/data/soft/GreatSQL/3306
- socket=/data/soft/GreatSQL/3306/mysql.sock
- port=3306
- server_id=103306
- log-error=/data/soft/GreatSQL/3306/mysqld.log
- [mysqld@3307]
- datadir=/data/soft/GreatSQL/3307
- socket=/data/soft/GreatSQL/3307/mysql.sock
- port=3307
- server_id=103307
- log-error=/data/soft/GreatSQL/3307/mysqld.log
复制代码 服务器IO:
MySQL版本:5.7.44
导入文件大小:1.7G
导入时间:15:29 ~ 15:35
耗时:6分钟
配置:
服务器IO:
|