Meego Wiki
Views

User:Tgalvin/draft distribution models

From MeeGo wiki
Jump to: navigation, search

Contents

Custom Task Allocation

Synopsis

OTS provides Entry Points that facilitate the use of custom distribution models in OTS. This documents the supported extensions.

Associated Documentation

Optimising Throughput

Distribution Models

A distribution model is the means by which OTS distributes the Tests to the workers.

There are two distribution models provided by OTS as standard.

1. default

This is `single_task` mode. All test packages will be tested on a single Worker

2. perpackage

In `perpackage` mode each test package is undertaken as a separate Task. The intention is that with a suitable farm the Workers will run the Tasks in parallel.

Selection of Distribution Models

`distribution_model` is an OTS option and hence selected at run time as an input parameter.

An Entry Point available to OTS with the key "allocator" and the name as selected by the `distribution_model` will get loaded and used for the Task distribution for that Testrun.

Rolling your own

A template is provided here. Now it's over to you to satisfy the documented interfaces and install with your preferred packaging tool.

Personal tools