DigitalOcean uses Lightstep as a Source of Truth for its Distributed System, Saving 1000 Hours of Developer Time per Month
DigitalOcean, a cloud platform provider with offices in New York, NY and Cambridge, MA, makes it simple for developers to build great software by offering transparent and affordable pricing, a simple and elegant user experience, a highly engaged developer community, and one of the most comprehensive libraries of open source resources in the world.
Distributed Technologies, Distributed Systems, and Distributed Teams
DigitalOcean’s business has grown exponentially over the last four years. The company has more than one million users and has shipped seven new offerings in the last 18 months. DigitalOcean’s legacy code was written in PERL and Ruby, but the team switched to Go, so they could better support the development velocity they needed for new product features and an increasingly complex distributed environment.
To support this growth and evolution, the leadership team decided to hire globally. Enabling teams to work across distributed locations was the best strategy to attract diverse, top-tier talent. The engineering team was thrilled to have the breadth of experience and knowledge that new hires across all continents brought. But, they realized DigitalOcean needed a source of truth for developers to see a complete, reliable picture of the system in real time that would help them all have the same baseline information.
Root Cause Analysis in a Heterogeneous System
With the software and team growing quickly, DigitalOcean wanted to improve the way they responded to errors and performance degradations. According to Dave Smith, Sr. Director of Engineering, DigitalOcean: “In our increasingly complex environment, it was impossible for a single person to understand the entire system. Root cause analysis was becoming difficult, and we couldn’t find an application performance monitoring system robust enough to work with our heterogeneity.”
Smith explained that individual engineering teams needed to see all the moving parts of the larger system because they had specialized on specific services. Teams were shipping features efficiently, but communication across different engineering teams had suffered.
Because it was so difficult to pinpoint the exact origins of a performance problem, it was also difficult to determine the right person to address the problem. Teams had logs at their disposal, but correlating events in log data was like looking for a needle in a haystack, wasting countless developer hours per week.
Lightstep Empowers Engineers
In the summer of 2016, Antoine Grondin, Sr. Engineer, discovered Lightstep through developers in the Go community. When he investigated, he found Lightstep was able to bring critical information about performance degradations front and center using clear dashboards and detailed traces. He also found that Lightstep could deliver a customized implementation to fit DigitalOcean’s complex needs. He looped in Sr. Director of Engineering, Dave Smith, who quickly confirmed Antoine’s instinct and saw that Lightstep could streamline cross-organization diagnostics. “Antoine found a technology that empowered engineers, and I knew the value he saw for his individual workflow would scale well to serve the rest of the organization. We value the customer experience, and ensuring the highest quality means we use the best solutions,” said Smith.
After instrumenting a few of his own services with OpenTracing and connecting them to Lightstep, Antoine and his team saw immediate benefits from the root cause and bottleneck identification. Then, they instrumented DigitalOcean’s Remote Procedure Call (RPC) layer, which serves as the standard communication layer in the company’s architecture. Immediately, DigitalOcean found that with Lightstep detailed alerts and traces, it became easy to identify which teams could mitigate an issue when it crossed teams and service boundaries.
As a result, they incorporated Lightstep into the company-wide service generator using OpenTracing. This ensures that any new microservice is OpenTracing-compatible and has the option of using Lightstep, which immediately gives the entire organization visibility into all services touched by the RPC. This helped DigitalOcean and its heterogeneous system get great value with Lightstep from the start.
Different Projects, Same Page
Distributed systems allow teams to focus on specific projects or services. As engineers get more specialized, staying up-to-date on everyone’s work and progress can be challenging. It’s also hard to understand who should be accountable for issues and performance degradations. By using the Lightstep dashboard feature, DigitalOcean is able to create graphs related to each team’s work. Lightstep is the unifying solution that DigitalOcean engineers use to get a real-time view of the entire system. It helps the distributed team understand where other team members are impacting the project. With Lightstep, multiple teams create their dashboards, which anyone in the organization can review, helping create a culture of transparency and accountability.
Another important aspect of this transparency is the way Lightstep has changed how teams collaborate on root cause analysis. Prior to using Lightstep, logs were one of the main ways to drill into issues and identify a root cause. It involved digging through multiple databases and external services to identify the problem, followed by a lengthy search through logs to find the cause. Identifying the responsible team to fix the issue was an additional challenge before final issue remediation. Using Lightstep, this process was cut down to 2-3 steps, completed in less than 15 minutes. Lightstep breaks down a performance issue into detailed traces, which connects the dots and explicitly highlights the service or component that holds the key to the root cause.
Lightstep not only acts as a connector for a distributed team because it is a source of truth, but it also helps engineers work together and improve productivity. By removing the process of digging through logs for root cause analysis, Lightstep saves the average backend engineer four hours per week. Collectively, this adds up to nearly 1000 hours per month of engineering time.
Lightstep serves as a one-stop shop to help engineers understand various elements of the DigitalOcean ecosystem. 100+ apps are now being monitored using Lightstep, and the organization is using the results to promote intra-company accountability and visibility. They also have 144 company-wide visible dashboards that help each team understand their services’ performance and see how it relates to all the other services hosted by other teams.
- Performing root cause analysis in a polyglot distributed system
- Providing a source of truth for developers to see a complete, reliable picture of the system in real time
- Creating a culture of trust and accountability
- Improving communication across different engineering teams
- Monitors 100+ apps in real time
- Saved 1000 hours per month of developer time
- Completed root cause analysis in minutes instead of hours or days
- Allows access to real-time, accurate snapshot of the entire system
- Headquarters: New York City
- Industry Segment: Information Technology
- Employees: 300
- Funding: $305 Million