Files
HealthAppRepositoryB/ArchitectureProposal/diagrams/06-deployment.drawio
T

85 lines
9.2 KiB
XML

<?xml version='1.0' encoding='utf-8'?>
<mxfile host="app.diagrams.net" type="device" compressed="false">
<diagram id="page1" name="Deployment — default local Linux">
<mxGraphModel dx="1500" dy="900" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1540" pageHeight="960" math="0" shadow="0">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
<mxCell id="title" value="Deployment — default local Linux" style="text;html=0;align=left;fontSize=24;fontStyle=1;" vertex="1" parent="1">
<mxGeometry as="geometry" x="60" y="25" width="1380" height="45" />
</mxCell>
<mxCell id="client" value="External clients&#10;Trust API certificate / prototype CA&#10;HTTPS bearer requests&#10;No database access" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#e8f0fe;strokeColor=#355070;fontSize=14;align=left;verticalAlign=middle;spacing=12;" vertex="1" parent="1">
<mxGeometry as="geometry" x="80" y="120" width="340" height="225" />
</mxCell>
<mxCell id="app" value="Supported Linux host / systemd&#10;One Health App application process&#10;Dedicated app identity&#10;Configured HTTPS listener&#10;All logical modules in-process" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#e8f0fe;strokeColor=#355070;fontSize=14;align=left;verticalAlign=middle;spacing=12;" vertex="1" parent="1">
<mxGeometry as="geometry" x="540" y="120" width="340" height="225" />
</mxCell>
<mxCell id="db" value="Same host: PostgreSQL process&#10;One health database&#10;profile + observations schemas&#10;Restricted application credentials&#10;Native DB lifecycle independent" style="shape=cylinder3;whiteSpace=wrap;html=0;fillColor=#f1e8fa;strokeColor=#76558d;fontSize=14;align=left;spacing=14;" vertex="1" parent="1">
<mxGeometry as="geometry" x="540" y="440" width="340" height="225" />
</mxCell>
<mxCell id="installer" value="Administrative installer (transient)&#10;Detect/provision runtime + PostgreSQL&#10;Generate configuration/secrets/certificates&#10;Migrate/register/start/verify&#10;Exit after success or clear stage failure" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#fff6df;strokeColor=#b28725;fontSize=13;align=left;spacing=12;" vertex="1" parent="1">
<mxGeometry as="geometry" x="80" y="440" width="340" height="225" />
</mxCell>
<mxCell id="files" value="Protected local app files&#10;Configuration / key ring / certificate&#10;No hard-coded or logged secrets&#10;Reviewed versioned public content" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#fff6df;strokeColor=#b28725;fontSize=13;align=left;spacing=12;" vertex="1" parent="1">
<mxGeometry as="geometry" x="1000" y="120" width="340" height="225" />
</mxCell>
<mxCell id="edge0" value="HTTPS; public guidance or authorized data" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;dashed=1;endArrow=open;" edge="1" parent="1" source="client" target="app">
<mxGeometry as="geometry" relative="1" />
</mxCell>
<mxCell id="edge1" value="Restricted local database transport" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;dashed=1;endArrow=open;" edge="1" parent="1" source="app" target="db">
<mxGeometry as="geometry" relative="1" />
</mxCell>
<mxCell id="edge2" value="Install unit; verify PID/HTTPS/restart/workflow" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;dashed=1;endArrow=open;" edge="1" parent="1" source="installer" target="app">
<mxGeometry as="geometry" relative="1" />
</mxCell>
<mxCell id="edge3" value="Provision DB/schema/roles; migrate" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;dashed=1;endArrow=open;" edge="1" parent="1" source="installer" target="db">
<mxGeometry as="geometry" relative="1" />
</mxCell>
<mxCell id="edge4" value="Load own protected settings" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;dashed=1;endArrow=open;" edge="1" parent="1" source="app" target="files">
<mxGeometry as="geometry" relative="1" />
</mxCell>
<mxCell id="note" value="One application process, NOT five services. App stop/restart does not directly stop PostgreSQL. DB failure prevents health operations without false empty-data responses; public guidance can remain available. Colocation is a workload assumption, not measured energy optimization. No proxy/container/orchestrator required." style="rounded=0;whiteSpace=wrap;html=0;fillColor=#fff6df;strokeColor=#b28725;fontSize=13;align=left;spacing=12;" vertex="1" parent="1">
<mxGeometry as="geometry" x="60" y="770" width="1380" height="115" />
</mxCell>
</root>
</mxGraphModel>
</diagram>
<diagram id="page2" name="Deployment — optional separate database host">
<mxGraphModel dx="1500" dy="900" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1540" pageHeight="960" math="0" shadow="0">
<root>
<mxCell id="0" />
<mxCell id="1" parent="0" />
<mxCell id="title" value="Deployment — optional separate database host" style="text;html=0;align=left;fontSize=24;fontStyle=1;" vertex="1" parent="1">
<mxGeometry as="geometry" x="60" y="25" width="1380" height="45" />
</mxCell>
<mxCell id="client" value="External clients&#10;HTTPS login / authorized API reads/writes" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#e8f0fe;strokeColor=#355070;fontSize=14;align=left;verticalAlign=middle;spacing=12;" vertex="1" parent="1">
<mxGeometry as="geometry" x="80" y="120" width="340" height="225" />
</mxCell>
<mxCell id="app" value="Host A: Linux / systemd&#10;Same single Health App application&#10;Own configuration / keys / certificate&#10;DB endpoint fully configurable" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#e8f0fe;strokeColor=#355070;fontSize=14;align=left;verticalAlign=middle;spacing=12;" vertex="1" parent="1">
<mxGeometry as="geometry" x="540" y="120" width="340" height="225" />
</mxCell>
<mxCell id="db" value="Host B: PostgreSQL&#10;Same health DB / owned schemas&#10;Verified encrypted DB transport&#10;Only application/admin network origins&#10;No application feature services" style="shape=cylinder3;whiteSpace=wrap;html=0;fillColor=#f1e8fa;strokeColor=#76558d;fontSize=14;align=left;spacing=14;" vertex="1" parent="1">
<mxGeometry as="geometry" x="1000" y="120" width="340" height="225" />
</mxCell>
<mxCell id="admin" value="Administrator / transient utility&#10;Preflight app + remote DB prerequisites&#10;Protected remote admin connection&#10;Provision/verify reachable configured DB&#10;Do not install unnecessary local PostgreSQL" style="rounded=0;whiteSpace=wrap;html=0;fillColor=#fff6df;strokeColor=#b28725;fontSize=13;align=left;spacing=12;" vertex="1" parent="1">
<mxGeometry as="geometry" x="540" y="440" width="340" height="225" />
</mxCell>
<mxCell id="edge0" value="HTTPS" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;dashed=1;endArrow=open;" edge="1" parent="1" source="client" target="app">
<mxGeometry as="geometry" relative="1" />
</mxCell>
<mxCell id="edge1" value="Verified DB TLS; restricted DML role" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;dashed=1;endArrow=open;" edge="1" parent="1" source="app" target="db">
<mxGeometry as="geometry" relative="1" />
</mxCell>
<mxCell id="edge2" value="Native installation/configuration" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;dashed=1;endArrow=open;" edge="1" parent="1" source="admin" target="app">
<mxGeometry as="geometry" relative="1" />
</mxCell>
<mxCell id="edge3" value="Privileged provisioning / migration" style="edgeStyle=orthogonalEdgeStyle;rounded=0;html=0;fontSize=12;labelBackgroundColor=#ffffff;strokeColor=#46566a;dashed=1;endArrow=open;" edge="1" parent="1" source="admin" target="db">
<mxGeometry as="geometry" relative="1" />
</mxCell>
<mxCell id="note" value="Location changes no application responsibility or public semantics. Runtime app needs no shared local files with DB host. Original five-machine feature-service layout is intentionally unsupported under clarified scope; US-16 revision records the incompatibility. Distributed DB may raise communication/idle cost or benefit shared DB administration." style="rounded=0;whiteSpace=wrap;html=0;fillColor=#fff6df;strokeColor=#b28725;fontSize=13;align=left;spacing=12;" vertex="1" parent="1">
<mxGeometry as="geometry" x="60" y="770" width="1380" height="115" />
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>