大型数据库的维护窗口和恢复

发布于 2024-10-09 02:01:17 字数 461 浏览 9 评论 0原文

我们的一个团队正在开发一个数据库,该数据库将有点大(~500GB)并从此增长(我知道 500 Gigs 对你们许多人来说可能看起来很小,但它将是我们商店中较大的数据库之一)。他们正在解决的问题之一是备份和恢复数据库。基本上,数据库将有几个“数据”表和一个用于存储图像/文档的表。我们需要完成以下任务:

  • 能够快速仅将数据表(无图像)备份和恢复到我们的测试服务器以进行调试和测试。
  • 如果发生灾难性数据库故障,恢复数据表只是为了让大部分应用程序尽快启动并运行。然后,尽可能恢复图像表。
  • 在分配的每晚时间窗口(几个小时)内备份数据库。

我的问题是:

  1. 是否有可能实现前两个目标,同时仍将图像存储在同一数据库中?如果是这样,我们会使用文件组、文件流还是其他东西?
  2. 其他商店如何在合理的时间窗口内备份数据库,同时保持高可用性?您是否复制到第二台服务器并从那里进行备份?

One of our teams is developing a database that will be somewhat large (~500GB) and grow from there (I know 500 Gigs may seem small to many of you, but it will be one of the larger databases in our shop). One of the issues they are grappling with is backing up and restoring the database. Basically, the database will have several "data" tables and one table used for storing images / documents. We need to accomplish the following:

  • Be able to quickly backup and restore only the data tables (sans images) to our test server for debugging and testing purposes.
  • In the event of a catastrophic database failure, restore the data tables only to get most of the application up and running ASAP. Then, restore the images table when possible.
  • Backup the database within the allotted nightly time window (a few hours).

My questions are:

  1. Is it possible to accomplish the first two goals while still having the images stored in the same database? If so, would we use filegroups, filestream, or something else?
  2. How do other shops backup their databases in a reasonable time window while maintaining high availability? Do you replicate to a second server and backup from there?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

究竟谁懂我的在乎 2024-10-16 02:01:17

我们也处理过类似的问题。我们是一家价值 2.5B 美元的太阳能制造公司,灾难恢复以及保持数据库备份对我们至关重要。我们的主要数据库是我们的工厂车间生产数据库。我们决定将该数据库剥离为维持生产所需的绝对必要的数据,并将其他数据移至其自己的数据库中。这为我们提供了高可用性和合理的备份/恢复时间。

就您而言,是否真的有必要将图像与其他数据存储在同一数据库中?我怀疑这不是,只是为了让一些问题更容易处理。我认为单独的文件组也可以帮助您解决问题。但您可能需要认真重新考虑是否所有内容都需要位于单个数据库中。

We have dealt with similar issues. We are a $2.5B solar manufacturing company and disaster recovery is critical for us, as well as keeping our databases backed up. Our main database is our plant floor production database. We decided to strip this database to the absolutely essential data needed to maintain production, and move other data off into its own database. This has allowed us high availability and reasonable backup/restore times.

In your case, is it really necessary to store images in the same database as your other data? I suspect it's not, and is just a case of making some issues easier to deal with. I think separate file groups would also help your problem. But you might want to seriously reconsider whether everything needs to be in a single DB.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文