換個角度,聊聊全鏈路壓測

{"type":"doc","content":[{"type":"heading","attrs":{"align":null,"level":2},"content":[{"type":"text","text":"前言","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"之前自己也寫過好幾篇關於全鏈路壓測的文章或者博客,最近看了infoQ上","attrs":{}},{"type":"link","attrs":{"href":"https://www.infoq.cn/profile/455FE8F8C3F6C8/publish","title":null},"content":[{"type":"text","text":"infoQ-數列科技楊德華","attrs":{}}]},{"type":"text","text":"的專欄,覆盤了下自己以往在全鏈路壓測實施方面的工作,發覺還有很多可以做的更好的地方。就以這篇文章來做個總結,順帶說說我自己實施全鏈路壓測工作方面的一些收穫和經驗。","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"18年初:","attrs":{}},{"type":"link","attrs":{"href":"https://www.cnblogs.com/imyalost/p/8439910.html","title":null},"content":[{"type":"text","text":"聊聊全鏈路壓測","attrs":{}}]}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"19年初:","attrs":{}},{"type":"link","attrs":{"href":"https://www.cnblogs.com/imyalost/p/10525766.html","title":null},"content":[{"type":"text","text":"再談全鏈路壓測","attrs":{}}]}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"20年初:","attrs":{}},{"type":"link","attrs":{"href":"https://www.cnblogs.com/imyalost/p/12524078.html","title":null},"content":[{"type":"text","text":"全鏈路壓測探索實踐之路","attrs":{}}]}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"19年雙十一備戰:","attrs":{}},{"type":"link","attrs":{"href":"https://www.cnblogs.com/imyalost/p/11811142.html","title":null},"content":[{"type":"text","text":"全鏈路壓測第一次實踐","attrs":{}}]}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"20年618大促總結:","attrs":{}},{"type":"link","attrs":{"href":"https://www.cnblogs.com/imyalost/p/13236978.html","title":null},"content":[{"type":"text","text":"生產全鏈路壓測實踐之道","attrs":{}}]}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"20年雙11大促總結:","attrs":{}},{"type":"link","attrs":{"href":"https://www.cnblogs.com/imyalost/p/14204484.html","title":null},"content":[{"type":"text","text":"全鏈路壓測落地和演進之路","attrs":{}}]}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"heading","attrs":{"align":null,"level":2},"content":[{"type":"text","text":"觀點","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"很多同學問過我關於全鏈路壓測如何實施落地,如何在生產環境實現的技術問題。這裏我想借用上面infoQ專欄大佬的一句話:","attrs":{}},{"type":"text","marks":[{"type":"underline","attrs":{}},{"type":"strong","attrs":{}}],"text":"生產全鏈路壓測,表面是一個技術工程,實際上是一個很有難度的組織協調項目","attrs":{}},{"type":"text","text":"。","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"下面我會從幾個方面來談談我個人現在對於全鏈路壓測的一些思考和經驗總結。","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"heading","attrs":{"align":null,"level":2},"content":[{"type":"text","text":"技術","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"很多同學說起全鏈路壓測,都喜歡深究它的技術細節,這沒錯。但全鏈路壓測想要成功的在生產環境實施,更多的是考驗組織協調能力的一個項目。至於技術層面,能說的有很多,這次我們先聊聊比較核心的一些技術點。","attrs":{}}]},{"type":"heading","attrs":{"align":null,"level":3},"content":[{"type":"text","text":"隔離方案","attrs":{}}]},{"type":"heading","attrs":{"align":null,"level":4},"content":[{"type":"text","text":"流量隔離","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"既然我們的前提是在生產環境進行壓測,那麼無論是趁着業務流量低峯期,還是生產全鏈路壓測常態化,對於壓測流量的隔離區分,是一定要首先解決的。如下圖所示:","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"image","attrs":{"src":"https://static001.geekbang.org/infoq/d1/d1108abb88006f0f56d0ad537e078509.png","alt":"image","title":"image","style":[{"key":"width","value":"75%"},{"key":"bordertype","value":"none"}],"href":null,"fromPaste":true,"pastePass":true}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"目前業內比較常見的方案,有如下兩種:","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","marks":[{"type":"color","attrs":{"color":"#353535","name":"user"}},{"type":"bgcolor","attrs":{"color":"#91D5FF","name":"user"}}],"text":"1)中間件改造+流量標透傳(業務侵入較多);","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","marks":[{"type":"color","attrs":{"color":"#353535","name":"user"}},{"type":"bgcolor","attrs":{"color":"#91D5FF","name":"user"}}],"text":"2)agent+字節碼增強技術(業務侵入較低);","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","marks":[{"type":"color","attrs":{"color":"#353535","name":"user"}}],"text":"這兩種方案的選型,需要基於研發團隊的整體技術棧以及業務迭代情況等因素綜合考慮。比如我司,採用的是第一種方案。基礎架構團隊基於spring cloud全家桶二次開發了一套全鏈路壓測框架的腳手架,由業務研發團隊接入。","attrs":{}}]},{"type":"heading","attrs":{"align":null,"level":4},"content":[{"type":"text","marks":[{"type":"color","attrs":{"color":"#353535","name":"user"}}],"text":"資源隔離","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","marks":[{"type":"color","attrs":{"color":"#353535","name":"user"}}],"text":"資源隔離主要指的服務器、Redis、MQ、DB等資源。一般來講大部分企業的業務都是白天流量較高,凌晨是流量低谷。在流量低谷期,直接壓測生產的服務,風險相對較小且可控。如果生產服務穩定性較好,且能做到按比例資源隔離以及壓測流量識別透傳,那麼第二種方案反而可以考慮。","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","marks":[{"type":"color","attrs":{"color":"#353535","name":"user"}}],"text":"且如果要採用資源隔離方案,那麼核心鏈路梳理和區分工作是必須要做的。","attrs":{}},{"type":"text","text":"區分核心和非核心業務,核心業務分級(P0/P1/P2),由小及大的不斷覆蓋。","attrs":{}}]},{"type":"heading","attrs":{"align":null,"level":4},"content":[{"type":"text","text":"數據隔離","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"壓測會產生大量的數據,這些數據如何處理是DBA團隊面臨的最大挑戰。目前來說,業內比較通用的方式都是採用影子庫表或者壓測數據帶特殊標識進入生產業務庫表,以tag或者特殊字段做區分。他們的區別如下:","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"1)影子庫+影子表:一般生產庫和影子庫都是在同一個DB實例上,基礎數據會脫敏後同步過去;","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"2)生產業務表標識:在生產業務表中新增壓測標識字段,壓測數據需要定時清理(餓了麼採用這套方案);","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"我司採用的方案如下:","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"DB路由:①.同instance不同schema(風險大);②.不同instance同schema(安全性高,成本高);","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"Redis路由:①.key值加統一前綴;②.Redis-client做路由;","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"MQ路由:採用影子topic模式,帶壓測標識的數據進入影子topic;","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"ES路由:①.index統一加前綴,提供統一ES client做數據訪問,由client做路由;","attrs":{}}]},{"type":"heading","attrs":{"align":null,"level":4},"content":[{"type":"text","text":"日誌隔離","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"壓測會產生大量日誌,爲了便於正常的業務問題跟進排查和壓測區分,個人建議還是對帶壓測標的日誌進行前綴處理,這樣運維同學也可以快速的清理,以免磁盤寫滿導致生產故障。","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"heading","attrs":{"align":null,"level":3},"content":[{"type":"text","text":"改造工作","attrs":{}}]},{"type":"heading","attrs":{"align":null,"level":4},"content":[{"type":"text","text":"監控平臺","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"監控系統需要透明化,且壓測監控大盤和業務監控大盤需要單獨配置。其中有如下的點需要注意:","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"1)設定告警閾值、告警降噪、專項業務告警;","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"2)專項告警,需要覆蓋核心接口、監控大盤、業務大盤;","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"3)優點:問題快速定位,避免不透明影響問題的發現和修復速率;","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"4)容量規劃:藉助監控平臺的賦能,快速梳理清楚系統架構、拓撲關係,才便於做容量規劃;","attrs":{}}]},{"type":"heading","attrs":{"align":null,"level":4},"content":[{"type":"text","text":"流控平臺","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"流量發起和服務保護功能是全鏈路壓測成功開展的必要前提。服務保護方面,業內常用的組件有Sentinel、","attrs":{}},{"type":"text","marks":[{"type":"color","attrs":{"color":"#404040","name":"user"}}],"text":"Hystrix,他們一般都是基於線程池/信號量來進行流控。","attrs":{}}]},{"type":"heading","attrs":{"align":null,"level":4},"content":[{"type":"text","text":"預案平臺","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"常說大促時候,","attrs":{}},{"type":"text","marks":[{"type":"underline","attrs":{}},{"type":"strong","attrs":{}}],"text":"服務穩定性有三大利器:限流、熔斷和降級","attrs":{}},{"type":"text","text":"。前面介紹了流控(限流和熔斷),那麼降級是什麼呢?按照我個人的經驗,降級預案一般分爲主動降級和緊急降級。","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","marks":[{"type":"bgcolor","attrs":{"color":"#91D5FF","name":"user"}}],"text":"主動降級:商品首頁緩存&數據兜底、小紅點、客戶端限流浮層、重試機制等;","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","marks":[{"type":"bgcolor","attrs":{"color":"#91D5FF","name":"user"}}],"text":"緊急降級:收貨地址、浮動費率、運費計算、運營位固定等方案;","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"當然,無論是主動降級方案還是緊急降級方案,都是需要進行業務梳理和細化拆分的,還要和產品運營等團隊的同學提前溝通好,避免跨團隊溝通的Gap產生。","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"還有些前置事項,比如業務拆分(訂單拆分爲正逆向),比如不同業務服務集羣隔離,比如DB垂直拆分、讀寫分離、分庫分表等方案,這些都是需要考慮的。","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"至於異地多活、故障演練、災備演練,這些更需要成熟的技術體系建設和多方達成一致,才能更好的保障生產服務的穩定性。總的來說,全鏈路壓測除了技術,更多的還需要溝通與協調。","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"heading","attrs":{"align":null,"level":3},"content":[{"type":"text","text":"壓測實施","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"到了壓測實施階段,基本就只能硬着頭皮硬上了,特別是第一次搞生產全鏈路壓測,至今記憶深刻。生產全鏈路壓測,需要注意以下幾點:","attrs":{}}]},{"type":"heading","attrs":{"align":null,"level":4},"content":[{"type":"text","text":"服務擴容","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"需要注意的是,在生產開始壓測前,系統需要進行前置擴容,避免資源不足導致整體容量瓶頸。還需要注意的是,在大促峯值流量來臨時,儘可能不要去執行擴容操作。","attrs":{}}]},{"type":"heading","attrs":{"align":null,"level":4},"content":[{"type":"text","text":"壓測方式","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"至於壓測執行方式,業內能玩的基本就是這幾種方式。當然,壓測前的預熱,是必不可少的。壓測執行方式方面,主要有如下幾項:","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"1)階梯遞增:這種方式的目的在於不斷遞增流量,找到系統的性能拐點;","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","marks":[{"type":"color","attrs":{"color":"#353535","name":"user"}}],"text":"2)峯值脈衝:有些特殊場景,需要區分流量是逐漸變大,還是驟升後保持高峯;","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","marks":[{"type":"color","attrs":{"color":"#353535","name":"user"}}],"text":"3)系統摸高:關閉熔斷降級限流等fallback功能,提高壓測流量觀察系統性能轉折點;","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","marks":[{"type":"color","attrs":{"color":"#353535","name":"user"}}],"text":"4)預案驗證:開啓熔斷限流等fallback功能,功能是否生效,系統是否能扛得住;","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","marks":[{"type":"color","attrs":{"color":"#353535","name":"user"}}],"text":"5)破壞性測試:主要爲了驗證預案的有效性,類似於容災演練時的預案執行演練,驗證後手搶救方案。","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","marks":[{"type":"color","attrs":{"color":"#353535","name":"user"}}],"text":"注意:","attrs":{}},{"type":"text","marks":[{"type":"underline","attrs":{}},{"type":"color","attrs":{"color":"#353535","name":"user"}},{"type":"strong","attrs":{}}],"text":"執行第4/5項時,建議進行生產業務的功能正確性驗證!","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"預案評審","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"在預案評審和演練階段,","attrs":{}},{"type":"text","marks":[{"type":"color","attrs":{"color":"#353535","name":"user"}}],"text":"進行預案演練的目的主要有如下幾項:","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","marks":[{"type":"color","attrs":{"color":"#353535","name":"user"}}],"text":"1)驗證預案是否生效;","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","marks":[{"type":"color","attrs":{"color":"#353535","name":"user"}}],"text":"2)針對預案設定閾值進行測試調優;","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","marks":[{"type":"color","attrs":{"color":"#353535","name":"user"}}],"text":"3)驗證預案生效時服務本身的性能表現;","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","marks":[{"type":"color","attrs":{"color":"#353535","name":"user"}}],"text":"4)針對上述專項場景進行實戰演練;","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"建議:按照我個人的實施經驗,建議輸出對應的","attrs":{}},{"type":"text","marks":[{"type":"underline","attrs":{}},{"type":"strong","attrs":{}}],"text":"全鏈路壓測SOP&大促作戰SOP","attrs":{}},{"type":"text","text":"。","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"heading","attrs":{"align":null,"level":2},"content":[{"type":"text","text":"管理","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"前面關於全鏈路壓測的觀點,已經提到了:","attrs":{}},{"type":"text","marks":[{"type":"underline","attrs":{}},{"type":"strong","attrs":{}}],"text":"生產全鏈路壓測,表面是一個技術工程,實際上是一個很有難度的組織協調項目","attrs":{}},{"type":"text","text":"。從管理的角度出發,下面三項是管理者或者項目推動者應該高度重視的。","attrs":{}}]},{"type":"heading","attrs":{"align":null,"level":3},"content":[{"type":"text","text":"目標","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"大家應該都瞭解SMART體系,在考慮實施全鏈路壓測時候,下面幾點SMART目標,也是需要重點考慮的。","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"目標與標準:","attrs":{}},{"type":"text","marks":[{"type":"color","attrs":{"color":"#353535","name":"user"}}],"text":"SMART5大元素","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","marks":[{"type":"color","attrs":{"color":"#353535","name":"user"}}],"text":"1)目標必須是具體的(Specific)——業務指標、技術指標、容量指標等;","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","marks":[{"type":"color","attrs":{"color":"#353535","name":"user"}}],"text":"2)目標必須是可以衡量的(Measurable)——從不同的維度和數據來評估;","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","marks":[{"type":"color","attrs":{"color":"#353535","name":"user"}}],"text":"3)目標必須是可以達到的(Attainable)——不要設定過高的脫離現實的目標;","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","marks":[{"type":"color","attrs":{"color":"#353535","name":"user"}}],"text":"4)目標必須和其他目標具在相關性(Relevant)——對業務以及技術團隊有什麼價值;","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","marks":[{"type":"color","attrs":{"color":"#353535","name":"user"}}],"text":"5)目標必須說明明確的截止期限(Time-based)——根據日期和任務資源倒排期,保障項目成功;","attrs":{}}]},{"type":"heading","attrs":{"align":null,"level":3},"content":[{"type":"text","text":"流程","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"總結一下,生產全鏈路壓測這個技術項目,可以用三個維度和五個階段來概括。","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","marks":[{"type":"bgcolor","attrs":{"color":"#91D5FF","name":"user"}}],"text":"五個階段:準備階段、執行階段、故障修復、項目覆盤、項目結項;","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","marks":[{"type":"bgcolor","attrs":{"color":"#91D5FF","name":"user"}}],"text":"三個維度:做什麼、風險如何處理、事項review(保持信息同步)。","attrs":{}}]},{"type":"heading","attrs":{"align":null,"level":3},"content":[{"type":"text","text":"組織","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"日常工作中,我們一般有版本迭代的常規需求以及一些特殊的獨立項目。非業務或者弱業務的事情,可以通過虛擬的組織架構來明確定義不同崗位的職責,避免混亂。","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"一般來說,生產全鏈路壓測中,虛擬的組織架構一般有如下幾種角色:","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","marks":[{"type":"strong","attrs":{}}],"text":"Sponsor","attrs":{}},{"type":"text","text":":發起&組織人;","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","marks":[{"type":"strong","attrs":{}}],"text":"PMO","attrs":{}},{"type":"text","text":":項目管理、項目經理;","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","marks":[{"type":"strong","attrs":{}}],"text":"Principal","attrs":{}},{"type":"text","text":":(主)負責人;","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","marks":[{"type":"strong","attrs":{}}],"text":"Owner","attrs":{}},{"type":"text","text":":業務&技術某一領域負責人(領頭人);","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"image","attrs":{"src":"https://static001.geekbang.org/infoq/98/987773e6155a9b6bac2d56d42cd686c3.png","alt":"image.png","title":"image.png","style":[{"key":"width","value":"75%"},{"key":"bordertype","value":"none"}],"href":null,"fromPaste":true,"pastePass":true}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"heading","attrs":{"align":null,"level":2},"content":[{"type":"text","text":"價值","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"最開始我司推動實施全鏈路壓測時,我畫了下面這張圖,用來體現全鏈路壓測的價值:","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"image","attrs":{"src":"https://static001.geekbang.org/infoq/87/87f949f4a73093352093a32f55008b79.png","alt":"image","title":"image","style":[{"key":"width","value":"75%"},{"key":"bordertype","value":"none"}],"href":null,"fromPaste":true,"pastePass":true}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"從我個人角度來說,全鏈路壓測的最大價值在於:","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","marks":[{"type":"bgcolor","attrs":{"color":"#91D5FF","name":"user"}}],"text":"1)成本:降低環境成本,人力成本(不斷實踐,投入的人力越來越少);","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","marks":[{"type":"bgcolor","attrs":{"color":"#91D5FF","name":"user"}}],"text":"2)問題:提前發現大流量下系統潛在的隱患,提升系統穩定性;","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","marks":[{"type":"bgcolor","attrs":{"color":"#91D5FF","name":"user"}}],"text":"3)容量:提升性能,識別短板,機器配比有了明確的數值,避免不必要的冗餘;","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","marks":[{"type":"bgcolor","attrs":{"color":"#91D5FF","name":"user"}}],"text":"4)限流:倒逼各個服務&系統進行限流降級等服務穩定性保障措施,預案驗證演練;","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","marks":[{"type":"bgcolor","attrs":{"color":"#91D5FF","name":"user"}}],"text":"5)ROI:降低溝通成本,團隊練兵協調組織能力提升,形成自己的一些技術規範和手冊;","attrs":{}}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}}]}
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章