Cloud Erlang
Upcoming SlideShare
Loading in...5
×
 

Like this? Share it with your network

Share

Cloud Erlang

on

  • 3,012 views

You normally think of virtualization as virtualization at the operating system level. But with Erlang, you can do virtualization at application level.

You normally think of virtualization as virtualization at the operating system level. But with Erlang, you can do virtualization at application level.

Statistics

Views

Total Views
3,012
Views on SlideShare
2,998
Embed Views
14

Actions

Likes
4
Downloads
22
Comments
0

2 Embeds 14

https://twitter.com 13
https://si0.twimg.com 1

Accessibility

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

CC Attribution License

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Cloud Erlang Presentation Transcript

  • 1. Erlang:Bring cloud to your application Ngoc Dao
  • 2. Normally, you bringyour application → cloudErlang lets you bringcloud → your application
  • 3. Normally,cloud is at OS levelErlang lets you create and controlcloud at application level,your application
  • 4. It’s because Erlang feels like an OSYou can control the OS in your application
  • 5. ps → pman:start().
  • 6. top → etop:start().
  • 7. applications → applications appmon:start(). webtool:start(). observer:start().
  • 8. “We are dropping appmon, and replacing it with observer instead.”
  • 9. observer:start().
  • 10. webtool alternative: BigWig
  • 11. debugger:start().
  • 12. Let’s create a cloud
  • 13. Guest Guestmachine machine mynode1 mynode2 Erlang process Erlang process Erlang process Erlang process Erlang process Erlang process … … Host machine
  • 14. Create 2 nodes$ erl -sname mynode1 -setcookie mypassword1 -detached$ erl -sname mynode2 -setcookie mypassword2 -detached
  • 15. Check if the nodes are on$ ps aux Host machine Guest[output] machineepmd -daemonbeam.smp ... -sname mynode1 -setcookie mypassword1 -noshell -noinputbeam.smp ... -sname mynode2 -setcookie mypassword2 -noshell -noinput Guest machine
  • 16. Guest Guestmachine machine mynode1 mynode2 Erlang process Erlang process Erlang process Erlang process Erlang process Erlang process … … epmd Host machine
  • 17. Login to mynode1$ erl -sname mynode3 -setcookie mypassword1 -remsh mynode1@ngocFrom here, to stop mynode1:init:stop(). or q().To quit without stoping mynode1:Ctrl+C
  • 18. More topics• Deploy code to nodes• Connect nodes together• Hot code swap