Hi all,

I am facing problem with my faban olio setup. I see that most of the
users have successfully deployed the application and are able to drive
the workload. Can someone please help me out in this regard?

My setup is like this:

machine1-  192.168.10.13 -- Glassfish, faban1,filestore, geocoder
machine2-  192.168.10.11 --  Mysql, faban2
machine3-  192.168.10.16 --  Faban master

faban1 and faban2 represent the copies of  the final configured faban
master folder from machine3  on to machines1 and machines2. Plus,
FABAN_HOME is same for all three.
I start the faban server and direct my browser to 192.168.10.16:9980.
I do not run any faban related scripts on machine1 and machine2 manually.

The run.xml is attached. Is the setup and the configuration correct
for running the workload.
I am stuck with the following things:

a) When I use preloaded DB, addPerson requests fail because of duplicate issues.
b) When I load DB at the time of the run, Login requests fail.

c) When I use preloaded filestore, it works fine.
d) When I load the filestore at the time of the run (for which I had
to nfs mount the folder on to machine 3), many images are missing and
I get the following error.

Image: http://192.168.10.13:8080/webapp/access-artifacts/xxxx.jpg size 0.

I check the filestore for these images and they were missing.

I need to sort out these issues quickly. Any sort of help will highly
appreciated.

Thanks,
Sankalp

