目录
python
pip TLS/SSL问题
references: pip TLS/SSL问题 - 知乎
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is
# 确认openssl是否正确安装,发现缺少openssl-devel包
rpm -aq | grep openssl
# 安装openssl-devel包
yum install -y openssl-devel
# 重新编译安装python
./configure
make && make install
onnxruntime
编译
references: onnxruntime/BUILD.md at v1.7.0 · microsoft/onnxruntime · GitHub
# 编译
./build.sh --config Release --build_shared_lib --parallel --enable_pybind
ubuntu
yaml源
references: https://blog.csdn.net/a921122/article/details/22965429/
E: Unable to locate package
# 添加163源
编译文件/etc/apt/sources.list 添加163源
执行apt-get update
kubernetes
kubectl run
references: http://docs.kubernetes.org.cn/468.html
kubectl run ppl-eval-test-guar -it --image=registry.sensetime.com/parrots-os/evalservice:v0.3.2 --namespace=pat-weekbuild --requests="cpu=16,memory=6Gi" --limits="cpu=16,memory=6Gi" bash
cpu
cpu亲和性: linux进程、线程与cpu的亲和性(affinity) - zhangwju - 博客园
/sys/fs/cgroup/cpuset/cpuset.cpus
/sys/devices/system/cpu/online
Prometheus
reference: https://zhuanlan.zhihu.com/p/117719823
下载&解压:https://github.com/prometheus/prometheus/releases/
wget https://github.com/prometheus/prometheus/releases/download/v2.33.1/prometheus-2.33.1.linux-amd64.tar.gz
配置:
官方文档 https://prometheus.io/docs/prometheus/latest/configuration/configuration/
解压后的路径中有 prometheus.yml 配置文件。
FIFILE: prometheus.yml
# FILE: prometheus.yml
# part content
scrape_configs:
# The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.
- job_name: "matrix-machines"
scrape_interval: 60s
metrics_path: '/stat/prometheus_metrics'
#static_configs:
# - targets: ["bjyz-feed-177379369.bjyz:408",
# "yq01-ps-beehive-agent245587.yq01:408"]
file_sd_configs:
- files:
- /home/users/xxxx/prometheus-2.33.1.linux-amd64/conf/port_preempt.json
FILE: conf/port_preempt.json 自定义的节点配置文件
# FILE: conf/port_preempt.json
[{
"targets": [
"bjyz-feed-177379369.bjyz:408",
"bjyz-feed-178193434.bjyz:408"
]
}]
启动:
# 自定义监听端口
./prometheus --web.listen-address=:8936
启动后,浏览器查看部署server服务器的该端口 {host/ip}:8936
执行 up 指令