a18c62ec699f6dea35ed25995cf28c40f0650480
lrnassar
  Wed Sep 13 08:58:27 2023 -0700
Increasing the load time required for hgTracksRandom to complain from 5s to 10s. This is because genome-asia routinely takes 6-8s to load. Also, this cron does not monitor speed, it is an alert system for when a mirror/comp is down entirely or reacting very slowly. It still serves this same purpose with the 10s time, just fewer emails for the team. Refs email 9/11/2023 to browser-alert group.

diff --git src/hg/perf/hgTracksRandom.c src/hg/perf/hgTracksRandom.c
index bf5715a..7b59c43f 100644
--- src/hg/perf/hgTracksRandom.c
+++ src/hg/perf/hgTracksRandom.c
@@ -194,27 +194,27 @@
 
 getMachines(argv[1]);
 
 for (machinePos = machineList; machinePos != NULL; machinePos = machinePos->next)
     {
     dy = dyStringNew(256);
     dyStringPrintf(dy, "%s/cgi-bin/hgTracks?db=%s&position=%s:%d-%d", machinePos->name, 
                    database, chrom, startPos, startPos + windowSize);
     elapsedTime = hgTracksRandom(dy->string);
     if (quiet)
 	{
 	printf("%ld\n", elapsedTime);
 	}
     else
 	{
-	if (elapsedTime > 5000)
+	if (elapsedTime > 10000)
 	    printf("%s %ld <---\n", machinePos->name, elapsedTime);
 	else
 	    printf("%s %ld\n", machinePos->name, elapsedTime);
 	}
     }
 if (! quiet)
     printf("----------------------------------\n");
 
 /* free machine list */
 return 0;
 }