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...")
 
 
(One intermediate revision by the same user not shown)
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
+
=== If it's down===
 +
(such as 404 error from nginx or Bad Gateway error)
 +
-  try restart staging site
  
- If it's down, such as 404 error from nginx or Bad Gateway error, try restart staging site
+
==Restart AceDB==
 
 
 
 
 
 
Restart AceDB
 
 
  <nowiki>
 
  <nowiki>
 
sudo /etc/init.d/xinetd stop  
 
sudo /etc/init.d/xinetd stop  
Line 17: Line 16:
 
</nowiki>
 
</nowiki>
  
Restart Staging site
+
==Restart Staging site==
 
  <nowiki>
 
  <nowiki>
 
ps -aux | grep starman
 
ps -aux | grep starman

Latest revision as of 21:31, 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