Skip to content

Commit

Permalink
add sgm
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyu137 committed Jun 13, 2023
1 parent 8e571bb commit bf9994b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions chart/stardb-proxy/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ spec:
app.kubernetes.io/cluster-name: {{ .Values.compute.clusterName }}
app.kubernetes.io/instance-type: compute
app.kubernetes.io/app-service-code: stardb-proxy
{{- if eq .Values.compute.agent.sgm "true" }}
sgm.jd.com/probe-inject: "true"
sgm.jd.com/app: stardb-proxy
sgm.jd.com/tenant: tpaasadmin
{{- end }}
spec:
affinity:
podAntiAffinity:
Expand Down
1 change: 1 addition & 0 deletions chart/stardb-proxy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ compute:
startPort: 3307
agent:
enabled: true
sgm: true
# terminationGracePeriodSeconds: 30
serverConfig:
# authority:
Expand Down
2 changes: 1 addition & 1 deletion distribution/proxy/src/main/resources/bin/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ fi

echo -e "Starting the $SERVER_NAME ...\c"

nohup $JAVA ${JAVA_OPTS} ${JAVA_MEM_OPTS} -classpath ${CLASS_PATH} ${AGENT_PARAM} ${MAIN_CLASS} >> ${STDOUT_FILE} 2>&1 &
nohup $JAVA ${JAVA_OPTS} $SGM_OPTS ${JAVA_MEM_OPTS} -classpath ${CLASS_PATH} ${AGENT_PARAM} ${MAIN_CLASS} >> ${STDOUT_FILE} 2>&1 &
if [ $? -eq 0 ]; then
case "$OSTYPE" in
*solaris*)
Expand Down

0 comments on commit bf9994b

Please sign in to comment.