Middleware: Difference between revisions
Line 20: | Line 20: | ||
In the above example, we can observer that the STATUS of the container was created 12 days ago and has been 'Up' for 12 days, which indicates that there is no issue with the container. | In the above example, we can observer that the STATUS of the container was created 12 days ago and has been 'Up' for 12 days, which indicates that there is no issue with the container. | ||
=== Container logging === | |||
Where an issue with the database container has been observed then the Adminsitrator should check the logs: | |||
* Start an ssh session to the relevant application server; | * Start an ssh session to the relevant application server; | ||
Line 28: | Line 32: | ||
This action will stream the logs to the terminal; observing this output for a short time should provide some indications to any potential issues. | This action will stream the logs to the terminal; observing this output for a short time should provide some indications to any potential issues. | ||
Revision as of 10:24, 7 July 2020
This page relates to the middleware components deployed to application servers.
Click here fto learn more about middleware.
Database
Central to the application is the database server; acumen utilises a database server called MariaDB - the database server runs within its own Docker Container
Checking the container status
- Start an ssh session to the relevant application server;
- At the prompt, type the following commands:
<user>@acumen-app-server:~$ cd ~/dockerise/
<user>@acumen-app-server:~$ docker ps | grep "STATUS\|mysql"
The program will output information about the status of the container, for example:
In the above example, we can observer that the STATUS of the container was created 12 days ago and has been 'Up' for 12 days, which indicates that there is no issue with the container.
Container logging
Where an issue with the database container has been observed then the Adminsitrator should check the logs:
- Start an ssh session to the relevant application server;
- At the prompt, type the following commands:
<user>@acumen-app-server:~$ cd ~/dockerise/
<user>@acumen-app-server:~$ docker-compose logs -f mysql"
This action will stream the logs to the terminal; observing this output for a short time should provide some indications to any potential issues.