Skip to content

Commit

Permalink
add system quota
Browse files Browse the repository at this point in the history
Signed-off-by: lengrongfu <1275177125@qq.com>
  • Loading branch information
lengrongfu committed Jun 7, 2023
1 parent b4c27b4 commit 5e1a679
Show file tree
Hide file tree
Showing 3 changed files with 323 additions and 0 deletions.
235 changes: 235 additions & 0 deletions proposals/images/system-quota/data-flow.drawio
@@ -0,0 +1,235 @@
<mxfile host="65bd71144e">
<diagram id="EdUmsjFPBVR0ILrSMJeO" name="Page-1">
<mxGraphModel dx="991" dy="1049" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1200" pageHeight="1600" background="#ffffff" math="0" shadow="0">
<root>
<mxCell id="0"/>
<mxCell id="1" parent="0"/>
<mxCell id="2" value="Data Flow" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="50" y="80" width="80" height="30" as="geometry"/>
</mxCell>
<mxCell id="3" value="" style="endArrow=none;html=1;" edge="1" parent="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="60" y="110" as="sourcePoint"/>
<mxPoint x="770" y="110" as="targetPoint"/>
</mxGeometry>
</mxCell>
<mxCell id="10" style="edgeStyle=none;html=1;" edge="1" parent="1" source="4">
<mxGeometry relative="1" as="geometry">
<mxPoint x="115" y="696.3636363636364" as="targetPoint"/>
</mxGeometry>
</mxCell>
<mxCell id="4" value="Docker cli" style="rounded=1;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="70" y="140" width="90" height="20" as="geometry"/>
</mxCell>
<mxCell id="11" style="edgeStyle=none;html=1;startArrow=none;" edge="1" parent="1" source="16">
<mxGeometry relative="1" as="geometry">
<mxPoint x="275" y="710" as="targetPoint"/>
</mxGeometry>
</mxCell>
<mxCell id="5" value="Middle-Quota" style="rounded=1;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="230" y="140" width="90" height="20" as="geometry"/>
</mxCell>
<mxCell id="12" style="edgeStyle=none;html=1;startArrow=none;" edge="1" parent="1" source="37">
<mxGeometry relative="1" as="geometry">
<mxPoint x="435" y="720" as="targetPoint"/>
</mxGeometry>
</mxCell>
<mxCell id="6" value="Middleware" style="rounded=1;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="390" y="140" width="90" height="20" as="geometry"/>
</mxCell>
<mxCell id="13" style="edgeStyle=none;html=1;startArrow=none;" edge="1" parent="1" source="39">
<mxGeometry relative="1" as="geometry">
<mxPoint x="595" y="710" as="targetPoint"/>
</mxGeometry>
</mxCell>
<mxCell id="7" value="Proxy" style="rounded=1;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="550" y="140" width="90" height="20" as="geometry"/>
</mxCell>
<mxCell id="14" style="edgeStyle=none;html=1;startArrow=none;" edge="1" parent="1" source="41">
<mxGeometry relative="1" as="geometry">
<mxPoint x="755" y="700" as="targetPoint"/>
</mxGeometry>
</mxCell>
<mxCell id="8" value="Registry" style="rounded=1;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="710" y="140" width="90" height="20" as="geometry"/>
</mxCell>
<mxCell id="15" style="edgeStyle=none;html=1;startArrow=none;" edge="1" parent="1" source="43">
<mxGeometry relative="1" as="geometry">
<mxPoint x="915" y="700" as="targetPoint"/>
</mxGeometry>
</mxCell>
<mxCell id="9" value="DB" style="rounded=1;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="870" y="140" width="90" height="20" as="geometry"/>
</mxCell>
<mxCell id="17" value="" style="edgeStyle=none;html=1;endArrow=none;" edge="1" parent="1" source="5" target="16">
<mxGeometry relative="1" as="geometry">
<mxPoint x="275" y="710" as="targetPoint"/>
<mxPoint x="275" y="160" as="sourcePoint"/>
</mxGeometry>
</mxCell>
<mxCell id="16" value="" style="rounded=1;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="265" y="220" width="20" height="260" as="geometry"/>
</mxCell>
<mxCell id="18" value="" style="endArrow=classic;html=1;entryX=0.077;entryY=0.002;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="1" target="16">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="115" y="220" as="sourcePoint"/>
<mxPoint x="259.99999999999994" y="220" as="targetPoint"/>
</mxGeometry>
</mxCell>
<mxCell id="19" value="push image" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry x="150" y="190" width="80" height="30" as="geometry"/>
</mxCell>
<mxCell id="23" value="" style="endArrow=classic;html=1;exitX=1.008;exitY=0.224;exitDx=0;exitDy=0;exitPerimeter=0;" edge="1" parent="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="284.99999999999955" y="280.31999999999994" as="sourcePoint"/>
<mxPoint x="914.8400000000004" y="280" as="targetPoint"/>
</mxGeometry>
</mxCell>
<mxCell id="24" value="query all quota&amp;nbsp;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="305" y="250" width="110" height="30" as="geometry"/>
</mxCell>
<mxCell id="26" value="" style="endArrow=none;html=1;exitX=1.008;exitY=0.224;exitDx=0;exitDy=0;exitPerimeter=0;startArrow=classic;startFill=1;endFill=0;" edge="1" parent="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="284.99999999999955" y="320.31999999999994" as="sourcePoint"/>
<mxPoint x="914.8400000000004" y="320" as="targetPoint"/>
</mxGeometry>
</mxCell>
<mxCell id="27" value="return use storage from all quota data" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="290" y="295" width="220" height="30" as="geometry"/>
</mxCell>
<mxCell id="28" value="" style="endArrow=classic;html=1;exitX=1.008;exitY=0.224;exitDx=0;exitDy=0;exitPerimeter=0;" edge="1" parent="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="284.99999999999955" y="360.31999999999994" as="sourcePoint"/>
<mxPoint x="914.8400000000004" y="360" as="targetPoint"/>
</mxGeometry>
</mxCell>
<mxCell id="29" value="query&amp;nbsp; write ratio" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="305" y="325" width="110" height="30" as="geometry"/>
</mxCell>
<mxCell id="30" value="" style="endArrow=none;html=1;exitX=1.008;exitY=0.224;exitDx=0;exitDy=0;exitPerimeter=0;startArrow=classic;startFill=1;endFill=0;" edge="1" parent="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="284.99999999999955" y="399.06999999999994" as="sourcePoint"/>
<mxPoint x="914.8400000000004" y="398.75" as="targetPoint"/>
</mxGeometry>
</mxCell>
<mxCell id="31" value="return write ratio" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="305" y="370" width="110" height="30" as="geometry"/>
</mxCell>
<mxCell id="32" value="" style="endArrow=classic;html=1;exitX=1.008;exitY=0.224;exitDx=0;exitDy=0;exitPerimeter=0;" edge="1" parent="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="284.99999999999955" y="440.31999999999994" as="sourcePoint"/>
<mxPoint x="914.8400000000004" y="440" as="targetPoint"/>
</mxGeometry>
</mxCell>
<mxCell id="33" value="if more then write ratio, set read only flag to db" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="290" y="410" width="270" height="30" as="geometry"/>
</mxCell>
<mxCell id="34" value="" style="endArrow=none;html=1;entryX=0.077;entryY=0.002;entryDx=0;entryDy=0;entryPerimeter=0;endFill=0;startArrow=classic;startFill=1;" edge="1" parent="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="113.46000000000001" y="460" as="sourcePoint"/>
<mxPoint x="264.99999999999994" y="460.5200000000002" as="targetPoint"/>
</mxGeometry>
</mxCell>
<mxCell id="35" value="if use &amp;gt; setting" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry x="145" y="430" width="90" height="30" as="geometry"/>
</mxCell>
<mxCell id="38" value="" style="edgeStyle=none;html=1;endArrow=none;" edge="1" parent="1" source="6" target="37">
<mxGeometry relative="1" as="geometry">
<mxPoint x="435" y="720.0000000000002" as="targetPoint"/>
<mxPoint x="435" y="160" as="sourcePoint"/>
</mxGeometry>
</mxCell>
<mxCell id="37" value="" style="rounded=1;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="425" y="460" width="20" height="90" as="geometry"/>
</mxCell>
<mxCell id="40" value="" style="edgeStyle=none;html=1;endArrow=none;" edge="1" parent="1" source="7" target="39">
<mxGeometry relative="1" as="geometry">
<mxPoint x="595" y="710.0000000000002" as="targetPoint"/>
<mxPoint x="595" y="160" as="sourcePoint"/>
</mxGeometry>
</mxCell>
<mxCell id="39" value="" style="rounded=1;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="585" y="490" width="20" height="160" as="geometry"/>
</mxCell>
<mxCell id="42" value="" style="edgeStyle=none;html=1;endArrow=none;" edge="1" parent="1" source="8" target="41">
<mxGeometry relative="1" as="geometry">
<mxPoint x="755" y="700.0000000000002" as="targetPoint"/>
<mxPoint x="755" y="160" as="sourcePoint"/>
</mxGeometry>
</mxCell>
<mxCell id="41" value="" style="rounded=1;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="745" y="510" width="20" height="70" as="geometry"/>
</mxCell>
<mxCell id="44" value="" style="edgeStyle=none;html=1;endArrow=none;" edge="1" parent="1" source="9" target="43">
<mxGeometry relative="1" as="geometry">
<mxPoint x="915" y="700.0000000000002" as="targetPoint"/>
<mxPoint x="915" y="160" as="sourcePoint"/>
</mxGeometry>
</mxCell>
<mxCell id="43" value="" style="rounded=1;whiteSpace=wrap;html=1;" vertex="1" parent="1">
<mxGeometry x="905" y="590" width="20" height="90" as="geometry"/>
</mxCell>
<mxCell id="45" value="" style="endArrow=classic;html=1;exitX=1;exitY=1;exitDx=0;exitDy=0;entryX=0.026;entryY=0.209;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="1" source="16" target="37">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="530" y="330" as="sourcePoint"/>
<mxPoint x="580" y="280" as="targetPoint"/>
</mxGeometry>
</mxCell>
<mxCell id="46" value="push image" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry x="320" y="450" width="70" height="30" as="geometry"/>
</mxCell>
<mxCell id="47" value="" style="endArrow=classic;html=1;exitX=1;exitY=1;exitDx=0;exitDy=0;entryX=0.026;entryY=0.209;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="445" y="491.19" as="sourcePoint"/>
<mxPoint x="585.5199999999999" y="489.99999999999994" as="targetPoint"/>
</mxGeometry>
</mxCell>
<mxCell id="48" value="" style="endArrow=classic;html=1;exitX=1;exitY=1;exitDx=0;exitDy=0;entryX=0.026;entryY=0.209;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="604.48" y="521.19" as="sourcePoint"/>
<mxPoint x="745" y="520" as="targetPoint"/>
</mxGeometry>
</mxCell>
<mxCell id="51" value="" style="endArrow=classic;html=1;exitX=1;exitY=1;exitDx=0;exitDy=0;entryX=0.026;entryY=0.209;entryDx=0;entryDy=0;entryPerimeter=0;" edge="1" parent="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="604.48" y="521.19" as="sourcePoint"/>
<mxPoint x="745" y="520" as="targetPoint"/>
</mxGeometry>
</mxCell>
<mxCell id="52" value="push image" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry x="480" y="460" width="70" height="30" as="geometry"/>
</mxCell>
<mxCell id="53" value="push image" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" vertex="1" parent="1">
<mxGeometry x="640" y="490" width="70" height="30" as="geometry"/>
</mxCell>
<mxCell id="54" value="" style="endArrow=none;html=1;exitX=1;exitY=1;exitDx=0;exitDy=0;entryX=0.026;entryY=0.209;entryDx=0;entryDy=0;entryPerimeter=0;endFill=0;startArrow=none;startFill=0;" edge="1" parent="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="605" y="571.19" as="sourcePoint"/>
<mxPoint x="745.52" y="570" as="targetPoint"/>
</mxGeometry>
</mxCell>
<mxCell id="55" value="success 201" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="630" y="540" width="90" height="30" as="geometry"/>
</mxCell>
<mxCell id="56" value="" style="endArrow=classic;html=1;entryX=-0.006;entryY=0.221;entryDx=0;entryDy=0;entryPerimeter=0;exitX=1;exitY=0.75;exitDx=0;exitDy=0;" edge="1" parent="1" source="39" target="43">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="610" y="610" as="sourcePoint"/>
<mxPoint x="720" y="430" as="targetPoint"/>
</mxGeometry>
</mxCell>
<mxCell id="59" value="insert data(goroutine)" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="605" y="580" width="140" height="30" as="geometry"/>
</mxCell>
<mxCell id="60" value="" style="endArrow=classic;html=1;exitX=0;exitY=0.848;exitDx=0;exitDy=0;exitPerimeter=0;" edge="1" parent="1">
<mxGeometry width="50" height="50" relative="1" as="geometry">
<mxPoint x="584" y="625.6800000000001" as="sourcePoint"/>
<mxPoint x="120" y="626" as="targetPoint"/>
</mxGeometry>
</mxCell>
<mxCell id="61" value="push success" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="145" y="590" width="100" height="30" as="geometry"/>
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>
Binary file added proposals/images/system-quota/data-flow.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5e1a679

Please sign in to comment.