Skip to content

sasa1977/soul_of_erlang_and_elixir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MySystem

This is updated source code of the demo used in my talk Soul of Erlang and Elixir. Note that some changes have been made compared to the original demo (the code of which can be found here).

Usage

The Elixir & Erlang versions are specified in the .tool-versions. You can use the asdf version manager to install them.

  1. mix deps.get
  2. Build the release with mix release.
  3. Start it with _build/prod/rel/my_system/bin/my_system start
  4. You can find the load control dashboard at http://localhost:4000/dashboard/load_control
  5. The sum calculation page is available at http://localhost:4000
  6. Compared to the original demo, there is no helper code to find the busiest process(es). Instead, you can use the processes dashboard, and sort by reductions.
  7. To upgrade the running system invoke mix upgrade. Note that this task is very hacky, and it will only update the two modules which need to be changed to fix the problem.
  8. To start additional node(s) you can invoke mix add_node. This will start a dev node that listens on the next available port (4001, 4002, ...). The node will take over some part of the synthetic load created on the load control page. If the node is taken down, the remaining nodes will take over the missing load.

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published