trafodion icon indicating copy to clipboard operation
trafodion copied to clipboard

[TRAFODION-3248]provide more dcscheck option

Open CoderSong2015 opened this issue 6 years ago • 21 comments

-m: memory status of dcsmaster -s: status of mxosrvrs -t: thread info of dcs ListenerWorker and ListenerService

CoderSong2015 avatar Dec 12 '18 09:12 CoderSong2015

Check Test Started: https://jenkins.esgyn.com/job/Check-PR-master/3064/

Traf-Jenkins avatar Dec 12 '18 09:12 Traf-Jenkins

Test Passed. https://jenkins.esgyn.com/job/Check-PR-master/3064/

Traf-Jenkins avatar Dec 12 '18 12:12 Traf-Jenkins

status of mxosrvrs can be got using rest api

hegdean avatar Dec 17 '18 18:12 hegdean

status of mxosrvrs can be got using rest api

yes,it can. But another developer told me that rest api will be delete sometimes so that I used zookeeper to get status of mxosrvrs directly.

CoderSong2015 avatar Dec 18 '18 03:12 CoderSong2015

You can refer to REST and DCS documentation. I don't understand the need to support this additional option in dcscheck script

hegdean avatar Dec 18 '18 17:12 hegdean

You can refer to REST and DCS documentation. I don't understand the need to support this additional option in dcscheck script

Sometimes in production environment 24400 port will be forbidden,even http is inaccessible. Besides, operation engineers could find the status of mxosrvr and dcs master easily .

CoderSong2015 avatar Dec 19 '18 02:12 CoderSong2015

To run dcscheck script you have to be on the node, so you should be able to run rest command from the node to get the status of mxosrvrs

hegdean avatar Dec 19 '18 02:12 hegdean

New Check Test Started: https://jenkins.esgyn.com/job/Check-PR-master/3070/

Traf-Jenkins avatar Dec 19 '18 02:12 Traf-Jenkins

To run dcscheck script you have to be on the node, so you should be able to run rest command from the node to get the status of mxosrvrs

yes,it can,but it‘s not easy for shell to parse json file(needs extra library like jq). Meanwhile, we have existing java library to visit zookeeper. And as above I said, another developer told me that rest api will be delete sometimes so that I used zookeeper to get status of mxosrvrs directly.

CoderSong2015 avatar Dec 19 '18 03:12 CoderSong2015

Test Passed. https://jenkins.esgyn.com/job/Check-PR-master/3070/

Traf-Jenkins avatar Dec 19 '18 05:12 Traf-Jenkins

@hegdean, how does this change look to you now?

DaveBirdsall avatar Dec 21 '18 19:12 DaveBirdsall

Change is not complete as suggested improvements/corrections have not been done

hegdean avatar Dec 21 '18 19:12 hegdean

New Check Test Started: https://jenkins.esgyn.com/job/Check-PR-master/3075/

Traf-Jenkins avatar Dec 22 '18 02:12 Traf-Jenkins

Test Passed. https://jenkins.esgyn.com/job/Check-PR-master/3075/

Traf-Jenkins avatar Dec 22 '18 05:12 Traf-Jenkins

can anyone take a review?

CoderSong2015 avatar Jan 09 '19 14:01 CoderSong2015

@hegdean, could you take another look? Thanks.

DaveBirdsall avatar Jan 09 '19 17:01 DaveBirdsall

Check Test Started: https://jenkins.esgyn.com/job/Check-PR-master/3081/

Traf-Jenkins avatar Jan 10 '19 08:01 Traf-Jenkins

Test Passed. https://jenkins.esgyn.com/job/Check-PR-master/3081/

Traf-Jenkins avatar Jan 10 '19 12:01 Traf-Jenkins

New Check Test Started: https://jenkins.esgyn.com/job/Check-PR-master/3102/

Traf-Jenkins avatar Jan 19 '19 02:01 Traf-Jenkins

Test Passed. https://jenkins.esgyn.com/job/Check-PR-master/3102/

Traf-Jenkins avatar Jan 19 '19 04:01 Traf-Jenkins

@hegdean, how does it look now?

DaveBirdsall avatar Jan 22 '19 17:01 DaveBirdsall