Page MenuHomePhabricator

Hardware requirements for WDQS backend migration.
Closed, ResolvedPublic

Description

The Wikidata Platform team is currently (Q2) experimenting with and evaluating Blazegraph replacements on AWS.

Starting in Q3, we plan to move our deployments on-premis and begin gradually rolling out a Blazegraph replacement across codfw and eqiad. Initially we will need to over-provision the WDQS pool to allow both legacy and new systems to coexist.

We’ve briefly discussed requirements in sync calls, and our understanding is that we should be able to recover decommissioned hardware for this effort.

In terms of hardware, we would need 8 (ideally 12) new nodes that meet or exceed the standard WDQS configuration. The nodes should be split evenly across data centers. Ideally, we would like machines with 256 GB of RAM and SSDs, if available.

Initially, we’d like to request some flexibility regarding access, configuration, and data loads, with the goal of having a production-ready setup (integrated with GitOps and Debian packaging) by the end of Q3.

More details and a detailed migration plan will follow.

Details

Event Timeline

Do you already have an idea of the size of SSD that you need? Looking at current servers, I suspect you'll need at least 1TB, probably 2TB?

Reformating the request to make sure I understood the need:

dateserver needs eqiadserver needs codfwnotes
begining of Q33 servers in any datacenter for testing
end of Q34 production servers4 production serverstest servers can be repurposed as production servers if needed

We'd like to also know what the migration plan looks like. I suspect that we'll need a higher number of servers during migration, but that once the migration is completed, some servers will be decommissioned. I'm also not sure that the current estimates include both our internal and external endpoints.

It might be useful to have a view of the requirements for each cluster during and after the migration. Something like:

clustereqiadcodfwtotal
internal main235
internal scholarly134
external main121022
external scolarly235
total171936

Note that the table above is our current allocation of servers, and it has a few issues: we should have the same number of nodes in eqiad / codfw as each DC needs to be sized to support the full load. We are OK with having some clusters with only 2 nodes, in case of issues we can swap a server from one cluster to the other easily enough. Also note that this table does not show test servers.

@Jclark-ctr I can't see any reason these can't be connected to Nokia switches if going into rows C or D.

A few notes:

  • You may need to explicitly select the 'lsw1' switch in the Netbox provision script, having two in the rack will probably confuse it
  • We need to reimage these using UEFI with HTTP mode, so:
    • Provision need to be done to set them to UEFI mode:
sudo cookbook sre.hosts.provision --uefi <hostname>
  • Then reimage with UEFI mode selected and DHCP option 82 disabled:
sudo cookbook sre.hosts.reimage --new --uefi --no82 --os <os-name> -t <task> <hostname>

That will be the requirement for everything on the Nokia's for a while. Eventually we will make those options the defaults but right now they need to be selected. Let me know how it goes / if you hit any issues.

Hostnames: wdqs10[28-32]
Racking Proposal: I have Racked 5x servers and cabled. Just need a little bit of info to continue on
wdqs1028 D6
wdqs1029 D3
wdqs1030 C3
wdqs1031 B4
wdqs1032 A4
Networking Setup: # Conns: 1, Speed: 10G, VLAN: AAAA records:
Partitioning.
OS Distro:
Sub-team Technical Contact:

These have been Provisioned and are Reachable.

They need Raids any configs /firmware updated / puppet / Reimaged.

Firmware for idrac and bios have been updated.

bking renamed this task from Hardware requirments for WDSQ backend migration. to Hardware requirments for WDQS backend migration..Nov 14 2025, 6:35 PM

If we are able to repurpose existing hosts, that's great.

However, would everyone be OK with not ordering hardware specifically for WDQS until we have more of a discussion? Here's my reasoning:

  • We will have a new VM cluster that can handle VMs => 512 GB RAM within the next quarter or two ( T405964 / T405966 ).
  • WDQS-scholarly is overprovisioned. We need 2 hosts per DC just for redundancy, anything else could be repurposed.
  • WDQS-main is probably overprovisioned in both DCs.
  • Lifecycle work already takes up a large portion of DPE SRE time. Each host we add gives us a discrete amount of work (reimages/firmware updates/etc).

TLDR is that I would prefer to shrink our hardware footprint, not grow it. Using large hypervisors gives us the greatest amount of flexibility. Most workloads are running on VMs (or more accurately, containers inside VMs) these days, so I don't see much of a risk there. Let me know what y'all think.

Gehel renamed this task from Hardware requirments for WDQS backend migration. to Hardware requirements for WDQS backend migration..Nov 17 2025, 9:59 AM

However, would everyone be OK with not ordering hardware specifically for WDQS until we have more of a discussion? Here's my reasoning:

+1.
We don't have enough data yet to scope a full fleet hw refresh. And since all db options we've seen so far scale vertically, it'd make sense to invest in
less nodes with higher ram and cores (I don't have a good measure for ram/core ratio yet).

WDQS-scholarly is overprovisioned. We need 2 hosts per DC just for redundancy, anything else could be repurposed.
WDQS-main is probably overprovisioned in both DCs.

Great. Do you know how many nodes we could repurpose from main?

Do you have some stats for the internal deployment too?

Do you already have an idea of the size of SSD that you need? Looking at current servers, I suspect you'll need at least 1TB, probably 2TB?

We rolled out 4TB on AWS, and that seems over provisioned. 1TB would be the bare minimum, 2TB would be ideal.

Reformating the request to make sure I understood the need:

dateserver needs eqiadserver needs codfwnotes
begining of Q33 servers in any datacenter for testing
end of Q34 production servers4 production serverstest servers can be repurposed as production servers if needed

Let's assume that by end of Q3 / beginning Q4 we'll repurpose the test servers to prod.
Ideally we'd like to have sibling deployments of the blazegraph replacement for all WDQS "clusters", across all DCs. But that might be unfeasible.
As a rule of thumb, we'd like to prioritize external over internal deployments.

I don't have a timeline yet, but the migration won't be a full switch off blazegraph / switch on it's replacement. We'd like to start deploying the new database and expose it to a
limited amount of traffic at first (via UA/ip allowlist), and as we progress over the quarters phase out blazegraph traffic and nodes and move them to the new system.

Assuming only 8 servers, and despite WDQS being deployed active/active, would it make sense to over provision the active DC after march 21st?
This is based on https://wikitech.wikimedia.org/wiki/Wikidata_Query_Service and the traffic patterns in https://grafana.wikimedia.org/goto/dI-eAFivg?orgId=1:
[...] These clusters are in active/active mode (traffic is sent to both), but due to how we route traffic with GeoDNS, the primary cluster (usually eqiad) sees most of the traffic.[...]

Something like:

clustereqiadcodfwtotal
internal main101
internal scholarly101
external main313
external scolarly113
total628

Does it track?

However, would everyone be OK with not ordering hardware specifically for WDQS until we have more of a discussion? Here's my reasoning:

+1.
We don't have enough data yet to scope a full fleet hw refresh. And since all db options we've seen so far scale vertically, it'd make sense to invest in
less nodes with higher ram and cores (I don't have a good measure for ram/core ratio yet).

WDQS-scholarly is overprovisioned. We need 2 hosts per DC just for redundancy, anything else could be repurposed.
WDQS-main is probably overprovisioned in both DCs.

Great. Do you know how many nodes we could repurpose from main?

I'd say we can go down to 5 nodes per DC for main. Any of the nodes we repurposed in T405978 could be safely removed from their current roles to use for the BG replacement.

Do you have some stats for the internal deployment too?

2 nodes/DC is enough for each internal graph (2 for main, 2 for scholarly).

I'll whip up a spreadsheet similar to this one based on the discussion in this ticket and invite everyone to edit once it's ready.

Per IRC conversation with @RobH , the proposed hosts

wdqs1028
wdqs1029
wdqs1030
wdqs1031
wdqs1032

Corrected, these hosts DO have 10G NICs

Do not have 10G NICs. Unfortunately, that means they would not be suitable for these workloads given the amount of time it will take to load the graph over the network (it takes ~90m to load the graph on 10G, so ~15h on 1G). @Jclark-ctr Are there any 10G NICs available for these hosts? We don't necessarily need all 5 hosts, 1 or 2 hosts with 10G would still be helpful.

@bking do you need me to set up anything in codfw at this time?

Ah, thanks for the correction. I have crossed through the above.

@Jhancock.wm thanks for reaching out, but we are OK at the moment in CODFW. For some reason we just have more hosts there ;) .

@Jclark-ctr I'll respond with your requested racking info in T410406 shortly.

Change #1206935 had a related patch set uploaded (by Bking; author: Bking):

[operations/puppet@production] wdqs: add recycled hosts for migration

https://gerrit.wikimedia.org/r/1206935

Change #1206935 merged by Bking:

[operations/puppet@production] wdqs: add recycled hosts for migration

https://gerrit.wikimedia.org/r/1206935

Jclark-ctr claimed this task.