Page MenuHomePhabricator

Eqiad worker nodes should be connected to 10G NICs
Open, HighPublic

Description

Serviceops has been investigating a number of memcached, coredns and etcd latency issues in eqiad over the past months.
This does not appear in codfw and the team suspects it may come from microbursts on the 1Gbps NIC workers:

It appears that wikikube-worker[1240-1289,1291-1327].eqiad.wmnet (87 hosts) have 10G NICs but are connected with 1G only.

Could we make sure those hosts are connected to 10G NICs to reduce the risk of microbursts we observe?

Personally I think you are best taking the following approach for hosts in rows C and D:

  • Take a few wikikube's out of service at a time
  • Downtime the hosts
  • Replace the current 1G link with a 10G link going to the same switch port
  • Edit the switch ports in Netbox changing the type from '1000base-t' to '10gbase-x-sfpp'
  • Run Homer against the switch
  • Reimage the hosts (or update the interface name in /etc/network/interfaces manually over serial and reboot)

We can test the process with just one to make sure it works ok, but I think it should.

For rows A and B we can follow the same process, but do so after the new Nokia switches are live which will be in the next few weeks.

Rows E and F are going to be trickier - we have the constraint that a 1G and 10G port cannot co-exist in the same block of 4 on the switches there, which means we cannot re-use the existing switch port the servers are already connected to.

So for those we can possibly stick with something similar to the above:

  • Pre-cable the 10G port on the hosts to a 10G-compatible switch port
  • Depool the hosts in groups of a few at a time
  • Manually update Netbox to move the switch port the host primary interface connects to
  • Manually update the host /etc/network/interface config to the new interface name
  • Run Homer against the switch to move the config from old -> new switch port
  • Reboot the host, test connectivity
  • Repool

Again it'll have to be tested with one and then we can proceed in batches.

Details

Event Timeline

Setting the priority to high as those latency issues are creating noise when investigating issues of DC Switchover, and we have one planned very soon.

from @JMeybohm over IRC:

wikikube-worker[1273,1276-1289,1291-1304,1307-1312,1314-1327].eqiad.wmnet are 49 which are not row A and B and are on bookworm - preferably we start with those (since we need to reimage IIRC on NIC change)

@MLechvien-WMF Row A and B have not been upgraded to 10g yet
I think the best way for DC Ops to complete our side is to run the additional cables and update the table with the new port information and cable IDs.

If that works for you, I can start adding the second cables and updating the port information right away.

