Is that a Plone in your pocket...?

30
Is that a Plone in your pocket... Is that a Plone in your pocket... and yes, I'm happy and yes, I'm happy to see you too. to see you too.

description

How low can we go? Running Plone on the Raspberry Pi (and other fun hardware)

Transcript of Is that a Plone in your pocket...?

Page 1: Is that a Plone in your pocket...?

Is that a Plone in your pocket...Is that a Plone in your pocket...

and yes, I'm happyand yes, I'm happy

to see you too.to see you too.

Page 2: Is that a Plone in your pocket...?

About meAbout me

● Likes to push the button thatLikes to push the button that

say “Don't touch button”say “Don't touch button”

● Bought a ZX 81 @ 11 yearsBought a ZX 81 @ 11 years

● Mediocre, but in a Mediocre, but in a lotlot of things of things

Page 3: Is that a Plone in your pocket...?

The Raspberry PiThe Raspberry Pi● modern retromodern retro

● cheapcheap

● soon to soon to

be abundant... be abundant...

● tons of funtons of fun

Page 4: Is that a Plone in your pocket...?

Hmmm... specs?Hmmm... specs?

● ARM v6, 700Mhz.ARM v6, 700Mhz.

● 256 Mb ram256 Mb ram

● SD card.SD card.

● Debian WheezyDebian Wheezy

● USB poweredUSB powered

Page 5: Is that a Plone in your pocket...?

Hmmm... specs?Hmmm... specs?

● ARM v6, 700Mhz.ARM v6, 700Mhz.

● 256 Mb ram256 Mb ram

● SD card.SD card.

● Debian WheezyDebian Wheezy

● USB poweredUSB powered

McKayla isMcKayla isNOT NOT

impressedimpressed

Page 6: Is that a Plone in your pocket...?

So why?So why?

Because we canBecause we can

Because we shouldBecause we should

<insert Zen quote about something><insert Zen quote about something>

Page 7: Is that a Plone in your pocket...?

Because we canBecause we can

Because we shouldBecause we should

<insert Zen quote about something><insert Zen quote about something>

So why?So why?

DUH!

Page 8: Is that a Plone in your pocket...?

Method to the madnessMethod to the madness

● Disk speed is important.Disk speed is important.

● Filesystem optimalization: 8-20x speedFilesystem optimalization: 8-20x speed

● Transactions are good. So is beer. Transactions are good. So is beer.

Too much of a good thing can be bad. Too much of a good thing can be bad.

● How much logging do you need?How much logging do you need?

Page 9: Is that a Plone in your pocket...?

Further reductionsFurther reductions

● Rip out languagesRip out languages

● Datetime 3Datetime 3

● Fiddle with object cachesFiddle with object caches

● Go easy on the Varnish, but do use itGo easy on the Varnish, but do use it

LITTLE COMPUTER

Y U NO MEMORY?

Page 10: Is that a Plone in your pocket...?

TechnobabbleTechnobabble

● tune2fs /dev/xxx -O has_journal -o journal_data_writebacktune2fs /dev/xxx -O has_journal -o journal_data_writeback

● mount /dev/xxx -o noatime,nodiratime,data=writeback,barrier=0mount /dev/xxx -o noatime,nodiratime,data=writeback,barrier=0

● Set zope_i18n_allowed_languages to just the one(s) you useSet zope_i18n_allowed_languages to just the one(s) you use

● Z2-log to critical, zope access logs disabledZ2-log to critical, zope access logs disabled

● tune syslogd and any other logs to be less chattytune syslogd and any other logs to be less chatty

Page 11: Is that a Plone in your pocket...?

ResultsResults

● It runs on the Pi. Sort of.It runs on the Pi. Sort of.

● On a On a luxuriousluxurious $52 computer-on-a-stick, it's fine. $52 computer-on-a-stick, it's fine.

● Doing some optimizations on a low-end 'real' Doing some optimizations on a low-end 'real'

machine gives very good results.machine gives very good results.

● So, check those stats!So, check those stats!

Starting to look good...Starting to look good...

Page 12: Is that a Plone in your pocket...?

