Skip to content

Commit

Permalink
CORE-18913 adjust the corda api configs for the mediator (#1402)
Browse files Browse the repository at this point in the history
Move flow config value to subscription config as it is a mediator property not a flow one.
Add a new configuration for minimum pool group size.
  • Loading branch information
LWogan authored Dec 15, 2023
1 parent 8c922a7 commit ea7dd88
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,4 @@ private FlowConfig() {
public static final String PROCESSING_MAX_RETRY_DELAY = "processing.maxRetryDelay";
public static final String PROCESSING_MAX_FLOW_SLEEP_DURATION = "processing.maxFlowSleepDuration";
public static final String PROCESSING_FLOW_CLEANUP_TIME = "processing.cleanupTime";
public static final String PROCESSING_THREAD_POOL_SIZE = "processing.poolSize";
}
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ private Subscription() {
public static final String SUBSCRIBE_RETRIES = SUBSCRIPTION + ".subscribeRetries";
public static final String COMMIT_RETRIES = SUBSCRIPTION + ".commitRetries";
public static final String PROCESSOR_TIMEOUT = SUBSCRIPTION + ".processorTimeout";
public static final String PROCESSING_THREAD_POOL_SIZE = SUBSCRIPTION + ".mediator.poolSize";
public static final String PROCESSING_MIN_POOL_RECORD_COUNT = SUBSCRIPTION + ".mediator.minPoolRecordCount";
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,27 @@
"minimum": 1000,
"maximum": 2147483647,
"default": 15000
},
"mediator": {
"description": "Settings for the multi source mediator",
"type": "object",
"default": {},
"properties": {
"poolSize": {
"description": "The size of the mediator event processing pool size.",
"type": "integer",
"minimum": 1,
"maximum": 2147483647,
"default": 8
},
"minPoolRecordCount": {
"description": "The minimum number of events in a single mediator processing pool. If the number of records polled is less than this, then the polled records are used in a single pool.",
"type": "integer",
"minimum": 1,
"maximum": 2147483647,
"default": 20
}
}
}
},
"additionalProperties": false
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ cordaProductVersion = 5.2.0
# NOTE: update this each time this module contains a breaking change
## NOTE: currently this is a top level revision, so all API versions will line up, but this could be moved to
## a per module property in which case module versions can change independently.
cordaApiRevision = 16
cordaApiRevision = 17

# Main
kotlin.stdlib.default.dependency = false
Expand Down

0 comments on commit ea7dd88

Please sign in to comment.