DTStack / DTStack/chengying-agent

easyagent-sidecar重启后,如何重新托管已经在运行的服务进程?

Open
#3 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
31
Forks
8
PR merge metrics
No merged PRs in 30d

Description

1、sidecar进程信息
image

2、kill -9 之前 mysql的进程状态如下 :
image
3、kill -9
4、此时mysql的拉起进程的ppid被根进程1接管
image

5、过了几分钟,crontab自动把easyagent-sidecar拉起,
此时easyagent-sidecar进程信息
image

mysql进程信息
image

**疑问:
1、sidecar启动时如何接管已经运行的服务,mysql启动脚本的ppid从1变更成sidecar的pid?
2、是重新运行mysql启动脚本?
3、mysql的服务进程id变了,是因为重启了mysql?影响正常运行的服务实例吗?
**

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.