Skip to content

Commit

Permalink
pubsub example configs: adding an initial example config using the sq…
Browse files Browse the repository at this point in the history
…s backend
  • Loading branch information
LiberatorUSA committed Jun 2, 2024
1 parent 6f68a8a commit 83d8c28
Show file tree
Hide file tree
Showing 2 changed files with 218 additions and 7 deletions.
211 changes: 211 additions & 0 deletions tools/pubsub2pubsub/config/examples/channel_templates/storage2sqs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,211 @@
{
"channelId": -1,
"channelName": "storage2sqs",
"collectMetrics": true,
"metricsIntervalInMs": 1000,
"ticketRefillOnBusyCycle": 10000,
"PubSubSides": {
"storage-source": {
"allowOutOfOrderPublishRetry": true,
"allowTimedOutPublishedInFlightMsgsRetryOutOfOrder": true,
"applyThreadCpuAffinity": true,
"cpuAffinityForPubSubThread": 1,
"maxMsgPublishRetryAttempts": 20,
"maxMsgPublishRetryTotalTimeInMs": 60000,
"maxPublishedMsgInFlightTimeInMs": 240000,
"maxTotalMsgsInFlight": 1000,
"performPubSubInDedicatedThread": true,
"retryFailedPublishAttempts": true,
"subscribeWithoutBookmarkIfNoneIsPersisted": true,
"PubSubClientConfig": {
"pubsubClientType": "STORAGE",
"reconnectDelayInMs": 0,
"CustomConfig": {},
"Topics": [],
"defaultTopicConfig": {
"isOptional": false,
"needSubscribeSupport": true,
"needPublishSupport": false,
"preferDedicatedConnection": false,
"topicName": "source",
"consumerGroupName": "",
"consumerName": "",
"useTopicLevelMaxTotalMsgsInFlight": false,
"maxTotalMsgsInFlight": -1,
"CustomConfig": {
"desiredNrOfBuffers": 3,
"desiredMinimalSerializedBlockSize": 2560000,
"desiredMaxTimeToWaitToGrowSerializedBlockSizeInMs": 1000,
"vfsStorageRootPath": "InstallPath/storage-source",
"vfsFileExtention": "pubsubmsgs",
"encodeCodecFamily": "",
"encodeCodecName": "",
"decodeCodecFamily": "",
"decodeCodecName": "",
"ticketRefillOnBusyCycle": 10000,
"performVfsOpsASync": false,
"performVfsOpsInDedicatedThread": false,
"applyDedicatedVfsOpsThreadCpuAffinity": false,
"cpuAffinityForDedicatedVfsOpsThread": 0,
"collectMetrics": true,
"subscribeWithoutBookmarkIfNoneIsPersisted": true,
"autoPushAfterStartupIfStorageToPubSub": true,
"autoPushAfterStartupIsPersistent": true,
"youngestStoragePubSubMsgFileToLoad": "",
"oldestStoragePubSubMsgFileToLoad": "",
"defaultCodecDecodeGrowthRatioExpectation": 6,
"bestEffortDeserializeIsAllowed": true,
"maxStorageCorruptionDetectionsToBeHealthy": 0,
"maxStorageDeserializationFailuresToBeHealthy": 0,
"treatEveryFullfilledRequestAsEODEvent": false,
"deleteContainersWithFullyAckdContent": false,
"moveContainersWithFullyAckdContent": true,
"vfsStorageRootPathForFullyAckdContainers": "InstallPath/storage-source/processed",
"maxCompletedContainerRefsToRetain": 50
}
},
"DesiredFeatures": {
"supportsPublishing": false,
"supportsSubscribing": true,
"supportsAutoReconnect": true,
"supportsSubscriberRateThrottling": true,
"supportsSubscriptionMsgArrivalDelayRequests": true,
"supportsSubscriptionEndOfDataEvent": true,
"supportsBinaryPayloads": true,
"supportsMultiHostSharding": false,
"supportsPerMsgIds": true,
"supportsMsgIndex": true,
"supportsPrimaryPayloadPerMsg": true,
"supportsAbsentPrimaryPayloadPerMsg": true,
"supportsKeyValueSetPerMsg": true,
"supportsDuplicateKeysPerMsg": true,
"supportsMetaDataKeyValueSetPerMsg": true,
"supportsSubscriberMsgReceivedAck": false,
"supportsAutoMsgReceivedAck": false,
"supportsAbsentMsgReceivedAck": false,
"supportsAckUsingLastMsgInBatch": true,
"supportsAckUsingBookmark": true,
"supportsBookmarkingConcept": true,
"supportsSubscribingUsingBookmark": true,
"supportsServerSideBookmarkPersistance": false,
"supportsAutoBookmarking": false,
"supportsMsgIdBasedBookmark": false,
"supportsMsgIndexBasedBookmark": false,
"supportsTopicIndexBasedBookmark": false,
"supportsMsgDateTimeBasedBookmark": false,
"supportsDerivingBookmarkFromMsg": true,
"supportsDiscoveryOfAvailableTopics": true,
"supportsGlobPatternTopicNames": true,
"supportsMetrics": true
}
},
"PubSubBookmarkPersistenceConfig": {
"bookmarkPersistenceType": "VFS",
"bookmarkNamespace": "",
"autoPersistAlways": false,
"autoPersistIfClientSideBookmarksNeeded": true,
"autoPersistIntervalInMs": 1000,
"autoPersistMsgInterval": 1000,
"maxNrOfBookmarksToKeep": 10,
"CustomConfig": {
"vfsRootPath": "InstallPath/bookmarks",
"persistenceStructure": "{bookmarkNamespace}/clientType/{clientType}/topicName/{topicName}"
}
}
},
"sqs-sink": {
"allowOutOfOrderPublishRetry": false,
"allowTimedOutPublishedInFlightMsgsRetryOutOfOrder": true,
"applyThreadCpuAffinity": true,
"cpuAffinityForPubSubThread": 1,
"maxMsgPublishRetryAttempts": 20,
"maxMsgPublishRetryTotalTimeInMs": 60000,
"maxPublishedMsgInFlightTimeInMs": 240000,
"maxTotalMsgsInFlight": 1000,
"performPubSubInDedicatedThread": true,
"retryFailedPublishAttempts": true,
"subscribeWithoutBookmarkIfNoneIsPersisted": true,
"PubSubClientConfig": {
"pubsubClientType": "AwsSqs",
"reconnectDelayInMs": 500,
"RemoteAddresses": [],
"CustomConfig": {},
"Topics": [],
"defaultTopicConfig": {
"isOptional": false,
"needPublishSupport": true,
"needSubscribeSupport": false,
"preferDedicatedConnection": false,
"topicName": "pubsub2pubsub-storage-load-test-queue",
"CustomConfig": {
"topicNameIsQueueName": true,
"tryToUseSendMessageBatch": true,
"addPrefixWhenSendingKvPairs": false,
"kvPairPrefixToAddOnSend": "",
"addPrefixWhenSendingMetaDataKvPairs": false,
"metaDatakvPairPrefixToAddOnSend": ""
}
},
"DesiredFeatures": {
"supportsAbsentPrimaryPayloadPerMsg": false,
"supportsAutoBookmarking": false,
"supportsAutoReconnect": true,
"supportsBinaryPayloads": true,
"supportsBookmarkingConcept": false,
"supportsDuplicateKeysPerMsg": false,
"supportsKeyValueSetPerMsg": true,
"supportsMetaDataKeyValueSetPerMsg": false,
"supportsMetrics": true,
"supportsMsgDateTimeBasedBookmark": false,
"supportsMsgIdBasedBookmark": false,
"supportsMsgIndexBasedBookmark": false,
"supportsMultiHostSharding": false,
"supportsPerMsgIds": false,
"supportsPrimaryPayloadPerMsg": false,
"supportsPublishing": true,
"supportsSubscriberMsgReceivedAck": true,
"supportsSubscriberRateThrottling": true,
"supportsSubscribing": false,
"supportsTopicIndexBasedBookmark": false
}
},
"PubSubBookmarkPersistenceConfig": {
"bookmarkPersistenceType": "VFS",
"bookmarkNamespace": "",
"autoPersistAlways": false,
"autoPersistIfClientSideBookmarksNeeded": true,
"autoPersistIntervalInMs": 1000,
"autoPersistMsgInterval": 1000,
"maxNrOfBookmarksToKeep": 10,
"CustomConfig": {
"vfsRootPath": "InstallPath/bookmarks",
"persistenceStructure": "{bookmarkNamespace}/clientType/{clientType}/topicName/{topicName}"
}
}
}
},
"PubSubFlowRouterConfig": {
"ackStyle": "AllOrNothing",
"minBadHealthDurationBeforeFailoverInMs": 5000000,
"minBadHealthDurationBeforeSpilloverInMs": 5000000,
"minPrimarySideGoodHealthDurationBeforeActivationInMs": 5000,
"minFailoverSideGoodHealthDurationBeforeActivationInMs": 5000,
"minSpilloverSideGoodHealthDurationBeforeActivationInMs": 5000,
"routeSwitchingTimerIntervalInMs": 1000,
"routes": [
{
"fromSideId": "storage-source",
"toSideId": "sqs-sink",
"failoverSideId": "",
"spilloverBufferSideId": "",
"deadLetterSideId": "",
"toSideTopicsAutoMatchFromSide": true,
"failoverSideTopicsAutoMatchFromSide": true,
"spilloverSideTopicsAutoMatchFromSide": true,
"deadLetterSideTopicsAutoMatchFromSide": true,
"preferFromTopicThreadForDestination": true,
"topicAssociations": []
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@
;"Type"="GucefGenericPlugin"
;"LoadFailAllowed"="false"

;[Bootstrap\PluginGroup\PluginMetaData]
;"Description"="Pub sub concept adapter plugin implementing support for AWS SQS"
;"Path"="$MODULEDIR$"
;"Filename"="pubsubpluginAWSSQS_d"
;"AltFilename"="pubsubpluginAWSSQS"
;"Type"="GucefGenericPlugin"
;"LoadFailAllowed"="true"
[Bootstrap\PluginGroup\PluginMetaData]
"Description"="Pub sub concept adapter plugin implementing support for AWS SQS"
"Path"="$MODULEDIR$"
"Filename"="pubsubpluginAWSSQS_d"
"AltFilename"="pubsubpluginAWSSQS"
"Type"="GucefGenericPlugin"
"LoadFailAllowed"="true"

[Bootstrap\PluginGroup\PluginMetaData]
"Description"="Pub sub concept adapter plugin implementing support for Kafka"
Expand Down

0 comments on commit 83d8c28

Please sign in to comment.