The DevOps Handbook
failure, tested for failure, and evolved beyond it b. ESTABLISH A JUST, LEARNING CULTURE i. Unjust responses to incidents 1. Impede safety 2. Promote fear over mindfulness 3. Create bureaucracy rather Bad Apple Theory – you cannot eliminate error by eliminating the people who caused the error. 1. “Human error is not our cause of troubles; instead, human error is a consequence of the design of the0 码力 | 9 页 | 25.13 KB | 5 月前3The DevOps Handbook
Examples of ineffective quality controls include: a. Requiring another team to complete tedious, error-prone, and manual tasks that could be easily automated and run as needed by the team who needs the batches of work to teams and special committees for approval and processing and then waiting for responses 3. Instead a. Use peer reviews of our proposed changes to gain whatever assurance is needed that0 码力 | 8 页 | 22.57 KB | 5 月前3python3学习手册
★print输出带颜色的字windows 此种方法仅windows命令行下有效 import ctypes STD_INPUT_HANDLE = -10 STD_OUTPUT_HANDLE = -11 STD_ERROR_HANDLE = -12 FOREGROUND_BLACK = 0x0 FOREGROUND_BLUE = 0x01 # text color contains blue. FOREGROUND_GREEN extend(listyy) # 把listyy追加到列表的末尾 listxx.remove(x) # 删除列表中第一个值为x的元素,若无这样的 元素则返回一个error listxx.pop(i) # 从列表的指定索引位置移除元素,并返回此元素值, 如果不指定i,则移除并返回最后一个元素 listxx.popleft() # 移除列表头元素并返回其值 返回列表中第一个值为x的元素的索引 listxx.count(x) # 返回x在列表中出现的次数 listxx.sort() #对列表中的元素排序,改变列表本身,返回值为None或 error,不返回新的list,默认升序,从小到大 listxx.sort(reverse=True) # 排序,降序,从大到小 listxx.reverse() # 反转列表,头变尾,尾变头0 码力 | 213 页 | 3.53 MB | 1 年前3k8s操作手册 2.3
请勿操作错了,“kubeadm reset”这条命令是在要移除的node结点上执行,不可 在master上执行!! ★k8s初始化报错(树莓派) CGROUPS_MEMORY: missing [ERROR SystemVerifica�on]: missing required cgroups: memory 因为树莓派系统默认未启动cgroup_memory,解决方法: # vi /boot/firmware/cmdline ★容器探测其他配置: ★HTTP探测 livenessProbe: #pod存活性探测 h�pGet: #使用h�p path: /xx/cxxx/healthz #请求的文件 port: 80 scheme: HTTP #协议,可为HTTP, HTTPS ★执行shell命令进行探测 Prometheus是一款基于时序数据库的开源监控告警系统,Prometheus的基本原 理是通过HTTP协议周期性抓取被监控组件的状态,任意组件只要提供对应的 HTTP接口就可以接入监控。不需要任何SDK或者其他的集成过程。这样做非常 适合做虚拟化环境监控系统,比如VM、Docker、Kubernetes等。输出被监控组 件信息的HTTP接口被叫做exporter Promethus特点: 支持多维数据0 码力 | 126 页 | 4.33 MB | 1 年前3The DevOps Handbook
driven actions or system specific 3. Warn – conditions that could become an error and will likely trigger an alert 4. Error – error conditions such as API failures, internal issues 5. Fatal – forces a termination 2001 study – “paired programmers are 15% slower than two independent individual programmers, while ‘error-free’ code increased from 70% to 85%. Since testing and debugging are often many times more costly0 码力 | 8 页 | 24.02 KB | 5 月前3The DevOps Handbook
fixes errors in a separate test phase. b. Delayed feedback fades the cause & effect link of the error; now requires firefighting and archaeology. c. Worst effect – lose the ability to learn from mistakes to find the error as early as possible, in the fastest category as possible ii. Later stages require more scarce and complex environment to detect and reproduce issues iii. When an error is found, create create a test in an earlier, faster stage to detect the error iv. Ideal vs. Non-Ideal Testing Pyramids h. ENSURE TESTS RUN QUICKLY (IN PARALLEL, IF NECESSARY) i. Design tests to run in parallel ii0 码力 | 8 页 | 23.08 KB | 5 月前3postgresql操作手册
("line_number", "type", "database", "user_name", "address", "netmask", "auth_method", "options", "error") VALUES (94, 'host', '{all}', '{all}', '0.0.0.0', '0.0.0.0', 'password', NULL, NULL); 第一个94为自动生成的规则编号,前面的00 码力 | 17 页 | 445.84 KB | 1 年前3Velocity Conference 2015
about? What did I learn? Service Workers: The Practical Bits by Patrick Meenan (Google) @patmeenan http://www.slideshare.net/patrickmeenan/service-workers-for-performance They are effectively a man in Performance Best Practices Together to Create the Perfect SPA by Chris Love (Love2Dev) @ChrisLove http://www.slideshare.net/docluv/putting-performance-best-practices-together-for-a-spa "We have created (but where the heck do you start?) by Tammy Everts & Cliff Crocker (SOASTA) @tameverts @cliffcrocker http://www.slideshare.net/CloudTest/metrics-metrics-everywhere-but-where-the-heck-do-you-start The myth0 码力 | 4 页 | 176.79 KB | 5 月前3Pomodoro Technique
Utica Coll. of Syracuse Univ. Lib., N.Y . Attributions and References [1] The Pomodoro Technique, http://pomodorotechnique.com/ [2] Personal Productivity Using The Pomodoro Technique, Daniel Hinojosa w/ present#slide=id.i0 [3] Flow: The Psychology of Optimal Experience, Mihaly Csikszentmihalyi, http://www.amazon.com/Flow-Psychology-Experience-Mihaly-Csikszentmihalyi/dp/0061339202/Walkthrough To0 码力 | 3 页 | 289.16 KB | 5 月前3The Phoenix Project
Attributions [1] Amazon, http://www.amazon.com/Phoenix-Project-DevOps-Helping-Business/dp/0988262509/[2] The Three Ways: The Principles Underpinning DevOps, Gene Kim, http://itrevolution.com/the-three-ways-0 码力 | 3 页 | 154.45 KB | 5 月前3
共 10 条
- 1