isle/docs/dev/daemon-process-tree.svg

1 line
9.7 KiB
XML

<?xml version="1.0" encoding="us-ascii" standalone="no"?><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" contentStyleType="text/css" height="621px" preserveAspectRatio="none" style="width:1266px;height:621px;background:#FFFFFF;" version="1.1" viewBox="0 0 1266 621" width="1266px" zoomAndPan="magnify"><defs/><g><!--cluster AppDir--><g id="cluster_AppDir"><path d="M19.5,110 L1240.5,110 A12.5,12.5 0 0 1 1253,122.5 L1253,131.7999 L7,131.7999 L7,122.5 A12.5,12.5 0 0 1 19.5,110 " fill="#F1F1F1" style="stroke:#F1F1F1;stroke-width:1.0;"/><rect fill="none" height="505.8" rx="12.5" ry="12.5" style="stroke:#181818;stroke-width:0.5;" width="1246" x="7" y="110"/><line style="stroke:#181818;stroke-width:0.5;" x1="7" x2="1253" y1="131.7999" y2="131.7999"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="43" x="608.5" y="127.9999">AppDir</text></g><g id="elem_N1"><path d="M108,157.8 L108,183.4 L424,183.4 L424,167.8 L414,157.8 L108,157.8 " fill="#FEFFDD" style="stroke:#181818;stroke-width:0.5;"/><path d="M414,157.8 L414,167.8 L424,167.8 L414,157.8 " fill="#FEFFDD" style="stroke:#181818;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="295" x="114" y="175.8">All relative paths are relative to the root of the AppDir</text></g><g id="AppDir.AppRun"><rect fill="#F1F1F1" height="51.2" rx="12.5" ry="12.5" style="stroke:#181818;stroke-width:0.5;" width="163" x="543.5" y="145"/><line style="stroke:#181818;stroke-width:0.5;" x1="543.5" x2="706.5" y1="171.7999" y2="171.7999"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="59" x="595.5" y="163.9999">./AppRun</text><ellipse cx="554" cy="183.7" fill="#000000" rx="2.5" ry="2.5" style="stroke:#000000;stroke-width:0.0;"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacing" textLength="131" x="560.5" y="188.8">Set PATH to APPDIR/bin</text></g><g id="AppDir.entrypoint"><rect fill="#F1F1F1" height="209.6011" rx="12.5" ry="12.5" style="stroke:#181818;stroke-width:0.5;" width="348" x="451" y="273.2"/><line style="stroke:#181818;stroke-width:0.5;" x1="451" x2="799" y1="299.9999" y2="299.9999"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="247" x="501.5" y="292.1999">./bin/entrypoint daemon -c ./daemon.yml</text><ellipse cx="461.5" cy="311.9" fill="#000000" rx="2.5" ry="2.5" style="stroke:#000000;stroke-width:0.0;"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacing" textLength="246" x="468" y="317">Create runtime dir at $_RUNTIME_DIR_PATH</text><ellipse cx="461.5" cy="326.3001" fill="#000000" rx="2.5" ry="2.5" style="stroke:#000000;stroke-width:0.0;"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacing" textLength="83" x="468" y="331.4001">Lock runtime dir</text><ellipse cx="461.5" cy="340.7002" fill="#000000" rx="2.5" ry="2.5" style="stroke:#000000;stroke-width:0.0;"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacing" textLength="216" x="468" y="345.8002">Merge given and default daemon.yml files</text><ellipse cx="461.5" cy="355.1003" fill="#000000" rx="2.5" ry="2.5" style="stroke:#000000;stroke-width:0.0;"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacing" textLength="316" x="468" y="360.2003">Copy bootstrap.json into $_DATA_DIR_PATH, if it's not there</text><ellipse cx="461.5" cy="369.5004" fill="#000000" rx="2.5" ry="2.5" style="stroke:#000000;stroke-width:0.0;"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacing" textLength="231" x="468" y="374.6004">Merge daemon.yml config into bootstrap.json</text><ellipse cx="461.5" cy="383.9005" fill="#000000" rx="2.5" ry="2.5" style="stroke:#000000;stroke-width:0.0;"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacing" textLength="251" x="468" y="389.0005">Create $_RUNTIME_DIR_PATH/dnsmasq.conf</text><ellipse cx="461.5" cy="398.3006" fill="#000000" rx="2.5" ry="2.5" style="stroke:#000000;stroke-width:0.0;"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacing" textLength="235" x="468" y="403.4006">Create $_RUNTIME_DIR_PATH/nebula.yml</text><ellipse cx="461.5" cy="412.7007" fill="#000000" rx="2.5" ry="2.5" style="stroke:#000000;stroke-width:0.0;"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacing" textLength="254" x="468" y="417.8007">Create $_RUNTIME_DIR_PATH/garage-N.toml</text><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacing" textLength="141" x="462" y="432.2008">(one per storage allocation)</text><ellipse cx="461.5" cy="441.5009" fill="#000000" rx="2.5" ry="2.5" style="stroke:#000000;stroke-width:0.0;"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacing" textLength="105" x="468" y="446.6009">Run child processes</text><ellipse cx="461.5" cy="455.901" fill="#000000" rx="2.5" ry="2.5" style="stroke:#000000;stroke-width:0.0;"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacing" textLength="260" x="468" y="461.001">(in the background) Updates garage cluster layout</text><ellipse cx="461.5" cy="470.3011" fill="#000000" rx="2.5" ry="2.5" style="stroke:#000000;stroke-width:0.0;"/><text fill="#000000" font-family="sans-serif" font-size="12" lengthAdjust="spacing" textLength="266" x="468" y="475.4011">(in the background) Stores host info in global bucket</text></g><rect fill="#F1F1F1" height="40" rx="12.5" ry="12.5" style="stroke:#181818;stroke-width:0.5;" width="386" x="23" y="559.8"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="376" x="28" y="585.4">./bin/dnsmasq -d -C $_RUNTIME_DIR_PATH/dnsmasq.conf</text><rect fill="#F1F1F1" height="40" rx="12.5" ry="12.5" style="stroke:#181818;stroke-width:0.5;" width="361" x="444.5" y="559.8"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="351" x="449.5" y="585.4">./bin/nebula -config $_RUNTIME_DIR_PATH/nebula.yml</text><rect fill="#F1F1F1" height="40" rx="12.5" ry="12.5" style="stroke:#181818;stroke-width:0.5;" width="396" x="841" y="559.8"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="386" x="846" y="585.4">./bin/garage -c $_RUNTIME_DIR_PATH/garage-N.toml server</text><rect fill="#F1F1F1" height="40" rx="12.5" ry="12.5" style="stroke:#181818;stroke-width:0.5;" width="193" x="528.5" y="7"/><text fill="#000000" font-family="sans-serif" font-size="14" lengthAdjust="spacing" textLength="183" x="533.5" y="32.6">./isle daemon -c ./daemon.yml</text><!--link init to AppRun--><g id="link_init_AppRun"><path d="M625,47.39 C625,72.69 625,110.99 625,138.73 " fill="none" id="init-to-AppRun" style="stroke:#181818;stroke-width:1.0;"/><polygon fill="#181818" points="625,144.73,629,135.73,625,139.73,621,135.73,625,144.73" style="stroke:#181818;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="27" x="626" y="91">exec</text></g><!--link AppRun to entrypoint--><g id="link_AppRun_entrypoint"><path d="M625,196.37 C625,215.79 625,238.23 625,266.82 " fill="none" id="AppRun-to-entrypoint" style="stroke:#181818;stroke-width:1.0;"/><polygon fill="#181818" points="625,272.82,629,263.82,625,267.82,621,263.82,625,272.82" style="stroke:#181818;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="27" x="626" y="240.2">exec</text></g><!--link entrypoint to dnsmasq--><g id="link_entrypoint_dnsmasq"><path d="M450.66,464.17 C378.52,499.41 306.661,534.5062 261.261,556.6862 " fill="none" id="entrypoint-to-dnsmasq" style="stroke:#181818;stroke-width:1.0;"/><polygon fill="#181818" points="255.87,559.32,265.7124,558.9634,260.3625,557.1252,262.2007,551.7753,255.87,559.32" style="stroke:#181818;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="27" x="350" y="526.8">child</text></g><!--link entrypoint to nebula--><g id="link_entrypoint_nebula"><path d="M625,483.29 C625,512.62 625,535.45 625,553.63 " fill="none" id="entrypoint-to-nebula" style="stroke:#181818;stroke-width:1.0;"/><polygon fill="#181818" points="625,559.63,629,550.63,625,554.63,621,550.63,625,559.63" style="stroke:#181818;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="27" x="626" y="526.8">child</text></g><!--link entrypoint to garage--><g id="link_entrypoint_garage"><path d="M799.37,463.15 C872.96,498.67 946.786,534.3029 993.196,556.6929 " fill="none" id="entrypoint-to-garage" style="stroke:#181818;stroke-width:1.0;"/><polygon fill="#181818" points="998.6,559.3,992.2321,551.7867,994.0967,557.1274,988.756,558.992,998.6,559.3" style="stroke:#181818;stroke-width:1.0;"/><text fill="#000000" font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLength="183" x="928" y="526.8">child (one per storage allocation)</text></g><!--SRC=[bLJVQzim47xtNt6KmjeoE-or3mFJ35POGqZJjq6GxREZHfOywLmMHl_tdIodSTiu8Numqjtf-pxT3wrbWO1rGrieqELMDYIDZY97WX0kaebq2g4GM1iDSGx99AoJRQqkG3YGMj8kF6sQgRJmBug0FsqyGgeKM5I2v0j28sZjG5ZScyW0hNbl384fktM0wT1dtmBMcnpsBLhT-SAIsQ3_UiCjtC0Z4ipJvKyFdyxdq_l599EwYtpzWCZs2MgosyP8JSUkEeZQamwCdlZEeiUrhIPPS-8u7OBWShLucYtl7twiMCdA2nix_ylac-7fiRW7j1L2nHdK87J1nIj5gtRolMGefK8tgjCqMyWuwOwiQ99dntTcds6fqtIPlkdy2h84IL-SBwUlZiNZaWO2SgDBMGNOzrGdilSvNPD2krguFud7FF-qngnLmeiw_smbhAWmdYLaQlLR0rmPpPsCbbl8U1S8fKmk_DnSZy7xlipNKXNGM9EZS-ELkPAwcu9Cv9lAcbONr_3K5ApEGT02kMeTiG0bjgQbSu0UMJBZh8qZhajf-0ULCfbGaBNv1cau8dwq8Ow_xmSB_s8U3KRDEz-nTW6Vvwkl7iG5n7UdojlDMc-8FjpB4-x0RaD63z25SlCCXmOysX0TMzWU8kkXnhdwal1xSQftmA5zmV2k1SSXmXwl9ppURA_HVm00]--></g></svg>