Changeset 637adfa


Ignore:
Timestamp:
Oct 2, 2007 3:06:41 PM (17 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master, version-1.30, version-2.00, version-3.01, version-3.02
Children:
e2a71ebe
Parents:
e06b224
Message:

docs, fail soft feature

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fedkit/splitter.pl

    re06b224 r637adfa  
    4141                                # by  $tbparams->{'deter'}->{'domain'} which is
    4242                                # the domain parameter of the DETER testbed. 
     43my $fail_soft;                  # Do not swap failed sub-experiments out
    4344
    4445# Parse the config file.  The format is a colon-separated parameter name
     
    405406                                    # keep our changes to the parser minimal.
    406407# Argument processing.
    407 getopts('t:c:f:ndvN', \%opts);
     408getopts('Ft:c:f:ndvN', \%opts);
    408409$splitter_config = $opts{'c'} || "./splitter.conf";
    409410$debug = $opts{'d'};
     
    412413&parse_config("$splitter_config", \%opts) ||
    413414    die "Cannot read config file $splitter_config: $!\n";
    414 
     415$fail_soft = $opts{'F'} || $opts{'failsoft'};
    415416
    416417$startem = $opts{'n'} ? 0 : 1;          # If true, start the sub-experiments
     
    748749
    749750# If any testbed failed, swap the rest out.
    750 if ( scalar(keys %started) != scalar(keys %allocated)) {
     751if ( !$fail_soft && scalar(keys %started) != scalar(keys %allocated)) {
    751752    for my $tb (keys %started) { &stop_segment($tb, $eid, $tbparams); }
    752753    print "Error starting experiment\n";
     
    766767=head1 SYNOPSIS
    767768
    768 B<splitter.pl> [B<-nd>] [B<-c> F<config_file>] [B<-f> F<experiment_tcl>]
    769     [F<experiment_tcl>]
     769B<splitter.pl> [B<-ndF>] [B<-t> I<secs>] [B<-c> F<config_file>]
     770    [B<-f> F<experiment_tcl>] [F<experiment_tcl>]
    770771
    771772=head1 DESCRIPTION
     
    810811configuration file.
    811812
     813If B<-t> is given the parameter is treated as a parameter to B<Timeout> in
     814F<splitter.conf>.
     815
    812816If any sub-experiment fails to instantiate, the other sub-exeriments are
    813 swapped out.
     817swapped out.  B<-F> avoids this swap out, which can also be specified as
     818B<SoftFail: true> in F<splitter.conf>
    814819
    815820=head2 Configuration File
     
    876881The pathname to the local oTcl shell.  Only developers should set
    877882this.
     883
     884=item Timeout
     885
     886Value in seconds after which a swap-in operatioin will be considered a success.
     887Often long swap-ins will hang when there are partial failures.  This works
     888around this issue.
     889
     890=item FailSoft
     891
     892If not set, failure of any sub experiment swaps the rest out.  Setting this to any value avoids this swap out.  (Also B<-F>.)
    878893
    879894=back
Note: See TracChangeset for help on using the changeset viewer.