-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pubsub example configs: adding an initial example config using the sq…
…s backend
- Loading branch information
1 parent
6f68a8a
commit 83d8c28
Showing
2 changed files
with
218 additions
and
7 deletions.
There are no files selected for viewing
211 changes: 211 additions & 0 deletions
211
tools/pubsub2pubsub/config/examples/channel_templates/storage2sqs.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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": [] | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters