More Related Content
Similar to Beccoame Ver0.1
Similar to Beccoame Ver0.1 (20)
More from Satoshi Hirata (20)
Beccoame Ver0.1
- 1. Beccoame Ver0.1
tag: Tatsumaki, Sys::Virt
24/07/2010
Satoshi Hirata
Copyright © Fusic Co., Ltd. All rights reserved.
- 3. 0. About me
Satoshi Hirata
Copyright © Fusic Co., Ltd. All rights reserved. 3
- 4. 0. About me
Satoshi Hirata
Company: Fusic Co., Ltd.
Copyright © Fusic Co., Ltd. All rights reserved. 4
- 5. 0. About me
Satoshi Hirata
Company: Fusic Co., Ltd.
Skill: Program/Server/Network,
Copyright © Fusic Co., Ltd. All rights reserved. 5
- 6. 0. About me
Satoshi Hirata
Company: Fusic Co., Ltd.
Skill: Program/Server/Network,
and “Nomikai”
Copyright © Fusic Co., Ltd. All rights reserved. 6
- 7. 0. About me
Satoshi Hirata
Company: Fusic Co., Ltd.
Skill: Program/Server/Network,
and “Nomikai”
Twitter: http://twitter.com/debility
Copyright © Fusic Co., Ltd. All rights reserved. 7
- 8. 0. About me
Satoshi Hirata
Company: Fusic Co., Ltd.
Skill: Program/Server/Network,
and “Nomikai”
Twitter: http://twitter.com/debility
Icon: © Mutsuking
Copyright © Fusic Co., Ltd. All rights reserved. 8
- 9. 1. What is “Beccoame”?
Copyright © Fusic Co., Ltd. All rights reserved. 9
- 10. 1. What is “Beccoame”?
Beccoame
Copyright © Fusic Co., Ltd. All rights reserved. 10
- 11. 1. What is “Beccoame”?
Beccoame
≠ BEKKOAME INTERNET
Copyright © Fusic Co., Ltd. All rights reserved. 11
- 12. 1. What is “Beccoame”?
Beccoame
= Bogus elastic computing,
like Amazon EC2 or Eucalyptus
Copyright © Fusic Co., Ltd. All rights reserved. 12
- 13. 1. What is “Beccoame”?
Beccoame
= Bogus elastic computing,
like Amazon EC2 or Eucalyptus
Copyright © Fusic Co., Ltd. All rights reserved. 13
- 14. 1. What is “Beccoame”?
Beccoame
= Bogus elastic computing,
like Amazon EC2 or Eucalyptus
important!
Copyright © Fusic Co., Ltd. All rights reserved. 14
- 16. 2. Outline
Amazon EC2
Copyright © Fusic Co., Ltd. All rights reserved. 16
- 17. 2. Outline
Amazon EC2
----- quote from official site -----
Copyright © Fusic Co., Ltd. All rights reserved. 17
- 18. 2. Outline
Amazon EC2
----- quote from official site -----
Amazon Elastic Compute Cloud (Amazon EC2)
is a web service that provides resizable
compute capacity in the cloud. It is designed
to make web-scale computing easier for
developers.
----- unquote -----
Copyright © Fusic Co., Ltd. All rights reserved. 18
- 19. 2. Outline
Eucalyptus
Copyright © Fusic Co., Ltd. All rights reserved. 19
- 20. 2. Outline
Eucalyptus
[Elastic Utility Computing Archtecture for Linking Your Programs To Useful Systems]
Copyright © Fusic Co., Ltd. All rights reserved. 20
- 21. 2. Outline
Eucalyptus
[Elastic Utility Computing Archtecture for Linking Your Programs To Useful Systems]
Open source elastic computing platform.
Copyright © Fusic Co., Ltd. All rights reserved. 21
- 22. 2. Outline
Eucalyptus
[Elastic Utility Computing Archtecture for Linking Your Programs To Useful Systems]
Open source elastic computing platform.
Eucalyptus is interface-compatible with the
Amazon Web Services (AWS).
Copyright © Fusic Co., Ltd. All rights reserved. 22
- 23. 2. Outline
Beccoame
Copyright © Fusic Co., Ltd. All rights reserved. 23
- 24. 2. Outline
Beccoame
“Ore-ore” elastic computing software.
Copyright © Fusic Co., Ltd. All rights reserved. 24
- 25. 2. Outline
Beccoame
“Ore-ore” elastic computing software.
Beccoame is a little bit compatible with
Amazon EC2 or Eucalyptus.
Copyright © Fusic Co., Ltd. All rights reserved. 25
- 26. 2. Outline
Beccoame
“Ore-ore” elastic computing software.
Beccoame is a little bit compatible with
Amazon EC2 or Eucalyptus.
Copyright © Fusic Co., Ltd. All rights reserved. 26
- 27. 2. Outline
Beccoame
“Ore-ore” elastic computing software.
Beccoame is a little bit compatible with
Amazon EC2 or Eucalyptus.
unofficial.
only for my study.
Copyright © Fusic Co., Ltd. All rights reserved. 27
- 28. 2. Outline
Beccoame
“Ore-ore” elastic computing software.
Beccoame is a little bit compatible with
Amazon EC2 or Eucalyptus.
Copyright © Fusic Co., Ltd. All rights reserved. 28
- 29. 2. Outline
Beccoame
“Ore-ore” elastic computing software.
Beccoame is a little bit compatible with
Amazon EC2 or Eucalyptus.
only 3 actions
= run, terminate, describe
Copyright © Fusic Co., Ltd. All rights reserved. 29
- 32. 3. tag: Tatsumaki
Tatsumaki
Before that,
Copyright © Fusic Co., Ltd. All rights reserved. 32
- 34. 3. tag: Tatsumaki
PSGI/Plack
PSGI is an interface between Perl web applications
and web servers, and Plack is a Perl module and
toolkit that contains PSGI middleware, helpers and
adapters to web servers.
Copyright © Fusic Co., Ltd. All rights reserved. 34
- 35. 3. tag: Tatsumaki
PSGI/Plack
PSGI is an interface between Perl web applications
and web servers, and Plack is a Perl module and
toolkit that contains PSGI middleware, helpers and
adapters to web servers.
PSGI and Plack are inspired by Python's WSGI and
Ruby's Rack.
Copyright © Fusic Co., Ltd. All rights reserved. 35
- 36. 3. tag: Tatsumaki
Learn PSGI/Plack
reading:
WEB+DB Press vol.55
Copyright © Fusic Co., Ltd. All rights reserved. 36
- 38. 3. tag: Tatsumaki
Tatsumaki
----- quote from README -----
Copyright © Fusic Co., Ltd. All rights reserved. 38
- 39. 3. tag: Tatsumaki
Tatsumaki
----- quote from README -----
Tatsumaki is a toy port of Tornado for Perl using
Plack (with non-blocking extensions) and AnyEvent.
----- unquote -----
Copyright © Fusic Co., Ltd. All rights reserved. 39
- 40. 3. tag: Tatsumaki
Tatsumaki
----- quote from README -----
Tatsumaki is a toy port of Tornado for Perl using
Plack (with non-blocking extensions) and AnyEvent.
----- unquote -----
Author: Tatsuhiko Miyagawa
Copyright © Fusic Co., Ltd. All rights reserved. 40
- 41. 3. tag: Tatsumaki
Tatsumaki
----- quote from README -----
Tatsumaki is a toy port of Tornado for Perl using
Plack (with non-blocking extensions) and AnyEvent.
----- unquote -----
Author: Tatsuhiko Miyagawa
# I’m very sorrry for Unauthorized borrowing.
Copyright © Fusic Co., Ltd. All rights reserved. 41
- 42. 3. tag: Tatsumaki
Tatsumaki
----- quote from README: TATSUMAKI? -----
Copyright © Fusic Co., Ltd. All rights reserved. 42
- 43. 3. tag: Tatsumaki
Tatsumaki
----- quote from README: TATSUMAKI? -----
Tatsumaki is a Japanese for Tornado. Also, it might
sound familiar from "Tatsumaki Senpuukyaku" of
Ryu from Street Fighter II if you loved the Capcom
videogame back in the day :)
----- unquote -----
Copyright © Fusic Co., Ltd. All rights reserved. 43
- 44. 3. tag: Tatsumaki
Tatsumaki
----- quote from README: TATSUMAKI? -----
Tatsumaki is a Japanese for Tornado. Also, it might
sound familiar from "Tatsumaki Senpuukyaku" of
Ryu from Street Fighter II if you loved the Capcom
videogame back in the day :)
----- unquote -----
Copyright © Fusic Co., Ltd. All rights reserved. 44
- 45. 3. tag: Tatsumaki
Tatsumaki usage
use strict;
use warnings;
use Tatsumaki::Error;
use Tatsumaki::Application;
package MainHandler;
use parent qw(Tatsumaki::Handler);
sub get {
my $self = shift;
$self->write("Hello World.¥n”);
}
Copyright © Fusic Co., Ltd. All rights reserved. 45
- 46. 3. tag: Tatsumaki
Tatsumaki usage
package main;
my $app = Tatsumaki::Application->new([
'/' => 'MainHandler',
]);
return $app;
Copyright © Fusic Co., Ltd. All rights reserved. 46
- 47. 3. tag: Tatsumaki
Tatsumaki usage
package main;
my $app = Tatsumaki::Application->new([
'/' => 'MainHandler',
]);
return $app;
----- :wq -----
$
Copyright © Fusic Co., Ltd. All rights reserved. 47
- 48. 3. tag: Tatsumaki
Tatsumaki usage
package main;
my $app = Tatsumaki::Application->new([
'/' => 'MainHandler',
]);
return $app;
----- :wq -----
$ plackup &
Twiggy: Accepting connections at http://0.0.0.0:5000/
Copyright © Fusic Co., Ltd. All rights reserved. 48
- 49. 3. tag: Tatsumaki
Tatsumaki usage
$ curl http://localhost:5000/
Hello, World.
Copyright © Fusic Co., Ltd. All rights reserved. 49
- 50. 3. tag: Tatsumaki
Tatsumaki usage
$ curl http://localhost:5000/
Hello, World.
$ :-)
Copyright © Fusic Co., Ltd. All rights reserved. 50
- 51. 3. tag: Tatsumaki
learn Tatsumaki
WEB+DB press vol.55
http://github.com/miyagawa/Tatsumaki
http://d.hatena.ne.jp/punitan/20100325/1269483016
http://www.omakase.org/perl/tatsumaki_niconico.html
etcetc ...
(google with “Tatsumaki” and “Perl”)
Copyright © Fusic Co., Ltd. All rights reserved. 51
- 54. 4. tag: Sys::Virt
Sys::Virt
Before that,
Copyright © Fusic Co., Ltd. All rights reserved. 54
- 56. 4. tag: Sys::Virt
KVM
Kernel-based Virtualization Machine.
Copyright © Fusic Co., Ltd. All rights reserved. 56
- 57. 4. tag: Sys::Virt
KVM
Kernel-based Virtualization Machine.
Using KVM, one can run multiple virtual
machines running unmodified Linux or
Windows images. Each virtual machine has
private virtualized hardware: a network card,
disk, graphics adapter, etc.
Copyright © Fusic Co., Ltd. All rights reserved. 57
- 59. 4. tag: Sys::Virt
libvirt
A toolkit to interact with the virtualization
capabilities of recent versions of Linux (and
other OSes).
Copyright © Fusic Co., Ltd. All rights reserved. 59
- 60. 4. tag: Sys::Virt
libvirt
A toolkit to interact with the virtualization
capabilities of recent versions of Linux (and
other OSes).
# Not only for KVM, it is for other
virtualization software (Xen, ESXi, ...) .
Copyright © Fusic Co., Ltd. All rights reserved. 60
- 62. 4. tag: Sys::Virt
Sys::Virt
libvirt binding for Perl
Copyright © Fusic Co., Ltd. All rights reserved. 62
- 63. 4. tag: Sys::Virt
Sys::Virt
libvirt binding for Perl
# There are other language bindings.
# see: http://libvirt.org/bindings.html
Copyright © Fusic Co., Ltd. All rights reserved. 63
- 64. 4. tag: Sys::Virt
Sys::Virt usage
use strict;
use warnings;
use Sys::Virt;
my $addr = ‘qemu:///system’;
my $vmm = Sys::Virt->new(address => $addr);
my @domains = $vmm->list_domains();
foreach my $dom (@domains) {
print "Domain ", $dom->get_id, " ", $dom->get_name, "¥n";
}
Copyright © Fusic Co., Ltd. All rights reserved. 64
- 65. 4. tag: Sys::Virt
Sys::Virt usage
----- :wq -----
$
Copyright © Fusic Co., Ltd. All rights reserved. 65
- 66. 4. tag: Sys::Virt
Sys::Virt usage
----- :wq -----
$ perl sys_virt.pl
Domain 0 ubuntu-lucid
Domain 1 centos
Domain 2 ubuntu-carmic
Copyright © Fusic Co., Ltd. All rights reserved. 66
- 67. 4. tag: Sys::Virt
Sys::Virt usage
----- :wq -----
$ perl sys_virt.pl
Domain 0 ubuntu-lucid
Domain 1 centos
Domain 2 ubuntu-carmic
$ :-)
Copyright © Fusic Co., Ltd. All rights reserved. 67
- 69. 5. demo: Beccoame
Beccoame working image
Copyright © Fusic Co., Ltd. All rights reserved. 69
- 70. 5. demo: Beccoame
Demo 3 actions.
1. Run Instances
Copyright © Fusic Co., Ltd. All rights reserved. 70
- 71. 5. demo: Beccoame
Demo 3 actions.
1. Run Instances
2. Describe Instances
Copyright © Fusic Co., Ltd. All rights reserved. 71
- 72. 5. demo: Beccoame
Demo 3 actions.
1. Run Instances
2. Describe Instances
3. Terminate Instance
Copyright © Fusic Co., Ltd. All rights reserved. 72
- 74. 6. next: Beccoame
・ asynchronous processing
Copyright © Fusic Co., Ltd. All rights reserved. 74
- 75. 6. next: Beccoame
・ asynchronous processing
・ more actions
Copyright © Fusic Co., Ltd. All rights reserved. 75
- 76. 6. next: Beccoame
・ asynchronous processing
・ more actions
・ more compatible
Copyright © Fusic Co., Ltd. All rights reserved. 76
- 77. 6. next: Beccoame
・ asynchronous processing
・ more actions
・ more compatible
・ error handling
Copyright © Fusic Co., Ltd. All rights reserved. 77
- 79. 7. CM
Today’s presentation is on .
Copyright © Fusic Co., Ltd. All rights reserved. 79
- 80. 7. CM
Today’s presentation is on .
ZENPRE(Beta):
Web-based presentation application
http://zenpre.net/
Copyright © Fusic Co., Ltd. All rights reserved. 80
- 81. 7. CM
Today’s presentation is on .
ZENPRE(Beta):
Web-based presentation application
http://zenpre.net/
08/02/2010 Official Release
Copyright © Fusic Co., Ltd. All rights reserved. 81
- 82. 7. CM
Today’s presentation is on .
ZENPRE(Beta):
Web-based presentation application
http://zenpre.net/
08/02/2010 Official Release
And today I use iPhone App for ZENPRE.
Copyright © Fusic Co., Ltd. All rights reserved. 82