sr部署.md

sc 部署

打包平台下载 sc 包

打包平台 http://172.16.86.52/

sc 包放到 ~ 中解压

执行 sc 安装

script -> 填写 config -> install.sh

(校验不通过,需要修改 check.sh 的内容)

访问

80 443

授权获取

授权获取方式:
http://192.192.101.126/#/login
账号:yanfa@ouryun.com.cn 密码:Aa123456
操作方式:授权管理目录“石犀研发部-开发组“-【更新】替换成自己的授权申请文件即可

se 部署

问题

debian12 需要安装一些库

1
2
3
4
5
apt install -y libpcre3 


这目录下的所有库拷贝出来 http://119.91.145.27:12800/repo/lib/libcrypto.so.1.1 示例:
wget --http-user=team --http-passwd=xdmybl http://119.91.145.27:12800/repo/lib/libldap_r-2.4.so.2
1
2
3
4
5
6
7
8
9
10
11
12
13
ball_url=http://172.16.86.52/api/v1/pack/download/last/278
expose_ip=192.168.122.203

wget $ball_url -O sc.tar.gz
tar zxvf sc.tar.gz
root=`realpath SC_v*`
check_path="${root}/sc/script/check.sh"
config_file="${root}/sc/script/config"

sed -i '/^main$/s/^/#/' ${check_path}
sed -i 's/^addr=""/addr="192.168.122.203"/' ${config_file}

cd "${root}/sc/script/" && ./install.sh

resource check

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash

echo "" > ~/SC_v1.6.x.linux-x86_64/check.sh

cat << EOF > /opt/installer/config/resource_check_config.yaml
osKernelArch:
type: in
options:
- "ubuntu 20.04、5.4、amd64"
- "ubuntu 20.04、5.15、amd64"
- "centos 7、3.10、amd64"
nproc:
type: range
minimum: 2
standard: 4
memory:
type: range
minimum: 2
standard: 4
disk:
type: range
minimum: 1
standard: 10
EOF
systemctl restart installer
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash
cd /data/repo/se/origin/release

mkdir test
ball_name=`ls SEv*.tar.gz`
tar zxvf $ball_name -C test/
cd test

sed -i '/ubuntu 20.04、5.4、amd64/a\ - "ubuntu 20.04、5.15、amd64"' resource_check_config.yaml
sed -i '/disk:/,/standard:/s/minimum: 40/minimum: 20/' resource_check_config.yaml

tar vczf $ball_name ./*
cd ..
rm $ball_name
mv test/$ball_name .
rm test -rf

查看 引擎节点 crd

1
2
3
4
source /opt/public/.util.sh
import_env_helper
k8s_helper get ha -oyaml

mysql 连接

修改 /opt/mysql/config/my.cnf 将监听地址改为 0.0.0.0
systemctl restart mysqld

流量引擎安装

1
2
url=http://172.16.86.52/api/v1/pack/download/last/266
wget ${url} -O se.tar.gz

sr部署.md
https://abrance.github.io/2024/04/13/mdstorage/sr部署/
Author
xiaoy
Posted on
April 13, 2024
Licensed under