chore: change autoclean interval default value to 24h

There is currently a bug in OTP causing external backends to
fail when merge schema (mnesia_schema:change_storage_type/3).

To avoid forcing users to clean up the DB after the node is
stopped for a short while (5m before this change), we increase
the default auto-clean interval to 24 hours.

This PR also has the autoclean config removed from examples.
This commit is contained in:
Zaiming (Stone) Shi 2023-06-20 15:43:37 +02:00
parent 8f595cbeca
commit b588b88a60
7 changed files with 1 additions and 19 deletions

View File

@ -165,7 +165,7 @@ fields("cluster") ->
emqx_schema:duration(),
#{
mapping => "mria.cluster_autoclean",
default => <<"5m">>,
default => <<"24h">>,
desc => ?DESC(cluster_autoclean),
'readOnly' => true
}

View File

@ -16,9 +16,6 @@ cluster {
## List of core nodes that the replicant will connect to
core_nodes = ["emqx1@192.168.0.1", "emqx2@192.168.0.2"]
## Remove disconnected nodes from the cluster after this interval
autoclean = 5m
## If true, the node will try to heal network partitions automatically
autoheal = true

View File

@ -16,9 +16,6 @@ cluster {
## List of core nodes that the replicant will connect to
core_nodes = ["emqx1@192.168.0.1", "emqx2@192.168.0.2"]
## Remove disconnected nodes from the cluster after this interval
autoclean = 5m
## If true, the node will try to heal network partitions automatically
autoheal = true

View File

@ -16,9 +16,6 @@ cluster {
## List of core nodes that the replicant will connect to
core_nodes = ["emqx1@192.168.0.1", "emqx2@192.168.0.2"]
## Remove disconnected nodes from the cluster after this interval
autoclean = 5m
## If true, the node will try to heal network partitions automatically
autoheal = true

View File

@ -16,9 +16,6 @@ cluster {
## List of core nodes that the replicant will connect to
core_nodes = ["emqx1@192.168.0.1", "emqx2@192.168.0.2"]
## Remove disconnected nodes from the cluster after this interval
autoclean = 5m
## If true, the node will try to heal network partitions automatically
autoheal = true

View File

@ -16,9 +16,6 @@ cluster {
## List of core nodes that the replicant will connect to
core_nodes = ["emqx1@192.168.0.1", "emqx2@192.168.0.2"]
## Remove disconnected nodes from the cluster after this interval
autoclean = 5m
## If true, the node will try to heal network partitions automatically
autoheal = true
}

View File

@ -16,9 +16,6 @@ cluster {
## List of core nodes that the replicant will connect to
core_nodes = ["emqx1@192.168.0.1", "emqx2@192.168.0.2"]
## Remove disconnected nodes from the cluster after this interval
autoclean = 5m
## If true, the node will try to heal network partitions automatically
autoheal = true