Admin Interfaces: Difference between revisions

From acumen Wiki
Jump to navigation Jump to search
Line 57: Line 57:


There are three containers that are typically displayed as <b>stopped</b> and this is not a concern. These are:
There are three containers that are typically displayed as <b>stopped</b> and this is not a concern. These are:
 
<I>
::*dockerise_mysql-setup_1
::*dockerise_mysql-setup_1
::*dockerise_download_bplan_1
::*dockerise_download_bplan_1
::*dockerise_download_cif_1
::*dockerise_download_cif_1
 
</I>
To view the <b>logs</b> associated with a container, click on the blue paper icon in the <I>Quick actions</I> column. Within the Log viewer you may want to use the switch to display timestamps.
To view the <b>logs</b> associated with a container, click on the blue paper icon in the <I>Quick actions</I> column. Within the Log viewer you may want to use the switch to display timestamps.


Line 67: Line 67:


The option is provided to <b>restart</b> one or more containers. This can be achieved by selecting the container(s) from the Container list or clicking on the specific container.
The option is provided to <b>restart</b> one or more containers. This can be achieved by selecting the container(s) from the Container list or clicking on the specific container.
<b>When will I use this?</b>
::*Daily checks to ensure containers are <b>healthy/running</b>
::*If a container needs to be restarted. For example, if acumen cannot be accessed, then an option would be to <b>restart</b> <I>dockerise_flask-app_1</I>


= phpMyAdmin =
= phpMyAdmin =

Revision as of 14:23, 22 September 2020

These are now the preferred applications over sign on via PuTTY/ssh. However PuTTY will still need to be accessed to view certain data. This includes:

Other web interfaces to use include:

URLs are as follows. User names and passwords can be found in the new_interfaces document on Teams.

Component Production Training
Portainer https://prod-pt.tms-uk-rail.co.uk/ https://trg-pt.tms-uk-rail.co.uk/
phpMyAdmin https://prod-db.tms-uk-rail.co.uk/ https://trg-db.tms-uk-rail.co.uk/
Log Viewer https://prod-lv.tms-uk-rail.co.uk https://trg-lv.tms-uk-rail.co.uk
Redis Commander https://prod-rc.tms-uk-rail.co.uk/ https://trg-rc.tms-uk-rail.co.uk/
RQ Dashboard https://prod-rq.tms-uk-rail.co.uk/ https://trg-rq.tms-uk-rail.co.uk/
RabbitMQ http://77.68.3.32:15672 http://77.68.3.32:15672

Note: There are different URLs for the production server compared to the training server. It is likely that most of these activities will be undertaken on the production URLs.

Portainer

Click on the primary group to open the dashboard.

Containers

The Container List displays whether a container is healthy, unhealthy, running or stopped.

Note: You may wish to set the number of Items per page to All.

A healthy container can be considered the same as a running container; it just has a built in health check.

There are three containers that are typically displayed as stopped and this is not a concern. These are:

  • dockerise_mysql-setup_1
  • dockerise_download_bplan_1
  • dockerise_download_cif_1

To view the logs associated with a container, click on the blue paper icon in the Quick actions column. Within the Log viewer you may want to use the switch to display timestamps.

Stats can be viewed by clicking the blue graph icon in the Quick actions column. This displays the memory, CPU and network usage. This information only starts to display once opened so should be observed over a time period to see average behaviour.

The option is provided to restart one or more containers. This can be achieved by selecting the container(s) from the Container list or clicking on the specific container.

When will I use this?

  • Daily checks to ensure containers are healthy/running
  • If a container needs to be restarted. For example, if acumen cannot be accessed, then an option would be to restart dockerise_flask-app_1

phpMyAdmin

Log Viewer

The Log Viewer is a web interface alternative to loading the application logs (See Gateway server##Application logs).

The folders provide a last modified time/date to indicate what has changed and what needs to be checked. The following folders are likely to see daily activity, otherwise the files within the folders should show a size of 0B meaning there is no log to report.

Note: The logs rotate every 12hrs, aka they receive a date stamp after 12hrs and a new log is created. These can be seen by scrolling down within the folder.

Folder File(s) Reason for log
download_cif post_processing Incremental CIF received and processed daily
Example? Example? Why?

When will I use this?

  • As part of the morning daily check. (TBC)
  • When investigating an error. For example acumen loses s-class messages but RabbitMQ says the gateway server is fine and the container is running. The s-class folder within the Log Viewer could show what the error is.

Redis Commander