Re: Re: smartfrog 3.0.01.003.alpha demo quest ion
Alan Arbizu <[email protected]>
| Newsgroups | gmane.comp.java.smartfrog.user |
|---|---|
| Message-ID | <[email protected]> |
Thanks for the tips, they definitely moved me further along than I had been, I
was indeed trying to run all the components on one 11.23 system (cutst106).
This didn't quite fly, obviously.
However, not totally out of the woods yet, it would seem.
I tried out the helloworld example1dist to make sure things were working ok
between distributed systesms, so on cutst106, I made the following changes to
../helloworld/example1dist.sf:
/**
* example 1dist creates a generator on hostA and a printer component with id
* "myPrinter" on hostB
*/
//hostA "foo.hp.com";
//hostB "bar.hp.com";
hostA "cutst088";
hostB "cutst089";
and then ran it with the following command (SFHOME=/smartfrog/dist) from
/smartfrog/dist/src/org/smartfrog/examples/helloworld:
sh sfStart localhost ex1dist ./example1dist.sf
I get the following exception being thrown:
Error during deployment of URL:./example1dist.sf, for component: ex1dist
SmartFrogDeploymentException: HOST cutst106.cup.hp.com:rootProcess:ex1dist
failed to deploy 'p' component
cause: java.rmi.ConnectException: Connection refused to host: 127.0.0.1;
nested exception is:
java.net.ConnectException: Connection refused
so deploying this on cutst106, and attempting to create the generator and
printer on cutst088 and cutst089, respectively, but it fails with an odd
exception...
sfDaemon was running cutst106 at the time.
any ideas why i'm seeing this problem?
Thanks
Alan
Toft, Peter wrote:
> Just a quick addition to Ashish's instructions: for this demo the nodes
> which will be the webservers need to be Linux, and the SF daemon needs to
> run as the root user (in order to install Apache). The other nodes can be
> anything.
>
>
>>-----Original Message-----
>>From: smartfrog-support-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org [mailto:smartfrog-
>>[email protected]] On Behalf Of Ashish Awasthi
>>Sent: 31 March 2004 08:07
>>To: Arbizu, Alan (EUD Cupertino R&D)
>>Cc: smartfrog-support-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>>Subject: [Smartfrog-support] Re: smartfrog 3.0.01.003.alpha demo question
>>
>>Hi Alan,
>>
>>1) set up a few nodes running the latest daemon
>>2) edit the file .../dynamicwebserver/sf/nodes.sf to set some nodes with
>>specific roles
>> - web servers
>> - the load balancer
>> - service managers
>> - stress test host
>>Example:
>>stressTestHost "localhost"; // node where stress test service runs
>>
>>serviceManagerHost "localhost";
>>balancerHost "node1"; // name of the host where balancer service runs
>>
>>serverHost1 "node2"; // name of the host where web server will run
>>serverHost2 "node3"; // name of the host where web server will run
>>webPort 80;
>>serverHosts extends vector {
>> -- ATTRIB serverHost1;
>> -- ATTRIB serverHost2;
>>3) start up the example using .../sf/serviceTemplate.sf
>> - which will bring up the manager on the node you are deploying on
>> - the load balancer on the load balancer node
>> - a single web server on one of the server nodes
>>
>>4) start a load generator using .../sf/loadGeneratorTemplate.sf
>> - this will start a slider component which you can use to vary the
>>load
>>
>>5) as you vary the load it may go above the top threshold, in which case a
>>new web server will be created on one of the nodes
>>
>>Note that the first time a web server is deployed on a node, apache tar
>>file
>>will be
>>downloaded from the web server [default is serrano.hpl.hp.com] this is
>>configured in ../sf/installApacheIfNeeded.sf and ../sf/webTemplate.sf
>>
>>I believe you have connectivity to this host else-
>>You may have to configure ServerHost attribute in webTemplate.sf and
>>installApacheIfNeeded.sf and point to a web server which serves tar file
>>for
>>apache installation.
>>
>>Hope this helps.
>>
>>Ashish
>>
>>Date: Tue, 30 Mar 2004 15:31:13 -0800
>>From: Alan Arbizu <[email protected]>
>>To: smartfrog-support-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>>Subject: [Smartfrog-support] smartfrog 3.0.01.003.alpha demo question
>>
>>Hi guys...
>>
>>I'm an engineer with HP doing an investigation into SmartFrog and am going
>>to do
>>a short presentation to my fellow team members. I'd like to try and run
>>some of
>>the dynamicwebserver demos since this applies pretty well to our general
>>area of
>>expertise. Can you give me some pointers on which *.sf file(s) to
>>edit/configure so that I can play around with this demo? I've validated
>>the
>>install by running the sfDaemon and the Printer/Generator demo.
>>
>>Thanks for your help,
>>
>>Alan
>>
>>
>>
>>-------------------------------------------------------
>>This SF.Net email is sponsored by: IBM Linux Tutorials
>>Free Linux tutorial presented by Daniel Robbins, President and CEO of
>>GenToo technologies. Learn everything from fundamentals to system
>>administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
>>_______________________________________________
>>Smartfrog-support mailing list
>>Smartfrog-support-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>>https://lists.sourceforge.net/lists/listinfo/smartfrog-support
>
>
>
--
Alan Arbizu
SW Design Engineer, ISDL
Hewlett-Packard
Cupertino, CA, B47L/J6-L6
408-447-0240
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click