Your SlideShare is downloading. ×
0
Cloud Erlang
Cloud Erlang
Cloud Erlang
Cloud Erlang
Cloud Erlang
Cloud Erlang
Cloud Erlang
Cloud Erlang
Cloud Erlang
Cloud Erlang
Cloud Erlang
Cloud Erlang
Cloud Erlang
Cloud Erlang
Cloud Erlang
Cloud Erlang
Cloud Erlang
Cloud Erlang
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Cloud Erlang

3,040

Published on

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.

Published in: Technology, News & Politics
0 Comments
7 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
3,040
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
33
Comments
0
Likes
7
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

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

×