Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
milvus
milvus
提交
3adbf18b
M
milvus
项目概览
milvus
/
milvus
11 个月 前同步成功
通知
261
Star
22476
Fork
2472
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
milvus
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
3adbf18b
编写于
2月 18, 2023
作者:
Z
zhuwenxing
提交者:
GitHub
2月 18, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[test]Test rolling update for operator (#22268)
Signed-off-by:
N
zhuwenxing
<
wenxing.zhu@zilliz.com
>
上级
8487f53d
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
187 addition
and
4 deletion
+187
-4
tests/python_client/chaos/scripts/uninstall_milvus_for_operator.sh
...hon_client/chaos/scripts/uninstall_milvus_for_operator.sh
+30
-0
tests/python_client/deploy/milvus_crd.yaml
tests/python_client/deploy/milvus_crd.yaml
+151
-0
tests/scripts/export_log_k8s_for_operator.sh
tests/scripts/export_log_k8s_for_operator.sh
+6
-4
未找到文件。
tests/python_client/chaos/scripts/uninstall_milvus_for_operator.sh
0 → 100644
浏览文件 @
3adbf18b
# Exit immediately for non zero status
set
-e
release
=
${
1
:-
"milvus-chaos"
}
ns
=
${
2
:-
"chaos-testing"
}
kubectl delete milvus
${
release
}
-n
=
${
ns
}
||
echo
"delete milvus
${
release
}
failed"
# uninstall helm release
helm_release_list
=(
'minio'
'etcd'
'kafka'
'pulsar'
)
for
helm_release
in
${
helm_release_list
[*]
}
;
do
echo
"unistall helm release
${
release
}
-
${
helm_release
}
"
helm uninstall
${
release
}
-
${
helm_release
}
-n
=
${
ns
}
||
echo
"delete helm release
${
release
}
-
${
helm_release
}
failed"
done
# delete pvc for storage
pvc_list
=(
'minio'
)
for
pvc
in
${
pvc_list
[*]
}
;
do
echo
"delete pvc with label release=
${
release
}
-
${
pvc
}
"
kubectl delete pvc
-l
release
=
${
release
}
-
${
pvc
}
-n
=
${
ns
}
||
echo
"delete pvc with label release=
${
release
}
-
${
pvc
}
failed"
done
# delete pvc of etcd and message queue
pvc_list
=(
'etcd'
'kafka'
'pulsar'
)
for
pvc
in
${
pvc_list
[*]
}
;
do
echo
"delete pvc with label app.kubernetes.io/instance=
${
release
}
-
${
pvc
}
"
kubectl delete pvc
-l
app.kubernetes.io/instance
=
${
release
}
-
${
pvc
}
-n
=
${
ns
}
||
echo
"delete pvc with label release=
${
release
}
-
${
pvc
}
failed"
done
tests/python_client/deploy/milvus_crd.yaml
0 → 100644
浏览文件 @
3adbf18b
# This is a sample to deploy a milvus cluster using pulsar with minimum cost of resources.
apiVersion
:
milvus.io/v1beta1
kind
:
Milvus
metadata
:
name
:
kafka-demo
namespace
:
chaos-testing
labels
:
app
:
milvus
spec
:
mode
:
standalone
config
:
quotaAndLimits
:
enable
:
false
milvus
:
log
:
level
:
debug
components
:
enableRollingUpdate
:
true
imageUpdateMode
:
rollingUpgrade
image
:
milvusdb/milvus:2.2.0-20230208-2e4d64ec
disableMetric
:
false
dataNode
:
replicas
:
2
indexNode
:
replicas
:
2
queryNode
:
replicas
:
2
mixCoord
:
replicas
:
1
dependencies
:
msgStreamType
:
kafka
etcd
:
inCluster
:
deletionPolicy
:
Retain
pvcDeletion
:
false
values
:
replicaCount
:
3
kafka
:
inCluster
:
deletionPolicy
:
Retain
pvcDeletion
:
false
values
:
replicaCount
:
3
defaultReplicationFactor
:
2
metrics
:
kafka
:
enabled
:
true
serviceMonitor
:
enabled
:
true
jmx
:
enabled
:
true
pulsar
:
inCluster
:
deletionPolicy
:
Retain
pvcDeletion
:
false
values
:
components
:
autorecovery
:
false
functions
:
false
toolset
:
false
pulsar_manager
:
false
monitoring
:
prometheus
:
true
grafana
:
false
node_exporter
:
false
alert_manager
:
false
proxy
:
replicaCount
:
1
resources
:
requests
:
cpu
:
0.01
memory
:
256Mi
configData
:
PULSAR_MEM
:
>
-Xms256m -Xmx256m
PULSAR_GC
:
>
-XX:MaxDirectMemorySize=256m
bookkeeper
:
replicaCount
:
2
resources
:
requests
:
cpu
:
0.01
memory
:
256Mi
configData
:
PULSAR_MEM
:
>
-Xms256m
-Xmx256m
-XX:MaxDirectMemorySize=256m
PULSAR_GC
:
>
-Dio.netty.leakDetectionLevel=disabled
-Dio.netty.recycler.linkCapacity=1024
-XX:+UseG1GC -XX:MaxGCPauseMillis=10
-XX:+ParallelRefProcEnabled
-XX:+UnlockExperimentalVMOptions
-XX:+DoEscapeAnalysis
-XX:ParallelGCThreads=32
-XX:ConcGCThreads=32
-XX:G1NewSizePercent=50
-XX:+DisableExplicitGC
-XX:-ResizePLAB
-XX:+ExitOnOutOfMemoryError
-XX:+PerfDisableSharedMem
-XX:+PrintGCDetails
zookeeper
:
replicaCount
:
1
resources
:
requests
:
cpu
:
0.01
memory
:
256Mi
configData
:
PULSAR_MEM
:
>
-Xms256m
-Xmx256m
PULSAR_GC
:
>
-Dcom.sun.management.jmxremote
-Djute.maxbuffer=10485760
-XX:+ParallelRefProcEnabled
-XX:+UnlockExperimentalVMOptions
-XX:+DoEscapeAnalysis -XX:+DisableExplicitGC
-XX:+PerfDisableSharedMem
-Dzookeeper.forceSync=no
broker
:
replicaCount
:
1
resources
:
requests
:
cpu
:
0.01
memory
:
256Mi
configData
:
PULSAR_MEM
:
>
-Xms256m
-Xmx256m
PULSAR_GC
:
>
-XX:MaxDirectMemorySize=256m
-Dio.netty.leakDetectionLevel=disabled
-Dio.netty.recycler.linkCapacity=1024
-XX:+ParallelRefProcEnabled
-XX:+UnlockExperimentalVMOptions
-XX:+DoEscapeAnalysis
-XX:ParallelGCThreads=32
-XX:ConcGCThreads=32
-XX:G1NewSizePercent=50
-XX:+DisableExplicitGC
-XX:-ResizePLAB
-XX:+ExitOnOutOfMemoryError
storage
:
inCluster
:
deletionPolicy
:
Retain
pvcDeletion
:
false
values
:
mode
:
distributed
\ No newline at end of file
tests/scripts/export_log_k8s_for_operator.sh
浏览文件 @
3adbf18b
...
...
@@ -3,8 +3,9 @@
# Exit immediately for non zero status
set
-e
ns_name
=
$1
instance_name
=
$2
instance_name
=
$1
ns_name
=
${
2
:-
"chaos-testing"
}
log_dir
=
${
3
:-
"k8s_logs"
}
#show proxy pod log
...
...
@@ -32,9 +33,10 @@ echo "check session done"
array_1
=(
$(
kubectl get pod
-n
${
ns_name
}
-l
"app.kubernetes.io/instance=
${
instance_name
}
"
|
awk
'NR == 1 {next} {print $1}'
)
)
array_2
=(
$(
kubectl get pod
-n
${
ns_name
}
-l
"app.kubernetes.io/instance=
${
instance_name
}
-etcd"
|
awk
'NR == 1 {next} {print $1}'
)
)
array_3
=(
$(
kubectl get pod
-n
${
ns_name
}
-l
"release=
${
instance_name
}
-minio"
|
awk
'NR == 1 {next} {print $1}'
)
)
array_4
=(
$(
kubectl get pod
-n
${
ns_name
}
-l
"release=
${
instance_name
}
-pulsar"
|
awk
'NR == 1 {next} {print $1}'
)
)
array_4
=(
$(
kubectl get pod
-n
${
ns_name
}
-l
"app.kubernetes.io/instance=
${
instance_name
}
-pulsar"
|
awk
'NR == 1 {next} {print $1}'
)
)
array_5
=(
$(
kubectl get pod
-n
${
ns_name
}
-l
"app.kubernetes.io/instance=
${
instance_name
}
-kafka"
|
awk
'NR == 1 {next} {print $1}'
)
)
array
=(
${
array_1
[@]
}
${
array_2
[@]
}
${
array_3
[@]
}
${
array_4
[@]
}
)
array
=(
${
array_1
[@]
}
${
array_2
[@]
}
${
array_3
[@]
}
${
array_4
[@]
}
${
array_5
[@]
}
)
echo
${
array
[@]
}
if
[
!
-d
$log_dir
/pod_log
]
||
[
!
-d
$log_dir
/pod_describe
]
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录