ServerRowRackPositionRacking ticketNew Port 10gNew Cable ID
---------------------------------:--------------------------------------
wikikube-worker1240AA61T440696
wikikube-worker1241AA62T440696
wikikube-worker1242AA63T440696
wikikube-worker1243AA64T440696
wikikube-worker1244AA65T440696
wikikube-worker1245AA66T440696
wikikube-worker1246AA67T440696
wikikube-worker1247AA69T440696
wikikube-worker1248AA611T440696
wikikube-worker1249AA613T440696
wikikube-worker1250BB87T440696
wikikube-worker1251BB88T440696
wikikube-worker1252BB89T440696
wikikube-worker1253BB810T440696
wikikube-worker1254BB811T440696
wikikube-worker1255BB813T440696
wikikube-worker1256BB814T440696
wikikube-worker1257BB816T440696
wikikube-worker1258BB823T440696
wikikube-worker1259BB824T440696
wikikube-worker1260CC61T440696
wikikube-worker1261CC62T440696
wikikube-worker1262CC63T440696
wikikube-worker1263CC64T440696
wikikube-worker1264CC65T440696
wikikube-worker1265CC66T440696
wikikube-worker1266CC67T440696
wikikube-worker1267CC68T440696
wikikube-worker1268CC636T440696
wikikube-worker1269CC638T440696
wikikube-worker1270DD19T440696
wikikube-worker1271DD124T440696
wikikube-worker1272DD127T440696
wikikube-worker1273DD128T440696
wikikube-worker1274DD135T440696
wikikube-worker1275DD137T440696
wikikube-worker1276EE528T440696
wikikube-worker1277EE529T440696
wikikube-worker1278EE530T440696
wikikube-worker1279EE531T440696
wikikube-worker1280EE626T440696
wikikube-worker1281EE627T440696
wikikube-worker1282EE628T440696
wikikube-worker1283EE629T440696
wikikube-worker1284EE726T440696
wikikube-worker1285EE727T440696
wikikube-worker1286EE728T440696
wikikube-worker1287EE729T440696
wikikube-worker1288FF526T440696
wikikube-worker1289FF527T440696
wikikube-worker1291FF529T440696
wikikube-worker1292FF626T440696
wikikube-worker1293FF627T440696
wikikube-worker1294FF628T440696
wikikube-worker1295FF629T440696
wikikube-worker1296FF726T440696
wikikube-worker1297FF727T440696
wikikube-worker1298FF728T440696
wikikube-worker1299FF729T440696
wikikube-worker1300FF730T440696
wikikube-worker1301EE630T440696
wikikube-worker1302EE730T440696
wikikube-worker1303FF630T440696
wikikube-worker1304FF631T440696
wikikube-worker1305CC326T377021
wikikube-worker1306CC533T377021
wikikube-worker1307EE533T377021
wikikube-worker1308EE633T377021
wikikube-worker1309EE732T377021
wikikube-worker1310FF532T377021
wikikube-worker1311FF634T377021
wikikube-worker1312FF732T377021
wikikube-worker1313CC334T378185
wikikube-worker1314EE534T378185
wikikube-worker1315EE535T378185
wikikube-worker1316EE634T378185
wikikube-worker1317EE635T378185
wikikube-worker1318EE733T378185
wikikube-worker1319EE734T378185
wikikube-worker1320EE735T378185
wikikube-worker1321FF533T378185
wikikube-worker1322FF534T378185
wikikube-worker1323FF535T378185
wikikube-worker1324FF635T378185
wikikube-worker1325FF636T378185
wikikube-worker1326FF733T378185
wikikube-worker1327FF734T378185

Hi John,

Yes that approach sounds fine, thanks.

Hi John,

Yes that approach sounds fine, thanks.

It's not clear to me how the migration is going to be carried out here. Has a process been discussed / tested in terms of the Netbox changes etc. to get the machines back up on the new interface?

Personally I think you are best taking the following approach for hosts in rows C and D:

  • Take a few wikikube's out of service at a time
  • Downtime the hosts
  • Replace the current 1G link with a 10G link going to the same switch port
  • Edit the switch ports in Netbox changing the type from '1000base-t' to '10gbase-x-sfpp'
  • Run Homer against the switch
  • Reimage the hosts (or update the interface name in /etc/network/interfaces manually over serial and reboot)

We can test the process with just one to make sure it works ok, but I think it should.

For rows A and B we can follow the same process, but do so after the new Nokia switches are live which will be in the next few weeks.

Rows E and F are going to be trickier - we have the constraint that a 1G and 10G port cannot co-exist in the same block of 4 on the switches there, which means we cannot re-use the existing switch port the servers are already connected to.

So for those we can possibly stick with something similar to the above:

  • Pre-cable the 10G port on the hosts to a 10G-compatible switch port
  • Depool the hosts in groups of a few at a time
  • Manually update Netbox to move the switch port the host primary interface connects to
  • Manually update the host /etc/network/interface config to the new interface name
  • Run Homer against the switch to move the config from old -> new switch port
  • Reboot the host, test connectivity
  • Repool

Again it'll have to be tested with one and then we can proceed in batches.

But basically we will need to depool and downtime each host anyway to move it's connectivity from old to new port. And if doing so it's easier to keep on the same switch port to avoid potentially error-prone manual changes.

Hi John,

Yes that approach sounds fine, thanks.

It's not clear to me how the migration is going to be carried out here. Has a process been discussed / tested in terms of the Netbox changes etc. to get the machines back up on the new interface?

Personally I think you are best taking the following approach for hosts in rows C and D:

  • Take a few wikikube's out of service at a time
  • Downtime the hosts
  • Replace the current 1G link with a 10G link going to the same switch port
  • Edit the switch ports in Netbox changing the type from '1000base-t' to '10gbase-x-sfpp'
  • Run Homer against the switch
  • Reimage the hosts (or update the interface name in /etc/network/interfaces manually over serial and reboot)

