Migrating a Legacy Service: A Lesson in Eng/Ops Collaboration
18 November, 2020
I was managing a team at LinkedIn that inherited a set of legacy Python services that we were part-way to migrating to a new Java microservices stack. In the past, Engineering was focused on building the new stack and running the data migration while Operations was siloed and responsible for keeping the existing software alive - including some wild hacks and constant pages. Ultimately the existing Python services were causing regular production outages and the migration plan failed to address the underlying technical issues, so I needed to reprioritize and change how engineering and operations were working together.
Our NYC-based team flew to California to do a handoff with the existing development team because the project was in flight. I had my engineers pair with the team that was actively working on the migration, taking small tasks across both systems and getting mentorship so we could learn how to confidently make and release changes.
As part of the handoff, I facilitated meetings between SRE (Site Reliability Engineer) leads who were transferring ownership of this project. Participating in their exchange helped me compile the full state of the world of the software that was operating in production, including the existence of a script that rebooted hosts stuck on failing jobs that executed at least once a minute across the whole fleet.
During the first week we took over, there were two outages caused by that piece of software. In the first instance, I had a member of my team pair directly with the engineer who investigated and resolved the incident. In the second case, the engineer on my team was able to take the lead and, supported by another person on the team, resolve the problem. I noted commonalities between both incidents and action items we would take to prevent the problem from recurring.
Once I had a full understanding of the existing system and the migration plan, I wrote up an analysis that I shared with my manager and the team of leads in New York to secure buy-in for a process called code yellow -- active feature development would pause until the operations were stabilized to the point that both SRE and Engineering were satisfied. I defined the exit criteria for code yellow, which included completing action items from the past incidents, introducing connection pooling and connection limits to the database (preventing cascading failures), and introducing a paging rotation in engineering to support future outages. We targeted a two-week window and were able to exit code yellow on time.
Lastly, I worked with my Tech Lead to revamp the migration plan to address failures in long-running jobs in the first milestone and to improve the safety of the data migration. We communicated the new plan. then held daily standups where engineers and SREs worked together to balance addressing short-term stability issues and investing in the migration to get to a long-term safe and scalable state.
- Having Engineering and Operations both take responsibility for solving incidents (including being paged) instilled a culture of caring for the reliability of our software. The engineering team translated that into excitement for discovering and remediating existing bugs and producing high-quality designs for the new system. The SRE team also felt supported and collaborated regularly to define requirements for how the new system would behave and solve current problems.
- I got positive reinforcement for questioning the existing plan given new information. Even though it was controversial to delay our migration, we were ultimately able to provide better service to our customers and members, and we learned a lot about how to design our system to scale effectively.
Scale your coaching effort for your engineering and product teams
Develop yourself to become a stronger engineering / product leader
Vineet Puranik, Senior Engineering Manager at DocuSign, discusses the impact of roadmaps, organization, and proper management for your teams to procure growth.
Senior Engineering Manager at DocuSign
Saikrishna Desaraju, Engineering Manager at Marks & Spencer, draws from his personal experience to advise new managers on thriving in their roles.
Engineering Manager at Marks and Spencer
Muhammad Hamada, Engineering Manager at HelloFresh, addresses the uncertainties brought on by the pandemic, how these have affected our work environments, and how we can adapt.
Engineering Manager at HelloFresh
Roland Fiala, Senior Vice President of Engineering at Productsup, raises an interesting issue about autonomy in teams: does it hinder collaboration opportunities that lead to better problem-solving? He shares his system for promoting teamwork in engineering departments.
Senior Vice President of Engineering at Usergems
Dursun Mert Akkaya, Software Development Manager at Product Madness, encourages a change in mindset for heavily technical individuals as he explains the importance of communication skills.
Software Development Manager at Product Madness