DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
  1. DZone
  2. Testing, Deployment, and Maintenance
  3. Deployment
  4. The Potential Fallout From GitLab's Downtime

The Potential Fallout From GitLab's Downtime

While the trigger of this outage was based on hackers trying to put a heavy load on the database, the result exposed issues with GitLab's backup and recovery processes.

John Vester user avatar by
John Vester
CORE ·
Feb. 12, 17 · Opinion
Like (2)
Save
Tweet
Share
22.20K Views

Join the DZone community and get the full member experience.

Join For Free

On February 1, 2017, in an effort to resolve an issue sparked by hackers, GitLab suffered a major outage when a staff member accidentally executed an rm -rf command on the wrong server.

As a result, around 300 GB of live production data was deleted and the GitLab service became unavailable for users of the free service offering. Fortunately, the outage did not impact (paid) Enterprise customers and they were not affected by the outage that quickly became public knowledge.

As you may recall from my series on RandomGenerator, I was one of those impacted. I started noticing issues before I realized there was a situation. At the time, I thought I had made a mistake with my experimentation of the Pipeline options, since my builds were not starting at all. I probably should have known the problems I was experiencing were out of my control when my master branch would not rebuild without any changes being made.

Timeline of Events

The rm -rf command, while the cause for a majority of the issues, was actually being performed to resolve an issue that occurred when a group of hackers was trying to place a heavy load on the GitLab servers. Below is an abbreviated timeline of what happened:

  • 01/31/2017 @ 06:00 PM (UTC): Hackers used snippets to place a heavy load on the database, causing downtime.

  • 01/31/2017 @ 10:00 PM (UTC): Database replication could not keep up, causing replication to stop working.

  • 01/31/2017 @ 11:00 PM (UTC): Attempting to fix the database issue, the rm -rf command is executed against the wrong server, removing 295.5 GB.

  • 02/01/2017 @ 12:00 AM (UTC): Begin recovery process.

By early afternoon (in the United States), GitLab announced via Twitter that "GitLab.com should be available to the public again." When I tried re-executing a build on RandomGenerator a few hours later, everything was working as expected. This is because my changes were made before the last valid snapshot was captured.

The Fallout

While the trigger of this whole process was based on hackers attempting to put a heavy load on the database, the result exposed issues with GitLab's backup and recovery processes. Prior to the outage, GitLab touted having five backup and replication techniques in place to provide redundancy in the event of an unforeseen circumstance. When put to the test on February 1, none of the five were reliable, and the restoration centered around a snapshot that someone just happened to take six hours prior to the outage. As a result, items that were made after that one snapshot was created were lost indefinitely.

The fallout from the outage, while not impacting (paying) Enterprise customers, is that GitLab wasn't able to maintain the data that was being stored on their service. I can only assume that at any given time, there are corporations and individuals who are evaluating GitLab as a potential solution for their needs. Certainly, the outage and inability to recover data will impact these potential customer's views.

Earlier in my career, I worked in the insurance industry as a network programmer. There were two times a year when we participated in what we called Disaster/Recovery exercises. During those events, we arrived at an off-site location with backup tapes and documentation from the company that housed our backup information. In our room of the off-site location were servers and computers that matched our specifications to be able to recover from a series outage.

Keep in mind, this was back in the days of having mainframes, minicomputers, and microcomputer servers. There was a lot going on during this exercise. We had one day to get the systems functional and ready for testing by groups of testers who would arrive expecting their systems and data to be fully in place. Each time, we experienced minor issues, but each time, we improved and met the expectations of our customers.

From what I understand with the GitLab outage, it doesn't seem like GitLab is employing this type of disaster and recovery exercise. If they following a periodic recovery exercise, I am certain their issues would not be as drastic as the reality that was experienced.

The Future of GitLab

I do believe the GitLab can survive this situation, but it is going to require them to exercise and document disaster and recovery events or something along those lines. They are going to have to prove to the world that they have learned from this situation.

As noted above, the Enterprise customers were not impacted by the outage, but I wonder if the same issues would have happened to paying customers if the rm -rf command was executed on one of their servers. If I was an Enterprise customer, I would be asking what steps they are taking to make sure this type of issue doesn't happen again — or at least looking at my contract to see what options exist to move toward another provider.

GitLab

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Spring Cloud: How To Deal With Microservice Configuration (Part 1)
  • What Should You Know About Graph Database’s Scalability?
  • Iptables Basic Commands for Novice
  • How Do the Docker Client and Docker Servers Work?

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: