مقابلات العمل2:32
مقابلات العمل · مبرمج · متقدّم
مقابلة مهندس DevOps: إصدار فاشل ومراجعة بلا لومDevOps Engineer: A Bad Release and a Blameless Review
- Adel
- Sara
0:00 / 2:32
النص
- AdelThanks for coming, Sara. I'd like to hear about a time something went wrong in production. Choose a real example.
- SaraSure. A year ago we released a new version of our checkout service on a Thursday afternoon. Within ten minutes, the error rate went from one percent to about twenty percent, and customers couldn't pay.
- AdelWhat did you do first?
- SaraFirst I confirmed it with the dashboards, so I wasn't guessing. Then I told the team in the incident channel that I was taking the lead. We decided to roll back first and investigate later, because customers were affected.
- AdelHow long did the rollback take?
- SaraAbout six minutes. We had kept the previous image and used the same pipeline, so it was one command. Without that, it would have taken much longer.
- AdelWhat was the cause?
- SaraA configuration value for the payment provider's timeout was missing in the production environment. It existed in staging, so our tests passed. The new code failed when it didn't find it.
- AdelWhat did you change so it wouldn't happen again?
- SaraThree things. First, the pipeline now checks that all required configuration values exist in each environment before it deploys. Second, we started canary releases, so a new version first gets five percent of traffic, and it rolls back automatically if errors rise. Third, we stopped releasing late on Thursdays.
- AdelIsn't a canary more work to maintain?
- SaraYes, it needs good metrics and alert rules, and it takes time to set up. But for a service that handles payments, the extra safety is worth it. For a small internal tool, I might not do it.
- AdelHow did you run the review afterwards?
- SaraWe held a blameless review within three days. We wrote the timeline, asked what in the system made the mistake easy, and not who made it. I also wrote down my own part. I'd approved the release without checking the production configuration.
- AdelWhy include your own part?
- SaraIf the lead hides their mistakes, nobody else will share theirs. Being honest makes people feel safe to report problems early.
- AdelOne last question. How do you handle secrets, like database passwords, in the pipeline?
- SaraThey are never in the code or in the image. They live in a secrets manager, and the service reads them at start-up. Access is limited by role, and we rotate them regularly. If I'm not sure about a specific tool, I'd check the documentation first.
- AdelThank you, Sara. That was a clear example. We'll be in touch next week.