dsa0x / jo

A web server that uses the Hashistack Tools.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Project using hashistack

Creating an app that uses the Hashistack Tools.

  • Nomad for container ochestration
  • Consul for service discovery
  • Fabio* for load balancing

Requirements

  • Nomad
  • Go

Info

  • Go application is running on 5 different instances, each with a different port.
  • Nomad is used to schedule the instances.
  • Fabio balances the load between the instances.
  • Consul is used to register the instances with the load balancer.

Run nomad jobs

Change hardcoded paths in the jobs to match your environment. cd nomad nomad job init nomad job run consul.nomad nomad job run postgres.nomad nomad job run web.nomad nomad job run fabio.nomad

Just for dev purposes, Never run db jobs in production.

If you are using a non-M1 machine, replace fabio.nomad with the right artifact.

About

A web server that uses the Hashistack Tools.


Languages

Language:HCL 73.2%Language:Go 26.6%Language:Makefile 0.2%