The DevOps Handbook
satisfaction, and employee happiness 2. one of the best predictors of short lead times was small batch sizes of work b. Agile, Continuous Delivery, and the Three Ways 7 c. The First Way: The Principles context of global goals. ii. REDUCE BATCH SIZES1. Another key component to creating smooth and fast flow is performing work in small batch sizes. 2. Large batch sizes result in skyrocketing levels of Development has worked on is released to production deployment. Like in manufacturing, this large batch release creates sudden, high levels of WIP and massive disruptions to all downstream work centers0 码力 | 8 页 | 22.57 KB | 5 月前3The DevOps Handbook
A FAST AND RELIABLE AUTOMATED VALIDATION TEST SUITE i. Slow and periodic feedback kills – larger batch sizes compound effort needed to identify causes ii. Unit tests – test a single method, class, or costs, 140% increase in programs under development, 78% reduction in cost per program c. SMALL BATCH DEVELOPMENT AND WHAT HAPPENS WHEN WE COMMIT CODE TO TRUNK INFREQUENTLY i. Branching Strategies TRUNK-BASED DEVELOPMENT PRACTICES i. CI and Trunk-based development (TBD) are countermeasures to large batch size ii. TBD enables: 1. Frequent commits 2. Runs of automated tests of the integrated system0 码力 | 8 页 | 23.08 KB | 5 月前3The DevOps Handbook
deployment process 2. Increase friction by adding more steps/approvals which tends to increase batch size ii. Toyota Production System – “people closest to a problem typically know the most about it help improve overall quality, provide cross-training, learning, and skill improvements. iii. Keep batch sizes of reviews small iv. 4 simple Peer Review Guidelines 1. Everyone must have someone review project and/or manual 1. Manual testing is slower and more tedious 2. Tends towards increasing batch sizes ii. Fully integrate testing into daily work – enable flow, more automated testing h. ENABLE0 码力 | 8 页 | 24.02 KB | 5 月前3k8s操作手册 2.3
进程在正常运行结束后,置为completed状态,且不会再重启,如果进程运行失 败,则根据配置决定是否要重启 # vi xx-job.yml #内容如下 apiVersion: batch/v1 kind: Job metadata: name: myjob #Job名 spec: comple�ons: 3 #一共起1个pod(默认1) ★CronJob控制器 cronjob控制器用于运行周期性pod,定时执行 # vi xx-cronjob.yml #内容如下 apiVersion: batch/v1beta1 kind: CronJob metadata: name: mycronjob #cronJob名 labels: cjlb: xxx #cronjob的标签0 码力 | 126 页 | 4.33 MB | 1 年前3python3学习手册
, 1): data = list(row) print(f"第{index}行: ", data) ★第16章、多进程与多线程 ★多进程mul�processing.Process类 python多进程(mul�-process)适用于计算密集型的任务, 对于I/O密集型任务应该使用多线程(mul�-thread),比如磁盘读写, 网络通信等 在p 某个全局变 量,可以使用mul�processing.Value()或mul�processing.Array()来创建共 享变量 在windows系统里使用多进程时,程序里必须有入口函数main(),且程 序末尾必须调用入口函数,即: if __name__ == "__main__": main() ★实例化mul�processing.Process类-调用外部函数 print("计算密集型任务,多进程耗时 %s" % (stop - start)) if __name__ == "__main__": main() ★继承mul�processing.Process类-调用外部函数 import multiprocessing import os import time def work_func(argxx): res =0 码力 | 213 页 | 3.53 MB | 1 年前3
共 5 条
- 1