Commit f103aaea authored by Leigh B Stoller's avatar Leigh B Stoller
Browse files

A few small DB changes for InstaGeni racks.

parent 7ac28c17
# Updates for geni racks.
# XXX Need to update the frisbee MFS for dom0mem edits.
use strict;
use libdb;
use libEmulab;
use EmulabConstants;
use OSinfo;
use Image;
my $impotent = 0;
my $XENIMAGE_STD = "XEN41-64-STD";
sub DoUpdate($$$)
my ($dbhandle, $dbname, $version) = @_;
my $osinfo = OSinfo->LookupByName($XENIMAGE_STD);
if ($osinfo) {
return 0
# So slicefix knows how much mem to reserve for DOM0
DBQueryFatal("replace into node_type_attributes set ".
" type='dl360',attrkey='dom0mem',attrvalue='3096M'");
# Turn on arplockdown for XEN image support
SetSiteVar("general/arplockdown", "static") == 0
or return -1;
# Mike says: With the default server/client settings, the
# client is still dropping packets and causing re-requests of
# blocks. So for now, use the sitevars to scale back the frisbeed
# send rate to 50000000 (50Mb/sec) for both system and user
# images. The run time for single client is actually slightly
# improved at this lower rate due to many fewer re-requests.
SetSiteVar("images/frisbee/maxrate_std", "50000000");
SetSiteVar("images/frisbee/maxrate_usr", "50000000");
return 0;
# Local Variables:
# mode:perl
# End:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment