Talks
Speakers
Events
Topics
Sign in
Home
Talks
Speakers
Events
Topics
Leaderboard
Use
Analytics
Sign in
Suggest modification to this talk
Title
Description
RailsConf 2019 - When it all goes Wrong (with Postgres) by Will Leinweber _______________________________________________________________________________________________ Cloud 66 - Pain Free Rails Deployments Cloud 66 for Rails acts like your in-house DevOps team to build, deploy and maintain your Rails applications on any cloud or server. Get $100 Cloud 66 Free Credits with the code: RailsConf-19 ($100 Cloud 66 Free Credits, for the new user only, valid till 31st December 2019) Link to the website: https://cloud66.com/rails?utm_source=-&utm_medium=-&utm_campaign=RailsConf19 Link to sign up: https://app.cloud66.com/users/sign_in?utm_source=-&utm_medium=-&utm_campaign=RailsConf19 _______________________________________________________________________________________________ Your phone wakes you up in the middle of the night. Your app is down and you're on call to fix it. Eventually you track it down to "something with the db," but what's wrong exactly? And of course, you're sure that nothing changed recently… Knowing what to fix, and even where to start looking, is a skill that takes a while to develop. Especially since Postgres normally works very well most of the time, not giving you get practice! In this talk, you'll learn not only the common failure cases and how to fix them, but also how to quickly figuring out what's wrong in the first place.
Date
Summarized using AI?
If this talk's summary was generated by AI, please check this box. A "Summarized using AI" badge will be displayed in the summary tab to indicate that the summary was generated using AI.
Show "Summarized using AI" badge on summary page
Summary
Markdown supported
In the talk titled "When it all goes Wrong (with Postgres)" presented by Will Leinweber at RailsConf 2019, the speaker addresses common issues developers encounter with PostgreSQL databases. Leinweber, a professional with extensive experience in PostgreSQL management, emphasizes the difficulty in diagnosing problems when Postgres operates smoothly most of the time. This talk aims to guide developers in identifying and resolving common database issues, particularly when users suddenly face performance problems despite no apparent changes. **Key Points Discussed:** - **Common Issues with Postgres:** - Many problems stem from applications overusing the database rather than Postgres itself. - Familiarity with common failure cases will facilitate quicker problem-solving. - **Identifying Problems:** - The importance of understanding the system as a combination of resources: CPU, memory, disk I/O, and parallelism. - A framework for diagnosing issues based on the relationship between these resources. - **Key Assumptions:** - Hardware quality is fundamental. - Postgres should not crash; if it does, further expert analysis may be necessary. - **Diagnostic Techniques:** - Utilizing tools like `perf`, `gdb`, `iostat`, and others to analyze running queries and system performance. - Recognizing common patterns in database operation to identify the root of issues. - **Real-world Analogies and Examples:** - An analogy comparing Postgres issues to wartime aircraft studies illustrates the importance of understanding failure patterns to improve system resilience. - Highlighting the significance of ‘backlog’ work and how certain users can drastically affect performance. **Conclusions and Takeaways:** - Strengthening application architecture and maintaining proper database resource allocation can prevent performance issues. - Proactive measures like implementing rate limiting and scaling hardware can avert many common disasters. - Developers are encouraged to familiarize themselves with diagnostic tools while keeping an eye on common usage patterns to maintain healthy database operations. - Understanding the cyclical nature of system stress can help prepare developers to prevent outages.
Suggest modifications
Cancel