PyConChina2022-上海-Python Profiling原理深入探索与实践-羿莉程序里,因此更安全 • 支持record结果,并生成 speedscope/flamegraph等格式、支持 top/dump等 • py-spy 缺点 • 很多场景需要sudo权限来读取进程内存 • K8s场景需要启动SYS_PTRACE • 和OXS的系统系统完整性保护冲突 • Thread在Idle和没有获取GIL场景有限制 –idleŽ• –gilŽ• Python Profiling)*+ Memray4" 不支持attach,只能在程序启动前运行, 不能在程序启动后运行 Continuous Profiling,-./ • 5•‘’“”•–+j—˜N•+j™š • 5•klš›œ••žk8s pod-ns • Ÿ ¡¢£Xp¤ ¡Š¥X • ¦VƒU/§¨¢£ • ©ª«G•linux kernel TU • O¬š›¨-®¯KL•°± • ¦VƒU/¦V²³ 0123 01450 码力 | 28 页 | 12.73 MB | 1 年前3
1_丁来强_开源AIOps数据中台搭建与Python的作用hon的作⽤用 • ⽇日志类数据⽅方案 • 指标类时序数据⽅方案 • 其他OLAP选择 • AI增强⽅方案 数据源与监控 - 容器器化架构为例例 物理理主机/VM层监控 容器器POD指标监控 容器器CaaS层资源监控 应⽤用层性能监控 应⽤用层 ⽇日志 指标监控 prometheus + grafana + thanos elastic stack, TICK stack ⽆无 ⽀支持(logstash/reindex) ⽀支持(CQ/TickScript) ⽣生命周期 不不直接⽀支持 ⽀支持 不不直接⽀支持 指标类数据监控 - prometheus • K8S监控标配(继K8S后第2个CNCF项⽬目) • 多维数据模型 + PromQL • 汇总性数据+Label过滤 • 可从160+源渠道提取指标数据 • 主动拉去模式(可由gateway被动)0 码力 | 48 页 | 17.54 MB | 1 年前3
03 小罗 python与devops 在Docker环境下的发布系统 在Docker环境下的发布系统 https://github.com/xiaoluoge11/jenkins_demo 由Jenkinsfile确定操作流程 K8s Ci/CD快速发布流程 1. 开发人员提交代码到 Gitlab 代码仓库 2. 编写Dockerfile 到代码目录 3. 通过 Gitlab 配置的 Jenkins Webhook 触发 Pipeline 然后进行 Maven 构建(Java 项目) 7. 根据构建结果构建 Docker 镜像 8. 推送 Docker 镜像到 Harbor 仓库 9. 触发更新服务阶段,使用kubectl 从pod构建,当然kubectl版本打包到jenkin-slave镜像里 10. 发布更新、检测状态,更新失败停止,返回上一个版本 THANK YOU law 无 保密 二维码0 码力 | 22 页 | 1.64 MB | 1 年前3
MuPDF 1.22.0 Documentationclass methods and constructors. • There are extra functions for generating a text representation of ‘POD’ structs and their C++ wrapper classes. For example for fz_rect we provide these functions: std::ostream& diagnostic each time it calls a MuPDF function (apart from keep/drop functions). If 2, we also show arg POD and pointer values. • MUPDF_trace_director If 1, generated code outputs a diagnostic when doing special mupdf:scripts/mutool.py and mupdf:scripts/mutool_draw.py. • Provides text representation of simple ‘POD’ structs: rect = mupdf.FzRect(...) print(rect) # Will output text such as: (x0=90.51 y0=160.65 x1=5010 码力 | 175 页 | 698.87 KB | 8 月前3
MuPDF 1.23.0 Documentationclass methods and constructors. • There are extra functions for generating a text representation of ‘POD’ structs and their C++ wrapper classes. For example for fz_rect we provide these functions: std::ostream& functions). If 2, low-level wrappers output a diagnostic each time they are called. We also show arg POD and pointer values. • MUPDF_trace_director If 1, generated code outputs a diagnostic when doing special mupdf:scripts/mutool.py and mupdf:scripts/mutool_draw.py. • Provides text representation of simple ‘POD’ structs: rect = mupdf.FzRect(...) print(rect) # Will output text such as: (x0=90.51 y0=160.65 x1=5010 码力 | 245 页 | 817.74 KB | 8 月前3
MuPDF 1.24.0 Documentationclass methods and constructors. • There are extra functions for generating a text representation of ‘POD’ (plain old data) structs and their C++ wrapper classes. For example for fz_rect we provide these functions). If 2, low-level wrappers output a diagnostic each time they are called. We also show arg POD and pointer values. • MUPDF_trace_director If 1, generated code outputs a diagnostic when doing special mupdf:scripts/mutool.py and mupdf:scripts/mutool_draw.py. • Provides text representation of simple ‘POD’ structs: rect = mupdf.FzRect(...) print(rect) # Will output text such as: (x0=90.51 y0=160.65 x1=5010 码力 | 249 页 | 830.15 KB | 8 月前3
MuPDF 1.25.0 Documentationclass methods and constructors. • There are extra functions for generating a text representation of ‘POD’ (plain old data) structs and their C++ wrapper classes. For example for fz_rect we provide these functions). If 2, low-level wrappers output a diagnostic each time they are called. We also show arg POD and pointer values. • MUPDF_trace_director If 1, generated code outputs a diagnostic when doing special mupdf:scripts/mutool.py and mupdf:scripts/mutool_draw.py. • Provides text representation of simple ‘POD’ structs: rect = mupdf.FzRect(...) print(rect) # Will output text such as: (x0=90.51 y0=160.65 x1=5010 码力 | 259 页 | 1.11 MB | 8 月前3
PyConChina2022-北京-用Python给Kubernetes写个自定义控制器-张晋涛写个控制器 主讲人: 张晋涛 个人介绍 Apache APISIX PMC Kubernetes Ingress NGINX maintainer Microsoft MVP 『 K8S 生态周报』发起人和维护者 GitHub:tao12345666333 Mail: zhangjintao@apache.org Agenda Kubernetes 中请求处理流程 什么是准入控制器0 码力 | 17 页 | 1.76 MB | 1 年前3
3 在AWS部署与发布你面向全球的Python Serverless应用 谢洪恩LicenseUrl: LICENSE ReadmeUrl: README.md Labels: [demo','lambda','kubectl','eks', 'aws', 'kubernetes', 'k8s'] HomePageUrl: https://github.com/pahud/my-demo-sar-app SemanticVersion: 1.0.1 SourceCodeUrl: https://github0 码力 | 53 页 | 24.15 MB | 1 年前3
5 Python深度学习实践= tf.distribute.experimental.TPUStrategy(resolver) 2 初步修改 针对第一个python代码执行、思考和改进 如何能做的更好? TPU Pod BERT 训练时间短 https://github.com/google-research/bert Data 数据不均 • Why are my tip predictions bad0 码力 | 38 页 | 4.85 MB | 1 年前3
共 23 条
- 1
- 2
- 3













