Skip to Content
数据库可靠性工程:数据库系统设计与运维指南
book

数据库可靠性工程:数据库系统设计与运维指南

by Laine Campbell, Charity Majors
November 2020
Beginner to intermediate
214 pages
5h 10m
Chinese
Posts & Telecom Press
Content preview from 数据库可靠性工程:数据库系统设计与运维指南
64
第 5 章
基础设施工程
本章开始实现应用程序和分析人员所用的数据库集群。前面讨论了大量准备工作:
SLO
、
风险分析以及运维可见性。接下来的两章将讨论设计和构建对应环境的技术和模式。
本章主要讨论数据存储依赖的各种主机环境,包括
Serverless
和
DaaS
(
database as a service
,
数据库即服务)。我们将讨论这些数据存储可用的各种存储选项。
5.1
 主机
如前所述,数据存储不能存在于真空环境中,它们是在主机上运行的进程。数据库的主机
通常是物理服务器。过去
10
年中,选项增加了,出现了虚拟机、容器以及
Serverless
。下
面讨论每个选项的优缺点,并研究一些具体的实现细节。
5.1.1
 物理服务器
这里的物理服务器是指装有操作系统的独立主机,专门用于运行特定服务。在不成熟的
环境中,物理服务器在流量较低和资源较富裕的条件下运行多个服务。数据库可靠性工
程师首先应该把数据存储分离到独享的服务器中。数据存储所需的工作负载通常对
CPU
、
RAM
和存储
I/O
有较高要求。有些应用程序是
CPU
密集型或者
I/O
密集型的,但你不希
望它们与其他应用程序竞争资源。调优这些工作负载也是非常具体的,因此需要隔离才能
正确完成。
当在独享的物理主机上运行数据库时,数据库会与大量组件交互,并消耗这些组件的资
源。稍后会简单介绍这些组件。方便起见,这里的讨论基于
Linux
或
UNIX
系统。尽管很
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Java持续交付

Java持续交付

Daniel Bryant, Abraham Marín-Pérez
机器学习流水线实战

机器学习流水线实战

Hannes Hapke, Catherine Nelson
解密金融数据

解密金融数据

Justin Pauley

Publisher Resources

ISBN: 9787115548863