Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rpc: connection-level resource isolation
Currently, rpc allows a scheduling_group to be configured on a per-verb basis. This method has some drawbacks: - if different verbs in the same connection are executed under different groups, head-of-line blocking can cause a low-priority group to block a high priority group by consuming all of the units in _resources_availble - the same verb can be executed under only one group, making multi-tenancy harder. This patch adds a new method, which isolates a entire connection rather than a verb. The new method improves upon the old method by: - allowing the same verb to be executed under different groups (if called under different connections) - executing more server code under scheduling groups - preventing head-of-line blocking (requires more work to have per-group memory reservations) Eventually, we'll deprecate and remove the old method. Message-Id: <20181004125910.13502-1-avi@scylladb.com>
- Loading branch information
Showing
4 changed files
with
145 additions
and
3 deletions.
There are no files selected for viewing
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
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
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
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