Skip to content

Conversation

@bnamasivayam
Copy link
Contributor

Fixes #1642

totalDiskUsageBytes += s.value.lastReply.storageBytes.used;

if (now() - self->lastSSListFetchedTimestamp > SERVER_KNOBS->STORAGE_SERVER_LIST_FETCH_TIMEOUT) {
limits->tpsLimit = 1;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the tpsLimit happens to be less than 1, we probably shouldn't increase it or change the reason, even if we can't fetch the storage server list.

Also, is there a particular reason 1 was chosen instead of 0 as the limit?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No particular reason. Just a small value. Should i change it to 0?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My gut says there isn't a lot to be gained by allowing 1 vs 0, but that the slow trickle of transactions could in some cases cause additional damage. I'd be inclined to clamp it all the way down in this case and only allow immediate priority transactions. You could also potentially check with @etschannen for another opinion.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree that it should be set to 0

@etschannen etschannen merged commit 846038b into apple:master Jul 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ratekeeper cannot control based on storage server issues when the list of storage servers cannot be read

3 participants