We can test the process with just one to make sure it works ok, but I think it should.

For rows A and B we can follow the same process, but do so after the new Nokia switches are live which will be in the next few weeks.

Rows E and F are going to be trickier - we have the constraint that a 1G and 10G port cannot co-exist in the same block of 4 on the switches there, which means we cannot re-use the existing switch port the servers are already connected to.

So for those we can possibly stick with something similar to the above:

  • Pre-cable the 10G port on the hosts to a 10G-compatible switch port
  • Depool the hosts in groups of a few at a time
  • Manually update Netbox to move the switch port the host primary interface connects to
  • Manually update the host /etc/network/interface config to the new interface name
  • Run Homer against the switch to move the config from old -> new switch port
  • Reboot the host, test connectivity
  • Repool

Again it'll have to be tested with one and then we can proceed in batches.

But basically we will need to depool and downtime each host anyway to move it's connectivity from old to new port. And if doing so it's easier to keep on the same switch port to avoid potentially error-prone manual changes.

Thank you for the recommendation @cmooney I’m starting to pre-run the 10G cables and velcroing them to the existing cables at the switch so we can easily move everything over when we’re ready. I’m also documenting everything as I go. Here’s the Google Sheet where I’m tracking my progress.

https://docs.google.com/spreadsheets/d/19b7uye1shLZnya5cCSVR-pK4cYoNUKOQK3oDB8W9in8/edit?gid=1443052855#gid=1443052855

I posted in T440999#12440978 how I think we can tackle the hosts in row A/B. Because we are in the middle of the migration there we can wire the new 10G link in advance - to the new Nokia port - and then the actual migration can be done by service ops without co-ordinating the Netbox/Host/Switch changes with DC-Ops actually moving anything on site.

For rows E/F I know there are a lot of these which happen to be adjacent to each other on the switch, so entire 1G blocks of four are just for wikikube-workers, so we can potentially upgrade these all at once. For example:

cmooney@lsw1-f5-eqiad> show interfaces descriptions 
Interface       Admin Link Description
ge-0/0/4        up    up   es1038
ge-0/0/7        up    up   wikikube-worker1310
ge-0/0/8        up    up   wikikube-worker1288
ge-0/0/9        up    up   wikikube-worker1289
ge-0/0/10       down  down DISABLED
ge-0/0/11       up    up   wikikube-worker1291
ge-0/0/12       up    up   wikikube-worker1321
ge-0/0/13       up    up   wikikube-worker1322
ge-0/0/14       up    up   wikikube-worker1323

There are also quite a few like the above with a single "es" server in the block. es1036-es1040 are in this situation. I spoke with some of the guys in data-persistence and they are broadly agreeable to upgrade these from 1G to 10G too, the caveat there is they need to be drained in advance and can't all be done in the same window. Some are easier to drain than others, es1035 and es1037 are masters so they are more tricky.

@Jclark-ctr let me know if you think it's easier to plan to upgrade the "es" hosts at the same time, and get data persistence involved to co-ordinate with you guys and service ops on the planning, or if it's simpler to move the three wikikubes in each of those to another port instead.

@cmooney I would think upgrading the ES servers would be the easiest way to get an outlier out of the way, assuming they can do it at the same time instead of having to revisit it during another maintenance window. However, coordinating with two different teams adds another layer of difficulty.

@cmooney I would think upgrading the ES servers would be the easiest way to get an outlier out of the way, assuming they can do it at the same time instead of having to revisit it during another maintenance window. However, coordinating with two different teams adds another layer of difficulty.

Yes we have to do the blocks all at once. Who is co-ordinating this on the service ops side? I can create a task for the E/F servers and try to break down which are in which racks to start thinking about a timetable for the work. I know the wikikube's are generally easier to drain so that bit should be easy enough.

@cmooney I would think upgrading the ES servers would be the easiest way to get an outlier out of the way, assuming they can do it at the same time instead of having to revisit it during another maintenance window. However, coordinating with two different teams adds another layer of difficulty.

Yes we have to do the blocks all at once. Who is co-ordinating this on the service ops side?

