cvs: presentations / srm-ffm2004.xml srm-zurich04.xml /slides/srm cluster-overview.png demo-cluster-1.xml demo-cluster-2.xml demo-cluster-3.xml
demo-cluster-4.xml demo-cluster-5.xml demo-cluster-6.xml moving.xml

From: Date: Fri, 05 Nov 2004 16:05:58 +0000
Subject: cvs: presentations / srm-ffm2004.xml srm-zurich04.xml /slides/srm cluster-overview.png demo-cluster-1.xml demo-cluster-2.xml demo-cluster-3.xml
demo-cluster-4.xml demo-cluster-5.xml demo-cluster-6.xml moving.xml
Groups: php.pres 
Request: Send a blank email to pres+get-1082@lists.php.net to get a copy of this message
derick Fri Nov 5 11:05:58 2004 EDT Added files: /presentations srm-ffm2004.xml /presentations/slides/srm cluster-overview.png demo-cluster-1.xml demo-cluster-2.xml demo-cluster-3.xml demo-cluster-4.xml demo-cluster-5.xml demo-cluster-6.xml Removed files: /presentations srm-zurich04.xml Modified files: /presentations/slides/srm moving.xml Log: - Removed the zurich talk which I never did due to fricking Avinor. - Updated the SRM presentation for Int. PHP Conference. http://cvs.php.net/diff.php/presentations/slides/srm/moving.xml?r1=1.1&r2=1.2&ty=u Index: presentations/slides/srm/moving.xml diff -u presentations/slides/srm/moving.xml:1.1 presentations/slides/srm/moving.xml:1.2 --- presentations/slides/srm/moving.xml:1.1 Sun Oct 3 09:45:45 2004 +++ presentations/slides/srm/moving.xml Fri Nov 5 11:05:58 2004 @@ -7,7 +7,7 @@ class foo { var $bar = ''; - function foo() { + function foo42() { $this->bar = 'foo'; return func_get_args(); } @@ -24,10 +24,10 @@ include '/usr/local/srm/banana/lib/foo.class.php'; $f = new foo; - $s = new SRM('127.0.0.1', 7777); + $s = new SRM('/tmp/srm.socket'); $f = new SRMApp($s, $f, 'key2'); - var_dump($f->foo(1, 2, 'bar', 3, 4)); + var_dump($f->foo42(1, 2, 'bar', 3, 4)); /* Properties don't work yet */ echo $f->bar; http://cvs.php.net/co.php/presentations/srm-ffm2004.xml?r=1.1&p=1 Index: presentations/srm-ffm2004.xml +++ presentations/srm-ffm2004.xml <?xml version="1.0" encoding="ISO-8859-1"?> <presentation template="css" navmode="html" navbarbackground="#4373b4" navbartopiclinks="0" navColor="#f1fbff" logo1="" stylesheet="presentations/slides/perf/ezp.css" backgroundfixed="1" > <topic>SRM</topic> <title>Script Running Machine</title> <event>Intl. PHP Conference</event> <location>Frankfurt, Germany</location> <date>Nov 10, 2004</date> <speaker>Derick Rethans</speaker> <email>derick@php.net</email> <slide>slides/ze-xdebug/title.xml</slide> <slide>slides/srm/online1.xml</slide> <slide>slides/srm/persistant1.xml</slide> <slide>slides/srm/persistant2.xml</slide> <slide>slides/srm/tree1.xml</slide> <slide>slides/srm/tree2.xml</slide> <slide>slides/phpperform/extern_srm.xml</slide> <slide>slides/srm/banana.xml</slide> <slide>slides/srm/interact.xml</slide> <slide>slides/srm/srm-tree1.xml</slide> <slide>slides/srm/srm-tree2.xml</slide> <slide>slides/srm/design.xml</slide> <slide>slides/srm/sourcelayout.xml</slide> <slide>slides/srm/compiling.xml</slide> <slide>slides/srm/configure-and-run.xml</slide> <slide>slides/srm/moving.xml</slide> <slide>slides/srm/demo-cluster-1.xml</slide> <slide>slides/srm/demo-cluster-2.xml</slide> <slide>slides/srm/demo-cluster-3.xml</slide> <slide>slides/srm/demo-cluster-4.xml</slide> <slide>slides/srm/demo-cluster-5.xml</slide> <slide>slides/srm/demo-cluster-6.xml</slide> <slide>slides/srm/future3.xml</slide> <slide>slides/xdebug/questions.xml</slide> <slide>slides/srm/resources.xml</slide> </presentation> http://cvs.php.net/co.php/presentations/slides/srm/demo-cluster-1.xml?r=1.1&p=1 Index: presentations/slides/srm/demo-cluster-1.xml +++ presentations/slides/srm/demo-cluster-1.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Demonstration - Cluster Management</title> <subtitle>Overview</subtitle> <image align="center" filename="cluster-overview.png" /> </slide> http://cvs.php.net/co.php/presentations/slides/srm/demo-cluster-2.xml?r=1.1&p=1 Index: presentations/slides/srm/demo-cluster-2.xml +++ presentations/slides/srm/demo-cluster-2.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Demonstration - Cluster Management</title> <subtitle>Configuration</subtitle> <blurb>Main Server configuration:</blurb> <example><![CDATA[srm { sockname = "/tmp/srm.socket.main"; logfile = "/var/log/srm"; disable_tcp_ip = 1; } banana { class_path = "/dat/dev/php/srm/demo/banana"; function_library = "/dat/dev/php/srm/demo/library/main.php"; }]]></example> <break lines="2"/> <blurb>Client Server configuration:</blurb> <example><![CDATA[srm { sockname = "/tmp/srm.socket.client1"; logfile = "/var/log/srm"; disable_tcp_ip = 1; } banana { class_path = "/dat/dev/php/srm/demo/banana"; function_library = "/dat/dev/php/srm/demo/library/client.php"; }]]></example> </slide> http://cvs.php.net/co.php/presentations/slides/srm/demo-cluster-3.xml?r=1.1&p=1 Index: presentations/slides/srm/demo-cluster-3.xml +++ presentations/slides/srm/demo-cluster-3.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Demonstration - Cluster Management</title> <subtitle>Master Code</subtitle> <example><![CDATA[<?php $client_last_nr = 0; $task_last_nr = 0; $clients = array(); $client_tasks = array(); function register($socket) { $GLOBALS['client_last_nr']++; $GLOBALS['clients'][$GLOBALS['client_last_nr']] = $socket; $GLOBALS['client_tasks'][$client_last_nr] = array(); echo "Registered client with socket '$socket'\n"; return $GLOBALS['client_last_nr']; } function unregister($id) { unset($GLOBALS['clients'][$id], $GLOBALS['client_tasks'][$id]); echo "Unregistered client #$id"; } function handle_uploaded_file($hostname, $path, $task_title) { $task_last_nr++; foreach ($GLOBALS['clients'] as $id => $obj) { if (is_string($obj)) { $obj = new srm($obj); $GLOBALS['clients'][$id] = $obj; } $GLOBALS['client_tasks'][$id][$task_last_nr] = true; $method = "execute_task_copyfile"; $obj->$method($hostname, $path, $task_title); } } ?>]]></example> </slide> http://cvs.php.net/co.php/presentations/slides/srm/demo-cluster-4.xml?r=1.1&p=1 Index: presentations/slides/srm/demo-cluster-4.xml +++ presentations/slides/srm/demo-cluster-4.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Demonstration - Cluster Management</title> <subtitle>Client Code</subtitle> <example><![CDATA[<?php include './paths.php'; $client_id = false; register($_SERVER['SRM_SOCKET']); register_shutdown_function('unregister'); function register($sockname) { global $client_id; $srm = new SRM(TMP_PATH . 'srm.socket.main'); $client_id = $srm->register($sockname); if (!$client_id) { return false; } echo "Registered with ID #$client_id\n"; return true; } function unregister() { global $client_id; $srm = new SRM(TMP_PATH . 'srm.socket.main'); echo "Unregistering client"; $srm->unregister($client_id); } function execute_task_copyfile($hostname, $path, $task_title) { echo "scp $hostname:$path /tmp/t.part\nmv /tmp/t.part $path\n"; sleep(2); } ?>]]></example> </slide> http://cvs.php.net/co.php/presentations/slides/srm/demo-cluster-5.xml?r=1.1&p=1 Index: presentations/slides/srm/demo-cluster-5.xml +++ presentations/slides/srm/demo-cluster-5.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Demonstration - Cluster Management</title> <subtitle>Usage</subtitle> <example><![CDATA[<?php echo "This is a simulation of uploading a file.\nHere we go:\n\n"; echo "Uploading file"; flush(); for ($i = 0; $i < 3; $i++) { sleep(1); echo "..."; flush(); } echo "Done\n\n\n"; echo "Now we register the uploaded file with the SRM daemon... "; $s = new SRM('/tmp/srm.socket.main'); $s->handle_uploaded_file('host', '/path/to/file', 'Our New File'); echo "Done!\n"; ?> ]]></example> </slide> http://cvs.php.net/co.php/presentations/slides/srm/demo-cluster-6.xml?r=1.1&p=1 Index: presentations/slides/srm/demo-cluster-6.xml +++ presentations/slides/srm/demo-cluster-6.xml <?xml version="1.0" encoding="ISO-8859-1"?> <slide fontsize="6em"> <title>Demonstration - Cluster Management</title> <subtitle>Improvements</subtitle> <list> <bullet>Provide better detection of down servers</bullet> <bullet>Provide asynchronus distribution of tasks</bullet> </list> </slide>

« previous php.pres (#1082) next »