39
Stackato - a developers experiences and evaluation by jonasbn for CopenhagenJS

Stackato v3

Embed Size (px)

DESCRIPTION

My Stackato presentation given to the CopenhagenJS user group. Basic examples were implemented in Node. More information available at: https://logiclab.jira.com/wiki/display/OPEN/Stackato

Citation preview

Page 1: Stackato v3

Stackato- a developers experiences and evaluation

by jonasbn for CopenhagenJS

Page 2: Stackato v3

Disclaimer• I am jonasbn - like almost everywhere

• Long time Perl and web developer

• Open Source/CPAN contributor and previously freelance developer in logicLAB

• Currently employed with DK Hostmaster

• I have no affiliation with ActiveState

Page 3: Stackato v3

(My) Developer Needs• Easy access to platform, runtimes and

frameworks

• The least possible gap between development, test and production

• Minimal differences between deployed code and the code in the editor

• reproducibility for transparency

Page 4: Stackato v3

What do we have?• Unit-tests

• Mocked objects and classes, stubs a.s.o

• Local servers / emulators

• Virtualization

• Dedicated environments (dev/test/prod)

• Code - lots of code...So what do we have - >complexity

Page 5: Stackato v3

complexity

• We require magic

• We rely on tribal knowledge

• We need to jump through hoops

Reading all the articles on the Intarweb it sounds like we need... -> the cloud

Page 6: Stackato v3

the Cloud

• What is the cloud?

• What problem does the cloud solve?

• What needs does the cloud address?

• So what is the cloud?

Page 7: Stackato v3

Williamstown Theatre Festival?

Found this in an article on a business website

But everybody talks about... -> Amazon!

Page 8: Stackato v3

Talking Cloud

You cannot ignore Amazon and EC2

Page 9: Stackato v3

Dr. Matt Wood (@mtz)

• Technology Evangelist with Amazon, working with Amazon Web Services (AWS)

• http://youtu.be/NT-ccnFMBWA

• from Internetdagarna 2011 in Stockholm/Sweden

Page 10: Stackato v3

Dr. Matt Wood / Heavy Lifting

Page 11: Stackato v3

Dr. Matt Wood / 30%

Page 12: Stackato v3

Points from Dr. Matt Wood

• 30-70% divide

• IT infrastructure friction

• Focus on your core competences

• Focus on delivering value

• http://www.slideshare.net/FDIHdk/ahead-in-the-cloud-matt-wood-amazon

The general issue of development vs. operations is quite wide-spread, see something like the GOTOCPH conference 2011 with a dedicated track

Page 13: Stackato v3

Amazon EC2

• Amazon EC2 however does not get us there - no matter how much elasticity it provides

• http://aws.amazon.com/ I personally was looking for Perl in the cloud - that was not easy

Page 14: Stackato v3

JS/Ruby/Perl in the

• @ActiveState introduces #stackato based on phenona and Cloud Foundry

• http://www.activestate.com/stackato

• http://www.cloudfoundry.com/

Page 15: Stackato v3

Stackato• A micro-cloud

• current version 1.0.6

• out of beta, released 2012.02.29

• Platform as a Service (PaaS) private and public

• Supporting several languages, their frameworks and commonly-used services

Page 16: Stackato v3
Page 17: Stackato v3

Demo 1Simple Node application

Page 18: Stackato v3

Demo 1 - recapNode application

Page 19: Stackato v3

initial deployment

• target, where do we want to deploy

• login, it is all a matter of permissions

• push, a “one-click” CLI deployment

Page 20: Stackato v3

inspecting deployment

• logs• crashes• crashlogs• files

Page 21: Stackato v3

operating• start, start a service

• stop, stop a service

• restart, restart a service

• this is about it, for what I can provide for now, I have no experience with long time operation of a Stackato deployed service

• Oh there is one more thing...

Page 22: Stackato v3

Demo 2the built in management console

Page 23: Stackato v3

Demo 3Yet Another Node application

Page 24: Stackato v3

updating

• update, when an application has been pushed (deployed) this is the command you will use

Page 25: Stackato v3

All the little things

• binding DNS, going beyond mDNS

• binding services (databases et al.)

• resource allocation, memory, instances etc.

• logging (more on this later...)

• now for some architecture...

Page 26: Stackato v3
Page 27: Stackato v3

Support• @ActiveState fora

• #stackato on irc://irc.freenode.org with users and ActiveState staff

• Webcasts

• White papers

• ActiveState are incredibly open and cooperative

Page 28: Stackato v3

Open Source Examples

• @ActiveState examples on Github

• my own fork is on Github

• Github is nice!

Page 29: Stackato v3

Stackato is not

• Open Source? - it is closed and proprietary

• @ActiveState is however dedicated to keeping the micro-cloud solution free

Page 30: Stackato v3

So what is in it?

Page 31: Stackato v3

Targets!• Multiple targets

• development / test / production

• Targets make sense in SCM context

• trunk / branches / tags (releases)

• You could just go for the micro-cloud, but you would loose some of the benefits

Page 32: Stackato v3
Page 33: Stackato v3

But wait there is more!

Page 34: Stackato v3

Demo 4the built in app store

You can have your very own private app store

Page 35: Stackato v3

My Current Road Map• Oracle as a service (Perl driver DBD::Oracle and Oracle

driver distribution issue)

• Cryptographic components (export of PPMs, Perl packages)

• Deployment of custom components

• Service integration (PostgreSQL)

• Full blown examples (Mojolicious over Mojolicious::Lite etc.)

• mDNS and dynamic DNS (might be .local)

• Central logging (syslog)

Page 36: Stackato v3

Conclusion

• The Stackato cloud is awesome

• @ActiveState mean serious business

• I am going to present and propose Stackato as a part of our future infrastructure

Page 37: Stackato v3

Benefits• Easy and controlled access to platform,

runtimes and frameworks

• The least possible gap between development, test and production and minimal differences between deployed code and the code in the editor depending on your cloud deployment

• reproducibility for transparency since the amount of magic is kept at a minimum

Page 38: Stackato v3

jonasbn!

• @jonasbn, [email protected]

• Blogs: logicLAB.org and logicLAB.dk

• Presentation on Slideshare.com

• logicLAB Open Wiki

Page 39: Stackato v3

References• http://www.slideshare.net/FDIHdk/ahead-in-the-cloud-matt-wood-amazon

• http://youtu.be/NT-ccnFMBWA

• http://logiclab.dk/wordpress/2011/11/30/internetdagarna-day-2-matt-wood/

• http://en.wikipedia.org/wiki/WTF

• http://smallbiztechnology.com/archive/2011/09/wait-what-is-cloud-computing.html/

• http://www.activestate.com/stackato

• http://www.cloudfoundry.com/

• https://logiclab.jira.com/wiki/display/OPEN/Stackato

• https://github.com/jonasbn/stackato-samples

• https://github.com/ActiveState/stackato-samples

• http://aws.amazon.com/

• http://mentalized.net/journal/2010/02/05/hello_rails_3_world/