Pending hosts:
codfw - entire DC
To be run for db2019:
./software/dbtools/osc_host.sh --host=db2019.codfw.wmnet --dblist=/home/marostegui/git/mediawiki-config/dblists/s4.dblist --table=categorylinks "add primary key (cl_from,cl_to)" --method=ddl --replicate ./software/dbtools/osc_host.sh --host=db2019.codfw.wmnet --dblist=/home/marostegui/git/mediawiki-config/dblists/s4.dblist --table=categorylinks "drop key cl_from" --method=ddl --replicate ./software/dbtools/osc_host.sh --host=db2019.codfw.wmnet --dblist=/home/marostegui/git/mediawiki-config/dblists/s4.dblist --table=templatelinks "add primary key (tl_from,tl_namespace,tl_title)" --method=ddl --replicate ./software/dbtools/osc_host.sh --host=db2019.codfw.wmnet --dblist=/home/marostegui/git/mediawiki-config/dblists/s4.dblist --table=pagelinks "add primary key (pl_from,pl_namespace,pl_title)" --method=ddl --replicate ./software/dbtools/osc_host.sh --host=db2019.codfw.wmnet --dblist=/home/marostegui/git/mediawiki-config/dblists/s4.dblist --table=text "drop key old_id, add primary key (old_id)" --method=ddl --replicate ./software/dbtools/osc_host.sh --host=db2019.codfw.wmnet --dblist=/home/marostegui/git/mediawiki-config/dblists/s4.dblist --table=imagelinks "drop key il_from, add primary key (il_from,il_to)" --method=ddl --replicate ./software/dbtools/osc_host.sh --host=db2019.codfw.wmnet --dblist=/home/marostegui/git/mediawiki-config/dblists/s4.dblist --table=iwlinks "drop key iwl_from, add primary key (iwl_from,iwl_prefix,iwl_title)" --method=ddl --replicate ./software/dbtools/osc_host.sh --host=db2019.codfw.wmnet --dblist=/home/marostegui/git/mediawiki-config/dblists/s4.dblist --table=langlinks "drop key ll_from, add primary key (ll_from,ll_lang)" --method=ddl --replicate ./software/dbtools/osc_host.sh --host=db2019.codfw.wmnet --dblist=/home/marostegui/git/mediawiki-config/dblists/s4.dblist --table=log_search "drop key ls_field_val, add primary key (ls_field,ls_value,ls_log_id)" --method=ddl --replicate ./software/dbtools/osc_host.sh --host=db2019.codfw.wmnet --dblist=/home/marostegui/git/mediawiki-config/dblists/s4.dblist --table=math "drop key math_inputhash, add primary key (math_inputhash)" --method=ddl --replicate ./software/dbtools/osc_host.sh --host=db2019.codfw.wmnet --dblist=/home/marostegui/git/mediawiki-config/dblists/s4.dblist --table=module_deps "drop key md_module_skin, add primary key (md_module,md_skin)" --method=ddl --replicate ./software/dbtools/osc_host.sh --host=db2019.codfw.wmnet --dblist=/home/marostegui/git/mediawiki-config/dblists/s4.dblist --table=objectcache "drop key keyname, add primary key (keyname)" --method=ddl --replicate ./software/dbtools/osc_host.sh --host=db2019.codfw.wmnet --dblist=/home/marostegui/git/mediawiki-config/dblists/s4.dblist --table=querycache_info "drop key qci_type, add primary key (qci_type)" --method=ddl --replicate ./software/dbtools/osc_host.sh --host=db2019.codfw.wmnet --dblist=/home/marostegui/git/mediawiki-config/dblists/s4.dblist --table=site_stats "drop key ss_row_id, add primary key (ss_row_id)" --method=ddl --replicate ./software/dbtools/osc_host.sh --host=db2019.codfw.wmnet --dblist=/home/marostegui/git/mediawiki-config/dblists/s4.dblist --table=transcache "drop key tc_url_idx, add primary key (tc_url)" --method=ddl --replicate ./software/dbtools/osc_host.sh --host=db2019.codfw.wmnet --dblist=/home/marostegui/git/mediawiki-config/dblists/s4.dblist --table=user_former_groups "drop key ufg_user_group, add primary key (ufg_user,ufg_group)" --method=ddl --replicate ./software/dbtools/osc_host.sh --host=db2019.codfw.wmnet --dblist=/home/marostegui/git/mediawiki-config/dblists/s4.dblist --table=user_properties "drop key user_properties_user_property, add primary key (up_user,up_property)" --method=ddl --replicate
eqiad: all hosts except db1068 (master) and db1091
To be run for each individual host
./software/dbtools/osc_host.sh --host=$host.eqiad.wmnet --dblist=$shard.dblist --table=categorylinks "add primary key (cl_from,cl_to)" --method=ddl --no-replicate ./software/dbtools/osc_host.sh --host=$host.eqiad.wmnet --dblist=$shard.dblist --table=categorylinks "drop key cl_from" --method=ddl --no-replicate ./software/dbtools/osc_host.sh --host=$host.eqiad.wmnet --dblist=$shard.dblist --table=templatelinks "add primary key (tl_from,tl_namespace,tl_title)" --method=ddl --no-replicate ./software/dbtools/osc_host.sh --host=$host.eqiad.wmnet --dblist=$shard.dblist --table=pagelinks "add primary key (pl_from,pl_namespace,pl_title)" --method=ddl --no-replicate ./software/dbtools/osc_host.sh --host=$host.eqiad.wmnet --dblist=$shard.dblist --table=text "drop key old_id, add primary key (old_id)" --method=ddl --no-replicate ./software/dbtools/osc_host.sh --host=$host.eqiad.wmnet --dblist=$shard.dblist --table=imagelinks "drop key il_from, add primary key (il_from,il_to)" --method=ddl --no-replicate ./software/dbtools/osc_host.sh --host=$host.eqiad.wmnet --dblist=$shard.dblist --table=iwlinks "drop key iwl_from, add primary key (iwl_from,iwl_prefix,iwl_title)" --method=ddl --no-replicate ./software/dbtools/osc_host.sh --host=$host.eqiad.wmnet --dblist=$shard.dblist --table=langlinks "drop key ll_from, add primary key (ll_from,ll_lang)" --method=ddl --no-replicate ./software/dbtools/osc_host.sh --host=$host.eqiad.wmnet --dblist=$shard.dblist --table=log_search "drop key ls_field_val, add primary key (ls_field,ls_value,ls_log_id)" --method=ddl --no-replicate ./software/dbtools/osc_host.sh --host=$host.eqiad.wmnet --dblist=$shard.dblist --table=math "drop key math_inputhash, add primary key (math_inputhash)" --method=ddl --no-replicate ./software/dbtools/osc_host.sh --host=$host.eqiad.wmnet --dblist=$shard.dblist --table=module_deps "drop key md_module_skin, add primary key (md_module,md_skin)" --method=ddl --no-replicate ./software/dbtools/osc_host.sh --host=$host.eqiad.wmnet --dblist=$shard.dblist --table=objectcache "drop key keyname, add primary key (keyname)" --method=ddl --no-replicate ./software/dbtools/osc_host.sh --host=$host.eqiad.wmnet --dblist=$shard.dblist --table=querycache_info "drop key qci_type, add primary key (qci_type)" --method=ddl --no-replicate ./software/dbtools/osc_host.sh --host=$host.eqiad.wmnet --dblist=$shard.dblist --table=site_stats "drop key ss_row_id, add primary key (ss_row_id)" --method=ddl --no-replicate ./software/dbtools/osc_host.sh --host=$host.eqiad.wmnet --dblist=$shard.dblist --table=transcache "drop key tc_url_idx, add primary key (tc_url)" --method=ddl --no-replicate ./software/dbtools/osc_host.sh --host=$host.eqiad.wmnet --dblist=$shard.dblist --table=user_former_groups "drop key ufg_user_group, add primary key (ufg_user,ufg_group)" --method=ddl --no-replicate ./software/dbtools/osc_host.sh --host=$host.eqiad.wmnet --dblist=$shard.dblist --table=user_properties "drop key user_properties_user_property, add primary key (up_user,up_property)" --method=ddl --no-replicate
- labsdb1001.eqiad.wmnet
- labsdb1003.eqiad.wmnet
- db1069.eqiad.wmnet (Will not be done as s4 will go away from db1069 soon: T166546
- labsdb1009.eqiad.wmnet
- labsdb1010.eqiad.wmnet
- labsdb1011.eqiad.wmnet
- dbstore1001.eqiad.wmnet
- dbstore1002.eqiad.wmnet
- db1095.eqiad.wmnet
- db1053.eqiad.wmnet
- db1056.eqiad.wmnet
- db1059.eqiad.wmnet
- db1064.eqiad.wmnet
- db1081.eqiad.wmnet
- db1084.eqiad.wmnet
- db1091.eqiad.wmnet
- db1097.eqiad.wmnet
- db1068.eqiad.wmnet