Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parameter Server receive the interrupt signal and shutdown gracefully #10903

Closed
velconia opened this issue May 24, 2018 · 0 comments
Closed

Parameter Server receive the interrupt signal and shutdown gracefully #10903

velconia opened this issue May 24, 2018 · 0 comments
Assignees

Comments

@velconia
Copy link
Collaborator

velconia commented May 24, 2018

PServer will start like this

PADDLE_INIT_PORT=6174 PADDLE_INIT_PSERVERS=192.168.1.2 TRAINERS=2 POD_IP=192.168.1.2 PADDLE_INIT_TRAINER_ID=1 TRAINING_ROLE=PSERVER python your_distributed_program.py

However, after this pserver process is started, only SIGKILL(kill -9) or SIGQUIT(ctrl + ) could stop the process, the interruption from keyboard and SIGTERM(kill or kill -TERM) could NOT stop the process

I will add the interrupt signal handler in the ListenAndServOp, and exit the program when these signals listed below is sent to then program:
SIGTERM, SIGINT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant