Skip to content
New issue

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

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

Already on GitHub? # to your account

add example for restarting RES daemons on specified 1 or multiple hosts #62

Merged
merged 1 commit into from
Sep 12, 2023

Conversation

liyancn
Copy link
Collaborator

@liyancn liyancn commented Sep 11, 2023

UT:

  1. default restart local res
[root@yanlidev1 examples]# lsgrun -m "yanlidev1" ps -ef | grep c101 | grep res
root      5167  5158  0 Sep04 ?        00:00:00 /scratch/lsf101/c101/10.1/linux3.10-glibc2.17-x86_64/etc/mgres
root      5852     1  0 01:04 ?        00:00:00 /scratch/lsf101/c101/10.1/linux3.10-glibc2.17-x86_64/etc/res
root      6937  5852  0 01:05 ?        00:00:00 /scratch/lsf101/c101/10.1/linux3.10-glibc2.17-x86_64/etc/res
[root@yanlidev1 examples]# python restartRES.py
res on yanlidev1.fyre.ibm.com restarted
[root@yanlidev1 examples]# lsgrun -m "yanlidev1" ps -ef | grep c101 | grep res
root      5167  5158  0 Sep04 ?        00:00:00 /scratch/lsf101/c101/10.1/linux3.10-glibc2.17-x86_64/etc/mgres
root      7125     1  0 01:05 ?        00:00:00 /scratch/lsf101/c101/10.1/linux3.10-glibc2.17-x86_64/etc/res
root      7177  7125  0 01:05 ?        00:00:00 /scratch/lsf101/c101/10.1/linux3.10-glibc2.17-x86_64/etc/res
  1. specify 1 host
[root@yanlidev1 examples]# lsgrun -m "yanlidev1" ps -ef | grep c101 | grep res
root      5167  5158  0 Sep04 ?        00:00:00 /scratch/lsf101/c101/10.1/linux3.10-glibc2.17-x86_64/etc/mgres
root      7125     1  0 01:05 ?        00:00:00 /scratch/lsf101/c101/10.1/linux3.10-glibc2.17-x86_64/etc/res
root      7177  7125  0 01:05 ?        00:00:00 /scratch/lsf101/c101/10.1/linux3.10-glibc2.17-x86_64/etc/res
[root@yanlidev1 examples]# python restartRES.py yanlidev1
res on yanlidev1 restarted
[root@yanlidev1 examples]# lsgrun -m "yanlidev1" ps -ef | grep c101 | grep res
root      5167  5158  0 Sep04 ?        00:00:00 /scratch/lsf101/c101/10.1/linux3.10-glibc2.17-x86_64/etc/mgres
root      7488     1  0 01:05 ?        00:00:00 /scratch/lsf101/c101/10.1/linux3.10-glibc2.17-x86_64/etc/res
root      7543  7488  0 01:05 ?        00:00:00 /scratch/lsf101/c101/10.1/linux3.10-glibc2.17-x86_64/etc/res
  1. specify 2 hosts
[root@yanlidev1 examples]# lsgrun -m "yanlidev1 malpha1" ps -ef | grep c101 | grep res
root      5167  5158  0 Sep04 ?        00:00:00 /scratch/lsf101/c101/10.1/linux3.10-glibc2.17-x86_64/etc/mgres
root      7488     1  0 01:05 ?        00:00:00 /scratch/lsf101/c101/10.1/linux3.10-glibc2.17-x86_64/etc/res
root      9175  7488  0 01:07 ?        00:00:00 /scratch/lsf101/c101/10.1/linux3.10-glibc2.17-x86_64/etc/res
root      241353       1  0 00:59 ?        00:00:00 /scratch/lsf101/c101/10.1/linux3.10-glibc2.17-x86_64/etc/res
root      242305  241353  0 01:07 ?        00:00:00 /scratch/lsf101/c101/10.1/linux3.10-glibc2.17-x86_64/etc/res
[root@yanlidev1 examples]# python restartRES.py yanlidev1 malpha1
res on yanlidev1 restarted
res on malpha1 restarted
[root@yanlidev1 examples]# lsgrun -m "yanlidev1 malpha1" ps -ef | grep c101 | grep res
root      5167  5158  0 Sep04 ?        00:00:00 /scratch/lsf101/c101/10.1/linux3.10-glibc2.17-x86_64/etc/mgres
root      9465     1  0 01:07 ?        00:00:00 /scratch/lsf101/c101/10.1/linux3.10-glibc2.17-x86_64/etc/res
root      9625  9465  0 01:07 ?        00:00:00 /scratch/lsf101/c101/10.1/linux3.10-glibc2.17-x86_64/etc/res
root      242339       1  0 01:07 ?        00:00:00 /scratch/lsf101/c101/10.1/linux3.10-glibc2.17-x86_64/etc/res
root      242355  242339  1 01:07 ?        00:00:00 /scratch/lsf101/c101/10.1/linux3.10-glibc2.17-x86_64/etc/res

@liyancn liyancn requested a review from JishanXing September 11, 2023 09:29
Copy link
Collaborator

@JishanXing JishanXing left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@liyancn liyancn merged commit 21adf75 into IBMSpectrumComputing:master Sep 12, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants