Skip to content

Commit

Permalink
Merge pull request #3 from aws-samples/rdbms/add-multiaz-support
Browse files Browse the repository at this point in the history
Multi-AZ support added for RDS, DocumentDB and ElastiCache
  • Loading branch information
rlunar authored Oct 23, 2023
2 parents d8fa426 + 82348d6 commit 104de45
Show file tree
Hide file tree
Showing 14 changed files with 936 additions and 421 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,4 +218,3 @@ See [CONTRIBUTING](CONTRIBUTING.md#security-issue-notifications) for more inform

This library is licensed under the MIT-0 License. See the [LICENSE](LICENSE.txt) file.


3 changes: 3 additions & 0 deletions frontend/src/components/CompAuroraNode01.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ const ComponentObject = memo(({ sessionId, clusterId, nodeStats }) => {
{ nodeStats.role === "R" &&
<Badge color="red"> R </Badge>
}
{ nodeStats.role === "-" &&
<Badge>-</Badge>
}
&nbsp;
<Link fontSize="body-s" onFollow={() => onClickNode()}>{nodeStats.name}</Link>
</td>
Expand Down
21 changes: 20 additions & 1 deletion frontend/src/components/CompDocumentDBNode01.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,9 @@ const ComponentObject = memo(({ sessionId, clusterId, nodeStats }) => {
{ nodeStats.role === "R" &&
<Badge color="red"> R </Badge>
}
{ nodeStats.role === "-" &&
<Badge>-</Badge>
}
&nbsp;
<Link fontSize="body-s" onFollow={() => onClickNode()}>{nodeStats.name}</Link>
</td>
Expand All @@ -117,6 +120,7 @@ const ComponentObject = memo(({ sessionId, clusterId, nodeStats }) => {
{nodeStats.az}
</td>
<td style={{"width":"9%", "text-align":"center", "border-top": "1pt solid " + configuration.colors.lines.separator100}}>
{ nodeStats.role !== "-" &&
<CompMetric04
value={ (nodeStats.opsInsert + nodeStats.opsQuery + nodeStats.opsUpdate + nodeStats.opsDelete + nodeStats.opsCommand ) || 0}
precision={0}
Expand All @@ -129,8 +133,10 @@ const ComponentObject = memo(({ sessionId, clusterId, nodeStats }) => {
fontColorValue={configuration.colors.fonts.metric100}
chartColorLine={"#D69855"}
/>
}
</td>
<td style={{"width":"9%", "text-align":"center", "border-top": "1pt solid " + configuration.colors.lines.separator100}}>
{ nodeStats.role !== "-" &&
<CompMetric01
value={ (nodeStats.docsDeleted + nodeStats.docsInserted + nodeStats.docsReturned + nodeStats.docsUpdated ) || 0}
title={""}
Expand All @@ -139,8 +145,10 @@ const ComponentObject = memo(({ sessionId, clusterId, nodeStats }) => {
fontSizeValue={"14px"}
fontColorValue={configuration.colors.fonts.metric100}
/>
}
</td>
<td style={{"width":"9%", "text-align":"center", "border-top": "1pt solid " + configuration.colors.lines.separator100}}>
{ nodeStats.role !== "-" &&
<CompMetric01
value={nodeStats.connectionsCurrent}
title={""}
Expand All @@ -149,8 +157,10 @@ const ComponentObject = memo(({ sessionId, clusterId, nodeStats }) => {
fontSizeValue={"14px"}
fontColorValue={configuration.colors.fonts.metric100}
/>
}
</td>
<td style={{"width":"9%", "text-align":"center", "border-top": "1pt solid " + configuration.colors.lines.separator100}}>
{ nodeStats.role !== "-" &&
<CompMetric01
value={nodeStats.connectionsCreated}
title={""}
Expand All @@ -159,8 +169,10 @@ const ComponentObject = memo(({ sessionId, clusterId, nodeStats }) => {
fontSizeValue={"14px"}
fontColorValue={configuration.colors.fonts.metric100}
/>
}
</td>
<td style={{"width":"9%", "text-align":"center", "border-top": "1pt solid " + configuration.colors.lines.separator100}}>
{ nodeStats.role !== "-" &&
<CompMetric01
value={nodeStats.cpu}
title={""}
Expand All @@ -169,8 +181,10 @@ const ComponentObject = memo(({ sessionId, clusterId, nodeStats }) => {
fontSizeValue={"14px"}
fontColorValue={configuration.colors.fonts.metric100}
/>
}
</td>
<td style={{"width":"9%", "text-align":"center", "border-top": "1pt solid " + configuration.colors.lines.separator100}}>
{ nodeStats.role !== "-" &&
<CompMetric01
value={nodeStats.memory}
title={""}
Expand All @@ -179,8 +193,10 @@ const ComponentObject = memo(({ sessionId, clusterId, nodeStats }) => {
fontSizeValue={"14px"}
fontColorValue={configuration.colors.fonts.metric100}
/>
}
</td>
<td style={{"width":"9%", "text-align":"center", "border-top": "1pt solid " + configuration.colors.lines.separator100}}>
{ nodeStats.role !== "-" &&
<CompMetric01
value={nodeStats.ioreads + nodeStats.iowrites}
title={""}
Expand All @@ -189,8 +205,10 @@ const ComponentObject = memo(({ sessionId, clusterId, nodeStats }) => {
fontSizeValue={"14px"}
fontColorValue={configuration.colors.fonts.metric100}
/>
}
</td>
<td style={{"width":"9%", "text-align":"center", "border-top": "1pt solid " + configuration.colors.lines.separator100}}>
{ nodeStats.role !== "-" &&
<CompMetric01
value={ (nodeStats.netin + nodeStats.netout) }
title={""}
Expand All @@ -199,10 +217,11 @@ const ComponentObject = memo(({ sessionId, clusterId, nodeStats }) => {
fontSizeValue={"14px"}
fontColorValue={configuration.colors.fonts.metric100}
/>
}
</td>
</tr>

{ detailsVisible === true &&
{ (detailsVisible === true && nodeStats.role !== "-" ) &&
<tr>
<td></td>
<td colspan="11" style={{"width":"10%", "padding-left": "1em"}}>
Expand Down
Loading

0 comments on commit 104de45

Please sign in to comment.