arrow-left

All pages
gitbookPowered by GitBook
1 of 1

Loading...

Server Operation

hashtag
Script Management

hashtag
Data Publication Logarrow-up-right shows an active job status log.

It's very important that the job server keeps from timing out.

hashtag
was a flask app, but has been taken down.

Its functionality was no longer needed after Boomi replaced the Enterprise Service Bus (ESB). Boomi is able to communicate directly with Knack. The change-over occurred in January, 2026.

hashtag
is a sanic app.

Since we converted this code into an async app we haven't had issues with it failing. But we did previously with Flask and never really got to understand the root issues.

If it goes down, log into atd-data01 via ssh and restart the containerized app with docker restart cctv-service.

hashtag
atd-data01 is our main/production data publishing server.

If atd-data01 crashes, it would just need to be restarted. Insert bash command sudo reboot. All of the data scripts are on cron jobs and will restart at various times. The two service app in docker containers on atd-data01 do need to be restarted manually. Those restart scripts live in their respective Github READMEs.

hashtag
Bash Commands

hashtag
Allocate Disk Space

  1. List volumes and usage:

  2. Check the free available space in the Volume group

  3. Extend the volume (here, adding 8GB)

hashtag
Miscellaneous:

run all shell scripts inside a folder

scp transfer files from local to remote directory:

hashtag
Amazon AWS

connect to instance

Expand the volume:
  • All done.

  • knack-proxyarrow-up-right
    cctv-servicearrow-up-right
    Sanicarrow-up-right
    $ df -h
    $ vgdisplay /dev/mapper/root_vg
    $ lvextend -L +8G /dev/mapper/root_vg-var_lv
    for shfile in *.sh; do sudo bash ./$shfile; done
    scp /Users/ZWL/Documents/GitHub/transportation-data-publishing/transportation-data-publishing/config/secrets.py liangz@atdatmsscript:transportation-data-publishing/transportation-data-publishing/config/
    ssh -i "<rse_key_filename>"  ec2-user@<server_ip>
    $ sudo xfs_growfs /dev/mapper/root_vg-var_lv