PoonLab / covizu

Rapid analysis and visualization of coronavirus genome variation
https://filogeneti.ca/CoVizu/
MIT License
45 stars 20 forks source link

Containerize Covizu Front-End for Docker Swarm #486

Closed GopiGugan closed 6 months ago

GopiGugan commented 1 year ago

We currently have to completely stop/kill and start pm2 to get the front-end to use the updated data files (see #475). We need to look for alternatives to pm2 for zero downtime deployments

GopiGugan commented 1 year ago

Currently looking into using one of the following:

ArtPoon commented 1 year ago

@GopiGugan reported that since we are using a single system, it makes more sense to use Docker Swarm

ArtPoon commented 11 months ago

VM webserver has 32GB RAM and is running on Intel Xeon Gold 5218 CPUs (2.3GHz, 4 cores) Old webserver had 64GB RAM so memory may be an issue

ArtPoon commented 11 months ago

We could ask IT services to reprovision this VM with more RAM

ArtPoon commented 11 months ago

@ArtPoon to inquire about RAM upgrade

ArtPoon commented 10 months ago

Heard back from WTS, turns out we are paying a lot for the VM:

there is a cost increase of $4/GB, new billing is $318/month vs $190/month currently so we should probably have a hard look at third-party alternatives

ArtPoon commented 10 months ago

We should prioritize getting the old webserver back up

ArtPoon commented 10 months ago

Old webserver (coreceptor, now ccr5) is back up and on the network.
I have also installed OS for a backup server (cxcr4) that was once part of the cluster.

ArtPoon commented 10 months ago

@GopiGugan has ccr5 ready for traffic, @ArtPoon to update record to new IP address

ArtPoon commented 9 months ago

Records updated

ArtPoon commented 9 months ago

Waiting on validation of mongoDB to bring up second instance

ArtPoon commented 9 months ago

@GopiGugan created Docker file for MongoDB, as well as CoVizu Docker files, so have everything needed to run Swarm

GopiGugan commented 8 months ago
ArtPoon commented 8 months ago

go ahead and set up a test environment on Paphlagon

GopiGugan commented 7 months ago
  • Looking into create a service (using Docker Compose) to avoid having to use a container within a container

Using containers within a container impacts performance. Currently setting up a service using docker compose to deploy the front-end (with mongodb) on the web server

ArtPoon commented 7 months ago

@GopiGugan reports that front-end should be updated by this afternoon

GopiGugan commented 6 months ago

Front-end has been updated