-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Xianqing,

Thanks for the contribution.  I've created JIRA issue 320 with your code in 
it.  I'll try to get it added to the 2.2 release.

Josh

On Monday February 22, 2010, yu267155...@hotmail.com wrote:
> Hi,
>
> I insert my code to the function allocComputer in the utils.php. The main
> function of my code is randomly pick up a machine from the computer array
> and return it to the caller. The reason is that I want to distribute the
> reserved virtual machine to different blades, therefore balance the
> workload.
>
> Generally, what I am doing is that, I check the length of available
> computer in the array first, and randomly pick up machines from the array.
> Then I exchange this machine's id with array(0). At last, I pass this array
> to original allocComputer code to check computer's availability and set up
> the computer id.
>
> This is simple code to achieve the some extent of distribution. For your
> reference, this is my allocComputer code.
>
> Thanks,
>
> Xianqing
- -- 
- -------------------------------
Josh Thompson
Systems Programmer
Advanced Computing | VCL Developer
North Carolina State University

josh_thomp...@ncsu.edu
919-515-5323

my GPG/PGP key can be found at pgp.mit.edu
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFLhW7XV/LQcNdtPQMRAgKUAJ0Zwm92X76femzYq/VqdX3+n7tsigCfR4dc
MhN2FF4SZYONMYNz795C++4=
=jBKl
-----END PGP SIGNATURE-----

Reply via email to