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:
parent
8f595cbeca
commit
b588b88a60
|
@ -165,7 +165,7 @@ fields("cluster") ->
|
|||
emqx_schema:duration(),
|
||||
#{
|
||||
mapping => "mria.cluster_autoclean",
|
||||
default => <<"5m">>,
|
||||
default => <<"24h">>,
|
||||
desc => ?DESC(cluster_autoclean),
|
||||
'readOnly' => true
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue