IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 26294


Ignore:
Timestamp:
Nov 30, 2009, 4:56:31 PM (16 years ago)
Author:
watersc1
Message:

Updated the topfew_count to be 15 (from 3. 15 is roughly a quarter of the cluster).

Reworked the replication volume selection SQL to run in a reasonable timescale.

Location:
trunk/Nebulous-Server/lib/Nebulous
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Nebulous-Server/lib/Nebulous/Server.pm

    r26292 r26294  
    4040
    4141# This determines how many entries from the list of volumes sorted by free space are randomized.
    42 my $topfew_count = 3;
     42my $topfew_count = 15;
    4343
    4444# transaction restart/retry regex
     
    21302130            # %free, avaiable, allocate
    21312131            $rows = $query->execute(0.95, 1, 1, $topfew_count);
     2132#           $log->warn("Storage_volume: $rows $topfew_count");
    21322133            # there has to be atleast one storage volume
    21332134            unless ($rows > 0) {
  • trunk/Nebulous-Server/lib/Nebulous/Server/SQL.pm

    r26292 r26294  
    310310                   JOIN volume
    311311                   ON instance.vol_id = volume.vol_id
     312                   WHERE so_id = (
     313                                  SELECT so_id
     314                                  FROM storage_object
     315                                  WHERE ext_id = ?
     316                                 )
    312317                  ) AS i
    313318            ON m.vol_id = i.vol_id
    314             AND i.so_id = (
    315                 SELECT so_id
    316                 FROM storage_object
    317                 WHERE ext_id = ?
    318             )
    319319         WHERE
    320320             i.vol_id IS NULL
Note: See TracChangeset for help on using the changeset viewer.