feat(mria): Add RPC-related configuration to the schema

This commit is contained in:
k32 2021-11-30 11:44:15 +01:00
parent 616b630781
commit a92970a904
1 changed files with 21 additions and 0 deletions

View File

@ -347,6 +347,27 @@ to <code>rlog</code>.
List of core nodes that the replicant will connect to.<br/>
Note: this parameter only takes effect when the <code>backend</code> is set
to <code>rlog</code> and the <code>role</code> is set to <code>replicant</code>.
"""
})}
, {"rpc_module",
sc(hoconsc:enum([gen_rpc, rpc]),
#{ mapping => "mria.rlog_rpc_module"
, default => gen_rpc
, desc => """
Protocol used for pushing transaction logs to the replicant nodes.
<strong>Important!</strong> This setting should be the same on all nodes in the cluster.<br/>
<strong>Important!</strong> Changing this setting in the runtime is not allowed.<br/>
"""
})}
, {"tlog_push_mode",
sc(hoconsc:enum([sync, async]),
#{ mapping => "mria.tlog_push_mode"
, default => sync
, desc => """
In sync mode the core node waits for an ack from the replicant nodes before sending the next
transaction log entry.
<strong>Important!</strong> This setting should be the same on all nodes in the cluster.<br/>
<strong>Important!</strong> Changing this setting in the runtime is not allowed.<br/>
"""
})}
];