SlapOS Home SlapOS

    How to Use SlapOS to Test KumoFS Scalability

    A web page to explain how to use SlapOS to test Kumofs scalability .
    • Last Update:2021-01-20
    • Version:002
    • Language:en

    1- Prerequisites

    You should have a ViFiB account.

    You should have your ViFiB account certificate and key on your computer.

    You should have access to a slapconsole on your computer.

    If you want to  publish the results in ERP5, you should have an existing ERP5 instance with the erp5_test_results business template installed.

    2- Requesting a new service

    For this example, we will not use the ViFiB interface, but we will use slapconsole instead.

    Launch a slapoconsole, and type the following commands:

    from slapos import slap
    
    ss = slap.slap()
    ss.initializeConnection("https://slap.vifib.com", "/path/to/your/key", "/path/to/your/certificate")
    ss.registerOpenOrder().request("http://git.erp5.org/gitweb/slapos.git/blob_plain/refs/heads/nosqltestbed:/software/nosqltestbed/software.cfg", \
                                   "NameOfYourInstance", \
                                   filter_kw={'computer_guid':'COMP-23'})
    

    If you want to publish the results in ERP5, you should add two parameters: erp5_publish_url and erp5_publish_project. So your last command should look like this:

    ss.registerOpenOrder().request("http://git.erp5.org/gitweb/slapos.git/blob_plain/refs/heads/nosqltestbed:/software/nosqltestbed/software.cfg", \
                                   "NameOfYourInstance", \
                                   partition_parameter_kw={'erp5_publish_url':'http://login:password@your.host:port/erp5/test_result_module/', \
                                                           'erp5_publish_project':'ProjectName'})
                                   filter_kw={'computer_guid':'COMP-23'})
    

    3- Getting results

    Results for the scalability test can be found in two locations:

    • In ERP5 test result module (coming soon).
    • By downloading a file.

    To get the test results as files, go to you vifib.net, log in and then go to: My Services -> NameOfYourInstance -> NameOfYourInstance.

    There you will find an URL to a web page in the XML parameters, go to that page, and click on the report you want.

    The easiest way to get the report you are lookgin for is to click on "all", to get all the files.

    The report are called "reportN.csv", where N is the number of Kumo node running during a test step.

    You can then create a graph in LibreOffice using those reports.