Beta Cluster/zh

The Beta Cluster is a functional, production-like environment in the Cloud VPS that is suitable for final-stage testing of new features. It was initially created as a way to provide an exact copy of the WMF production cluster (including db hosts, apaches, logging, squids, varnish caching, image scalers, etc.) using Cloud VPS instances.

Current Status

Beta Cluster remains a significant part of MediaWiki's development ecosystem, serving as a pre-production environment to test and deploy code before it reaches production, reshaped its purpose and management but is largely unmaintained.

In 2024, the Developer Experience group took Product Stewardship of Beta Cluster[1] and are currently focused on giving it clear direction and narrowing its use cases. The long-term goal is to transform the Beta Cluster into a Playground environment for experimentation and testing without replicating every aspect of production. As part of this effort, the team is also working actively on tools like PatchDemo/Catalyst to ensure the most common use cases of Beta are covered as on-demand isolated testing environments. While this transformation is ongoing, the team is prioritizing only very essential updates (E.g. PHP 8.1 Upgrade) and not addressing smaller issues in its current state.

Developer Experience encourage users of Beta Cluster to submit a feature request in Phabricator if their requirements are not adequately addressed yet by PatchDemo/Catalyst or other tools. Their input will guide improvements and help prioritize features.

How it works

它在git master上運行,其MediaWiki核心和擴展代碼大約每十分鐘更新一次。 Beta维基媒体測試各個維基子計劃的其中之一。 它使用自己的SUL登錄(與生產环境分開)。例如,en.wikipedia.beta.wmflabs.org 帳戶也適用於 en.wikisource.beta.wmflabs.org,但不適用於任何生產环境的维基站点(如 en.wikipedia.org)。

Open tasks

Open tasks can be found in the workboard in Phabricator. Those task are currently used as a way to catalogue issues or recurring problems, but are not addressed or observed immediately.

测试Beta上的更改

請參閱部署到Beta,瞭解部署步驟。

來自beta的日誌將會發送到Logstash,且可以在beta-logs.wmcloud.org中查看。 這個網站目前由密碼保護,請查閱ssh deployment-deploy04.deployment-prep.eqiad1.wikimedia.cloud sudo cat /root/secrets.txt,以獲得個別帳戶的資訊。 如果你的EventLogging事件没有显示在仪表板上,也许可以查看一下日志和数据库的可能问题。 如果還是不起作用,也许事件记录和/或机器需要重新启动。 发個信息给#wmf-analytics 的朋友们。

如果你需要在Beta上运行一个维护脚本,请ssh到deployment-deploy04.deployment-prep.eqiad1.wikimedia.cloud(必需通过bastion.wmcloud.org的proxying)。

If you need user rights on a beta cluster wiki, use the createAndPromote.php maintenance script (see above for running maintenance scripts) to promote your account. If you don't have shell access, file a task in Phabricator. Note that certain permissions, such as interface administrator and checkuser, require your account to have two-factor authentication (2FA) enabled, just like in production.

如果你需要检查数据库,它们被託管在这所列出的那些名字为*dbXX*的机器上:https://openstack-browser.toolforge.org/project/deployment-prep

如果你只需要运行某些查询,可以ssh到deployment-deploy04.deployment-prep.eqiad1.wikimedia.cloud并运行sql testwiki或用你需要的任何其他名字為db開頭的機器。

通过在#wikimedia-releng中使用前缀"!log ",将信息貯藏到beta管理日誌中。

參見

历史文档

Category:Testing/zh
Category:Testing/zh Category:WMF Projects/zh