inception调用pt-online-schema-change,相关参数如下:
inception_osc_alter_foreign_keys_method = rebuild_constraints
inception_osc_check_alter = on
inception_osc_check_interval = 5
inception_osc_check_replication_filters = OFF
inception_osc_chunk_size = 1000
inception_osc_chunk_size_limit = 4
inception_osc_chunk_time = 1
inception_osc_critical_thread_connected = 4000
inception_osc_critical_thread_running = 300
inception_osc_drop_new_table = on
inception_osc_drop_old_table = on
inception_osc_max_lag = 3
inception_osc_max_thread_connected = 2500
inception_osc_max_thread_running = 200
inception_osc_min_table_size = 16
inception_osc_recursion_method = none
以上inception参数对应的pt-online-schema-change的命令参数如下:
pt-online-schema-change
--alter " xx "
--alter-foreign-keys-method=rebuild_constraints
--check-alter=yes
--check-interval=5
--check-replication-filters=no
--chunk-size=1000
--chunk-size-limit=4
--chunk-time=1
--critical-load=thread_connected:4000,thread_running:300
--max-load=thread_connected:2500,thread_running:200
--drop-new-table=yes
--drop-old-table=yes
--max-lag=3
--recursion-method=none