librelist archives

« back to archive

Progress from the last meet

Progress from the last meet

From:
yeswanth swami
Date:
2011-08-05 @ 11:56
Hi,
this is my progress from the last meet
1) Get slave understand the message sent by the master and convert the
message to configuration to be used with vm
2) Multiprocessing support added for slave
3) reading from a config file to be provided to the slave so that it comes
to know number of  vms are available, platforms available, and where are the
virtual hard disk located

The following points I would like to discuss today

1) Algorithm for slave to access queue messages

 As of now, I just implemented a basic algorithm for looking in the messages
in the queue. Basically i run a 'for' loop to check if any vm is empty in a
particular platform . if yes, look for messages in the queue [1].
It doesnt perform to check if all the vms are empty or not, Also if i use a
while loop there to make sure available vms turn to 0 .. it would run
infinitely if there is no request. So need suggestions on a new algorithm
to
look for messages in the queue.

2) Directories to be used in the slave . I guess we should decide on a
standard path(on slave) for the following
  i) Where should the project downloaded from pypi be stored in the host
  ii) Where should the result obtained form vm after conducting tests should
be stored in the slave


[1]

https://bitbucket.org/swamiyeswanth/pyti/src/766ca47388da/pyti/slave/manager.py#cl-354
-- 
Cheers,
Yeswanth