pnboot / gzzd Goto Github PK
View Code? Open in Web Editor NEWjava应用故障诊断工具预研 demo ,基于开源项目bistoury修改,99.999%代码保持一致,原项目明显是为多节点大集群设计,对于小集群来说配置和调试略复杂。 改动的目的是简化少量节点和服务时开发和部署,支持kubernetes集群部署。
java应用故障诊断工具预研 demo ,基于开源项目bistoury修改,99.999%代码保持一致,原项目明显是为多节点大集群设计,对于小集群来说配置和调试略复杂。 改动的目的是简化少量节点和服务时开发和部署,支持kubernetes集群部署。
Error reading service account token from: [/var/run/secrets/kubernetes.io/serviceaccount/token]. Ignoring
hi,大佬可以留个邮箱之类的联系方式吗
需要有jps,wget,bash支持,这些工具安装没问题之后
启动报错
/kfz/gzzd/agent-bin/bin # ./bistoury-agent.sh -p ${target_pid} -j $JAVA_HOME start
./bistoury-agent.sh: line 73: syntax error: unexpected word (expecting ")")
在k8s上部署,主要是参考作者的两个yaml文件。对于其中一些参数配置我结合自己的经历做一些说明。在deploy.yaml中
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
app: serverside-ui
name: serverside-ui
spec:
replicas: 1
selector:
matchLabels:
app: serverside-ui
template:
metadata:
labels:
app: serverside-ui
spec:
containers:
- env:
- name: masterUrl
value: "https://masterIP:6443" #这里要填写你自己的k8s集群的master节点的ip
- name: token
value: "" #要注意24小时可能失效,可能需要重新生成新的,重新配置
- name: spring.profiles.active
value: test
- name: namespace
value: default #注意这里要按照自己的实际情况去修改
- name: proxy.server.uiIp
value: ""#这里也填master节点的ip,一定要能从外部访问
- name: proxy.server.nodePort
value: "31113"
- name: proxy.server.proxyIp
value: "serverside-ui"
image: registry.cn-hangzhou.aliyuncs.com/19/serverside-ui:0.0.1
imagePullPolicy: Always
name: serverside-ui
按上面配置,工具这边就没什么问题了。下面结合自己的经历谈一下。
首先,要想让工具能看到你的应用,必须通过deployment部署,直接部署一个pod是不行的,网页上是看不到应用的
第二,应用运行的pod必须要能wget,因为启动脚本里面有命令通过wget下载东西
第三,运行不正常的话看日志有两个,kubectl logs pod的名字
可以看agent有没有connected。另外就是exec到你的应用pod,去//kfz/gzzd/agent-bin/logs下看bistoury-agent.out
都顺利的话,就可以访问 http://masterIP:31191 进入页面了
想要修改agent中的代码 重新打包,但是没找到相关的打包脚本,想请教下agent-bin.tgz 是如何打包的
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.