Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
101 changes: 101 additions & 0 deletions portal-ui/src/screens/Console/Configurations/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,18 @@ export const configurationElements: IConfigurationElement[] = [
configuration_id: "compression",
configuration_label: "Edit Compression Configuration",
},
{
configuration_id: "api",
configuration_label: "Edit API Configuration",
},
{
configuration_id: "heal",
configuration_label: "Edit Heal Configuration",
},
{
configuration_id: "scanner",
configuration_label: "Edit Scanner Configuration",
},
{ configuration_id: "etcd", configuration_label: "Edit Etcd Configuration" },
{
configuration_id: "identity_openid",
Expand Down Expand Up @@ -157,6 +169,95 @@ export const fieldsConfigurations: any = {
withBorder: true,
},
],
api: [
{
name: "requests_max",
required: false,
label: "Requests Max",
tooltip: "Maximum number of concurrent requests, e.g. '1600'",
type: "number",
placeholder: "Enter Requests Max",
},
{
name: "cors_allow_origin",
required: false,
label: "Cors Allow Origin",
tooltip: "list of origins allowed for CORS requests",
type: "csv",
placeholder: "Enter allowed origin e.g. https://example.com",
},
{
name: "replication_workers",
required: false,
label: "Replication Workers",
tooltip: "Number of replication workers, defaults to 100",
type: "number",
placeholder: "Enter Replication Workers",
},
{
name: "replication_failed_workers",
required: false,
label: "Replication Failed Workers",
tooltip:
"Number of replication workers for recently failed replicas, defaults to 4",
type: "number",
placeholder: "Enter Replication Failed Workers",
},
],
heal: [
{
name: "bitrotscan",
required: false,
label: "Bitrot Scan",
tooltip:
"Perform bitrot scan on disks when checking objects during scanner",
type: "on|off",
},
{
name: "max_sleep",
required: false,
label: "Max Sleep",
tooltip:
"Maximum sleep duration between objects to slow down heal operation. eg. 2s",
type: "duration",
placeholder: "Enter Max Sleep duration",
},
{
name: "max_io",
required: false,
label: "Max IO",
tooltip:
"Maximum IO requests allowed between objects to slow down heal operation. eg. 3",
type: "number",
placeholder: "Enter Max IO",
},
],
scanner: [
{
name: "delay",
required: false,
label: "Delay multiplier",
tooltip: "Scanner delay multiplier, defaults to '10.0'",
type: "number",
placeholder: "Enter Delay",
},
{
name: "max_wait",
required: false,
label: "Max Wait",
tooltip: "Maximum wait time between operations, defaults to '15s'",
type: "duration",
placeholder: "Enter Max Wait",
},
{
name: "cycle",
required: false,
label: "Cycle",
tooltip: "Time duration between scanner cycles, defaults to '1m'",
type: "duration",
placeholder: "Enter Cycle",
},
],
etcd: [
{
name: "endpoints",
Expand Down