QA杂货铺

目录

python

pip TLS/SSL问题

onnxruntime

编译

ubuntu

yaml源

kubernetes

kubectl run

cpu

Prometheus


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

How to gain hybrid MPI-OpenMP code performance without changing a line of code a.k.a. dealing with task affinity

# 编译
./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 指令

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值