I can take this (we're currently short on US timezone staff, so it def. needs some coordination).
We can depool up to 10 wikikube-worker nodes per DC in a batch. To make this faster I would say we plan to go with editing /etc/network/interfaces manually so DC-ops does not have to wait for reimages to complete before doing the next batch.

We can depool up to 10 wikikube-worker nodes per DC in a batch. To make this faster I would say we plan to go with editing /etc/network/interfaces manually so DC-ops does not have to wait for reimages to complete before doing the next batch.

Yep cool. As long as you are comfortable things will be ok afterwards. The host will come back fine with that, the only worry if any configuration files, iptables rules etc. might reference the old interface name and cause problems. But if we're happy on that it's the easier way forward for sure.

The above comments were related to the port-block constraint we have. Which means some of the "batches" will have one "es" server in them that data persistence manage. So it will be a 3-way co-ordination between dc-ops, service ops and data persistence for some of the batches. We can of course support. I've noted down the batches that need specific consideration for this in P96756

We can depool up to 10 wikikube-worker nodes per DC in a batch. To make this faster I would say we plan to go with editing /etc/network/interfaces manually so DC-ops does not have to wait for reimages to complete before doing the next batch.

Yep cool. As long as you are comfortable things will be ok afterwards. The host will come back fine with that, the only worry if any configuration files, iptables rules etc. might reference the old interface name and cause problems. But if we're happy on that it's the easier way forward for sure.

As you suggested we should test with one system ofc. but I think we will be fine with editing /etc/network/interfaces followed by a reboot to make the various components start from a clean slate. Assuming the interface and port change does not mean a new IP for the host. We also need to keep in mind that k8s workers are BGP peers but I would assume that the netbox change & homer run does take care of that automatically.

Mentioned in SAL (#wikimedia-operations) [2026-10-30T14:14:53Z] <topranks> depool wikikube-worker1240 to trial 1G -> 10G migration process for eqiad A/B wikikubes T440696

Cookbook cookbooks.sre.k8s.pool-depool-node started by cmooney@cumin1004 depool for host wikikube-worker1240.eqiad.wmnet completed:

  • wikikube-worker1240.eqiad.wmnet (PASS)
    • Host wikikube-worker1240.eqiad.wmnet depooled from wikikube-eqiad

To repool the nodes and remove the downtime, run:
cookbook sre.k8s.pool-depool-node --k8s-cluster 'wikikube-eqiad' --task-id T440696 pool --downtime-id 38a492a3-c173-4273-95fc-307792f7cea6 ''wikikube-worker1240.eqiad.wmnet''

Cookbook cookbooks.sre.k8s.pool-depool-node started by cmooney@cumin1004 pool for host wikikube-worker1240.eqiad.wmnet completed:

  • wikikube-worker1240.eqiad.wmnet (PASS)
    • Host wikikube-worker1240.eqiad.wmnet pooled in wikikube-eqiad

Cookbook cookbooks.sre.k8s.pool-depool-node started by cmooney@cumin1004 depool for host wikikube-worker1250.eqiad.wmnet completed:

  • wikikube-worker1250.eqiad.wmnet (PASS)
    • Host wikikube-worker1250.eqiad.wmnet depooled from wikikube-eqiad

To repool the nodes and remove the downtime, run:
cookbook sre.k8s.pool-depool-node --k8s-cluster 'wikikube-eqiad' --task-id T440696 pool --downtime-id 7768642a-4648-4b6a-9ea3-a67fab6e4db5 ''wikikube-worker1250.eqiad.wmnet''

Change #1361391 had a related patch set uploaded (by JMeybohm; author: JMeybohm):

[operations/cookbooks@master] k8s.pool-depool-node: Fix repool message

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

Cookbook cookbooks.sre.k8s.pool-depool-node started by jayme@cumin1004 pool for host wikikube-worker1250.eqiad.wmnet completed:

  • wikikube-worker1250.eqiad.wmnet (PASS)
    • Host wikikube-worker1250.eqiad.wmnet pooled in wikikube-eqiad

Change #1361391 merged by jenkins-bot:

[operations/cookbooks@master] k8s.pool-depool-node: Fix repool message

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