Skip to content
/ jo Public

A web server that uses the Hashistack Tools.

Notifications You must be signed in to change notification settings

dsa0x/jo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Releases

No releases published

Packages

No packages published