In T202764#4587022, @Krinkle wrote:@Marostegui So to confirm, recentchanges db hosts are the same within and between eqiad/codfw. But the api db hosts are different, right? Only api dbhosts in codfw have the two extra indexes. Is that right?
- Queries
- All Stories
- Search
- Advanced Search
- Transactions
- Transaction Logs
Feed Advanced Search
Advanced Search
Advanced Search
Sep 17 2018
Sep 17 2018
• Marostegui updated the task description for T201011: Apply schema change to translate_reviews in WMF.
• Marostegui updated the task description for T201011: Apply schema change to translate_reviews in WMF.
• Marostegui updated the task description for T114117: Drop externallinks.el_from_namespace on wmf databases.
• Marostegui updated the task description for T51191: Dropping rc_moved_to_title/rc_moved_to_ns on wmf databases.
Sep 16 2018
Sep 16 2018
• Marostegui added a comment to T202764: Wikidata produces a lot of failed requests for recentchanges API.
Sep 15 2018
Sep 15 2018
Removed the DBA tag here as there is nothing for us to do. I will remain subscribed here just in case!
Thanks!
The creation of the tables shouldn't be an issue and I'm fine with that.
However, I would prefer if we do not enable the extension until we are back on eqiad (so that means 11th Oct)
• Marostegui updated subscribers of T202764: Wikidata produces a lot of failed requests for recentchanges API.
So taking a quick look at the schema differences between rc groups in different DCs, they look the same:
Sep 14 2018
Sep 14 2018
Confirmed from my end too!
/admin1-> help [Usage] show [<options>] [<target>] [<properties>] [<propertyname>== <propertyvalue>] set [<options>] [<target>] <propertyname>=<value> cd [<options>] [<target>]
• Marostegui updated the task description for T204311: Upgrade all core (mediawiki) database servers to mariadb 10.1.
• Marostegui updated the task description for T204311: Upgrade all core (mediawiki) database servers to mariadb 10.1.
• Marostegui removed a project from T204311: Upgrade all core (mediawiki) database servers to mariadb 10.1: Epic.
• Marostegui moved T204311: Upgrade all core (mediawiki) database servers to mariadb 10.1 from Triage to In progress on the DBA board.
• Marostegui updated the task description for T204311: Upgrade all core (mediawiki) database servers to mariadb 10.1.
• Marostegui updated the task description for T201011: Apply schema change to translate_reviews in WMF.
• Marostegui closed T89737: Make several mediawiki table fields unsigned ints on wmf databases as Resolved.
All done
• Marostegui closed T89737: Make several mediawiki table fields unsigned ints on wmf databases, a subtask of T189107: DB meta task for next DC failover issues, as Resolved.
• Marostegui updated the task description for T89737: Make several mediawiki table fields unsigned ints on wmf databases.
• Marostegui closed Restricted Task, a subtask of T189107: DB meta task for next DC failover issues, as Resolved.
• Marostegui updated the task description for T89737: Make several mediawiki table fields unsigned ints on wmf databases.
• Marostegui updated the task description for T187089: Fix WMF schemas to not break when comment store goes WRITE_NEW.
The biggest table is on metawiki which is 22M, so probably good to go directly on the masters someday early in the morning.
• Marostegui closed T189101: Deploy schema change for adding numeric primary key to wbqc_constraints table, a subtask of T189107: DB meta task for next DC failover issues, as Resolved.
• Marostegui updated the task description for T189101: Deploy schema change for adding numeric primary key to wbqc_constraints table.
• Marostegui added a comment to T189101: Deploy schema change for adding numeric primary key to wbqc_constraints table.
Table imported on testwikidatawiki on eqiad hosts:
root@db1075.eqiad.wmnet[testwikidatawiki]> show create table wbqc_constraints; +------------------+------------------------------------------------------------------------------------------------------------------- | Table | Create Table +------------------+------------------------------------------------------------------------------------------------------------------- | wbqc_constraints | CREATE TABLE `wbqc_constraints` ( `constraint_id` int(10) unsigned NOT NULL AUTO_INCREMENT, `constraint_guid` varbinary(255) NOT NULL, `pid` int(11) NOT NULL, `constraint_type_qid` varbinary(255) NOT NULL, `constraint_parameters` blob, PRIMARY KEY (`constraint_id`), UNIQUE KEY `wbqc_constraints_guid_uniq` (`constraint_guid`), KEY `wbqc_constraints_pid_index` (`pid`) ) ENGINE=InnoDB AUTO_INCREMENT=3 DEFAULT CHARSET=binary |
In T204127#4581347, @jcrespo wrote:db2068 has been recloned, but needs time to catch up replication and then be slowly repooled with the above patch.
• Marostegui updated the task description for T187089: Fix WMF schemas to not break when comment store goes WRITE_NEW.
Sep 13 2018
Sep 13 2018
• Marostegui updated the task description for T89737: Make several mediawiki table fields unsigned ints on wmf databases.
• Marostegui added a comment to T189101: Deploy schema change for adding numeric primary key to wbqc_constraints table.
The table has been imported in eqiad hosts for wikidatawiki
root@neodymium:/home/marostegui# mysql.py -hdb1071 wikidatawiki -e "show create table wbqc_constraints\G" *************************** 1. row *************************** Table: wbqc_constraints Create Table: CREATE TABLE `wbqc_constraints` ( `constraint_id` int(10) unsigned NOT NULL AUTO_INCREMENT, `constraint_guid` varbinary(63) NOT NULL, `pid` int(11) NOT NULL, `constraint_type_qid` varbinary(25) NOT NULL, `constraint_parameters` blob, PRIMARY KEY (`constraint_id`), UNIQUE KEY `wbqc_constraints_guid_uniq` (`constraint_guid`), KEY `wbqc_constraints_pid_index` (`pid`) ) ENGINE=InnoDB AUTO_INCREMENT=22320 DEFAULT CHARSET=binary ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=8
• Marostegui updated the task description for T189101: Deploy schema change for adding numeric primary key to wbqc_constraints table.
db1071 GTID enabled
• Marostegui updated the task description for T89737: Make several mediawiki table fields unsigned ints on wmf databases.
• Marostegui updated the task description for T89737: Make several mediawiki table fields unsigned ints on wmf databases.
db2054 has been recloned, it is catching up. Once it has sync'ed with its master, I will remove its downtime and repool it into s7
db1068 GTID enabled
GTID enabled on all eqiad masters but db1071 (s8) and db1068 (s4) as they are currently running a big alter.
All done
• Marostegui updated the task description for T89737: Make several mediawiki table fields unsigned ints on wmf databases.
• Marostegui updated the task description for T89737: Make several mediawiki table fields unsigned ints on wmf databases.
• Marostegui updated the task description for T187089: Fix WMF schemas to not break when comment store goes WRITE_NEW.
• Marostegui moved T89737: Make several mediawiki table fields unsigned ints on wmf databases from Blocked external/Not db team to In progress on the DBA board.
• Marostegui moved T144010: Drop eu_touched in production from Blocked external/Not db team to In progress on the DBA board.
• Marostegui changed the status of T187089: Fix WMF schemas to not break when comment store goes WRITE_NEW from Stalled to Open.
• Marostegui changed the status of T187089: Fix WMF schemas to not break when comment store goes WRITE_NEW, a subtask of T166733: Deploy refactored comment storage, from Stalled to Open.
• Marostegui changed the status of T89737: Make several mediawiki table fields unsigned ints on wmf databases from Stalled to Open.
• Marostegui changed the status of T89737: Make several mediawiki table fields unsigned ints on wmf databases, a subtask of T51188: [DO NOT USE] Schema changes for Wikimedia wikis (tracking) [superseded by #Blocked-on-schema-change], from Stalled to Open.
• Marostegui updated the task description for T187089: Fix WMF schemas to not break when comment store goes WRITE_NEW.
• Marostegui changed the status of T144010: Drop eu_touched in production, a subtask of T132628: Drop eu_touched, from Stalled to Open.
• Marostegui changed the status of T144010: Drop eu_touched in production, a subtask of T51188: [DO NOT USE] Schema changes for Wikimedia wikis (tracking) [superseded by #Blocked-on-schema-change], from Stalled to Open.
• Marostegui updated the task description for T153182: Perform schema change to add externallinks.el_index_60 to all wikis.
Replication has been disconnected from eqiad to codfw:
root@neodymium:/home/marostegui# for i in db2048 db2035 db2043 db2051 db2052 db2039 db2040 db2045 db2034 es2016 es2017; do mysql.py -h$i -e "show slave status\G" ; done root@neodymium:/home/marostegui#
• Marostegui moved T204006: Execute the schema change for Partial Blocks from Blocked external/Not db team to Backlog on the DBA board.
• Marostegui moved T204006: Execute the schema change for Partial Blocks from Unclear/blocked to proceed to Backlog on the Schema-change-in-production board.
Thanks
• Marostegui moved T204184: Is WikimediaMaintenance/ourUsers.php still used from Triage to Done on the DBA board.
We, DBAs, don't use it.
In T204127#4578456, @jcrespo wrote:In T204127#4578185, @Marostegui wrote:We could probably reclone one of these hosts (for example db2054) from an eqiad slave, and then move it under codfw master. That way we don't have to depool an active codfw s7 slave, as that might be too much, 3 hosts out.
Once db2054 is up to date and under codfw master, we can reclone db2068 from it.If only there was some kind of "provisioning server"- you know, a place were to take backups and recover them to production! ;-D Spoiler, there is one, we call it dbstore200X! No need for a slow process of cloning cross-dc. This is exactly the reason why we setup dbstore. We use it right now for logical backups, but we can use it for a cold copy too :-)
Sep 12 2018
Sep 12 2018
We could probably reclone one of these hosts (for example db2054) from an eqiad slave, and then move it under codfw master. That way we don't have to depool an active codfw s7 slave, as that might be too much, 3 hosts out.
Once db2054 is up to date and under codfw master, we can reclone db2068 from it.
• Marostegui added a comment to T174802: Archive and drop education program (ep_*) tables on all wikis.
With course_token you mean that column on the ep_courses table?
If that is the case, there is no need to play around with the views for mysqldump, as that table has course_token already filtered on sanitariums with the triggers:
| ep_courses_insert | INSERT | ep_courses | SET NEW.course_token = '' | ep_courses_update | UPDATE | ep_courses | SET NEW.course_token = ''
• Marostegui closed T71182: Database upgrade MariaDB 10: Metadata access in INFORMATION_SCHEMA causes complete blocks as Resolved.
I am going to close this as resolved with the creation of information_schema_p and the current content (tables and schemata)
The only part pending apparently was:
• Marostegui triaged T180158: Investigate using macbre/index-digest over WMF MW sql query workload as Low priority.
• Marostegui moved T197486: prop=revisions API timing out for a specific user and pages they edited from Pending comment to Backlog on the DBA board.
I have renamed the file from research-grants.sql.erb to analytics-grants.sql.erb so we can have all the users that are actually active (T200801#4570548) on dbstore1002 puppetized.
Also added some new users that were not on that file yet.
We are still auditing and we will probably drop all the ones that are not really used as per T200801#4570548 //cc @elukey - for now. All the ones that do have had connections are now on that sql file. If we end up discovering that some others aren't active but should be there, I will edit that file.
I am going to close this for now as resolved and we can modify the file depending on the outcome of T200801
• Marostegui added a comment to T195578: Deploy access to performance_schema/sys for the administrative mediawiki account (mediawiki deployers).
Security any comments about ^
• Marostegui moved T202367: Productionize dbproxy101[2-7].eqiad.wmnet and dbproxy200[1-4] from Backlog to Pending comment on the DBA board.
• Marostegui moved T204074: mariadb::service and managed services don't play well on Stretch from Backlog to Pending comment on the DBA board.
• Marostegui moved T156462: Framework to transfer files over the LAN from Pending comment to Backlog on the DBA board.
• Marostegui moved T156462: Framework to transfer files over the LAN from In progress to Pending comment on the DBA board.
• Marostegui moved T183983: Re-institute query killer for the analytics WikiReplica from Pending comment to In progress on the DBA board.
• Marostegui moved T196376: Productionize old/temporary eqiad sanitariums from Pending comment to Backlog on the DBA board.
• Marostegui moved T85756: Make (redacted) log_search table available on Wiki Replicas from Pending comment to Backlog on the DBA board.
Sep 11 2018
Sep 11 2018
• Marostegui updated subscribers of T204074: mariadb::service and managed services don't play well on Stretch.
• Marostegui moved T204074: mariadb::service and managed services don't play well on Stretch from Triage to Backlog on the DBA board.
As there are no more actionables for the DBA Team here I will untag it.
I will remain subscribed here though in case you have further questions.
Once this is good to go just send the schema change ticket as described in the link in my previous comment above and we will take it from there.
In T204006#4574614, @aezell wrote:
- We'd like the change on all production databases but I know "all databases" isn't a valid answer for your work. However, I'm new and don't know all of the possible databases. I'm consulting with my team to get the right answer. In the short term, testwiki and betawiki would be a good start, I suppose.
Thanks for amending the task. I still have some questions.
In T204006#4574533, @aezell wrote:@Marostegui No problem. I'll get it fixed up. Sorry for the confusion.
• Marostegui moved T204006: Execute the schema change for Partial Blocks from Triage to Blocked external/Not db team on the DBA board.
Content licensed under Creative Commons Attribution-ShareAlike (CC BY-SA) 4.0 unless otherwise noted; code licensed under GNU General Public License (GPL) 2.0 or later and other open source licenses. By using this site, you agree to the Terms of Use, Privacy Policy, and Code of Conduct. · Wikimedia Foundation · Privacy Policy · Code of Conduct · Terms of Use · Disclaimer · CC-BY-SA · GPL