Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The test framework should accept minimum hardware requirements like RAM , and disk space and number of processors before running a test for both moms and servers .

It will follow the existing interface of requirements decorator as described in PP-1281: New decorator in PTL using which user can provide cluster information required for a test.


Forum :  http://community.pbspro.org/t/addition-of-hardware-requirements-option-to-existing-requirements-decorator/1545

Interface: @requirements(num_servers=<number_of_servers>,num_moms=<number_of_moms>,num_comms=<number_of_comms>,num_clients=<number_of_clients>,no_mom_on_server=<Boolean>,no_comm_on_server=<Boolean>, no_comm_on_mom=<Boolean>,min_mom_ram=<amount_of_ram_ram>in_mb>,min_mom_disk=<amount_of_disk_space>_space_in_mb>,min_numberserver_ram=<amount_of_proc=<number_of_processors>_ram_in_mb>,min_server_disk=<amount_of_disk_space_in_mb>)

Synopsis: Updating interface to provide information of hardware requirements for particular testsuite/testcase.

Details:

  • Three Four more options min_mom_ram, min_mom_disk, min_server_ram and min_numberserver_of_proc disk are added to @requirements decorator to specify minimum hardware requirements for a given test to run. It can be specified at test case or test suite level.
  • The three options will first be validated against the system availability of RAM, disk space and number of processorsThese new options  are used to check the availability of specified minimum requirements on  every mom and every server.

          → In case where the requirements is less or equal with the resources available in the system, If all the moms and servers satisfy the min. requirements  then the test execution is continued otherwise skipped.

          → In case where the requirements is more than the resources available in the system, then the test execution is skipped. 

  • Like other existing options in the decorator, these 3 options will be validated against the data passed to the param list (-p and --param-file) of pbs_benchpress→ In case where the requirements is more or equal to the data passed to param list of pbs_benchpress, the test execution is continued.

          → In case where the requirements is less than the data passed to param list of pbs_benchpress, then the test is skipped.

  • In case requirements decorator is not specified for a test and data is passed to param list, then the param list data is validated against the available system resources. 

Examples:

  • Test requires 2GB RAM and 500MB disk space.
    • Case 1 - When no param list or option is provided : It will validate with system. If resources are more in system then test execution is continued. Otherwise the test will be skipped.
    • Case 2 - Data in param list is min_ram=4GB, min_disk=2GB : It will validate with system. If system has resources specified in decorator, then test will continue with execution. Otherwise the test will be skipped.
    • Case 3 - Data in param list is min_ram=1GB, min_disk=400MB : The test will be skipped. 

Note :

...

Examples:

Test requires num_servers=2,num_moms=2,min_mom_ram=2000MB,min_mom_disk=500MB,min_server_ram=2000MB,min_server_disk=500MB .

case1 - avail_ram_mom1=3000MB,avail_ram_mom2=2000MB,avail_disk_mom1=500MB,avail_disk_mom2=500MB

             avail_ram_server1=3000MB,avail_ram_server2=2000MB,avail_disk_server1=500MB,avail_disk_server2=1000MB

            test continued

case2avail_ram_mom1=3000MB,avail_ram_mom2=1000MB,avail_disk_mom1=500MB,avail_disk_mom2=500MB

             avail_ram_server1=3000MB,avail_ram_server2=2000MB,avail_disk_server1=500MB,avail_disk_server2=500MB

            test skipped  because avail_ram_mom2 < min_mom_ram


...

OSS Site Map

Project Documentation Main Page

...