Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Use link caching for $management operations (renew locks) #248

Merged
merged 12 commits into from
Sep 2, 2021

Conversation

richardpark-msft
Copy link
Member

@serbrech found a bug where we appear to be having issues when creating a large # of links (in his testing it's somewhere around 200-500).

Our RPCClient (which is what they were using) created a link for each call made, which added up quickly when you were doing parallel lock renewals.

This change makes it so we cache (when possible) a link per entity/address and re-use it for any other other calls that occur. This change goes hand in hand with the change made in Azure/azure-amqp-common-go/pull/53

richardpark-msft added 2 commits August 26, 2021 16:30
…ing dispositions or lock renewal (or other management related operations).

NOTE: go.mod here is referencing some pre-released commits since this depends on changes in two projects (go-amqp and azure-amqp-common-go).

Also, added in a simple stress test. It's a bit manual at the moment, but it initiates 1000 concurrent renew lock calls at once, so it's a decent test of our response routing.
go.mod Outdated Show resolved Hide resolved
rpc.go Show resolved Hide resolved
rpc.go Outdated Show resolved Hide resolved
rpc.go Show resolved Hide resolved
rpc.go Show resolved Hide resolved
@richardpark-msft
Copy link
Member Author

/azp run Azure.azure-service-bus-go

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@richardpark-msft
Copy link
Member Author

/azp run Azure.azure-service-bus-go

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@richardpark-msft
Copy link
Member Author

/azp run Azure.azure-service-bus-go

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@richardpark-msft
Copy link
Member Author

/azp run Azure.azure-service-bus-go

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@richardpark-msft
Copy link
Member Author

/azp run Azure.azure-service-bus-go

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@richardpark-msft
Copy link
Member Author

richardpark-msft commented Sep 2, 2021

(last live test failure was due to throttling of the resource manager calls, so unrelated to the changes we've just made)

@richardpark-msft richardpark-msft merged commit e882857 into Azure:master Sep 2, 2021
@richardpark-msft richardpark-msft deleted the sb-stephane-recovery branch September 2, 2021 20:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants