Hey everyone! I'm trying to wrap my head around what a DevOps engineer should be aware of when it comes to maintaining on-premise databases. I want to understand the complete process since I'm not fully sure about what the DBA team does. From a DevOps perspective, I know we typically need to roll out a restart for the specific applications that connect to the database after maintenance to ensure they're still functioning properly. I'd really appreciate any insights or knowledge on this topic!
2 Answers
Database maintenance can cover a lot of ground, and what the DBA team does really depends on the situation. Generally, you can think of DBAs as specialists much like DevOps, but focused on databases. Some common tasks during maintenance might include:
- Upgrading or patching database software
- Upgrading server operating systems
- Backing up and restoring databases
- Optimizing database performance
- Dealing with TLS certificates, among other things.
If you're unsure what exactly the DBA needs from you, it's a good idea to ask them directly—they'll probably be glad to help as long as you don’t interrupt them while they’re working on it! Also, familiarizing yourself with what database software is being used and learning some basic SQL can be really beneficial.
I think TechGuru52 made some excellent points about maintenance tasks. I’d also stress the importance of understanding the application's connection strategy, especially around failover resilience. Ideally, your application should automatically handle lost connections and reconnect without needing a manual restart. This is crucial because connections can drop for various reasons outside of just planned maintenance—so designing for resilience is key.

That's true! But I've noticed that some applications don’t maintain idle connections, which means they won’t reconnect after maintenance unless there’s active traffic. This is why many teams schedule maintenance during off-hours—to ensure that when the application restarts, it can establish a new connection on its own and any issues can be caught right away.