@@ -12,14 +12,13 @@ This diagram shows the overall flow of data from Cameras to websites and out to
1212 P -- next day --> D;
1313 D --> E[matching engine];
1414 E --> F[reports generator];
15- F --> G[opt-in email of matches ];
15+ F --> G[match report on groups.io ];
1616 F --> I[bad-data alerts];
1717 F --> H[Archive];
18- H -- on demand --> J[other networks];
19- H --> M[public];
20- C --> M[public];
18+ H --> M[website];
19+ C --> M[website];
2120 C --> N{bright event?};
22- N -->|yes| K[social media];
21+ N --> K[social media];
2322 H -- manual --> K;
2423 I --> O[camera owners];
2524 G --> O;
@@ -43,10 +42,12 @@ This diagram shows the various scripts and processes called, in order
4342 rep3 --> summ[Create summary date for homepage]
4443 summ --> camst[Create Camera status reports]
4544 camst --> exch[Create files for exchange with other networks]
46- exch --> stats[Create Station Reports]
47- stats --> mets[Create Metrics]
48- mets --> badc[Send out bad camera emails]
49- badc --> d[FINISHED]
45+ exch --> badc[Send out bad camera emails]
46+ badc --> cost[Create Cost Report]
47+ cost --> stats[Create Station Reports]
48+ stats --> clsp[Clear space]
49+ clsp --> mdb[update mariadb tables]
50+ mdb --> d[FINISHED]
5051```
5152
5253Find All Matches
@@ -56,33 +57,28 @@ Flow in findAllMatches.sh
5657``` mermaid
5758 flowchart TD
5859
59- setd[Set the Dates] --> rmssngl[Create RMS single station data files]
60- rmssngl --> bkp1[Backup the current trajectory database]
61- bkp1 --> rmat[Invoke runDistrib]
62- rmat --> start[runDistrib Start calc engine]
63- start --> creat[runDistrib Create batch script and copy to server]
64- creat --> sync1[runDistrib script syncs new ftpdetect files]
65- sync1 --> run[runDistrib Then runs the the Phase 1 solver]
66- run --> sync2[runDistrib Then syncs back to S3]
67- sync2 --> done[runDistrib Stop calc engine]
68- done --> stage2[run the distributed solver phase 2 using ECS and Fargate]
69- stage2 --> consol[wait for containers to finish then consolidate the data]
70- consol --> repo[Create file of latest matches]
71- repo --> stats[Create Stats and sync back to S3]
72- stats --> idxpg[Update website index pages]
73- idxpg --> gzi[Backup and gzip old trajectory databases]
74- gzi --> d[FINISHED]
60+ setd[findAllMatches sets up the date range] --> bkp1[findAllMatches saves the current trajectory database]
61+ bkp1 --> rmat[findAllMatches then invokes runDistrib]
62+ rmat --> start[runDistrib Starts the calc engine server]
63+ start --> creat[runDistrib Creates batch script and copies to calc engine]
64+ creat --> sync1[runDistrib syncs new ftpdetect files to the calc engine]
65+ sync1 --> run[runDistrib runs the the Phase 1 solver. This identifies candidate groups]
66+ run --> sync2[runDistrib syncs data back to the data store]
67+ sync2 --> done[runDistrib stops calc engine for now, to save cost]
68+ done --> stage2[runDistrib starts the distributed solver phase 2 using ECS and Fargate]
69+ stage2 --> consol[runDistrib waits for containers to finish then consolidate the data]
70+ consol --> repo[runDistrib creates file of latest matches]
71+ repo --> stats[runDistrib syncs the solved orbit files back to S3 and backs up the data]
72+ stats --> idxpg[findAllMatches creates some stats, updates website index pages and sends the daily report]
73+ idxpg --> d[FINISHED]
7574```
7675
7776Flow in terms of files
7877======================
7978``` mermaid
8079 flowchart LR
8180
82- nightly[cronjobs/nightlyJob.sh] --> datasync[utils/dataSync.sh]
83- nightly --> findmatches[analysis/findAllMatches.sh]
84- findmatches --> rmssngl[analysis/getRMSSingleData.sh]
85- findmatches --> srchabl[analysis/createSearchable.sh]
81+ nightly[cronjobs/nightlyJob.sh] --> findmatches[analysis/findAllMatches.sh]
8682 findmatches --> rundist[analysis/runDistrib.sh]
8783 rundist --> trajcont[launches docker containers which solve and post directly to the website]
8884 findmatches --> daily[creates daily report and stats]
@@ -106,8 +102,8 @@ Flow in terms of files
106102 nightly --> statstat[analysis/getBadStations.sh]
107103 nightly --> costs[website/costReport.sh]
108104 nightly --> statreps[analysis/stationReports.sh]
109- nightly --> databack[utils/dataSyncBack.sh ]
110105 nightly --> clearsp[utils/clearSpace.sh ]
106+ nightly --> mariadb[utils/loadMatchCsvDB.sh ]
111107 nightly --> getlogs[analysis/getLogData.sh]
112108 nightly --> done[done]
113109
0 commit comments