Is that a Plone in your pocket...?

Preview:

DESCRIPTION

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

Citation preview

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.

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

The Raspberry PiThe Raspberry Pi● modern retromodern retro

● cheapcheap

● soon to soon to

be abundant... be abundant...

● tons of funtons of fun

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

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

So why?So why?

Because we canBecause we can

Because we shouldBecause we should

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

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!

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?

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?

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

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...

Not this good.Not this good.

But good.But good.

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

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

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

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

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

Rule 34Rule 34 no exceptionsno exceptions

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

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

NanoplonesNanoplonesFTW!FTW!

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

Start painting!Start painting!

Think of the children!Think of the children!

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

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.

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

Pick one to play withPick one to play with

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?

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

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”)

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!!!!!!

Catch meCatch me

● IRC: polyesterIRC: polyester

● twitter: polyestertwitter: polyester

● paul@cleanclothes.orgpaul@cleanclothes.org

Recommended