betabug... Sascha Welter

home english | home deutsch | Site Map | Sascha | Kontakt | Pro | Weblog | Wiki

29 April 2009

Connect Zope to ZEO across Europe

Long Distance...

Just did an interesting test setup here... installed a ZEO server on a machine I have in a housing with good bandwidth in Austria, then connected a Zope instance as a ZEO client to it, from here in Greece. Took me a couple of minutes to setup. I can say it works at least for a first test setup. What this means is that the local machine renders web pages with data from a database that is 1288 km away...

Red tourist train in Athens (Thision area)

More about the setup: In Athens I'm on a quite lame ADSL connection (theoretically 4Mbps/1Mbps). The machine in Vienna has nice, phat pipes. Both have about the same CPU power and RAM setup (dual core 2.x Ghz, 4Gig RAM, so nothing special these days). I'm tunneling the Zope-ZEO connection over SSH port forwarding. This is just a first test setup, so I'd have to think about keeping the ssh connection open despite frequent line drops and sometimes high packet loss on the Greek ADSL connection. I have the ZEO mount point "cache-size" parameter at 30000 objects.

Some observation: Rendering pages is quite fast. Startup of Zope is fast too, but so far I have got almost no data in there, so that means nothing. After startup or restart the first requests take quite some time, probably the cache has to be primed. Have to think about persistent ZEO caches here maybe. The first write to the DB took quite long too, but that was the "main" object of my application. Further writes to the db seem to be done with an acceptable speed, but then I'm right now a single user doing almost nothing here.

There are a lot of "ifs" and "buts". My idea of a setup is a ZEO+Zope setup for serving pages on the fast lines in Austria. For updating content, there would be a second connection from a local Zope here in Greece. That way, customers would benefit from the fast lines, while we could work locally doing data insertions that are computing and local disk access intensive.

Posted by betabug at 15:34 | Comments (0) | Trackbacks (0)
ch athens
Life in Athens (Greece) for a foreigner from the other side of the mountains. And with an interest in digital life and the feeling of change in a big city. Multilingual English - German - Greek.
Main blog page
Recent Entries
Best of
Some of the most sought after posts, judging from access logs and search engine queries.

Apple & Macintosh:
Security & Privacy:
Misc technical:
Athens for tourists and visitors:
Life in general:
<< Berlin Brides | Main | Hiking in the Mountains of Taygetus >>
There are no comments.
You can trackback to:
There are no trackbacks.