APISIX Integrates with OpenTelemetry to Collect Tracing Data

环境介绍 APISIX 运行在本地 opentelemetry 相关的服务包含 client, server, jaeger, prometheus, zipkin 安装基础环境下载代码, 这个代码包含一个 docker compose 的一套文件 123git clone https://github.com/open-telemetry/opentelemetry-collector-...

Posted on 

limit-conn report error attribute does not exist

https://github.com/apache/apisix/pull/9663/files install dependsredisinstall redis and start the redis service 12345678910$ sudo apt install redis ...

Posted on 

syslog data format

最近在学习一下 apisix, 发现他的日志插件很久很玄学,看上去不工作。测试一下发现果真是这样的。 debug然后就开始 debug 了,创建了一个 issues : syslog plugin looks doesn’t work 有个社区老哥很热心,第二天就给我发了 PR (好人啊🫠) Screenshot via Cisco 关键代码以下代码均复制从 apisix 项目中。 12...

Posted on 

how to build apisix@MacBookM2

this script will download the deps of apisix, and build the new openresty to /usr/local/openresty 1brew install openresty-openssl111 go lua@5.1 pcre2 pcre compile the openrestythe new openresty wi...

Posted on 

update BIOS attr by redfish

这个 post 来自于早起为开发裸金属管理平台和的核心组建之一的 bmc-server. bmc-server 允许以 RESTful API 的形式去操作物理机的带外管理。 其中有个关键功能就是支持用户修改机器的 BISO 的熟悉,其 POC 如下: DELL 厂商案例bios set request, 其中用户名密码就是厂商的默认配置。 12redfishtool -u root -p ...

Posted on 

blkio 源码分析

背景之前在发现线上 blkio cgroup 层级关系中 io_merged 文件内容不符合预期,所以才有这一篇源码分析。 4.9 kernel初始化我们都知道 blkio 是基于 IO 的 scheduler 的实现的, 基于线上的唯一的一块SATA盘的且调度算法是 cfq, 读一下 cfq 实现 blkio 的相关代码,首先到 cfq 的模块的入口函数 cfq_init()移除了一些错误...

Posted on 

blkio cgroup 异常

blkio cgroup 异常线上集群 pod 的磁盘监控数据丢失,经过其他同学的诊断发现是 cgroup 异常 blkio 源码分析 k8s 对 cgroup 的支持https://www.youtube.com/watch?v=u8h0e84HxcE historyblk-group-support.png 123456789101112131415161718192021root@x...

Posted on 

kubelet 是如何使用 containerd

梳理这个目的是为了以后 containerd 上线提前储备相关知识,预设问题还是之前的 POD 是如何创建,以此来摸索他的调用链路。 kubelet-create-pod 参数对比对比一下 kubelet 使用 dockerd 和 cotnainerd 参数的对比,最核心的地方就是 --container-runtime=remote --container-runtime-endpoi...

Posted on 

kubelet 是如何启动 POD

出于 containerd 上线需求,走读线上组件的代码确定现有 POD 创建流程,主要关注的是组件之间是如何交互沟通的进行 POD 创建的。 kubelet-create-pod kubelet kubelet 如何创建 POD dockershim dockerd 接口 /containers/{name:.*}/start contain...

Posted on 

aws nlb 使用 full nat 遇到的 tcp rest 问题

背景业务要使用 k8s service 将集群内部的业务暴露出来,对外提供 tcp/udp 的接入方式,两个传输层的协议使用相同的端口号。 而我们在 aws 上自己建的集群使用的是 aws cloud provider 来实现和 aws 内部资源互联互通调用,而截止 20200810 aws cloud provider 还不支持创建 service 支持tcp/udp使...

Posted on 
1237