-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
server: rationalize the registration of tenant metrics
In case of shared-process tenants, the metrics registry of the tenant's SQLServer is registered with the node's metrics recorder, so that the tenant metrics are exported together with the system's metrics. Before this patch, this registration was done in a weird place - it was done when preparing the arguments that will be used for ultimately constructing the respective server. Doing this registration before the server is even constructed, let alone started, is surprising. It's also pretty broken, since the tenant start can fail afterwards. This patch rearranges things so that the registration is done when the tenant server is started. I believe this patch also fixes a bug around the exporting of tenant metrics to Graphite. Before, I think the tenant's metrics were exported twice - once by the tenant and once by the node recorder. Release note: None
- Loading branch information
1 parent
2b157b6
commit a4543af
Showing
3 changed files
with
31 additions
and
25 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