Pending hosts:
codfw - entire DC
eqiad: all hosts except db1052 (master) and db1089
To be run for db2016:
./software/dbtools/osc_host.sh --host=db2016.codfw.wmnet --dblist=/home/marostegui/git/mediawiki-config/dblists/s1.dblist --table=categorylinks "add primary key (cl_from,cl_to)" --method=ddl --replicate ./software/dbtools/osc_host.sh --host=db2016.codfw.wmnet --dblist=/home/marostegui/git/mediawiki-config/dblists/s1.dblist --table=categorylinks "drop key cl_from" --method=ddl --replicate ./software/dbtools/osc_host.sh --host=db2016.codfw.wmnet --dblist=/home/marostegui/git/mediawiki-config/dblists/s1.dblist --table=templatelinks "add primary key (tl_from,tl_namespace,tl_title)" --method=ddl --replicate ./software/dbtools/osc_host.sh --host=db2016.codfw.wmnet --dblist=/home/marostegui/git/mediawiki-config/dblists/s1.dblist --table=pagelinks "add primary key (pl_from,pl_namespace,pl_title)" --method=ddl --replicate ./software/dbtools/osc_host.sh --host=db2016.codfw.wmnet --dblist=/home/marostegui/git/mediawiki-config/dblists/s1.dblist --table=text "drop key old_id, add primary key (old_id)" --method=ddl --replicate ./software/dbtools/osc_host.sh --host=db2016.codfw.wmnet --dblist=/home/marostegui/git/mediawiki-config/dblists/s1.dblist --table=imagelinks "drop key il_from, add primary key (il_from,il_to)" --method=ddl --replicate ./software/dbtools/osc_host.sh --host=db2016.codfw.wmnet --dblist=/home/marostegui/git/mediawiki-config/dblists/s1.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=db2016.codfw.wmnet --dblist=/home/marostegui/git/mediawiki-config/dblists/s1.dblist --table=langlinks "drop key ll_from, add primary key (ll_from,ll_lang)" --method=ddl --replicate ./software/dbtools/osc_host.sh --host=db2016.codfw.wmnet --dblist=/home/marostegui/git/mediawiki-config/dblists/s1.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=db2016.codfw.wmnet --dblist=/home/marostegui/git/mediawiki-config/dblists/s1.dblist --table=math "drop key math_inputhash, add primary key (math_inputhash)" --method=ddl --replicate ./software/dbtools/osc_host.sh --host=db2016.codfw.wmnet --dblist=/home/marostegui/git/mediawiki-config/dblists/s1.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=db2016.codfw.wmnet --dblist=/home/marostegui/git/mediawiki-config/dblists/s1.dblist --table=objectcache "drop key keyname, add primary key (keyname)" --method=ddl --replicate ./software/dbtools/osc_host.sh --host=db2016.codfw.wmnet --dblist=/home/marostegui/git/mediawiki-config/dblists/s1.dblist --table=querycache_info "drop key qci_type, add primary key (qci_type)" --method=ddl --replicate ./software/dbtools/osc_host.sh --host=db2016.codfw.wmnet --dblist=/home/marostegui/git/mediawiki-config/dblists/s1.dblist --table=site_stats "drop key ss_row_id, add primary key (ss_row_id)" --method=ddl --replicate ./software/dbtools/osc_host.sh --host=db2016.codfw.wmnet --dblist=/home/marostegui/git/mediawiki-config/dblists/s1.dblist --table=transcache "drop key tc_url_idx, add primary key (tc_url)" --method=ddl --replicate ./software/dbtools/osc_host.sh --host=db2016.codfw.wmnet --dblist=/home/marostegui/git/mediawiki-config/dblists/s1.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=db2016.codfw.wmnet --dblist=/home/marostegui/git/mediawiki-config/dblists/s1.dblist --table=user_properties "drop key user_properties_user_property, add primary key (up_user,up_property)" --method=ddl --replicate
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
- labsdb1003.eqiad.wmnet
- labsdb1001.eqiad.wmnet
- db1069.eqiad.wmnet (Will not be done as it is going to be decommissioned soon)
- labsdb1009.eqiad.wmnet
- labsdb1010.eqiad.wmnet
- labsdb1011.eqiad.wmnet
- db1095.eqiad.wmnet
- dbstore1001.eqiad.wmnet
- dbstore1002.eqiad.wmnet
- db1080.eqiad.wmnet
- db1083.eqiad.wmnet
- db1089.eqiad.wmnet
- db1073.eqiad.wmnet
- db1072.eqiad.wmnet
- db1066.eqiad.wmnet
- db1065.eqiad.wmnet
- db1055.eqiad.wmnet
- db1051.eqiad.wmnet
- db1047.eqiad.wmnet
- db1067.eqiad.wmnet
- db1052.eqiad.wmnet