Difference between revisions of "Server Restart Sequence"
From AgileApps Support Wiki
imported>Aeric |
imported>Aeric |
||
Line 1: | Line 1: | ||
<includeonly>=== Server Restart Sequence ===</includeonly> | <includeonly>=== Server Restart Sequence ===</includeonly> | ||
When an installation employs <tt>memcached</tt> or the [[Messaging Server]], it is important to follow this sequence when restarting servers: | When an installation employs <tt>memcached</tt> or the [[Platform Installation Guide (printable)#Messaging Server Installation|Messaging Server]], it is important to follow this sequence when restarting servers: | ||
:<syntaxhighlight lang="bash" enclose="div"> | :<syntaxhighlight lang="bash" enclose="div"> | ||
# STOP THE MESSAGING SERVER, if one is running: | # STOP THE MESSAGING SERVER, if one is running: |
Revision as of 02:50, 24 January 2014
When an installation employs memcached or the Messaging Server, it is important to follow this sequence when restarting servers:
- <syntaxhighlight lang="bash" enclose="div">
- STOP THE MESSAGING SERVER, if one is running:
/etc/init.d/messaging stop {hornetq-folder}/bin/stop.sh
- STOP ALL APPLICATION SERVERS
- On each server:
{appserver_files}/scripts/longjump stop ps aux | grep tomcat
# If you see a Tomcat process running, kill it: kill {tomcat_process_id} # Repeat until the system says "No such process"
- STOP ALL memcached SERVERS
- On each server:
- START ALL memcached SERVERS
- On each server:
- START ALL APPLICATION SERVERS
- On each server:
{appserver_files}/scripts/longjump start
- START THE MESSAGING SERVER, if you're running one:
{hornetq-folder}/bin/start.sh /etc/init.d/messaging start </syntaxhighlight>
- Considerations
-
- Stopping application servers ensures that they aren't adding entries to the cache.
- Stopping memcached makes sure that the cache is flushed.
- Those two steps can occur in either order. It is the next two for which order is critical:
- Restarting memcached first makes sure that a clean copy of the cache is available.
- When the application servers come up, they use the clean cache.