Difference between revisions of "Quick response cheatsheet"

From WormBaseWiki
Jump to navigationJump to search
(Created page with "Quick response cheatsheet When staging site is down or really slow: - If it's really slow, use top command to check if sgiface is at 100%, if so restart ACeDB - If it's dow...")
 
Line 1: Line 1:
Quick response cheatsheet
+
==When staging site is down or really slow==
 
 
When staging site is down or really slow:
 
  
 
- If it's really slow, use top command to check if sgiface is at 100%, if so restart ACeDB
 
- If it's really slow, use top command to check if sgiface is at 100%, if so restart ACeDB
Line 9: Line 7:
  
  
Restart AceDB
+
==Restart AceDB==
 
  <nowiki>
 
  <nowiki>
 
sudo /etc/init.d/xinetd stop  
 
sudo /etc/init.d/xinetd stop  
Line 17: Line 15:
 
</nowiki>
 
</nowiki>
  
Restart Staging site
+
==Restart Staging site==
 
  <nowiki>
 
  <nowiki>
 
ps -aux | grep starman
 
ps -aux | grep starman

Revision as of 21:30, 5 November 2015

When staging site is down or really slow

- If it's really slow, use top command to check if sgiface is at 100%, if so restart ACeDB

- If it's down, such as 404 error from nginx or Bad Gateway error, try restart staging site


Restart AceDB

sudo /etc/init.d/xinetd stop 
ps aux | grep sgiface 
!!If sgifaceserver is still running use 'kill #####' (where ##### is the process id) 
sudo /etc/init.d/xinetd start

Restart Staging site

ps -aux | grep starman

Find the two main processes, one is the daemon (wormbase.psgi) and the second is the starman master process.

sudo kill -9 [PIDs]
sudo pkill -9 starman
cd /var/lib/jenkins/jobs/staging_build/workspace
sudo -u jenkins ./script/wormbase-daemon.sh