From 3a2593f484389100a50def25f6df80d8dd898074 Mon Sep 17 00:00:00 2001 From: Nikolett Nagy <61757742+nikinagy@users.noreply.github.com> Date: Wed, 15 Nov 2023 09:08:08 +0000 Subject: [PATCH] CORE-17355 - Reduce number of p2p e2e sessions maintained per pair of vnodes (#1307) In order to increase our performance, this PR reduces number of p2p e2e sessions maintained per pair of vnodes: for member <-> MGM communication reduce to 1 for member <-> member communication reduce to 1 --- .../1.0/corda.p2p.linkManager.json | 25 ++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/data/config-schema/src/main/resources/net/corda/schema/configuration/p2p.linkManager/1.0/corda.p2p.linkManager.json b/data/config-schema/src/main/resources/net/corda/schema/configuration/p2p.linkManager/1.0/corda.p2p.linkManager.json index 5177b39dba..eafdd208e2 100644 --- a/data/config-schema/src/main/resources/net/corda/schema/configuration/p2p.linkManager/1.0/corda.p2p.linkManager.json +++ b/data/config-schema/src/main/resources/net/corda/schema/configuration/p2p.linkManager/1.0/corda.p2p.linkManager.json @@ -90,11 +90,30 @@ "minimum": 500 }, "sessionsPerPeer": { - "description": "The number of actively maintained sessions between two peers.", - "type": "integer", - "default": 4, + "description": "Deprecated field, numOfSessionsPerPeer should be used instead. The number of actively maintained sessions between two peers.", + "type": ["integer", "null"], + "default": null, "minimum": 1 }, + "numOfSessionsPerPeer": { + "description": "The number of actively maintained sessions between two peers.", + "type": "object", + "default": {}, + "properties": { + "forMgm": { + "description": "The number of actively maintained sessions between two peers if one of them is an MGM. Communication between an MGM and a member is not considered critical and so the default value of 1 is recommended to improve performance.", + "type": "integer", + "default": 1, + "minimum": 1 + }, + "forMembers": { + "description": "The number of actively maintained sessions between two peers if both peers are members. The default value of 2 is recommended because the chance of both sessions failing on the same link manager is relatively low. If high-availability is critical, R3 recommends deploying multiple link manager instances instead.", + "type": "integer", + "default": 2, + "minimum": 1 + } + } + }, "revocationCheck": { "type": "object", "default": {},