-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
a few change in galaxy management doc (simplification)
- Loading branch information
Showing
5 changed files
with
16 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,86 +1,26 @@ | ||
??? info "Galaxy server commands, quick reminder" | ||
Check that the server is running | ||
!!! info "Galaxy server commands, quick reminder" | ||
Check that the server is running and see last logs | ||
``` | ||
galaxyctl status | ||
systemctl status galaxy*.service | ||
|
||
# the three services Galaxy celery-beat, celery and gunicorn must be | ||
# active and running (green) | ||
``` | ||
Restart the server | ||
``` | ||
galaxyctl restart | ||
systemctl restart galaxy.target | ||
``` | ||
Start the Galaxy server, if for any reason it is down | ||
``` | ||
galaxyctl start | ||
systemctl start galaxy.target | ||
``` | ||
Follow the activity of Galaxy | ||
Follow the activity of the web part only (gunicorn) of the Galaxy server: | ||
``` | ||
galaxyctl follow | ||
``` | ||
Follow the activity of the web part only of the Galaxy server: | ||
``` | ||
tail -f /root/galaxy/database/gravity/log/gunicorn.log | ||
systemctl status galaxy-gunicorn.service | ||
``` | ||
|
||
## A graphical view of the Galaxy server states and the commands to control them | ||
|
||
![Galaxy server states](images/GalaxyStates-AG2022.png){width="1200"} | ||
|
||
## Commands to control the Galaxy server | ||
|
||
### The Galaxy server virtual environment | ||
|
||
First of all, you must keep in mind that the next commands are only accessible through | ||
the virtual environment that has been installed during the Galaxy deployment. | ||
|
||
It is easy to remember that you are actually working through this virtual environment, | ||
because it is indicated in you shell prompt as `(.venv)` when you connect as the admin | ||
user: | ||
|
||
Thus, when you execute `sudo -i`, you immediately see: | ||
``` | ||
(.venv) root@bare-galaxy:~# | ||
``` | ||
|
||
You don't have to worry about activating the .venv environment because during the | ||
deployment we automated this activation as soon as you log in to the admin account. | ||
|
||
However, if for any reason you were disconnected from the virtual environment (loosing | ||
the `.venv` in the prompt), you can always reactivate it by typing: | ||
|
||
``` | ||
source ~/galaxy/.venv/bin/activate | ||
``` | ||
|
||
You can experiment this by | ||
|
||
1. Deactivating the virtual environment | ||
``` | ||
deactivate | ||
``` | ||
2. Reactivating it: | ||
``` | ||
source ~/galaxy/.venv/bin/activate | ||
``` | ||
|
||
### The useful commands to control the Galaxy server | ||
|
||
1. Check that the server is running | ||
``` | ||
galaxyctl status | ||
``` | ||
2. Restart the server | ||
``` | ||
galaxyctl restart | ||
``` | ||
3. Start the Galaxy server, if for any reason it is down | ||
``` | ||
galaxyctl start | ||
``` | ||
4. Follow the activity of Galaxy | ||
``` | ||
galaxyctl follow | ||
``` | ||
5. Follow the activity of the web part only of the Galaxy server: | ||
``` | ||
tail -f /root/galaxy/database/gravity/log/gunicorn.log | ||
``` | ||
|
||
--- |