Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyTechCo Simulator

This is a companion repository for the Get Started with Nomad collection. It contains the source code for the example application used in that collection.

pytechco simulator GIF

A tech company simulator similar to John Conway's Game of Life in that it requires no interaction from the user.

Once set up, employees come online to work on their tasks and log off once complete. These tasks generate resources for the company that are shown in the company stats section. New employees come online only if there is enough money to cover their salary.

You can deploy the application with Nomad job specs on your Nomad cluster. The jobs use Nomad native service discovery.

  1. Start Redis

nomad job run deploy/nomad/pytechco-redis.hcl

  1. Set up the database
nomad job run deploy/nomad/local-vm/pytechco-setup.hcl
nomad job dispatch -meta budget=200 pytechco-setup
  1. Start web UI

    nomad job run deploy/nomad/local-vm/pytechco-web.hcl

  2. Start workers

    nomad job run deploy/nomad/local-vm/pytechco-employee.hcl

Design

Refer to the PyTechCo Simulator design file.

About

No description, website, or topics provided.

Resources

Stars

3 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages