Skip to Content
Web容量规划之美
book

Web容量规划之美

by Arun Kejariwal, John Allspaw
August 2019
Beginner to intermediate
232 pages
3h 50m
Chinese
China Electric Power Press Ltd.
Content preview from Web容量规划之美
138
4
5.
物理安装。
机器要从装货码头到机架,然后将电缆接到工作开关上需要多长时间?数据中
心工作人员需要参与还是自己动手?有足够的齿条螺丝吗?电钻电池?交叉电
缆?这整个过程要多久?
6.
操作系统
/
应用程序
/
配置部署。
在第
5
章,我们将讨论涉及操作系统的自动安装、软件自动部署和自动配置管
理的部署场景。然而,自动化并不意味着它不需要花费时间,也不意味着你不
用操心由此出现的任何问题。
7.
测试。
你有
QA
团队和
QA
环境吗?你对应用程序进行测试是指执行这样一些过程,
通过这些过程你能对要上线的每个功能点进行测试以确保一切正常。虽然整个
书都是关于这个主题,但是我仍然要提醒你:这是服务器投入生产环境的必要
步骤。
8.
部署新的设备。
直到大部分服务器开始工作才算结束。将一台服务器投入生产应该是非常简单
的。当你这样做的时候,你应该使用第
3
章列举出的过程测量新服务器的容量。
你可能希望通过在负载均衡集群中增加新机器来扩容它能承载的在线流量。如
果你知道新的容量缓解的流量瓶颈,你需要检测它对流量的影响。
增加容量后的影响
基础架构中的所有部分以各种方式交互。客户端请求
Web
服务器,
Web
服务器请
求数据库、缓存服务器、存储和所有其他组件。基础架构的各个层次共同工作影
响用户,以提供网页、网页片段或确认他们完成的操作,比如上传一张照片。
当其中一个或多个部分遇到瓶颈的时候,你要确定需要多少容量然后部署它。根
据这些部分或集群瓶颈的严重程度,你能发现新部署二阶效应,并最终只是简
单地把流量阻塞转移到架构的另一部分。例如,我们假设你的网站架构包括一个
Web
服务器和一个数据库。能用于扩展应用程序承载能力的方式之一是缓存昂贵
的数据库计算结果,像在架构中部署
memcached
能够达到这样的目标。概括地说,
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

GPT-3

GPT-3

Sandra Kublik, Shubham Saboo

Publisher Resources

ISBN: 9787519831073