MassProspecting / docs

Public documentation, roadmap and issue tracker of MassProspecting
http://doc.massprospecting.com/
0 stars 0 forks source link

Monitoring and automated deployment of subaccount nodes #50

Open leandrosardi opened 2 months ago

leandrosardi commented 2 months ago

OPERATIONS


There is a new project: Monitoring servers for a new SaaS.

For servers deployed using TerraForm, we need to monitor:

If you are interested I can share the full requirement.


There is a new project: Auto-Scaling servers for a new SaaS.

Using TerraForm for creating/deleting servers with a specific image.

Also, also we need to setup a new subdomain with SSL for each server.

If you are interested, I can share the full requirement.


Please checkout this model:

https://github.com/MassProspecting/docs/raw/main/assets/internal/1-1.png

Technologies:

Do you know how to do that?


Technologies: Docker, Terraform.

Related documents:

  1. we need to choose a cloud-hosting provider: contabo? aws? hetzner?

  2. create images of different type of nodes that we need to work with.

There are 3 differnt images:

The manual procedure for these 3 kind of images are explained here.

Images have databases installed, so they must persist after restarting. If we are docker instances, such instances must persist.

  1. request creation/deletion nodes using TerraForm.

@leandrosardi should should be albe to request creation/deletion of nodes from Ruby code, passing the following parameters:

@leandrosardi should be able register created/deleted nodes into our database, with the following informaiton:

leandrosardi commented 3 weeks ago

Draft 1

goal:

Perform all operations with no need to access server via SSH

deployment

locally push secrets remotely pull secrets install environment remotely install components remotely deploy db deploy code deploy extensions stop nodes start nodes

monitoring

watch processes running watch node CPU, RAM, disk space watch logs email alert when a keyword happens in logs email alert when CPI RAM or Disk Available Space goes over a threshold. email alert when a proxy stops working