Skip to content
This repository has been archived by the owner on Mar 13, 2019. It is now read-only.

unnawut/elixir-casually-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ElixirCasually.Umbrella

Instructions

  1. On server:
ulimit -n 64000
MIX_ENV=prod mix phx.server
  1. On test runner (master):
ulimit -n 64000
iex --sname "runner" --cookie "elixir-casually" -S mix run -e 'Chaperon.Master.start()'
  1. On test runners (slave):
ulimit -n 64000
elixir --sname "runner" --cookie "elixir-casually" -S mix run --no-halt
  1. Run the test from the master runner:
LoadTester.run("http://localhost:5000", num_clients: 50, requests_per_sec: 1, duration: 10)

Test results

Setup

  • server-1: n1-standard-2 (2 vCPUs, 7.5 GB memory)
  • runner-1: n1-standard-1 (1 vCPU, 3.75 GB memory)
  • runner-2: n1-standard-1 (1 vCPU, 3.75 GB memory)
  • runner-3: n1-standard-1 (1 vCPU, 3.75 GB memory)
  • runner-4: n1-standard-1 (1 vCPU, 3.75 GB memory)
  • runner-5: n1-standard-1 (1 vCPU, 3.75 GB memory)

Summarized results

Req/s Min - Ex Min - Ruby 95th - Ex 95th - Rb Max - Ex Max - Rb
2,000 0 ms 1 ms 3 ms 4 ms 50 ms 29 ms
3,000 0 ms 1 ms 3 ms 5 ms 149 ms 74 ms
4,000 0 ms 1 ms 5 ms 6 ms 177 ms 93 ms
5,000 0 ms 1 ms 8 ms 11 ms 96 ms 120 ms
6,000 0 ms 1 ms 4 ms 19 ms 144 ms 126 ms
7,000 0 ms 1 ms 8 ms 35 ms 167 ms 146 ms
8,000 0 ms 1 ms 21 ms 59 ms 209 ms 166 ms
9,000 0 ms 1 ms 44 ms 92 ms 255 ms 1,182 ms
10,000 0 ms 1 ms 83 ms 1,038 ms 275 ms 7,227 ms

See Raw results for more details.

Things to demo (hopefully)

  • Pipes
  • Immutability
  • Pattern matching & guards
  • Umbrella apps & subapps
  • GenServer
  • Supervisor
  • Swarm & clustering, auto spin up lots of load runners + node auto-discovery + test running + spin down

Noteworthy

Credits

Thanks to these fellas for making this meetup happen and their support in building this demo:

  • Adhapol Vinn
  • Pallop Chao
  • Panumarch Anantachaiwanich
  • Pii Boonchokchuay
  • Pongsatorn Paewsoongnern
  • Ranatchai Chernbamrung
  • Supanat IBoss Potiwarakorn
  • Wasawat Somno

About

An Elixir demo application for Elixir Casually meetup on 21 Feb 2019. Bangkok, Thailand.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published