refactor: change mria default rpc module from 'gen_rpc' to 'rpc'

Erlang distribution seems to outperform gen_rpc (unless gen_rpc clients
are scaled up, but this is not easy to achive for shard transport as it
may reorder events).
This commit is contained in:
Zaiming (Stone) Shi 2023-10-11 16:22:33 +02:00
parent cd2752117c
commit 7c022c2c6a
2 changed files with 4 additions and 1 deletions

View File

@ -652,7 +652,7 @@ fields("node") ->
hoconsc:enum([gen_rpc, rpc]), hoconsc:enum([gen_rpc, rpc]),
#{ #{
mapping => "mria.rlog_rpc_module", mapping => "mria.rlog_rpc_module",
default => gen_rpc, default => rpc,
'readOnly' => true, 'readOnly' => true,
importance => ?IMPORTANCE_HIDDEN, importance => ?IMPORTANCE_HIDDEN,
desc => ?DESC(db_rpc_module) desc => ?DESC(db_rpc_module)

View File

@ -0,0 +1,3 @@
Change default RPC driver from 'gen_rpc' to 'rpc' for core-replica database sync.
This improves core-replica data replication latency.