The multi-instance architecture cluster is ready for public testing as of February 1st, 2021.
Testing instructions
Remember the new replicas are in beta right now, so there could be unexpected problems. Please let us now how it goes for you -or if you have any questions or problems- in the comments of this task or in any of the support channels like the #wikimedia-cloud IRC channel.
For testing the new replicas, you will need to use a new hostname. Everything else remains the same -within the announced restrictions, no cross-wiki joins, use the DB corresponding to the hostname you are using to connect-, so feel free to check the documentation on Wikitech.
Old | New |
---|---|
${PROJECT}.{analytics,web}.db.svc.eqiad.wmflabs | ${PROJECT}.{analytics,web}.db.svc.wikimedia.cloud |
eswiki.web.db.svc.eqiad.wmflabs | eswiki.web.db.svc.wikimedia.cloud |
s${SECTION_NUMBER}.{analytics,web}.db.svc.eqiad.wmflabs | s${SECTION_NUMBER}.{analytics,web}.db.svc.wikimedia.cloud |
s7.web.db.svc.eqiad.wmflabs | s7.web.db.svc.wikimedia.cloud |
Basic example
Logged in on Toolforge:
$ ssh login.toolforge.org $ mysql --defaults-file=replica.my.cnf -h eswiki.web.db.svc.wikimedia.cloud enwiki_p -e "select count(*) from page where page_title like \"%Alicante%\";" ERROR 1049 (42000): Unknown database 'enwiki_p' $ mysql --defaults-file=replica.my.cnf -h eswiki.web.db.svc.wikimedia.cloud eswiki_p -e "select count(*) from page where page_title like \"%Alicante%\";" +----------+ | count(*) | +----------+ | 1207 | +----------+ $ mysql --defaults-file=replica.my.cnf -h eswiki.analytics.db.svc.wikimedia.cloud eswiki_p -e "select count(*) from page where page_title like \"%Alicante%\";" +----------+ | count(*) | +----------+ | 1207 | +----------+
Advanced use cases
There is an up-to-date meta_p database on s7, it's totally correct right now *on the new replicas only*. It has been rebuilt but it could experience drift again in the future. Do not rely solely on it and consider falling back to parsing dblists from noc if there are issues.
If you are reading this and you don't know what it means, please just use the host names as specified above.
If you are can help test the cluster or want to migrate your tools early to ensure your tools will work well, please subscribe and comment and let us know if you have any questions or problems. Thank you!