Moving Darkless into our own rack, behind two Arista switches
Darkless now runs behind a pair of Arista 7050SX-64 switches in its own rack. This is how the network is built, what the move broke, and how we change switches we cannot touch.
I am a director at Darkless, a hosting company in Charlotte, North Carolina. We sell dedicated servers, VPS, and game hosting on hardware we own, from Ryzen 5 5600X machines up to Ryzen 9 9950X hosts with 256 GB of memory, and we announce our own address space to the internet under our own network number, AS197924.
This year we put all of that behind two Arista 7050SX-64 switches that we own, and this month we started moving our servers into our own rack behind them.
This is how the network is built, how the move went, and what it broke.

By the numbers#
- 2 switches, running as one pair.
- 20 Gbps of uplink to the datacenter's network.
- 5 minutes on the rollback timer for every switch change.
- A little over 3 hours from shutting the servers down to the main hypervisor being back on both switches.
- 1 day of credit on every active paid service, because the move ran over.
- 1 to 2 minutes of expected downtime if the primary switch dies, once the failover is tested.
What owning the switches gives us#
With our own switches, the first hop inside the rack is hardware we control:
- Our own BGP session. We announce our address space ourselves, over a session we configure.
- No single cable or switch to lose. The two switches behave as one, so a server can connect to both.
- A management network. The servers' remote management ports sit on their own network, reachable over our VPN. We can get to a machine's console when its operating system is down, without asking anyone to walk to the rack.
How the pair is wired#
The two switches run as an MLAG pair. To a server they look like one switch, and it bonds one cable to each of them with LACP. Four links between the switches keep them in step.
The uplink works the same way: the datacenter's side is one bundle that lands on both of our switches. An older 48-port switch hangs off the pair and handles the 1 Gb management ports.
The rollout#
The switches went in between June 22 and July 6. It was not clean:
- Downloads were broken at first. A BGP issue held inbound traffic back until the routing was accepted. The session has been stable since late July.
- The internet thought we were in Britain. Geolocation databases placed our addresses in the UK for a while. They now show Charlotte.
Two habits started that month and stuck. On June 24 we started a git repository that holds each switch's full configuration, committed after every change. On July 11 we added a Grafana dashboard for the switches' interfaces.
Changing switches we cannot touch#
We cannot walk up to the rack. Physical access needs a scheduled visit, so a change that locks us out is a very long outage. Every change to a switch goes through the same five steps:
- Save a snapshot of the running configuration.
- Make the change in a configuration session and read the diff before committing.
- Commit with a five-minute timer. If nobody confirms in time, the switch undoes the change by itself.
- Log in again from a fresh session and check that everything still works. Only then confirm.
- Save, and commit the full configuration to git.
The rule: a change is not done until you have proved you can still get back in.
Moving day#
On November 15 we shut the servers down at 01:54 UTC and moved them into the new rack.
The first problem was a cable. After the move, the main hypervisor's link to the first switch was dead. The switch reported no transceiver in that port. We replaced the cable and added a second one to the other switch, so the hypervisor is now bonded to both. The bond came up at 05:11 UTC.
Then came everything that only starts by hand. A full power-off is a test of every setting nobody has thought about since the day it was made:
- Some virtual servers stayed off. They were set not to start on boot, so they waited until we started them.
- Monitoring containers failed to start. They listen on the VPN address, and Docker started before the VPN had that address. We now let those hosts bind to an address that is not up yet.
- The backup server's clock had no time sources. Its time service looked up its servers before the network was up, found nothing, and kept nothing. A restart fixed it.
- The nightly backup never ran. Its 02:00 slot fell inside the move, and the catch-up setting did not fire. We ran it by hand.
The move ran past its window, so every active paid service got a day of credit.
The lesson: a reboot is a test of everything you configured by hand.
Making routing survive a dead switch#
The cabling is redundant. The routing was not. Our BGP session and our announcement lived on the first switch only. If it died, traffic from the datacenter would still reach the second switch, and nothing there would answer.
That evening we set up a takeover:
- The second switch carries the same BGP configuration, with the interface it needs shut down.
- A small script watches the link between the switches. When that link drops, it checks whether the first switch still answers on its separate management port.
- If the first switch is silent, the second one brings the interface up and takes over the session on the same address. Nothing changes on the datacenter's side.
- If the first switch still answers, the script does nothing. Only the link between them failed, and two switches both claiming the session would be worse than one.
When the first switch comes back, the second hands the session back. We expect a real failure to cost one to two minutes, most of it the other side noticing we are gone.
Monitoring changed with it. The alert used to mean "the session on the first switch is down". It now means "no switch has a session", with a separate warning when the second switch is the one holding it.
We know what this does not cover. A switch that hangs with its links still up triggers nothing. And we have not pulled the plug yet. The configuration, the script, and the monitoring are in place, and the real failover test is waiting for a maintenance window.
Redundant cables are not redundant routing.
What's next#
- The failover test, in a planned maintenance window.
- New storage. Virtual server disks and our primary backups move onto the datacenter's Ceph storage, over its own network that is never routed. The off-site copy becomes the second level.
- The rest of the servers. A second move was planned for the next day and did not happen. It will get a new window.
Thanks to everyone who hosts with Darkless for their patience on moving day. Our status page has the next window before it happens.