On Thu, Jun 10, 2010 at 5:24 PM, Sankalp Gera <[email protected]> wrote:
> Hi Shanti,
>
> The image and the filestore issues seem to be resolved now. Yes, they
> were due to permission issues only. However the other errors still bug
> me.
>
> 1)
> error: 'Multipart post did not work'
>
> I am attaching the relevant portion of the server log.
>
> Actually in the above case  I used a preloaded  database.  In this
> case all the AddPerson requests fail (i guess due to duplicate key
> issues), however AddEvent requests succeed.
>
> I also tried loading the database at the time of the run. In this case
> all the Login requests fail (probably except those for the newly
> created users during the run), whereas AddPerson requests succeed. The
> error I get is
>
> java.lang.RuntimeException: Found login prompt at index xxxx, Login as
> xxxx failed.
>
> 2)
>
> I have the following configuration for my setup:
>
> Machine1 -  Glassfish, faban
> Machine2 -  Mysql, faban
> Machine3-   Faban master
>
> I have just copied the faban folder from Machine3 to machines 1 and 2.
> I have also ensured that machines can ssh to each other without being
> prompted for password.  I have set the same location for FABAN_HOME.
> Does that complete the setup? I can see that the master tries to ssh
> to other machine and runs the agent script.  If so then what is the
> difference between 'Client' and 'agent'  in the driver tab in the gui.
>
>
>
>
> Thanks,
> Sankalp
>
>
>
>
>
> On Wed, Jun 9, 2010 at 10:51 AM, Shanti Subramanyam
> <[email protected]> wrote:
>> On Tue, Jun 8, 2010 at 8:49 AM, Sankalp Gera <[email protected]>
>> wrote:
>>>
>>> I am using the java version of Olio. I have deployed the application
>>> and it seems to be running fine. However, when I use faban to drive
>>> the workload I encounter some errors. The errors/warnings are listed
>>> below for a workload of 25 users with db and filestore set up for 40
>>> users.(just the initial setup)
>>>
>>>
>>> 1) I cannot load the filestore from the faban interface. This is
>>> usually what I get ... '/mnt/sdb1/filestore is not a directory' .
>>> However I have manually loaded the filestore and olio seems to be
>>> working with it perfectly. However an error is reported when I try to
>>> edit my profile.
>>>
>>
>> Not sure what you mean by the last sentence above - is this related to the
>> filestore load ? The only thing I can think of is some permission issue.
>> What user is faban running as and does that user have write permission to
>> the filestore ?
>> Can you please cut-n-paste the relevant portion of the log ? If it throws an
>> exception, please show the stack trace as well.
>>
>>>
>>> 2) I also get around 35-40 warnings pertaining to 'Image:
>>> http://192.168.10.13:8080/webapp/access-artifacts/xxxxx.jpg size 0' ..
>>> Its strange because I did not make any changes to my set up and
>>> earlier I was not getting such errors.
>>>
>>
>> I have seen these. I think this is related to the images not getting
>> uploaded correctly in the AddEvent/AddPerson operations. You can turn on
>> FINE or FINEST logging level in your appserver to track this down. We have
>> lots of debug log msgs from the java olio app.
>>
>>>
>>> 3) Also I usually get significant number of warnings reporting
>>> 'Multipart post did not work' when it tries to add a person.
>>>
>>
>> This is also a common error. Look at the server log.
>>
>>>
>>> 4) Also there are issues with copying of log and error files. It
>>> reports that files like server.log etc do not exist when actually they are
>>> there.
>>>
>> Are you using glassfish ? If not, this won't work. Even for glassfish, if
>> you have configured log files wilth non-default names, then things won't
>> work.
>>
>> Feel free to post your run.xml if you can't make progress.
>>
>>>
>>> Thanks,
>>> Sankalp
>>
>> Shanti
>>
>
<?xml version="1.0" encoding="UTF-8"?>
<olio>
    <jvmConfig xmlns="http://faban.sunsource.net/ns/fabanharness";>
        <javaHome>/usr/java/jdk1.6.0_20</javaHome>
        <jvmOptions>-Xmx1g -Xms256m -XX:+DisableExplicitGC</jvmOptions>
    </jvmConfig>
    
    <fa:runConfig definition="org.apache.olio.workload.driver.UIDriver" xmlns="http://faban.sunsource.net/ns/fabandriver"; xmlns:fa="http://faban.sunsource.net/ns/faban"; xmlns:fh="http://faban.sunsource.net/ns/fabanharness";>

        <fh:description>Test run</fh:description>
        <fa:hostConfig>
            <fa:host>192.168.10.16</fa:host>
            <fh:enabled>true</fh:enabled>
            <fh:cpus>0</fh:cpus>
            <fh:tools>vmstat 10</fh:tools>
            <fh:userCommands/>
        </fa:hostConfig>
        
        <fa:scale>25</fa:scale>
        
        <fa:runControl>
            <fa:rampUp>30</fa:rampUp>
            <fa:steadyState>300</fa:steadyState>
            <fa:rampDown>10</fa:rampDown>
        </fa:runControl>
        
        <outputDir>/home/sankalp/Desktop/required_binaries/faban/output/OlioDriver.3A/</outputDir>
        
        <audit>false</audit>
        <threadStart>
            <delay>10</delay>
            <simultaneous>false</simultaneous>
            <parallel>false</parallel>
        </threadStart>

        <stats>
            <maxRunTime>6</maxRunTime>
            <interval>30</interval>
        </stats>
        
        <runtimeStats enabled="false">
            <interval>5</interval>
        </runtimeStats>
                
        <driverConfig name="UIDriver">
            <agents>1</agents>
            <stats>
                <interval>10</interval>
            </stats>
            <runtimeStats target="9988"/>
            <properties>
                <property name="serverType">jsp</property>
            </properties>
        </driverConfig>
    </fa:runConfig>
    
    <webServer>
        <fa:hostConfig xmlns="http://faban.sunsource.net/ns/fabanharness"; xmlns:fa="http://faban.sunsource.net/ns/faban";><fa:host>192.168.10.13</fa:host>
            <fa:hostPorts>192.168.10.13:8080</fa:hostPorts>
            <enabled>true</enabled>
            <cpus>0</cpus>
            <tools>vmstat 10; mpstat 10; nicstat 10</tools>
            <userCommands/>            
        </fa:hostConfig>
        <type>glassfish</type>
        <fh:service xmlns:fh="http://faban.sunsource.net/ns/fabanharness";>
            <fh:name>GlassfishService</fh:name>
            <fh:tools>NONE</fh:tools>
            <fh:restart>false</fh:restart>
            <fh:config>
                <cmdPath>/home/sankalp/Desktop/required_binaries/glassfish/bin/asadmin</cmdPath>
                <logsDir>/home/sankalp/Desktop/required_binaries/glassfish/domains/domain1/logs</logsDir>
                <confPath>/home/sankalp/Desktop/required_binaries/glassfish/domains/domain1/config/domain.xml</confPath>
            </fh:config>
        </fh:service>
    </webServer>
    <dbServer>
        <fa:hostConfig xmlns="http://faban.sunsource.net/ns/fabanharness"; xmlns:fa="http://faban.sunsource.net/ns/faban";>
            <fa:host>192.168.10.11</fa:host>
            <enabled>true</enabled>
            <cpus>0</cpus>
            <tools>vmstat 10; mpstat 10; nicstat 10; iostat -x 10</tools>
            <userCommands/>
        </fa:hostConfig>
        <dbDriver>com.mysql.jdbc.Driver</dbDriver>
        <connectURL>jdbc:mysql://192.168.10.11/bpwebapp?user=olio&amp;password=olio&amp;relaxAutoCommit=true&amp;sessionVariables=FOREIGN_KEY_CHECKS=0</connectURL>
        <reloadDB>true</reloadDB>
        <autoCommit>true</autoCommit>
        <scale>25</scale>
        <fh:service xmlns:fh="http://faban.sunsource.net/ns/fabanharness";>
            <fh:name>MySQLService</fh:name>
            <fh:tools/>
            <fh:restart>false</fh:restart>
            <fh:config>
                <serverHome>/usr</serverHome>
                <user>olio</user>
                <password>olio</password>
                <confPath>/etc/mysql/my.cnf</confPath>
             </fh:config>
        </fh:service>
    </dbServer>
    <dataStorage>
        <fa:hostConfig xmlns="http://faban.sunsource.net/ns/fabanharness"; xmlns:fa="http://faban.sunsource.net/ns/faban";>
            <fa:host>192.168.10.13</fa:host>
            <enabled>true</enabled>
            <cpus>0</cpus>
            <tools>NONE</tools>
            <userCommands/>
        </fa:hostConfig>
        <reloadMedia>true</reloadMedia> 
        <mediaDir>/mnt/sdb1/filestore</mediaDir>
    </dataStorage>
    <cacheServers>
        <fa:hostConfig xmlns="http://faban.sunsource.net/ns/fabanharness"; xmlns:fa="http://faban.sunsource.net/ns/faban";><fa:host/>
            <fa:hostPorts/>
            <enabled>true</enabled>
            <cpus>0</cpus>
            <tools/>
            <userCommands/>
        </fa:hostConfig>
        <fh:service xmlns:fh="http://faban.sunsource.net/ns/fabanharness";>
            <fh:name>MemcachedService</fh:name>
            <fh:tools/>
            <fh:restart>true</fh:restart>
            <fh:config>
                <cmdPath/>
                <serverMemSize/>
             </fh:config>
        </fh:service>
    </cacheServers>
</olio>

Reply via email to