python3学习手册
色的字\033[0m") ★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 0x80 # background color is intensified. std_out_handle = ctypes.windll.kernel32.GetStdHandle(STD_OUTPUT_HANDLE) ctypes.windll.kernel32.SetConsoleTextAttribute(std_out_ha ndle, FOREGROUND_RED windll.kernel32.SetConsoleTextAttribute(std_out_ha ndle, FOREGROUND_RED | FOREGROUND_INTENSITY) # red print("red") ctypes.windll.kernel32.SetConsoleTextAttribute(std_out_ha ndle, FOREGROUND_GREEN | FOREGROUND_INTENSITY)0 码力 | 213 页 | 3.53 MB | 1 年前3The DevOps Handbook
TECHNIQUES i. Anomaly detection is “the search for items or events which do not conform to an expected pattern.” ii. Smoothing – suitable for time series data. Using moving averages to reduce short-term production issues and new features development – feature is only “done” when it’s performing as expected in production c. HAVE DEVELOPERS FOLLOW WORK DOWNSTREAM i. Contextual Inquiry – product team watching one of our customers use our product. I was watching him perform an operation that we expected customers to do weekly, and, to our extreme horror, we discovered that it required sixty-three0 码力 | 8 页 | 24.02 KB | 5 月前3The DevOps Handbook
any problem they want. v. LEADERS REINFORCE A LEARNING CULTURE 1. Traditionally, leaders were expected to be responsible for setting objectives, allocating resources for achieving those objectives, condition? e. What obstacle are you working on now? f. What is your next step? g. What is your expected outcome? h. When can we check? 6. PART II—WHERE TO START 47 7. Ch. 5 Selecting Which Value Stream0 码力 | 8 页 | 22.57 KB | 5 月前3The DevOps Handbook
” iii. Resilience – requires defining failure modes and then testing to ensure they operate as expected iv. Great Amazon Reboot of 2014 – 10% of Amazon EC2 servers had to reboot for Xen emergency security0 码力 | 9 页 | 25.13 KB | 5 月前3The DevOps Handbook
monitoring with release process to automatically roll back when metrics deviations, outside of expected ranges, are detected i. APPLICATION-BASED PATTERNS TO ENABLE SAFER RELEASES i. Implement Feature0 码力 | 8 页 | 23.08 KB | 5 月前3k8s操作手册 2.3
wlc(加权最少连接) dh(des�na�on hashing) lblc 基于局部性最少连接 sh(source hashing) lblcr 带复制的基于局部性最少连 接 sed ( shortest expected delay) nq(never queue) 默认使用rr ★k8s的service类型: ClusterIp 只能用于集群内部,iptables,ipvs cluster-ip:port0 码力 | 126 页 | 4.33 MB | 1 年前3
共 6 条
- 1