摘要: 磁盘管理常用工具 1. make2fs ext 系列文件系统管理工具 t {ext2|ext3|ext4}指定文件系统类型 b {1024|2048|4096} 指定文件系统块大小 L 指定卷标签 j 创建带有日志功能的ext3 i bypte per inode 指明inode与字节的比率;及没多 阅读全文
posted @ 2020-03-19 01:08 hurz 阅读(681) 评论(0) 推荐(0) 编辑
摘要: https://www.jianshu.com/p/f0987acb929a 阅读全文
posted @ 2020-03-18 10:43 hurz 阅读(649) 评论(0) 推荐(0) 编辑
摘要: https://github.com/coreos/prometheus operator/blob/master/Documentation/additional scrape config.md 阅读全文
posted @ 2020-03-17 14:07 hurz 阅读(206) 评论(0) 推荐(0) 编辑
摘要: serviceMonitor 是通过对service 获取数据的一种方式。 1. promethus operator可以通过serviceMonitor 自动识别带有某些 label 的service ,并从这些service 获取数据。 2. serviceMonitor 也是由promethu 阅读全文
posted @ 2020-03-16 17:56 hurz 阅读(6969) 评论(0) 推荐(0) 编辑
摘要: 资源类型: PV 全局级别的 PVC namespace级别的 storageClass 全局级别的 1. 访问模式 ReadWriteOnce(该卷可以被单个节点以读/写模式挂载), ReadOnlyMany(该卷可以被多个节点以只读模式挂载),ReadWriteMany(该卷可以被多个节点以读/ 阅读全文
posted @ 2020-03-12 22:39 hurz 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 1. 协程是程序员创造出来的 2. 单纯的协程没有作用 3. 需要io操作时候进行切换 才有意义 原理 greenlet 协程常用模块 gevent 阅读全文
posted @ 2020-03-11 15:42 hurz 阅读(161) 评论(0) 推荐(0) 编辑
摘要: ``` from concurrent.futures import ProcessPoolExecutor import time def task(a1,a2): time.sleep(1) print("{},{}".format(a1, a2,)) if __name__ == '__main__': # 定义进程池 pool = ProcessPoolExecutor(10) for i 阅读全文
posted @ 2020-03-11 14:05 hurz 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 0. 生产情况 1. 在生产环境一般不使用以下方式 2. 在生产环境一般使用以下方式 redis mysql rabbitMQ 1. 使用Queue 的方式 2. 使用Manager 的方式 阅读全文
posted @ 2020-03-11 00:53 hurz 阅读(203) 评论(0) 推荐(0) 编辑
摘要: import multiprocessing import time def task(arg): time.sleep(1) print(arg) if __name__ == '__main__': """ 常用功能: join daemon name multiprocessing.curre 阅读全文
posted @ 2020-03-11 00:50 hurz 阅读(141) 评论(0) 推荐(0) 编辑
摘要: ``` from concurrent.futures import ThreadPoolExecutor import time def task(a1,a2): time.sleep(1) print("{},{}".format(a1, a2,)) if __name__ == '__main__': # 定义线程池 pool = ThreadPoolExecutor(10) for i i 阅读全文
posted @ 2020-03-10 23:30 hurz 阅读(127) 评论(0) 推荐(0) 编辑