IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 36591


Ignore:
Timestamp:
Mar 17, 2014, 1:43:08 PM (12 years ago)
Author:
eugene
Message:

add sync for relastro remote clients to avoid loading overloading

Location:
branches/eam_branches/ipp-20140206/Ohana/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20140206/Ohana/src/relastro/src/launch_region_hosts.c

    r36574 r36591  
    8686    if (PARALLEL_REGIONS_MANUAL) continue;
    8787
     88    // launch the job, then wait for it to be done loading catalogs.  force the remote
     89    // client to generate the file
     90    char *syncfile = make_filename (CATDIR, host->hostname, host->hostID, "loadcat.sync");
     91    clear_sync_file (syncfile);
     92
    8893    // launch the job on the remote machine (no handshake)
    8994    int errorInfo = 0;
     
    9499    }
    95100    host->pid = pid; // save for future reference
     101
     102    // remove client is done, go ahead with next client
     103    check_sync_file (syncfile, 1);
     104    clear_sync_file (syncfile);
     105    free (syncfile);
    96106  }
    97107
  • branches/eam_branches/ipp-20140206/Ohana/src/relastro/src/relastro_parallel_images.c

    r36578 r36591  
    4747  catalog = load_catalogs (skylist, &Ncatalog, TRUE, 0, NULL);
    4848  MARKTIME("-- load catalog data: %f sec\n", dtime);
     49 
     50  // NOTE: if I let all hosts load blindly, I saturate the data clients with too many
     51  // relastro_client requests.  I need to have the master mediate this.  the master
     52  // will not launch the next remote job until this one says it is done
     53  char *syncfile = make_filename (CATDIR, regionHosts->hosts[myHost].hostname, REGION_HOST_ID, "loadcat.sync");
     54  update_sync_file (syncfile, 1);
    4955 
    5056  // generate tables go from catID,objID -> catSeq,objSeq
  • branches/eam_branches/ipp-20140206/Ohana/src/relphot/src/launch_region_hosts.c

    r36590 r36591  
    9292    host->pid = pid; // save for future reference
    9393
    94     // remove client is done, go ahead with next client
     94    // remote client is done, go ahead with next client
    9595    check_sync_file (syncfile, 1);
    9696    clear_sync_file (syncfile);
Note: See TracChangeset for help on using the changeset viewer.