Not this good.Not this good.

But good.But good.

Page 13: Is that a Plone in your pocket...?

OK, that's how. But …. why?OK, that's how. But …. why?

● WORMsWORMs

● Toughest place to be a PloneToughest place to be a Plone

● Rosy futureRosy future

Page 14: Is that a Plone in your pocket...?

OK, that's how. But …. why?OK, that's how. But …. why?

● WORMsWORMs

● Toughest place to be a PloneToughest place to be a Plone

● Rosy futureRosy future

Page 15: Is that a Plone in your pocket...?

Write Once, Read ManyWrite Once, Read Many

● A lot of sites are documentationA lot of sites are documentation

● Plone makes a superior doc repositoryPlone makes a superior doc repository

● But that hardly justifies a big serverBut that hardly justifies a big server

● Imagine you can hand them to departmentsImagine you can hand them to departments

Page 16: Is that a Plone in your pocket...?

We all know what the Internet is forWe all know what the Internet is for

Page 17: Is that a Plone in your pocket...?

Oh, and this...Oh, and this...

Rule 34Rule 34 no exceptionsno exceptions

Page 18: Is that a Plone in your pocket...?

I wanna do real bad things to you...I wanna do real bad things to you...

In some places,In some places,

life is, well, differentlife is, well, different

Page 19: Is that a Plone in your pocket...?

Now, pick one to impoundNow, pick one to impound

Not to scale...Not to scale...

and yes, security throughand yes, security throughobscurity is bad, obscurity is bad, mmmkaymmmkay

Page 20: Is that a Plone in your pocket...?

NanoplonesNanoplonesFTW!FTW!

But what aboutBut what aboutthat rosy futurethat rosy futureyou promised?you promised?

Start painting!Start painting!

Page 21: Is that a Plone in your pocket...?

Think of the children!Think of the children!

ehm, in a good way of course...ehm, in a good way of course...

Page 22: Is that a Plone in your pocket...?

Back to when I was young...Back to when I was young...

Clive Sinclair once famously boasted that you could Clive Sinclair once famously boasted that you could

run a nuclear power station using a ZX81.run a nuclear power station using a ZX81.

In Forth.In Forth.

So I learned Forth.So I learned Forth.

Page 23: Is that a Plone in your pocket...?

That's the real beauty of the PiThat's the real beauty of the Pi

The whole idea is to get kids to programThe whole idea is to get kids to program

Yes, they can play gamesYes, they can play games

but games they but games they

wrote themselveswrote themselves

in Pythonin Python

Page 24: Is that a Plone in your pocket...?

Pick one to play withPick one to play with

Page 25: Is that a Plone in your pocket...?
Page 26: Is that a Plone in your pocket...?

Near futureNear future

● Pi 2.0Pi 2.0

● Most Allwinner devices run fine.Most Allwinner devices run fine.

● Some have SATA!Some have SATA!

● Filesystem opts Filesystem opts areare important important

● Plone can be configured from XS to XXXL. Plone can be configured from XS to XXXL.

● Cloud, anyone?Cloud, anyone?

Page 27: Is that a Plone in your pocket...?

Well, actually, one can...Well, actually, one can...

Page 28: Is that a Plone in your pocket...?

One Plone to rule them all...One Plone to rule them all...

We really should change our messageWe really should change our message

Yes, we're ready for the enterpriseYes, we're ready for the enterprise

but we can be lean & mean as wellbut we can be lean & mean as well

A Plone for all sizesA Plone for all sizes

(and NO, that's not “one size fits all”)(and NO, that's not “one size fits all”)

Page 29: Is that a Plone in your pocket...?

Give me your tired, Give me your tired, your poor,your poor,your huddled masses...your huddled masses...

We need the 16-year old,We need the 16-year old,

doing her first website.doing her first website.

And the freelancer.And the freelancer.

The tinkerer.The tinkerer.

So document that shitSo document that shit!!!!!!

Page 30: Is that a Plone in your pocket...?

Catch meCatch me

● IRC: polyesterIRC: polyester

● twitter: polyestertwitter: polyester

[email protected]@cleanclothes.org