Merge pull request #10406 from zhongwencool/hide-node

feat: hide node advance config
This commit is contained in:
zhongwencool 2023-04-16 09:57:42 +08:00 committed by GitHub
commit 3510ac63b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 11 deletions

View File

@ -457,7 +457,7 @@ fields("node") ->
mapping => "vm_args.+e", mapping => "vm_args.+e",
desc => ?DESC(max_ets_tables), desc => ?DESC(max_ets_tables),
default => 262144, default => 262144,
importance => ?IMPORTANCE_LOW, importance => ?IMPORTANCE_HIDDEN,
'readOnly' => true 'readOnly' => true
} }
)}, )},
@ -503,7 +503,7 @@ fields("node") ->
mapping => "vm_args.-env ERL_CRASH_DUMP", mapping => "vm_args.-env ERL_CRASH_DUMP",
desc => ?DESC(node_crash_dump_file), desc => ?DESC(node_crash_dump_file),
default => crash_dump_file_default(), default => crash_dump_file_default(),
importance => ?IMPORTANCE_LOW, importance => ?IMPORTANCE_HIDDEN,
'readOnly' => true 'readOnly' => true
} }
)}, )},
@ -514,7 +514,7 @@ fields("node") ->
mapping => "vm_args.-env ERL_CRASH_DUMP_SECONDS", mapping => "vm_args.-env ERL_CRASH_DUMP_SECONDS",
default => <<"30s">>, default => <<"30s">>,
desc => ?DESC(node_crash_dump_seconds), desc => ?DESC(node_crash_dump_seconds),
importance => ?IMPORTANCE_LOW, importance => ?IMPORTANCE_HIDDEN,
'readOnly' => true 'readOnly' => true
} }
)}, )},
@ -525,7 +525,7 @@ fields("node") ->
mapping => "vm_args.-env ERL_CRASH_DUMP_BYTES", mapping => "vm_args.-env ERL_CRASH_DUMP_BYTES",
default => <<"100MB">>, default => <<"100MB">>,
desc => ?DESC(node_crash_dump_bytes), desc => ?DESC(node_crash_dump_bytes),
importance => ?IMPORTANCE_LOW, importance => ?IMPORTANCE_HIDDEN,
'readOnly' => true 'readOnly' => true
} }
)}, )},
@ -536,7 +536,7 @@ fields("node") ->
mapping => "vm_args.-kernel net_ticktime", mapping => "vm_args.-kernel net_ticktime",
default => <<"2m">>, default => <<"2m">>,
'readOnly' => true, 'readOnly' => true,
importance => ?IMPORTANCE_LOW, importance => ?IMPORTANCE_HIDDEN,
desc => ?DESC(node_dist_net_ticktime) desc => ?DESC(node_dist_net_ticktime)
} }
)}, )},
@ -547,7 +547,7 @@ fields("node") ->
mapping => "emqx_machine.backtrace_depth", mapping => "emqx_machine.backtrace_depth",
default => 23, default => 23,
'readOnly' => true, 'readOnly' => true,
importance => ?IMPORTANCE_LOW, importance => ?IMPORTANCE_HIDDEN,
desc => ?DESC(node_backtrace_depth) desc => ?DESC(node_backtrace_depth)
} }
)}, )},
@ -558,7 +558,7 @@ fields("node") ->
mapping => "emqx_machine.applications", mapping => "emqx_machine.applications",
default => [], default => [],
'readOnly' => true, 'readOnly' => true,
importance => ?IMPORTANCE_LOW, importance => ?IMPORTANCE_HIDDEN,
desc => ?DESC(node_applications) desc => ?DESC(node_applications)
} }
)}, )},
@ -568,7 +568,7 @@ fields("node") ->
#{ #{
desc => ?DESC(node_etc_dir), desc => ?DESC(node_etc_dir),
'readOnly' => true, 'readOnly' => true,
importance => ?IMPORTANCE_LOW, importance => ?IMPORTANCE_HIDDEN,
deprecated => {since, "5.0.8"} deprecated => {since, "5.0.8"}
} }
)}, )},
@ -577,7 +577,7 @@ fields("node") ->
?R_REF("cluster_call"), ?R_REF("cluster_call"),
#{ #{
'readOnly' => true, 'readOnly' => true,
importance => ?IMPORTANCE_LOW importance => ?IMPORTANCE_HIDDEN
} }
)}, )},
{"db_backend", {"db_backend",
@ -591,7 +591,7 @@ fields("node") ->
desc => ?DESC(db_backend) desc => ?DESC(db_backend)
} }
)}, )},
{"db_role", {"role",
sc( sc(
hoconsc:enum([core, replicant]), hoconsc:enum([core, replicant]),
#{ #{
@ -599,6 +599,7 @@ fields("node") ->
default => core, default => core,
'readOnly' => true, 'readOnly' => true,
importance => ?IMPORTANCE_HIGH, importance => ?IMPORTANCE_HIGH,
aliases => [db_role],
desc => ?DESC(db_role) desc => ?DESC(db_role)
} }
)}, )},
@ -620,7 +621,7 @@ fields("node") ->
mapping => "mria.tlog_push_mode", mapping => "mria.tlog_push_mode",
default => async, default => async,
'readOnly' => true, 'readOnly' => true,
importance => ?IMPORTANCE_LOW, importance => ?IMPORTANCE_HIDDEN,
desc => ?DESC(db_tlog_push_mode) desc => ?DESC(db_tlog_push_mode)
} }
)}, )},