@@ -2077,12 +2152,20 @@ const AddTenant = ({
)}
-
Resource Allocation
+
Resource Allocation
- Volumes per Node
+ Number of Servers
+
+
+ {parseInt(nodes) > 0 ? nodes : "-"}
+
+
+
+
+ Drives per Server
{distribution ? distribution.disks : "-"}
@@ -2090,7 +2173,7 @@ const AddTenant = ({
- Disk Size
+ Drive Capacity
{distribution ? niceBytes(distribution.pvSize) : "-"}
@@ -2106,6 +2189,52 @@ const AddTenant = ({
+ {ecParityCalc.error === 0 && usableInformation && (
+
+ Erasure Code Configuration
+
+
+
+
+ EC Parity
+
+
+ {ecParity !== "" ? ecParity : "-"}
+
+
+
+
+ Raw Capacity
+
+
+ {niceBytes(ecParityCalc.rawCapacity)}
+
+
+
+
+ Usable Capacity
+
+
+ {niceBytes(usableInformation.maxCapacity)}
+
+
+
+
+ Number of server failures to tolerate
+
+
+ {distribution
+ ? Math.floor(
+ usableInformation.maxFailureTolerations /
+ distribution.disks
+ )
+ : "-"}
+
+
+
+
+
+ )}
),
buttons: [
diff --git a/portal-ui/src/screens/Console/Tenants/ListTenants/utils.ts b/portal-ui/src/screens/Console/Tenants/ListTenants/utils.ts
new file mode 100644
index 000000000..970a2d842
--- /dev/null
+++ b/portal-ui/src/screens/Console/Tenants/ListTenants/utils.ts
@@ -0,0 +1,26 @@
+// This file is part of MinIO Console Server
+// Copyright (c) 2020 MinIO, Inc.
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU Affero General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU Affero General Public License for more details.
+//
+// You should have received a copy of the GNU Affero General Public License
+// along with this program. If not, see
.
+
+export interface Opts {
+ label: string;
+ value: string;
+}
+
+export const ecListTransform = (ecList: string[]): Opts[] => {
+ return ecList.map((value) => {
+ return { label: value, value };
+ });
+};
diff --git a/swagger.yml b/swagger.yml
index b2ea52ab7..84be2fc0a 100644
--- a/swagger.yml
+++ b/swagger.yml
@@ -3675,4 +3675,4 @@ definitions:
$ref: "#/definitions/objectRetentionUnit"
validity:
type: integer
- format: int32
\ No newline at end of file
+ format: int32